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
Threat detection fails the run when it was skipped and continue-on-error: false #66872
With safe-outputs.threat-detection.continue-on-error: false, a run in which the agent emits no safe output at all ends with a failed detection job:
ERR_SYSTEM: threat-detect binary not found on PATH
##[error]Process completed with exit code 1.
Nothing was there to analyze. The guard step says so ("Detection skipped: no agent outputs or patches to analyze"), and the run fails anyway, with a message that points at the detector install rather than at the agent.
This happens every time the agent stops before writing to outputs.jsonl. In our case the agent hit max-ai-credits (403 Maximum AI credits exceeded), so outputs.jsonl was never created, and the only failure shown on the run was the threat-detect one.
Make the agent end without calling any safe-output tool. For instance, set a max-ai-credits low enough to stop it early, or use a prompt that ends without calling any tool, noop included.
Look at the detection job:
Check if detection needed: OUTPUT_TYPES: empty, HAS_PATCH: false, "Detection skipped: no agent outputs or patches to analyze".
Install threat-detect binary: skipped.
Conclude threat detection: env has RUN_DETECTION: false, THREAT_DETECT_INSTALL_OUTCOME: skipped, DETECTION_AGENTIC_EXECUTION_OUTCOME: skipped, then ERR_SYSTEM: threat-detect binary not found on PATH and exit code 1.
Expected
When the guard skipped detection because there was nothing to analyze, the conclusion should report it as skipped, as the comment in conclude_threat_detection.sh describes, whatever continue-on-error is set to. A missing detector should only be reported as an error when detection was actually expected to run.
Activity