GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #6434

New issue
Copy link
New issue
Copy link
Closed
#6497
Closed
id(match_audit): sign_header/sign_footer never check version, roster, signer or seed commitment — signatures verify_integrity always rejects are produced silently#6434
#6497
Copy link
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobsource/design-architectFiled by the repo design architect jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Nov 6, 2026
Issue body actions

Summary

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

  • sign_header refuses (with an AuditErrorV0 naming the reason) a header whose version is not FORMAT_VERSION_V0, whose roster is empty or contains duplicate player keys, or whose signer is not in the roster — before producing a signature.
  • sign_footer refuses a signer who is not in header.players, and a footer whose seed_reveal does not digest to header.seed_commitment (the checks sign_footer has the inputs for; tick/chain-context checks that need the assembled log stay in verify_integrity).
  • Well-formed headers/footers sign exactly as before (existing exporter export_tic_tac_toe_reference and the module tests stay green).
  • New tests pin each refusal above, with the valid control still signing Ok — in the style of the 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/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 sign-time refusal tests.
  • No change to verify_integrity, the wire format, or any verifier verdict.

🤖 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.

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    source/creatorFiled by the new-issue-creator job
    priority/normalOrdinary priority (the default)
    on Nov 6, 2026
  2. developing-today commented on Nov 6, 2026

    @developing-today
    developing-todayBot
    on Nov 6, 2026 – with developing.today
    Contributor
    More actions

    CODE-1928

  3. dezren39
    added
    queue/queuedHas a queued queue task
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Nov 6, 2026
  4. dezren39 commented on Nov 6, 2026

    @dezren39
    dezren39
    on Nov 6, 2026
    MemberAuthor
    More actions

    🤖 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)
  5. dezren39
    added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    on Nov 6, 2026
  6. dezren39 commented on Nov 6, 2026

    @dezren39
    dezren39
    on Nov 6, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-n
    • Session / ID: task 10886
    • Found via: queue claim
    • Task: task 10886 (triage for 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) claimed by lane code-n and assigned to the opencode execution lane — handed off to the laptop opencode claimant, which launches the bound session. Fresh check this claim: 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 OPEN, no hard-stop labels.
    • Expectation: claimant session drives task 10886 to a terminal state under this queue's worker id; attempts 1/4.
    • 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
  7. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Nov 6, 2026
  8. 26 remaining items

  9. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    status/parkedDeliberately paused with a recorded resume condition
    queue/queuedHas a queued queue task
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 6, 2026
  10. dezren39
    added a commit that references this issue on Nov 6, 2026

    fix(id): validate match-audit signing inputs at sign time (#6434) (#6497

    c0ce60b
  11. dezren39
    closed this as completedin #6497on Nov 6, 2026
  12. developing-today
    added
    status:done
    on Nov 6, 2026
  13. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/idPackage/app: id (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobsource/design-architectFiled by the repo design architect jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.