Repository navigation
Fail Security sessions on safeguard refusals and log answering Models - #577
Merged
Merged
Conversation
This was referenced Oct 8, 2026
Merged
Merged
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.
Summary
Security sessions now fail with a named cause when Claude Code or Codex refuses cybersecurity work. Model evidence reaches progress and the Command log across all six supported Harnesses, including Model switches and resumed sessions.
Claude's synthetic errors and sub-agent Models are excluded. Codex reports the requested Model explicitly; retained Muse/OpenCode records supply their answering Models. Raw refusal diagnostics remain in local records.
Closes #547
Evidence
a_claude_cyber_refusal_fails_the_security_audit_with_its_causefailed with a generic missing-final-line cause; refusal notifications omitted the cause.After: Both refusal Harnesses fail with their named safeguard cause, and notification regressions verify that private diagnostics stay out of email.
cargo testpassed: 1,575 tests passed, one ignored, zero failed across 40 suites.cargo check --all-targets,cargo fmt --check, andcargo clippy --all-targets -- -D warningsalso passed.Testing seams
Review
Reviewed against the captured
issue-427tip,f397e261e4649a21915e9d3f7efaf930fb0949ac, with one coverage follow-up per axis. Standards: three P3 maintainability findings addressed. Spec: two P2 behavioral findings reproduced, fixed and retained as regressions. Both reviewers read all 14 changed files and hunks. Changed files left unread: none.Unaddressed findings
Standards
None. All three findings are addressed.
Spec
None. Both findings are addressed; their exact reproductions failed before the fixes and pass afterward.
Merge Danger
Door: two-way
Reversible changes to session interpretation, logging and notification rendering; no migration.
Blast Radius: Sessions
Security-purpose sessions gain refusal classification and Model reporting. Ordinary-session interpretation remains covered by regression tests.
Built with codex · gpt-6.1-sol · xhigh