How Did an Opening Remark Become the Deliverable?
说明与用途
调度器仅依赖进程退出码,错误地将 AI 助手的开场白视为成功结果,忽略了服务的错误状态。修复后添加了状态检查,防止接受不完整或错误的输出。
问题
A dispatcher incorrectly treated an AI assistant’s opening narration as a successful result because it relied solely on the process exit code, ignoring the service’s error status.
结果
The fix prevents accidental acceptance of incomplete or erroneous AI outputs, ensuring downstream stages receive accurate success/failure signals and can inspect partial results.
工作流
- 1. Dispatcher starts a command‑line tool that calls the AI service.
- 2. Tool exits with code 0 and returns a response containing an error status and opening narration.
- 3. Old dispatcher writes the narration to the result file, treating it as success.
- 4. Updated dispatcher detects the error status, reports failure, and leaves a fallback marker while preserving any generated files.
证据
The program collecting the result trusted another signal: a normal process exit.
After hitting a quota limit, Agy could return exit code zero while its terminal event reported ERROR and included opening narration.
The fix addresses precisely that mismatch: after hitting a quota limit, Agy could return exit code zero while its terminal event reported ERROR and included opening narration.
- 记录日期: 2026-09-19T21:00:27.438Z