Repository navigation
Report the Harness and diagnostic when a Security review fails - #1096
Merged
Merged
Conversation
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
Reuse the interpreted diagnostic's first non-empty, trimmed line. Preserve generic failures, deliberate incomplete reviews and Safeguard refusals.
Closes #974
Evidence
cargo test --test security_review a_failed_security_review_names_its_harness_and_first_diagnostic_line -- --exactreproduced the generic cause despite grok's login diagnostic.After: the diagnostic reaches the Run cause, Activity log, status and email; the rest remains in the Session log.
cargo test --test security_review a_failed_review_keeps_private_result_text_out_of_its_public_pr -- --exactfailed by copying private failed-result text into the PR.After: the same test passes unchanged and is retained.
scripts/affected-tests mainselectedcargo nextest run: 2355 passed, 56 skipped on2d3e31f./usr/bin/time -p scripts/affected-tests main: 1488.44s wall, including 97s compilation; nextest execution 1389.552s.cargo check --all-targetsand formatting also passed. All GitHub checks are green on this head.Test seams
Merge Danger
Door: two-way
Normal revert; no data migration.
Blast Radius: diagnostics
Unaddressed findings
Standards
Outcome::hold()insrc/security/review.rsretains the diagnostic's first line. A Security review whose Harness fails reports a generic cause that names neither the Harness nor its error #974's Agent Brief requires reusingerrorsor fallbackresultdiagnostics and states: “The cause flows unchanged ... the email”. Redacting that line would change this explicit plan decision, while sending partial assistant output can conflict with ADR 0015. The reviewer’s exactcargo test --test security_review a_failed_review_keeps_private_result_text_out_of_its_notification -- --exactfailed (exit 101, 1 failed), confirming synthetic private text reached fake Resend. This concern is confirmed and unresolved; the passing suite is not a refutation. Reconcile failed Security review diagnostics in email with ADR 0015 #1097 contains the full reproduction, evidence, this PR's link and the decision the Day shift must make; its only label isneeds-triage. The supplied reproducer is retained with the review reports and in Reconcile failed Security review diagnostics in email with ADR 0015 #1097. S1's public-PR disclosure is fixed and its test remains in the acceptance suite.Spec
None.
Security
Outcome::hold()insrc/security/review.rsbuilds the Run cause from the diagnostic's first line, and that cause flows unchanged to the Resend email (Cause:), Activity log,statusand Console. When the diagnostic is fallbackresulttext (partial assistant output) rather than a harness auth error, its first line reaches a third-party notification carrier, which ADR 0015 reserves for title/severity/link, never a write-up. Evidence: a temporary proof-of-concept mirroringa_failed_security_review_names_its_harness_and_first_diagnostic_line— grokerror_during_executionresult, emptyerrors, synthetic private marker asresult— failed on HEAD (cargo test --test poc_974_notification, exit 101, marker present in the fake-ResendCause:line) and passed on the untouched merge base829a86f(generic cause, no marker), so it is introduced by this change, not pre-existing. Severity: medium — a real private-record → third-party boundary crossing, limited to one trimmed line addressed to the run owner's email. Unaddressed because A Security review whose Harness fails reports a generic cause that names neither the Harness nor its error #974's Agent Brief explicitly requires the cause to flow unchanged to the email and the committed acceptance tests assert that cause text; redacting the notification carrier changes that plan decision, which stays deferred to the Day shift in #1097. No fix committed; the temporary reproducer was removed so the suite stays green.Security review outcome
Review coverage
Both axes read all five changed files. Unread changed files: none. Generated-output exclusions: none.
Built with codex · gpt-6.1-sol · xhigh