Repository navigation
Deepen Security finding recording behind one interface - #614
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
Security runs and Security reviews share one recording interface; storage identity, native decoding, and notification metadata stay in the Security finding record module.
Closes #610
Evidence
Before:
CARGO_BUILD_JOBS=2 cargo test --bin thirdshift repeated_fingerprints_create_one_validated_recordfailed to compile against the previous record interface (E0599,E0422).After: all seven shared-interface tests pass, covering both storage formats, every existing state, preserved Day shift grades/write-ups, safe metadata, lazy historical records, and creation/decoding failures.
The Pass adapter test verifies duplicate counters, notification list order, and one reproduction per fingerprint. The CLI scenario verifies ordered existing/new metadata for both storage formats. Existing Security review scenarios pass, including review-to-Security-run handoff.
cargo fmt --check— passed.CARGO_BUILD_JOBS=2 cargo clippy --all-targets -- -D warnings— passed.CARGO_BUILD_JOBS=2 cargo test— full suite passed; zero failures, one existing ignored test.Test seams
SecurityRecords::record_or_reuse: typed results, fingerprint reuse, grades, metadata, and failure recovery through advisory/private-issue creation adapters.OutsidePass adapter: duplicate counts, metadata order, and per-fingerprint reproduction deduplication.Review coverage
thirdshift-code-reviewagainstmain: Standards 0 findings; Spec 0 findings. Both axes read all eight changed files. Changed files left unread: none under Standards or Spec.thirdshift-security-auditguidance review against pinned merge based2f2faf7fe4a7586d4f15118891a2220791a6736: reviewed all eight changed files and supporting private-record storage, reproduction, fix-publication, and notification code. No introduced Security findings.Sandboxed, offline validation:
cargo test --offline --bin thirdshift github::advisories::tests(7 tests),cargo test --offline --bin thirdshift security::tests(11),cargo test --offline --test security_review(19), andcargo test --offline --test security_run(84); all 121 passed. Tests used local fixtures with external networking disabled.Unaddressed findings
Standards
None.
Spec
None.
Security
None.
Security review outcome
No unaddressed introduced findings.
Merge Danger
Door: two-way
Reversible refactor; no migration or new grading/disclosure policy.
Blast Radius: Security
Recording for Security runs/reviews and the typed record queries used by fix publication.
Built with codex · gpt-6.1-sol · high