docs(theory): provenance threat model (foundational doc for Step 2)#90
Merged
Conversation
Closes #25. Until now the provenance chain's value proposition lived only in the README ("tamper-evident SHA-256 hash chain so you can prove who did what and when") with no written model of what that actually proves under which adversary. The V-L2-C* implementation issues just made multiple binding decisions (which fields to hash, how to encode the timestamp, whether self-loops are allowed) that all need a single reference; this is it. `docs/theory/provenance-threat-model.adoc` covers the five sections required by V-L1-B1: 1. Four adversary models — read-only, sidecar-append, sidecar-rewrite, clock-skew (the last is orthogonal and can compose with any of the first three). 2. What the chain proves under each, field-by-field and with the specific "defeated by" pathway for each gap. Explicit about where the chain provides zero protection (sidecar-rewrite locally) and where it conditionally protects (sidecar-append against forged actor only if signatures are added). 3. Five out-of-scope items: DoS, side channels, target-DB tampering bypassing interception, retroactive provenance, identity binding. 4. Five assumptions: sidecar locality, optional append-only storage layer, SHA-256 strength, clock source, single writer. 5. Four open questions, each marked as a future ADR (per-entry signatures, external anchoring, trusted clock policy, snapshot redaction). Cross-references the V-L2-C1..C4 implementation and points at the specific source files where the relevant invariants live. No code changes; doc-only. Future ADR-0004 (the "binding choices" ADR called for in this issue's acceptance criteria) is a follow-up once this doc is reviewed. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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
Per V-L1-B1: the provenance chain's value proposition lived only in the README. The V-L2-C* implementation issues just made multiple binding decisions (which fields to hash, how to encode the timestamp, whether self-loops are allowed) that need a single reference. This is that reference.
docs/theory/provenance-threat-model.adoccovers:actoronly if signatures are added).Cross-references V-L2-C1..C4 (just merged in #88) and points at the specific source files for each relevant invariant.
Closes
Test plan
docs/theory/provenance-threat-model.adocwith all five required sectionssrc/abi/mod.rs::ProvenanceEntry, etc.)Doc-only; no code changes.