You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[task] Add graceful artifact handling for missing agent outputs #2534
Improve safe output job error handling when agent_output.json artifacts are missing due to upstream agent job failures. Jobs should skip gracefully instead of failing with confusing error messages.
Context
Safe output health analysis shows 4 occurrences where safe output jobs fail because the agent job didn't produce the expected artifact. Current behavior shows unclear errors like "ENOENT: no such file or directory". These are upstream failures, not safe output failures, but they're counted as safe output job failures.
Related to discussion #2532 (Safe Output Health Report).
Approach
Locate safe output job step definitions in workflow compiler (likely in pkg/workflow/ Go files)
Add artifact existence check before download attempt:
Use GitHub Actions conditional execution
Check if agent job succeeded before trying artifact download
Improve error messaging:
Distinguish between "agent failed" and "safe output failed"
Provide clear guidance when artifact is missing
Modify job status logic:
Use "skipped" status instead of "failed" when artifact missing
Preserve "failed" status only for actual safe output job failures
Activity