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(attestation): compute_state never validates the claim outcome's domain — claims naming a third party (or any string) as winner compute Agreed · Issue #2868 · developing-today/code

id(attestation): compute_state never validates the claim outcome's domain — claims naming a third party (or any string) as winner compute Agreed #2868

New issue
Copy link
New issue
Copy link
Closed
#3508
Closed
id(attestation): compute_state never validates the claim outcome's domain — claims naming a third party (or any string) as winner compute Agreed#2868
#3508
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/xsTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobsource/design-architectFiled by the repo design architect jobtask/triageQueue packet kind: verify, reproduce, and route this item

Description

@dezren39
dezren39
opened on Oct 30, 2026
Issue body actions

id(attestation): compute_state never validates the claim outcome's domain — claims naming a third party (or any string) as winner compute Agreed

Evidence (main 07448571, merged today in PR #2854 for #2248)

pkgs/id/src/attestation.rs documents the claim outcome's domain on ResultClaim.outcome (:106-108): "the winning player's id as hex, or "draw"". But the viewer checks concurrence only:

  • compute_state (:223) accepts two claims when a.outcome == b.outcome && a.final_state_hash == b.final_state_hash (:253) — a pure string-equality check. Neither claim's outcome is ever compared against the agreement's two player ids (hex) or the "draw" sentinel.
  • So any outcome string both players sign — the hex of a key that is not in the match, or arbitrary text — computes Agreed, even though no such result is possible for the tic-tac-toe example the PoC models (the winner is one of the two seats, or a draw).

Distinct from #2863 (duplicate seats): there the seats collapse to one key; here the seats are two genuine, distinct players and the genesis pair is complete — the gap is purely that the asserted result is outside the documented domain.

Verified (laptop probe, verbatim compute_state + object types, real p2panda-core Hash at the pinned rev da80c05b)

Probe: ~/git/fleet/probe-2026-10-30-laneB-attdup/ on the laptop (same verbatim extraction as #2863; attestation.rs md5 530fcdf45da5d8688dc0e4e319b641b2), distinct players [A, B], complete genesis pair, concurring claims throughout:

  • both claims name third party C (hex of a key that is not a player) as winner → Agreed ← the bug
  • both claims give outcome "banana" → Agreed ← the bug
  • both claims give outcome "draw" → Agreed (control: the documented non-player outcome stays valid)
  • both claims name A (a seat player) → Agreed (control, from the id(attestation): compute_state never checks the two players are distinct — players=[A,A] attests Agreed from one key's single genesis + single claim #2863 probe run)

The shipped tests (tests/attestation_poc.rs) only ever use seat-player hex outcomes and the wrong-winner dispute case (which names the other seat), so the out-of-domain case is uncovered.

Why it matters

  • The viewer's Agreed is the attestation: downstream consumers (the id: design: match attestation + audit v1 #2039 v1 design, audit/replay in id: investigate: match audit — netcode log format, replay validation, and cheating signals #2038's line) will read it as "both players conceded this result". An out-of-domain outcome — above a nonsense string, a result naming someone who never played — should not be attestable at all; if it computes Agreed, every consumer must re-validate the outcome itself, which is exactly the invariant a viewer exists to own.
  • It also masks claim-construction bugs: a claimant whose outcome encoding is wrong (raw bytes instead of hex, a display name, a seat index) produces claims that can still concur and attest, instead of failing visibly at the viewer.

Acceptance criteria

  • Two concurring claims whose outcome is neither a seat player's id-as-hex nor "draw" do not compute Agreed (they compute Proposed or Disputed — triage pins which, and whether a claim with an out-of-domain outcome is ignored like a non-player claim or counts as a position).
  • Documented outcomes unchanged: seat-player hex (either seat) and "draw", with concurring final-state hash, still compute Agreed; differing in-domain outcomes still compute Disputed.
  • A regression test covers the probe matrix: third-party hex, arbitrary string, and the draw/seat-hex controls.
  • Triage pins the encoding contract being enforced (lowercase hex of the 32-byte player id, as produced by the example/tests) so the check and claim constructors cannot drift apart.

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/lowNice to have; do when convenient
    queue/queuedHas a queued queue task
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    effort/xsTrivial: expected under 30 minutes of work
    on Oct 30, 2026
  2. dezren39 commented on Oct 30, 2026

    @dezren39
    dezren39
    on Oct 30, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator job (lane B, new-issue-creator-code-b)
    • Session / ID: cron job new-issue-creator-code-b, run 2026-10-30T23:31Z
    • Found via: filed this run
    • Task: Filed after verifying on the laptop that compute_state (pkgs/id/src/attestation.rs:253) checks claim outcomes only for string equality: with two distinct players and a complete genesis pair, concurring claims naming a third party C as winner — or giving outcome "banana" — compute Agreed, though ResultClaim documents the outcome as a seat player's hex or "draw" (:106-108). Probe: laptop ~/git/fleet/probe-2026-10-30-laneB-attdup/ (verbatim compute_state + types, real p2panda-core Hash); "draw" and seat-hex controls Agreed as documented. Enqueued as a triage packet for the repo-health-code-pilot queue.
    • Expectation: effort/xs — triage pins whether out-of-domain outcomes are ignored or count as a (disputing) position, and the exact hex encoding contract; done when an out-of-domain outcome can no longer attest Agreed and the probe matrix is a regression test.
    • Links: evidence in the issue body; distinct from id(attestation): compute_state never checks the two players are distinct — players=[A,A] attests Agreed from one key's single genesis + single claim #2863 (duplicate seats, same run); related id: PoC: mutual-concession match attestation on the tic-tac-toe example — genesis agreement + dual signed result claims, offline-first (from #2037) #2248 (the PoC, closed), id: design: match attestation + audit v1 #2039 (attestation v1 design, open)
  3. github-actions
    assigned
    dezren39
    on Oct 30, 2026
  4. dezren39
    added
    source/design-architectFiled by the repo design architect job
    on Oct 31, 2026
  5. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    Agent note (design-architect, 2026-10-30): this issue is Phase 2 of design #2898 ("reconstruction is admission", design doc files/designs/code-id-reconstruction-validation.md in the keep-the-four-repos-healthy goal workspace), together with #2863.

    Recorded decisions for triage — do not re-file, re-scope, or split this issue; record the phase structure instead:

    • The outcome domain comes from the agreement, never from the claim: a claim counts only if winner is None or names one of the agreement's two players. A claim naming anyone else is ignored under compute_state's existing non-player-claim rule and can never contribute to Agreed.
    • If a future agreement shape needs named non-player outcomes, the agreement type must declare them — that is a type change, not a loosening of this check.
  6. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    Correction (design-architect, same pass): my earlier note misstated the outcome domain. Per this issue's evidence, the documented domain of ResultClaim.outcome is a seat player's id as hex, or the "draw" sentinel — there is no None winner. A claim outside that domain can never contribute to Agreed; whether it is ignored (like a non-player claim) or counts as a position (Proposed vs Disputed), and the exact hex-encoding contract, are this issue's triage pins, as its acceptance states. Design #2898's doc has been amended to match.

  7. dezren39
    added a parent issue on Oct 31, 2026
    • Design: reconstruction is admission — validate authority-bearing inputs where they are rebuilt (pkgs/id) #2898
  8. dezren39
    added
    work/assignedQueue worker lifecycle state
    on Nov 1, 2026
  9. 7 remaining items

  10. dezren39
    added
    queue/queuedHas a queued queue task
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    work/assignedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    queue/queuedHas a queued queue task
    on Nov 1, 2026
  11. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    Agent note — picked up (queue task 5449)

    • Agent: repo-worker-code (OpenChamber scheduled lane)
    • Session / ID: OpenCode session ses_e5e69607636ffeCvTCAGXflken
    • Task: Enforce the pinned outcome-domain rule in compute_state and add the probe-matrix regression tests.
    • Next: Create the task worktree, inspect current source/tests, implement and verify.
    • Links: queue task 5449; branch queue/5449-2868-attestation-outcome-domain
  12. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    Agent note — handed off (queue task 5449)

    • PR: fix(id): ignore out-of-domain attestation outcomes (#2868) #3508 — fix(id): ignore out-of-domain attestation outcomes (#2868) #3508
    • Commit: 182fdd45ee86343ccd41d960e847a44d025e422e
    • Verification: cargo test --manifest-path pkgs/id/Cargo.toml --test attestation_poc — 7/7 pass; changed-file rustfmt and git diff --check pass.
    • CI: pending; no checks listed yet.
    • Next: review CI and merge only when required checks are green.
  13. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 1, 2026
  14. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    Agent note — done (queue task 5449)

    • Outcome: PR fix(id): ignore out-of-domain attestation outcomes (#2868) #3508 opened; compute_state now ignores out-of-domain outcomes without letting them occupy a player position or create a fork.
    • Queue: completed as pr_opened; CI remains pending and can proceed without a held claim.
    • Bookkeeping: sandbox backlog/sweep updates deferred to fleet reconciliation.
  15. dezren39
    added a commit that references this issue on Nov 2, 2026

    Merge pull request #3508 from developing-today/queue/5449-2868-attest…

    e5c5cf8
  16. dezren39
    closed this as completedin #3508on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/xsTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobsource/design-architectFiled by the repo design architect jobtask/triageQueue packet kind: verify, reproduce, and route this item

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.