Repository navigation
Align conclude warn-mode tooling failures with gh-aw policy - #1328
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The normative usage specification and README still require the hard-failure behavior removed by this change.
1 open issue
What changed in this PR
Aligns threat-detect conclude with gh-aw’s warn-mode safe-output policy for direct consumers, addressing #1326.
Changes:
- Warn-mode tooling failures now emit warnings and exit 0, preserving the reason and
success=false; strict mode remains unchanged. - Updates TD-20b to match the revised conclusion policy.
- Expands regression coverage for execution outcomes, reason classification, annotations, outputs, and exported environment values.
| File | Description |
|---|---|
specs/threat-detection-spec.md |
Defines warning behavior for failed execution in warn mode. |
cmd/threat-detect/conclude.go |
Removes the execution-failure override from warn-mode conclusions. |
cmd/threat-detect/conclude_test.go |
Updates expectations and adds environment-driven policy parity tests. |
Review effort: Max
This was referenced Oct 23, 2026
This was referenced Oct 23, 2026
This was referenced Oct 24, 2026
This was referenced Nov 1, 2026
This was referenced Nov 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

When detection execution fails,
threat-detect concludecurrently hard-fails tooling errors even in warn mode. This prevents direct consumers from receiving the warning conclusion required by gh-aw’s configured safe-output policy.Update TD-20b, the corresponding usage clauses U-05a/U-19/U-20 and README environment guidance, and
concluder.failso warn-modeagent_failureandparse_errorresults emitconclusion=warning, preserve the reason andsuccess=false, and exit 0. Strict mode continues emitting failure and exiting 1. Threat verdicts, mandatory validation, and status-to-reason mapping retain their existing behavior.Update existing contract/unreadable-file expectations and add CLI parity coverage for default/explicit warn mode and strict mode, both execution outcomes, missing and malformed results, status-derived parse errors, threat verdicts, annotations, and exported environment values.
Validation:
make fmt lint build testpassed on main and on this branch;git diff --checkpassed. The branch validation was rerun with build-cache access after a sandbox permission error blocked test setup.A detector release and separate gh-aw version/digest pin bump are follow-up work. This PR leaves the host compatibility wrapper and workflow locks unchanged.
Fixes #1326