test(claims): CI coverage for claim 3 rug-pull + claim 4 nonce binding#356
Merged
Conversation
…binding Closes the gaps tracked in #353 and #354. 6 tests each, patterned after the claim 1/2 suites and asserting the same invariants their experiments demonstrate: - claim 3: definition/catalog hash determinism, avalanche on description tamper, catalog hash propagation, fail-closed CatalogHashMismatch under a pinned hash - claim 4: nonce determinism, session + instance binding, session-id tamper breaks the Ed25519 signature, audit-entry removal breaks the export signature Updates experiments/README.md CI table. Verified: ruff clean, 12 tests pass.
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.
What
Adds the pytest coverage for claim 3 (rug-pull detection) and claim 4 (TRACE Claim nonce binding) that the README CI table and the paper's evaluation section flagged as pending.
Closes #353, closes #354.
Tests
tests/unit/test_claim3_rug_pull_detection.py(6):CatalogHashMismatchraised fail-closed when a tampered catalog is loaded under the approved pinned hashtests/unit/test_claim4_trace_claim_nonce.py(6):Patterned after the existing
test_claim1_hash_binding.py/test_claim2_session_gap.pysuites and the claim 3/4 experiment scripts.Verification
In a clean venv against
main:ruff check src/ tests/clean,pyteston claims 3+4 → 12 passed.🤖 Generated with Claude Code