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) #2254DescriptionFrom 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)
- 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.
- Fingerprint registry: hash construction, storage, one-grant-per-key enforcement, publisher-revocation batch intake.
- External-event attestation records: refund / chargeback / publisher-revocation intake formats (service-signed), and the state transitions each may trigger.
- Clawback + Shortfall + debt objects: transfer choreography, partial clawback, debt record format, offset-against-future-grants rules, suspension effects, write-off recording.
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. Activitydeveloping-today commented on Oct 29, 2026 dezren39 commented on Oct 30, 2026 🤖 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
dezren39 commented on Oct 30, 2026 🤖 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
dezren39 commented on Oct 30, 2026 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.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|