Repository navigation
test: golden master snapshots SARIF, SBOM, graph sqlite, GPU JSON, LLM brief (#4109) - #4240
Merged
Merged
Conversation
… LLM brief (#4109) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013sNMtAg6s9dyyjNgnjRHi8
Contributor
squid-protocol
added a commit
that referenced
this pull request
Oct 3, 2026
…y twisted/transport.py moved Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013sNMtAg6s9dyyjNgnjRHi8
squid-protocol
added a commit
that referenced
this pull request
Oct 3, 2026
* Remove dead CONTEXT_VIOLATION_MATRIX config and its misleading wiki pseudo-code (#1090) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013sNMtAg6s9dyyjNgnjRHi8 * fix(signals): anchor hardware_bridge/cryptography on the top-level package (#4238) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013sNMtAg6s9dyyjNgnjRHi8 * fix(security): test site-packages relative to the venv, not the absolute scan path (#4239) Leftover of #4058 (PR #4232). Also makes the three `.git`-in-parts rglob filters (cobol port_runner, cics_transaction_reader, galaxy_ir) relative to their scan root. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013sNMtAg6s9dyyjNgnjRHi8 * golden: re-bless twisted/transport.py cryptography 9 -> 2 (#4238) Both legs; only the one file moved (hardware_bridge/cryptography now anchored). Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013sNMtAg6s9dyyjNgnjRHi8 * golden: re-bless section 12 snapshots after merging main (#4240); only twisted/transport.py moved Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013sNMtAg6s9dyyjNgnjRHi8 --------- Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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.
Closes #4109 (with #4119, every output the issue lists is now covered; GPU coordinates are deliberately excluded, as the issue itself proposed).
What this adds
tests/golden_outputs_snapshot.pyadds one top-level golden section,12. Scan Output Snapshots, with one fixture file per output.golden_diff.load_and_sanitizeattaches it to every fresh scan that has the sibling files and never to a fixture directory. Same pattern as #4119, sodeep_compare,update_golden_master.pyandcrucible_check.pyneed no change and no CI workflow change was needed._galaxy_sarif.json_galaxy_sbom.json_galaxy_graph.sqlite_galaxy_gpu.json_galaxy_llm.mdMasks (only fields that vary between scans, or that other automation refreshes)
serialNumber(fresh UUID per scan) andmetadata.timestamp.meta:timestamp,commit,branch(same factssanitizealready masks in the audit).meta.session:timestamp,duration_seconds,target_directory(machine path),git_audit(same as the audit masks).Git Remoterow, and the archetype-validation rows (Archetype Brains,Function/File archetypes,Composition (file/repo)), whicharchetype-validation.ymlrefreshes on main independently of engine output (the audit'sArchetype Validationis masked for the same reason). Brain-provenance rows stay.Skipped
pos_x/pos_y/pos_z: corpus-wide layout solve, so any change moves every coordinate. The audit already fails on the real cause; a layout digest would only restate it as noise.Determinism proof
Blessed twice in a row in each leg (full: galaxy_venv; zero-dep: PyYAML only) from fresh scans on crucible v1.6.0 with the PATH shim (engine path verified): the second bless reported "No drift detected" in both. No existing fixture part changed (only new files). The two legs differ in all five new parts (zero-dep mode flags, no token mass, no ML threat data), as the existing fixtures do.
Size
5 new parts per fixture, ~1.9 MB each (gpu 600 KB, graph 743 KB, sarif 356 KB, llm 136 KB, sbom 98 KB), vs ~17 MB for #4119 and ~42 MB existing. Bless time +~9 s.
Tests
tests/test_golden_outputs_snapshot.py(7 tests, synthetic scan outputs): every output present; masked fields and reordering do not diff; GPU coordinates and scan order do not diff; for each of SARIF, SBOM, LLM, GPU (4 mutations), and graph sqlite, a deliberate one-field change makesdeep_comparefail.pr_gates
7/7 pass: lint, audits, secrets, xray, gauntlet, golden, suite.
Merge order
Merge this BEFORE the #4108 crucible-pin PR, which must then re-bless the new snapshots too. Other open PRs touching golden masters (#4058-fix, #4231, #4213-fix) re-bless after merging main, never hand-merge.
🤖 Generated with Claude Code
https://claude.ai/code/session_013sNMtAg6s9dyyjNgnjRHi8