GeezerVison is showing github.com — id(match_audit): sign_header/sign_footer never check version, roster, signer or seed commitment — signatures verify_integrity always rejects are produced silently · Issue #6434 · developing-today/code
id(match_audit): sign_header/sign_footer never check version, roster, signer or seed commitment — signatures verify_integrity always rejects are produced silently #6434DescriptionSummary
pkgs/id/src/match_audit.rs: sign_header (line 404) and sign_footer (line 440) sign any header/footer presented to them — including shapes that MatchLogV0::verify_integrity (line ~467) rejects before or independently of the signature — so a caller can produce a well-formed Ed25519 signature that is dead on arrival, and signing succeeds silently.
sign_header performs no check at all before sign_message: it does not check header.version == FORMAT_VERSION_V0 (verify_integrity rejects any other version with UnsupportedVersion as its first check), it does not call validate_roster(&header.players) (line 886: empty or duplicate-key rosters are rejected with Roster), and it does not check that the signer is one of header.players (verify_signature_set rejects a signature set containing a non-roster signer).
sign_footer has the same gaps and one more, even though it already receives the header it needs to check them: it does not check the signer is in header.players, and it does not check Hash::digest(&footer.seed_reveal) == header.seed_commitment — verify_integrity rejects a mismatching reveal with SeedCommitmentMismatch, and that check runs before the footer signatures are verified, so the signature never even gets considered.
This is the same dead-on-arrival signing shape as #6422 (sign_authorisation never calls validate) and #6424 (sign_genesis/sign_claim never check the signer is a player), in a module neither issue covers. The precedent for the fix shape is also in-tree: sign_genesis already refuses a duplicate-seat agreement at sign time (#2863, cited on #6424), and chain::sign refuses an extension that fails ChainExt::validate before signing.
Evidence (verified this run, laptop @ origin/main a2b4345)
Probe: laptop worktree ~/git/fleet/probe-match-audit-sign, test pkgs/id/tests/probe_match_audit_sign.rs against the real id crate (cargo test --test probe_match_audit_sign). A well-formed control log (two roster players, version 0, matching seed reveal, no entries) passes verify_integrity. Against that control:
sign_header with version = 99: returns Ok; a log assembled with those signatures fails verify_integrity with unsupported match-audit format version 99.
sign_header with an empty players roster: returns Ok; the assembled log fails verify_integrity with invalid match-audit roster.
sign_header with a duplicate roster (same player twice, different roles): returns Ok; the assembled log fails verify_integrity with invalid match-audit roster.
sign_header by a signer who is not in the roster: returns Ok; the assembled log fails verify_integrity with match-audit integrity failure: HeaderSignature.
sign_footer by a non-roster signer: returns Ok.
sign_footer (by a roster player) over a footer whose seed_reveal does not digest to header.seed_commitment: returns Ok; the assembled log fails verify_integrity with match-audit integrity failure: SeedCommitmentMismatch.
Probe result: 1 passed (control verifies; every bad shape above signs Ok and is rejected at verify).
Why it matters
The match-audit log is the evidence format for contested match outcomes (#2814 lineage): header and footer signatures are what make a log attributable. A signing helper that happily signs an unsupported version, an empty/duplicated roster, a non-participant's attestation, or a seed reveal that contradicts the signed commitment produces evidence that every verifier discards — and the failure only surfaces later, at verification time, attributed to the log rather than to the moment the bad input was signed. Failing at sign time, with the specific AuditErrorV0 reason, makes the error local and actionable, exactly as the sibling fixes for #6422/#6424 propose.
Acceptance criteria
🤖 Filed by the fleet new-issue-creator (lane B) — verified with a probe against the real crate this run; see the probe path in the evidence section. Activitydeveloping-today commented on Nov 6, 2026 dezren39 commented on Nov 6, 2026 🤖 Agent note · filed
- Agent: new-issue-creator job (new-issue-creator-code-b)
- Session / ID: cron new-issue-creator-code-b run 2026-11-05 21:50 CST (2026-11-06T03:50Z)
- Found via: filed this run
- Task: Filed issue id(match_audit): sign_header/sign_footer never check version, roster, signer or seed commitment — signatures verify_integrity always rejects are produced silently #6434 — sign_header (pkgs/id/src/match_audit.rs:404) and sign_footer (:440) never check header version, roster validity (validate_roster :886), signer membership in the roster, or (sign_footer, which receives the header) that footer.seed_reveal digests to header.seed_commitment, so signatures verify_integrity always rejects are produced silently; verified with a laptop probe on origin/main a2b4345 (probe ~/git/fleet/probe-match-audit-sign, pkgs/id/tests/probe_match_audit_sign.rs, 1 passed: control log verifies; version=99 / empty roster / duplicate roster / stranger header signer / seed-mismatch footer all sign Ok and fail verify_integrity with UnsupportedVersion / Roster / HeaderSignature / SeedCommitmentMismatch respectively).
- Expectation: effort s — refuse the header-local and footer-local bad shapes at sign time with the matching AuditErrorV0; tick/chain-context checks stay in verify_integrity. Enqueued as a triage packet on repo-health-code-pilot.
- Links: issue id(match_audit): sign_header/sign_footer never check version, roster, signer or seed commitment — signatures verify_integrity always rejects are produced silently #6434; related issue id(currency): sign_authorisation never calls validate — a signed authorisation naming another issuer or with rate_den = 0 is dead on arrival, and signing succeeds silently #6422 (currency sign-side sibling), issue id(attestation): sign_genesis / sign_claim never check the signer is a player — a non-player's signed genesis or claim is dead on arrival, and signing succeeds silently #6424 (attestation sign-side sibling), issue id(match-audit): MatchLogV0::decode ignores trailing bytes — a log with arbitrary unsigned data appended still verifies as RESULT CONFIRMED #6202 (match_audit decode sibling, distinct)
dezren39 commented on Nov 6, 2026 🤖 Agent note · handed off
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|