Repository navigation
feat(spec): let a better sidecar outrank a depth-0 manifest proof - #71
Merged
Merged
Conversation
A C2PA manifest is unauthenticated to a vcap reader and sits outside the JPEG canonical bytes, so a foreign proof added beside a trailer-stripped genuine file and its sidecar read tampered. §3.1 step 4 now judges both when they differ and lets the sidecar decide when its outcome ranks strictly higher (authentic > verified clip > frames not compared > rest), with "manifest copy differs". Ties keep the manifest's proof; ceilings are never ranked. Vectors 169-171 added, corpus 6.0.0 -> 6.1.0 (171 vectors). Clip timing gap recorded as open in §11 and the threat model, with a design note proposing signed per-segment timing (no verifier-only fix exists). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cedence # Conflicts: # CHANGELOG.md # spec/threat-model.md
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.
Breaking reading rule, corpus 6.0.0 → 6.1.0 (minor: 3 vectors added, none moved).
A C2PA manifest is unauthenticated to a vcap reader and sits outside JPEG canonical bytes. A foreign proof in a manifest added to a trailer-stripped genuine file with a genuine sidecar read tampered (false accusation). §3.1 step 4 now judges both proofs when they differ; the sidecar's verdict stands, with manifest copy differs and
proof_source: sidecar, only when its outcome ranks strictly higher (authentic > verified clip > frames not compared > rest). Ties keep the manifest's proof (vector 127 unchanged). Ceilings are never ranked, so a stripped sidecar cannot hide a red ceiling. Nothing is gained that deleting the manifest would not give.carrier.tsreturns the differing sidecar as an alternate;verify.tsranks outcomes.generate:c2pa --only 169,170,171.stts/ctts/mdhd/edit duration/audioesds) unbound for clips: no verifier-only rule closes it. Recorded as open (§11, threat model §5.1) withreviews/design-clip-timing.mdproposing per-segment timing hashes insegments[]plus a signedmedia.timingroot — no change to the segment message, no re-signing in sealers.Verifier must: when no footer and a sidecar differs from the depth-0 proof, judge both and pick the sidecar iff its outcome ranks strictly higher; label it manifest copy differs.
CI-equivalent run locally: typecheck, 260 tests, validate, manifest:check, conformance:check (171/171), edge cases;
npm run generatebyte-stable.🤖 Generated with Claude Code