Skip to content

id(match_audit): sign_footer still signs unsupported-version and duplicate-roster headers — the #6434 refusal left the header checks only in sign_header #6843

Closed

Description

@dezren39

Summary

pkgs/id/src/match_audit.rs: sign_footer (line 481) is the residual half of the #6434 sign-time refusal fix. PR #6497 gave sign_header (line 431) the full header-local checks — version equals FORMAT_VERSION_V0, validate_roster, signer-in-roster — and gave sign_footer signer-in-roster and the seed-commitment check. But sign_footer also receives the same header, and it still signs two header shapes that MatchLogV0::verify_integrity (line 511) rejects before the footer signature is ever considered:

  • an unsupported header.version — verify_integrity returns UnsupportedVersion as its first check;
  • a duplicate-key roster — verify_integrity calls validate_roster (line 933) and returns Roster.

#6434's acceptance bullet for sign_footer named only the signer and seed checks, so this is not a regression of that fix — it is the part of the same dead-on-arrival surface its scoping left behind. Both rules are decidable from sign_footer's own inputs, exactly like the checks sign_header now performs. (An empty roster is already refused indirectly: validate_signer fails with SignerNotInRoster because no signer is in an empty roster.)

Relation to #6487/#6488: this is a concrete gap the Phase 4 closing inventory (#6488) should disposition as "gap — filed as this issue", not a new contract.

Evidence (verified this run, laptop @ origin/main 07ecb67)

Probe: laptop worktree ~/git/fleet/probe-sign-footer (branch probe/sign-footer-residual), three tests added to the module's own test fixture in pkgs/id/src/match_audit.rs, run on the laptop with cargo test -p id --lib match_audit::tests::probe_sign_footer:

  • control (valid header/footer, roster signer): sign_footer returns Ok — test passed;
  • header.version = FORMAT_VERSION_V0 + 1 (99-style unsupported version, all else valid): sign_footer returned Ok(PlayerSignatureV0 { ... }) — probe refusal test FAILED as expected, i.e. the bad shape signs;
  • duplicate roster (player 1's PlayerV0 pushed a second time, signer is that player): sign_footer returned Ok(PlayerSignatureV0 { ... }) — probe refusal test FAILED as expected.

Result: 1 passed / 2 failed, where the 2 failures are the defect (a signature produced for a log verify_integrity always rejects).

Code reading, same head: sign_footer at match_audit.rs:481-497 calls only validate_signer and the seed-digest check before sign_message; sign_header at :431-445 checks version, then validate_roster, then validate_signer.

Why it matters

The match-audit log is the evidence format for contested match outcomes. A footer signature over an unsupported-version or duplicate-roster header is dead on arrival: every verifier discards the log, and the failure surfaces later at verification time instead of at the moment the bad header was signed. Mirroring the two remaining header-local checks in sign_footer makes the error local and actionable with the existing AuditErrorV0::UnsupportedVersion / AuditErrorV0::Roster reasons — the same reasons sign_header already returns.

Acceptance criteria

  • sign_footer refuses a header whose version is not FORMAT_VERSION_V0 with AuditErrorV0::UnsupportedVersion, before producing a signature.
  • sign_footer refuses a header whose roster fails validate_roster (duplicate player keys; empty roster may keep surfacing as SignerNotInRoster or be reported as Roster — either named refusal is acceptable, signing is not) with a named AuditErrorV0, before producing a signature.
  • Well-formed headers/footers sign exactly as before (existing sign_header_and_footer_accept_roster_signers, exporter, and module tests stay green).
  • New tests pin both refusals with the valid control still signing Ok, in the style of the existing sign_header_refuses_* / sign_footer_refuses_* 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

  1. developing-today commented on Nov 7, 2026

    @developing-today
    Contributor
  2. added
    source/creatorFiled by the new-issue-creator job
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/normalOrdinary priority (the default)
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    on Nov 7, 2026
  3. dezren39 commented on Nov 7, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

  4. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  5. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    work/assignedQueue worker lifecycle state
    and removed on Nov 9, 2026
  6. 28 remaining items

  7. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked — awaiting triage step

  8. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked — awaiting triage step

  9. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked — awaiting triage step

  10. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done (triaged) — Agent: queue worker (repo-worker-code), lane code-x — Session/ID: task 13123, repo-queue-worker-shift-x 2026-11-10 run. Task 13123 (triage) for issue #6843: the issue no longer carries status/needs-triage — the triage step already triaged it (labels now kind/bug, task/small-fix, priority/normal) and the fix packet was enqueued separately as task 11060, whose agent notes on this issue record its handoffs to the opencode claimant since 2026-11-09. Per runbook §1c this triage packet completes immediately with outcome triaged; bookkeeping only, no new triage performed by this lane.

  11. added
    priority/lowNice to have; do when convenient
    and removed
    priority/normalOrdinary priority (the default)
    on Nov 11, 2026
  12. added a commit that references this issue on Nov 11, 2026
  13. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    Agent note — task 11060 done (fixed_merged)

  14. removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 11, 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/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator 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