Title: id(attestation): sign_claim never checks the outcome is in compute_state's domain — 'banana', '', 'DRAW' or an uppercase/truncated winner hex signs Ok and is ignored in every view · Issue #6441 · developing-today/code · GitHub
Open Graph Title: id(attestation): sign_claim never checks the outcome is in compute_state's domain — 'banana', '', 'DRAW' or an uppercase/truncated winner hex signs Ok and is ignored in every view · Issue #6441 · developing-today/code
X Title: id(attestation): sign_claim never checks the outcome is in compute_state's domain — 'banana', '', 'DRAW' or an uppercase/truncated winner hex signs Ok and is ignored in every view · Issue #6441 · developing-today/code
Description: Problem sign_claim (pkgs/id/src/attestation.rs:208) signs any ResultClaim whose body serializes — it never checks that claim.outcome is in the domain compute_state can ever count. compute_state (attestation.rs:287-291) counts a claim onl...
Open Graph Description: Problem sign_claim (pkgs/id/src/attestation.rs:208) signs any ResultClaim whose body serializes — it never checks that claim.outcome is in the domain compute_state can ever count. compute_state (at...
X Description: Problem sign_claim (pkgs/id/src/attestation.rs:208) signs any ResultClaim whose body serializes — it never checks that claim.outcome is in the domain compute_state can ever count. compute_state (at...
Opengraph URL: https://github.com/developing-today/code/issues/6441
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"id(attestation): sign_claim never checks the outcome is in compute_state's domain — 'banana', '', 'DRAW' or an uppercase/truncated winner hex signs Ok and is ignored in every view","articleBody":"## Problem\n\n`sign_claim` (`pkgs/id/src/attestation.rs:208`) signs any `ResultClaim` whose body serializes — it never checks that `claim.outcome` is in the domain `compute_state` can ever count. `compute_state` (`attestation.rs:287-291`) counts a claim only when its outcome is `\"draw\"` or a seated player's lowercase 64-character hex id (`valid_outcome`). A claim signed with any other outcome string is therefore **dead on arrival**: it is ignored in every view, forever, and signing succeeds silently.\n\nThis is shape-only and knowable at sign time — `sign_claim` needs no agreement to know these outcomes can never count:\n\n- `\"banana\"`, `\"\"`, `\"0x1234\"` — not `\"draw\"`, not a hex id\n- `\"DRAW\"` / `\"Draw\"` — the domain string is exact-case\n- A winner's hex id in UPPERCASE, or truncated to 63 chars — `compute_state` builds player outcomes as lowercase `{byte:02x}` hex and compares by string equality\n\n## Evidence (verified this run)\n\nProbe on the laptop at `origin/main` `9e20032d0cf3034a2baea117caa60c115119138e` (worktree `~/git/fleet/probe-attestation-outcome-wt`, integration test `pkgs/id/tests/probe_attestation_outcome.rs` against the real `id` crate, 1 passed): two players sign identical genesis, then both sign claims concurring on one outcome, and `compute_state` is run over the signed objects.\n\n- Controls: outcome `\"draw\"` → sign Ok, state `Agreed`; outcome = player X's lowercase hex → sign Ok, state `Agreed`.\n- Malformed: `\"banana\"`, `\"\"`, `\"DRAW\"`, `\"Draw\"`, uppercase winner hex, 63-char winner hex, `\"0x1234\"` → **sign_claim Ok for both players**, yet state computes `Proposed` — the concurring claims are silently ignored, so the match can never settle from these objects.\n\n## Why it matters\n\nThis is the construction-vs-receipt asymmetry the crate has been fixing one signer at a time (#6422 currency, #6424 attestation signer, #6434 match_audit, #5623 artifacts): a signer produces a signed object no verifier will ever accept, with no error at the only moment the mistake is cheap to catch. Here the signer is a legitimate seated player (unlike #6424's non-player signer) making a formatting slip — e.g. an uppercase or truncated winner hex from a UI — and the match silently never reaches `Agreed`.\n\n## Distinct from neighbours\n\n- #6424: `sign_genesis`/`sign_claim` never check the *signer is a player* — different defect, different fix (needs the agreement at the sign site).\n- #2868 (closed): `compute_state` never validated the outcome domain — fixed on the read side; the sign side was never gated.\n- The remaining domain rule sign time cannot check (outcome names a *seated* player, not a third party's well-formed hex) stays a `compute_state` rule; this issue is only the shape half that is decidable from the claim alone.\n\n## Acceptance criteria\n\n- `sign_claim` refuses (new `SignError` variant, e.g. `InvalidOutcome`) any claim whose outcome is neither `\"draw\"` nor a 64-character lowercase hex string, before signing.\n- Well-formed outcomes (`\"draw\"`, any 64-char lowercase hex) still sign Ok — including a third party's hex, whose seated-ness remains `compute_state`'s call.\n- Tests pin: each malformed class above refused at sign time; controls sign Ok and still compute `Agreed` end-to-end; existing attestation suite (`tests/attestation_poc.rs`) green.\n- No change to `compute_state`'s counting rules.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-06T04:15:57Z","url":"https://github.com/developing-today/code/issues/6441"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e5a876e5-1ba9-4579-d904-e5d722f8785c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F64:223718:AF76FB:E925DD:6B064238 |
| html-safe-nonce | 649bf90036c871c0a929e589beabfc505129902587ab61af022bb041e3b32118 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjY0OjIyMzcxODpBRjc2RkI6RTkyNUREOjZCMDY0MjM4IiwidmlzaXRvcl9pZCI6IjEzMzgwMTg4NzcyNzk3MTU4OTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 532a24f74638b2f8613b241cee72bcea6ffbb1ad67553ce98a6623019925813c |
| hovercard-subject-tag | issue:6236602295 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/6441/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3ce1811288aeb5d8b2a24dac1dae4a7735929c65b56e53c1b8fac5384aa99b3e/developing-today/code/issues/6441 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3ce1811288aeb5d8b2a24dac1dae4a7735929c65b56e53c1b8fac5384aa99b3e/developing-today/code/issues/6441 |
| og:image:alt | Problem sign_claim (pkgs/id/src/attestation.rs:208) signs any ResultClaim whose body serializes — it never checks that claim.outcome is in the domain compute_state can ever count. compute_state (at... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1bff4f6bfaa96dc9c42cacf315424c24ebb548b06142ced5e3aaccb2a42dd652 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ac613d3698d3d8565651455086e1f74da07bf277 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width