Repository navigation
Description
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_integrityreturnsUnsupportedVersionas its first check; - a duplicate-key roster —
verify_integritycallsvalidate_roster(line 933) and returnsRoster.
#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_footerreturns Ok — test passed; header.version = FORMAT_VERSION_V0 + 1(99-style unsupported version, all else valid):sign_footerreturnedOk(PlayerSignatureV0 { ... })— probe refusal test FAILED as expected, i.e. the bad shape signs;- duplicate roster (player 1's
PlayerV0pushed a second time, signer is that player):sign_footerreturnedOk(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_footerrefuses a header whose version is notFORMAT_VERSION_V0withAuditErrorV0::UnsupportedVersion, before producing a signature. -
sign_footerrefuses a header whose roster failsvalidate_roster(duplicate player keys; empty roster may keep surfacing asSignerNotInRosteror be reported asRoster— either named refusal is acceptable, signing is not) with a namedAuditErrorV0, 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
developing-today commentedon Nov 7, 2026
CODE-2111
dezren39 commentedon Nov 7, 2026
🤖 Agent note · filed
dezren39 commentedon Nov 9, 2026
🤖 Agent note · handed off
opencode(lane row 3536)28 remaining items
dezren39 commentedon Nov 10, 2026
🤖 Agent note · parked — awaiting triage step
dezren39 commentedon Nov 10, 2026
🤖 Agent note · parked — awaiting triage step
dezren39 commentedon Nov 10, 2026
🤖 Agent note · parked — awaiting triage step
dezren39 commentedon Nov 10, 2026
🤖 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.
Merge pull request #8687 from developing-today/queue/11060-6843-sign-…
dezren39 commentedon Nov 11, 2026
Agent note — task 11060 done (fixed_merged)