Skip to content

Resolve Finding rows once their private records are triaged - #1241

Merged
JacobStephens2 merged 5 commits into
issue-919from
issue-1198
Oct 24, 2026
Merged

JacobStephens2 merged 5 commits into
issue-919from
issue-1198

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Oct 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

Security runs whose findings were waiting
  → one paginated private finding list per repository
  → keep each recorded finding's waiting flag
  → last finding triaged: leave Needs you, “findings triaged”

Shares the Security run's advisory/private issue selection and triage rules. Preserves waiting facts on failed reads, respects the REST reserve, and freezes History rows. Updates the hand-written site and domain-to-code index.

Closes #1198

Evidence

  • Before: cargo test --test status finding_leaves_only_after_its_last_private_record_is_triaged -- --exact failed: the old Finding was in History while GitHub still showed a waiting draft advisory.
    After: the same binary test passes and checks the “findings triaged” exit, per-run finding identities, and kept-answer privacy.
  • cargo check and cargo test --test status --test dismiss passed.
  • All review behavior findings were reproduced before fixes; kept regressions cover exposed Findings, the retention deadline, partial-read failures, and private-storage quota discovery.
  • CI exposed an old graded-advisory fixture expectation; the updated cargo test --test security_run an_audit_then_fix_notification_marks_the_fixed_finding_apart_from_those_waiting -- --exact passes and covers live GitHub triage separately from the completion-time notification.
  • A controlled regression reproduced the fake gh call-record truncate/read race seen locally and in CI. The reader now shares the writer’s state lock; cargo test --test status fake_gh_call_reads_wait_for_an_in_progress_record_write -- --exact and all eight cargo test --test console github:: tests pass.
  • Final CI on 9ae34cf passed: 2,516 Rust tests (57 ignored fixture/platform entries), formatting, strict Clippy, Console/site checks and release artifact builds.
  • Local /usr/bin/time -p scripts/affected-tests origin/issue-919 passed all 49 site tests and reached the stale Security run assertion corrected above; 897.03 seconds, including compilation. The complete final Rust result is reused from successful CI on the exact head.

Test seams

  • thirdshift status --json and text output through the binary with the fake gh supplying advisory/private issue states, quota and failures.
  • thirdshift dismiss through the binary with the same kept GitHub answer.
  • Kept Inbox answer privacy and request selection at the filesystem and fake gh system seams.
  • The fake gh call-record reader while the background writer holds its state lock.
  • Snapshot::next_inbox_change, the shared status/Console retention deadline interface, with a fixed observation time.

Unaddressed findings

  • Standards: none. Both behavior findings and both duplication judgments addressed.
  • Spec: none. Both findings addressed, including the follow-up case where GitHub settles a failed fix before its remaining findings are triaged.
  • Security: none. The new reads keep only a finding URL and whether it still waits, and they do not start a list while the REST reserve is in force.

Security review outcome

No unaddressed introduced findings.

Review coverage

Standards and Spec each read the first 14 changed files. Unread by both review axes: tests/security_run.rs, a late CI fixture correction after their single coverage follow-up. Later fixture race edits in tests/support/mod.rs and tests/status.rs were also not re-reviewed. There are no generated output exclusions. Final files-read lists and findings are retained in the session’s standards.md and spec.md reports. Fixed point: issue-919 at d917398 (the fetched remote branch; the local branch is checked out elsewhere).

Merge Danger

Door: two-way

Code and additive kept-answer fields can be rolled back.

Blast Radius: Inbox

Changes Finding grouping and the private REST reads shared by status and Console.

Built with codex · gpt-6.1-sol · xhigh

@JacobStephens2
JacobStephens2 merged commit 0e4a76e into issue-919 Oct 24, 2026
18 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-1198 branch October 24, 2026 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant