Repository navigation
feat(freeusc): add --compare-arch CXTP-48-1536 vs DXT-48-1536 bit-diff report mode (#8) - #13
Merged
Merged
Conversation
Contributor
Author
Adversarial Hardening & Public-Roads Audit Receipt (
|
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 #8.
Summary
tools/freeusc/volcanic_bitdiff.py): addscompare-arch/--compare-arch(stdlib Python 3.9+ only) comparing two clean-room JSON capture manifests (e.g., DXT-48-1536 vs. CXTP-48-1536), pairing probes by name/ID and summarizing instruction-word framing deltas, word-count/length shifts, family/opcode-cluster shifts, bit-diff metrics, and aggregate totals. Supports text, markdown, and--jsonoutput, with clean exit-code 2 handling for missing/malformed manifests.tools/freeusc/volcanic_bitdiff.py --self-test,tests/test_volcanic_compare_arch.py): 15 clean-room tests covering probe pairing, framing/length/family deltas, report formats, flexible manifest shapes, edge cases, and CLI exit codes.Verification
python3 tools/freeusc/volcanic_bitdiff.py --self-test: PASSpython3 -m unittest discover -s tests -v: 23/23 OKpython3 -m unittest discover -s freepvr-twin/tests -v: 25/25 OK./scripts/clean-room-audit.sh: PASS (0 violations)