Repository navigation
feat(aer1): verify chain, commitment and workflow timelines (not checked 100 → 49) - #116
Merged
Merged
Conversation
Three families leave not_checked and are now judged vector by vector against the pinned corpus: - chain v1 (7): entry digest over the decoded bytes, genesis, links, and close true only on the last entry. - chain -07 (28): the entry digest that binds prev_digest, seq, job_id, close, id, tool, provenance_class and the output commitment, serialized as canonical JSON (keys by code point, RFC 8259 escaping, non-ASCII as \uXXXX). - commitment (8): job, length, final entry digest and publication time, with the fractional entry_count spelling refused because 5.0 is a different claim from 5 even though JSON parses both to 5. - workflow Merkle (8): both constructions under the declared merkle_version — receipt-id-v0 leaves and seq-output-v1 "seq:output_hash" leaves — with the odd-level last-duplication rule. An unknown version is a refusal, never a guess. Table: agree 94 (was 43), false accepts 0, false rejects 0, not checked 49 (was 100). Every family gets a test that runs the whole pinned family, so a weak rule surfaces as a false accept and a strong one as a false reject. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.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.
The three timeline families leave
not_checkedand are judged vector by vector against the same pinned corpus. No conformance claim is added; what changes is that the table now covers 94 of 143 vectors instead of 43.chain v1 — 7/7. Entry digest over the base64-decoded canonical bytes, zero genesis, every link recomputed,
closeboolean and true only on the last entry.chain -07 — 28/28. The fortified digest that binds
prev_digest,seq,job_id,close,id,tool,provenance_classand the output commitment. Canonical JSON with member names by code point, RFC 8259 escaping with\uXXXXfor non-ASCII. That detail is load-bearing: the reference-encoding vector only matches when short escapes are used (\n, not\u000a), and theax-esc-*vectors break exactly where they should.commitment — 8/8. Chain must verify, then job, entry count, final entry digest and publication time bind.
entry_count: 5.0is refused even though JSON parses it to 5: the lexeme is the claim, and the corpus says so.workflow Merkle — 8/8. Both constructions under the declared
merkle_version:receipt-id-v0leaves over the receipt id,seq-output-v1leaves overseq:output_hash, odd levels duplicating the last digest. An unknown version is a refusal, never a guess.Table — agree 94, false accepts 0, false rejects 0, not checked 49 (merkle 9, anchor 8, anchored 6, unicode 5, schema-0.4 records 21). Joined kit column unchanged, still zero divergences.
Tests —
aer1-timeline-checks.test.mjsruns each whole family plus the specific refusals (tamper, relabel, wrong encoding, fractional count, wrong construction, unknown version). Interop test pins 94/0/0/49 and 7/28/8/8 per family.Checks locally: timeline + interop + record + doc-numbers + status-truth 30/30, claims audit PASS.