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: design: grant lifecycle implementation spec — pending-hold grants, key-fingerprint registry, clawback/shortfall, revocation policy (from #2042) · Issue #2254 · developing-today/code

id: design: grant lifecycle implementation spec — pending-hold grants, key-fingerprint registry, clawback/shortfall, revocation policy (from #2042) #2254

New issue
Copy link
New issue
Copy link
Closed
Closed
id: design: grant lifecycle implementation spec — pending-hold grants, key-fingerprint registry, clawback/shortfall, revocation policy (from #2042)#2254
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)priority/highImportant and time-sensitive

Description

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

From the #2042 investigation (tokens for real services)

Investigation #2042 (queue task 3353, result posted on that issue 2026-10-29) produced the grant lifecycle state machine for purchase-granted tokens: key-fingerprint registry (one grant per key, raw key never stored), grants born into PendingHold for the storefront refund window (TigerBeetle two-phase pending transfers per #2040), contingent liability on the grantee through the chargeback horizon, clawback with a first-class Shortfall/debt state, and three rigorously separated revocation kinds (for-cause clawback, issuer-discretion where the currency definition declares it, delisting as acceptance policy). This issue is the implementation spec for that lifecycle in the currency service. Spec only — no permanent feature on an unreviewed investigation (program rule, epic #2056).

Spec to produce (doc in pkgs/id/doc/ per repo convention, linked from this issue)

  1. PendingHold mechanics: TigerBeetle pending transfer vs grant sub-account — one chosen, with the window parameters per grant source (Steam direct vs retail key) as configuration, and the post/void flows.
  2. Fingerprint registry: hash construction, storage, one-grant-per-key enforcement, publisher-revocation batch intake.
  3. External-event attestation records: refund / chargeback / publisher-revocation intake formats (service-signed), and the state transitions each may trigger.
  4. Clawback + Shortfall + debt objects: transfer choreography, partial clawback, debt record format, offset-against-future-grants rules, suspension effects, write-off recording.
  5. revocation_policy enforcement: how the currency service reads the id: investigate: token issuance in the ID graph — per-ID issuance, issuer snapshots, authorized conversion rates #2041 currency-definition field (none | for-cause | issuer-discretion) and refuses out-of-policy revocations; revocation notice + grace-window flow.

Acceptance criteria

  • Spec doc landed in pkgs/id/doc/ and linked from this issue, covering all five points
  • Every state and transition in the id: investigate: tokens for real services — Steam-key grants, returns/refunds, revocation #2042 state machine is implemented in the spec (no orphan states)
  • Each id: investigate: tokens for real services — Steam-key grants, returns/refunds, revocation #2042 abuse case (1–6) traced to a spec mechanism or an explicitly accepted residual risk
  • Open parameters (window lengths, chargeback horizon, write-off policy) are listed for the id: design: ID currencies v1 #2043 synthesis / operator decision, not silently defaulted
  • Implementation work, if any, is filed as its own issue(s) — this issue delivers the spec only

Program: ID platform expansion, epic #2056. Parent investigation: #2042. Related: #2040 (TigerBeetle pending transfers/clawbacks), #2041 (issuance model + currency definition), #2043 (currencies v1 synthesis — inputs now complete), #2030.

Activity

  1. dezren39
    added
    status/needs-triageNot yet triaged; needs a first look
    priority/highImportant and time-sensitive
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Oct 29, 2026
  2. developing-today commented on Oct 29, 2026

    @developing-today
    developing-todayBot
    on Oct 29, 2026 – with developing.today
    Contributor
    More actions

    CODE-1118

  3. dezren39
    added
    queue/queuedHas a queued queue task
    on Oct 29, 2026
  4. github-actions
    assigned
    dezren39
    on Oct 29, 2026
  5. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Oct 30, 2026
  6. dezren39 commented on Oct 30, 2026

    @dezren39
    dezren39
    on Oct 30, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), Lane C
    • Session / ID: queue task 3409, cron repo-queue-worker-shift-c, run 2026-10-30 06:34 CDT
    • Found via: queue claim
    • Task: Produce the id: design: grant lifecycle implementation spec — pending-hold grants, key-fingerprint registry, clawback/shortfall, revocation policy (from #2042) #2254 grant lifecycle implementation spec (design only) in pkgs/id/doc/, covering the five points in the issue, every id: investigate: tokens for real services — Steam-key grants, returns/refunds, revocation #2042 state/transition, abuse-case tracing, and open parameters for id: design: ID currencies v1 #2043/operator; link it from id: design: grant lifecycle implementation spec — pending-hold grants, key-fingerprint registry, clawback/shortfall, revocation policy (from #2042) #2254 and file implementation follow-on(s) if needed.
    • Expectation: effort/l (design spec) — done = spec PR opened (merged if CI/Codex clean within the shift) and id: design: grant lifecycle implementation spec — pending-hold grants, key-fingerprint registry, clawback/shortfall, revocation policy (from #2042) #2254 linked, task 3409 terminal.
    • Links: issue id: design: grant lifecycle implementation spec — pending-hold grants, key-fingerprint registry, clawback/shortfall, revocation policy (from #2042) #2254
  7. dezren39 commented on Oct 30, 2026

    @dezren39
    dezren39
    on Oct 30, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done (spec delivered; PR awaiting CI/review)

    • Agent: queue worker (repo-worker-code), Lane C
    • Session / ID: queue task 3409, cron repo-queue-worker-shift-c, run 2026-10-30 06:34 CDT
    • Found via: queue claim
    • Task: Grant lifecycle implementation spec for id: design: grant lifecycle implementation spec — pending-hold grants, key-fingerprint registry, clawback/shortfall, revocation policy (from #2042) #2254 — delivered.
    • Result: Spec doc pkgs/id/doc/2026-10-30T11-55-00Z_design_grant_lifecycle.md (tracked at doc/2026-10-30T11-55-00Z_design_grant_lifecycle.md; pkgs/id/doc is a symlink to the repo doc/) in PR id: grant lifecycle implementation spec (#2254) #2722. It covers all five points: (1) PendingHold = TigerBeetle pending transfers (sub-account rejected with reasons), per-source window config, post/void flows; (2) fingerprint registry — domain-separated SHA-256, raw key never stored, primary-key one-grant enforcement, signed publisher batch intake; (3) service-signed external-event attestation format + transition table; (4) clawback choreography with amount_outstanding attribution, first-class Shortfall/debt records, FIFO offsets, suspension, signed write-off; (5) revocation_policy ladder with issuance-time snapshot, recorded refusals, notice + grace flow; delisting kept rigorously separate. Every id: investigate: tokens for real services — Steam-key grants, returns/refunds, revocation #2042 state/transition is mapped (§7, no orphans) and abuse cases 1–6 are traced (§8) with residual risks stated, not buried. Open parameters OP-1…OP-8 are listed for id: design: ID currencies v1 #2043/operator (§9), none silently defaulted.
    • Implementation follow-on: id: implement grant lifecycle per #2254 spec — registry, pending holds, attestations, clawback/debt, revocation policy #2723 (filed per this issue's acceptance; sequenced so no phase enables Active grants before the clawback engine exists).
    • Links: PR id: grant lifecycle implementation spec (#2254) #2722 · implementation id: implement grant lifecycle per #2254 spec — registry, pending holds, attestations, clawback/debt, revocation policy #2723
  8. dezren39
    added 5 commits that reference this issue on Oct 30, 2026

    id: grant lifecycle spec — disposition Codex review: purchase verific…

    bb04cca

    id: grant lifecycle spec — void/post race routes the recorded attesta…

    736471d

    id: grant lifecycle spec — Codex round 3: partial refunds, clawback r…

    6feead0

    id: grant lifecycle spec — Codex round 4: attestations arriving durin…

    4c01caf

    id: grant lifecycle implementation spec (#2254) (#2722)

    ec02aa1
  9. dezren39 commented on Oct 30, 2026

    @dezren39
    dezren39
    on Oct 30, 2026
    MemberAuthor
    More actions

    Spec landed: PR #2722 merged (ec02aa1) — doc at pkgs/id/doc/2026-10-30T11-55-00Z_design_grant_lifecycle.md (tracked doc/). All acceptance criteria met: five points covered; every #2042 state/transition mapped (§7); abuse cases 1–6 traced (§8) with residuals stated; open parameters OP-1…OP-8 routed to #2043/operator (§9); implementation filed as #2723. The spec also carries five rounds of Codex review dispositions (13 findings, all fixed in the doc and replied on-thread). Closing as completed — queue task 3409, repo-worker-code Lane C.

  10. dezren39
    closed this as completedon Oct 30, 2026
  11. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Oct 30, 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)priority/highImportant and time-sensitive

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.