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): 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 · Issue #6424 · developing-today/code

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

New issue
Copy link
New issue
Copy link
Closed
#6559
Closed
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
#6559
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/lowNice to have; do when convenientsource/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 teststask/triageQueue packet kind: verify, reproduce, and route this item

Description

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

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

Summary

pkgs/id/src/attestation.rs enforces its authority rules in the viewer: compute_state (attestation.rs:258) counts a genesis only when each of the agreement's two players has signed the identical agreement, and counts a claim only when its author is one of those players ("Claims answering a different agreement, from non-players, or with an outcome other than … are ignored", attestation.rs:254-255). The signing entry points enforce only one viewer invariant — sign_genesis (attestation.rs:171) refuses a duplicate-seat agreement, mirroring the viewer's malformed-agreement rule from #2863. Neither signer checks the other authority rule:

  • sign_genesis never checks that the signing key is one of agreement.players. A third party can sign the agreement and produce a well-formed attestation.genesis event that no viewer will ever count toward the genesis pair.
  • sign_claim (attestation.rs:208) never checks that the signing key is one of the players of the agreement the claim answers (it cannot check from the claim alone — see acceptance criteria for the shape this implies).

So a caller holding the wrong key — the realistic failure: a harness or wallet layer selects the wrong identity, or an operator signs with a witness/service key — gets a successful signature, a chain event, and an event id to hand out, and the object simply never exists for any viewer. That is the same failure shape closed for currency in #6422 ("creation reports success, consumption silently ignores") and for artifacts in #5623: a signed object should be refused at creation when the module's own consumption rules make it unreachable, so the mistake surfaces where the caller can fix it.

Evidence (verified this run, origin/main a2b4345e80)

  • Code: sign_genesis (attestation.rs:171-205) checks only first == second (duplicate seat) before serializing and calling chain::sign; sign_claim (attestation.rs:208-232) performs no check at all. compute_state's genesis rule (agreement.players.iter().all(|player| genesis.iter().any(|(author, signed)| author == player && …))) and per-player claim collection (author == player) make non-player objects unreachable by construction.
  • Probe (laptop, worktree of origin/main at a2b4345e80, ~/git/fleet/probe-attestation-wt, integration test pkgs/id/tests/probe_attestation_sign.rs, cargo test -p id --test probe_attestation_sign -- --nocapture, 1 passed): sign_genesis by a third key naming neither seat → Ok (event produced); sign_claim by the same third key → Ok; compute_state over both players' genuine genesis events plus only the stranger's claim → Proposed (the stranger's claim is ignored, exactly as documented). Controls in the same probe: both players' sign calls succeed, and the existing duplicate-seat refusal errors as documented.

Why it matters

The attestation PoC's own module doc states the principle: "Reconstruction is admission, not deserialization: derive conclusions from signature-verified authors and compare claims with the selected agreement. Reject, ignore, or dispute inconsistent input according to the API's rules; never silently repair it or let an input's own claims establish authority." The viewer side honors that; the signer side is the remaining half. This module is explicitly the shape later production attestation APIs would be built on (#2039 design, epic #2056 review gate), so the sign-side contract should be settled while it is still a PoC surface. The duplicate-seat refusal in sign_genesis already establishes the house shape: viewer invariants that make an object meaningless are refused at sign time with a typed SignError.

Acceptance criteria

  • sign_genesis refuses to sign when the signing key's player_id is not one of agreement.players, surfacing a typed SignError variant (e.g. NotAPlayer); no event is produced.
  • sign_claim gains a way to refuse a non-player signer — e.g. it takes the GenesisAgreement (or its player set) alongside the claim, or a sibling checked entry point is added and the unchecked one is crate-private/test-only, mirroring the sign_unchecked pattern in artifact.rs. The chosen shape is the fixer's call; the requirement is that the public signing path cannot silently produce a claim no viewer will count.
  • Tests: a non-player genesis signing and a non-player claim signing both error; both players' genuine genesis + claim flow still computes Agreed (the existing attestation_poc.rs demonstration passes unchanged).
  • compute_state behavior is unchanged: non-player objects from other/legacy signers are still ignored, never counted.
  • Out of scope: the witness slot (present and unused by design in this PoC) and objection handling (id: investigate: match audit — netcode log format, replay validation, and cheating signals #2038/id: design: match attestation + audit v1 #2039).

Notes

  • Related: 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-seat: the sign-time refusal precedent in this same function), id(attestation): compute_state never validates the claim outcome's domain — claims naming a third party (or any string) as winner compute Agreed #2868 (claim outcome domain, viewer side), 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 (the currency sign-side validation gap — same failure shape, different module and rule; complementary, not a duplicate), id(artifact): validate known-kind bodies in generic signing helpers #5623 (artifact sign-side precedent), Design: reconstruction is admission — validate authority-bearing inputs where they are rebuilt (pkgs/id) #2898 (the reconstruction-is-admission design epic this module's doc cites).
  • Found by Lane B (new-issue-creator-code-b), weighting away from Lane A's recent fleet-config/queue filings and Lane B's own recent dead-test and currency filings.

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
    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-1924

  3. dezren39
    added
    priority/normalOrdinary priority (the default)
    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 20:50 CST (2026-11-06T02:50Z)
    • Found via: filed this run
    • Task: Filed 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 — sign_genesis (pkgs/id/src/attestation.rs:171) and sign_claim (:208) never check the signer is one of the agreement's players, so a non-player's signed genesis/claim signs successfully yet compute_state (:258) can never count it; verified with a laptop probe on origin/main a2b4345 (non-player sign_genesis Ok, sign_claim Ok, stranger-only claim set computes Proposed; player controls Ok, duplicate-seat refusal intact).
    • Expectation: effort s — refuse non-player signers at sign time with a typed SignError (sign_claim needs the agreement/player set, shape is the fixer's call per the issue's acceptance criteria); compute_state unchanged. Enqueued as a triage packet on repo-health-code-pilot.
    • Links: 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; related issue 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-seat sign-time precedent), 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(artifact): validate known-kind bodies in generic signing helpers #5623 (artifact sign-side precedent)
  5. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed
    queue/queuedHas a queued queue task
    status/needs-triageNot yet triaged; needs a first look
    on Nov 6, 2026
  6. dezren39 commented on Nov 6, 2026

    @dezren39
    dezren39
    on Nov 6, 2026
    MemberAuthor
    More actions

    🤖 Agent note · triage verdict — CONFIRMED, with the API-shape decision made

    • Agent: repo queue worker, lane code-b (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-b run 2026-11-05; task 10869
    • Found via: claimed task 10869 this shift; execution-lane assignment returned direct, so this lane triaged it.
    • Task: task 10869 for 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 (triage). Fresh check: 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 is OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit).

    Verdict: CONFIRMED at laptop main 1dae17e457.

    Fresh source verification (pkgs/id/src/attestation.rs):

    • sign_genesis checks only the duplicate-seat invariant (first == second → SignError::DuplicateSeat); it never compares player_id(key) against agreement.players.
    • sign_claim checks nothing at all — and structurally cannot: its parameters are (key, seq_num, backlink, claim, after). A ResultClaim carries only the agreement hash, not the player set, so signer membership is undecidable at this call site without an API change.
    • compute_state counts genesis only from the two players and ignores claims whose author is not a seated player — so a non-player's signed genesis/claim is dead on arrival, exactly as filed. The creator's laptop probe (non-player sign_genesis Ok, non-player sign_claim Ok, stranger-only claim computes Proposed) is consistent with this source read.

    API-shape decision (the triage call the packet asked for):

    1. Add a typed SignError::NotAPlayer variant, returned when player_id(key) is not one of agreement.players.
    2. sign_genesis: refuse with NotAPlayer after the existing duplicate-seat check; no event produced.
    3. sign_claim: change the signature to also take agreement: &GenesisAgreement (mirroring sign_genesis), refuse with NotAPlayer when the signer is not a player, and refuse when claim.agreement != agreement.agreement_hash() (a claim answering a different agreement is equally dead on arrival in compute_state; with the agreement in hand this check is free). A checked sibling that leaves the current unchecked public sign_claim in place is rejected: the silent path would remain public.
    4. Cost is low and bounded: the only in-repo callers of sign_claim are the PoC tests (pkgs/id/tests/attestation_poc.rs, the two calls at ~:87/:95), and the module is explicitly a proof of concept with no production API built on it. compute_state behavior is unchanged — non-player objects from peers are still ignored.

    Follow-up: small_fix task enqueued from this triage (task id in the completion note below / queue dedupe key repo-health:v1:fix:developing-today/code:issue:6424) covering the refusal implementations, both new refusal tests, the attestation_poc demonstration still computing Agreed, and cargo test -p id attestation coverage.

    • Expectation: the follow-up fix task implements the shape above; 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 stays open until that fix lands.
    • Links: task 10869 · 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
  7. 100 remaining items

  8. dezren39
    removed
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 11, 2026
  9. dezren39
    added a commit that references this issue on Nov 11, 2026

    fix(id): refuse non-player signers in sign_genesis/sign_claim (#6424) (…

    f998d27
  10. dezren39
    closed this as completedin #6559on Nov 11, 2026
  11. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 11, 2026
  12. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Nov 11, 2026
  13. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done (lane code-b)

    • Task: task 10870 · 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 · PR fix(id): refuse non-player signers in sign_genesis/sign_claim (#6424) #6559 squash-merged 2026-11-11T16:17:05Z, merge commit f998d27. 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 closed.
    • Resume state found: the Codex P1 (property coverage for signer-membership invariants) had already been addressed by commit d931c10 (attestation_signer_properties.rs) and replied to (4539289386); Codex at that head reports no findings.
    • Verified this shift: merge-tree against current main clean; attestation suites re-run from the pkgs/id manifest — outcome_sign 3/3, poc 13/13, signer_player 4/4, signer_properties 3/3 (23 total, all pass).
  14. developing-today
    added
    status:in-review
    and removed
    status:done
    on Nov 12, 2026
  15. developing-today
    reopened this on Nov 12, 2026
  16. dezren39
    added a commit that references this issue on Nov 12, 2026

    Merge pull request #8972 from developing-today/fix/probe-attestation-…

    6741fc5
  17. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 12, 2026
  18. developing-today
    closed this as completedon Nov 12, 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 jobsource/design-architectFiled by the repo design architect jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted teststask/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.