Repository navigation
Open
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-inskind/enhancementpriority/normalOrdinary priority (the default)status/in-reviewstray-workStray work: not tied to a design or roadmap item (AUDIT-7 Lane 7)stray/needs-parentStray work with no appropriate parent/epic/design yet (AUDIT-7 Lane 7)
Description
Production currencies v1 — remainder after the graph-native fold (#5522)
Successor to #5522, filed per its acceptance ("if a further slice must remain, a successor issue is filed and linked instead of closing #5522 silently"). #5522's history is the cautionary tale: it was closed by a slice (PR #6776, graph contracts) with the remainder unrecorded, and had to be reopened by the 90-day review.
Landed so far
- Graph currency contracts (define/issue/transfer/burn, canonical CBOR, signing) — PR feat(id): graph currency event contracts (slice of #5522) #6776.
- Deterministic graph-native fold over those contracts (cap, causal validity, fork voiding, pending, burn accounting) — the fold PR from task 16904 (linked on id: implement ID currencies v1 (design #2043) #5522).
- Rate authorisation schema + fold (id(currency): RateAuthorisation + revoke schema types and fold in pkgs/id (Phase 1 of #2290) #3800, closed), conversion executor PoC (id: PoC: conversion executor — linked transfer pairs, write-ahead intent, recovery scanner #2289, closed), gateway signed envelope in
currency/gateway.rs(id(currency): gateway request envelope — canonical encoding, verify_strict, nonce window, idempotency IDs (from #2062) #2319).
Remaining (design #2043 phased plan)
- Anchored registry + gateway seam (phase 3). Registry mapping semantic definition →
currency_id/ledger, account factory, single-writer gateway, idempotent intents, two-way reconciliation. Design home id: design: currency control plane — registry, account factory, gateway #2062 (closed design); no open implementation issue — this item is its home until split. - Anchored transfer/issuance + snapshots (phase 4). TigerBeetle mint/transfer/burn, stamps, service-signed snapshots, supply-audit/reconciliation reports. Related open PoC: id: poc: currency gateway boundary — UserDO snapshot cache, signed transfer + hold, idempotent retry across hibernation #2298.
- Conversion execution (phase 5). Open homes: id(currency): gateway verification flow + revocation-set check for RateAuthorisation (Phase 2 of #2290) #3801 (gateway verification flow), id(currency): quote issuance + binding for RateAuthorisation (Phase 3 of #2290) #3802 (quote issuance/binding). Linked-batch executor per id: design: conversion engine — linked transfer pairs, rate authorisation, liquidity accounts #2063 (the conversion engine issue id: implement ID conversion engine - linked transfer pairs and rate authorisation (design #2063) #5536 is blocked by id: implement ID currencies v1 (design #2043) #5522's line, not by this successor).
- Grant lifecycle implementation (phase 6). id: investigate: tokens for real services — Steam-key grants, returns/refunds, revocation #2042 was the investigation; id: decide: grant refund window length and whether pending tokens are spendable #2296 holds the ruled policy terms. Includes pending-hold/refund windows, adverse attestations, non-monetary receipts, debt/shortfall. Gate: Drew's Q5 modification (pending-unit trading via chained option contracts) has an open escrow/atomic-batch question recorded on id: decide: grant refund window length and whether pending tokens are spendable #2296 — that part is NOT settled design and must not be implemented until Drew confirms.
- Supply-account cap exception marker (Decisions Q2). Design detail: the ruled cap exception for supply-account transfers has no representation in the signed v1 bodies, so the fold counts all issuance. Needs a contract marker (or an explicit ruling that counted-all is the v1 semantics) before the exception can be implemented. Also unresolved from Q2, verbatim on id: design: ID currencies v1 #2043: "named like tiger beetle would be", and whether supply-account transfers count against the cap.
- Fold extensions. Issuer rotation inside the fold (contracts exist:
id-storeissuer_rotation, design id: design: issuer key rotation and compromise recovery for currency issuers (from #2041) #2804), currency-scoped snapshot roots over fold state (Merkle roots + frontier, invariant 11), and the client API (phase 7) — open home id: implement: pkgs/id currency client API — the §7 app-facing function surface from #2041 (gated on #2251 spec) #2803.
Acceptance for this successor
Each numbered item lands as its own PR with tests per the design's acceptance-test list, or is split into its own issue and linked here. This issue closes only when items 1–6 are all landed or explicitly split out — not when the next slice merges.
Metadata
Metadata
Assignees
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-inskind/enhancementpriority/normalOrdinary priority (the default)status/in-reviewstray-workStray work: not tied to a design or roadmap item (AUDIT-7 Lane 7)stray/needs-parentStray work with no appropriate parent/epic/design yet (AUDIT-7 Lane 7)
Activity
developing-today commentedon Nov 14, 2026
CODE-3530
dezren39 commentedon Nov 23, 2026
Lane EX (archer) claiming the next feature slice of #10070: item 4 follow-on — policy partial vest for the grant service (design
doc/2026-10-29T12-10-00Z_design_refundable_grants_pending_transfers§4: "partial posting is for policy"; named as the follow-on inpkgs/id/crates/id-currency-registry/src/grants.rs— G1 landed the refund path, a policy partial-vest is the recorded remainder).Criteria audit against current main (evidence in the slice PR): item 1 registry/factory/gateway-envelope landed (#2317/#2318/#2319), gateway service + two-way reconciliation open; item 2 open (PoC #2298); item 3 split out (#3801/#3802); item 4 G1 core landed (#2294), policy partial-vest = this slice, clawback path and §6.3 reconciler remain; item 5 cap marker open (design questions on #2043); item 6 rotation + snapshot roots landed in the fold, client API split out (#2803). The Q5-gated part of item 4 is not touched.
feat(id): policy partial vest for grants (#10070 item 4)
dezren39 commentedon Nov 23, 2026
Slice PR open: #12902 — item 4 follow-on, policy partial vest for the grant service (design #2065 §4).
GrantService::vest_partialposts a proper part of a pending hold; the ledger restores the remainder; zero/full amounts areInvalidAmount; a resolved grant stays the 409. Verified on the laptop atf7940f33fb9:cargo test -p id-currency-registry29 passed / 0 failed (3 new acceptance tests, oracle = §4's table + stub-ledger balances), fmt clean, no new clippy warnings.Criteria state after this slice: item 4's remaining parts are the §6 clawback path (late refund after posting: clawback + bounded debt — the
GrantStatevariants exist, no service path yet) and the §6.3 vesting reconciler (separate issue per the grants module doc). Next slice in "after this PR" form: after the clawback slice,cargo test -p id-currency-registry --test grants_acceptanceshows a posted grant refunded late reachingClawbackSettledwhen the holder's balance covers it andDebtwhen it does not.Merge pull request #12902 from developing-today/lane-ex/10070-partial…
dezren39 commentedon Nov 23, 2026
Slice landed: PR #12902 merged (
14650b18559, headf7940f33fb9), verified on main —pub fn vest_partialpresent inpkgs/id/crates/id-currency-registry/src/grants.rs.Item 4 (grant lifecycle) state now: register / vest / void / partial refund (void-and-reissue) / policy partial vest (new) are implemented with acceptance tests. Remaining in item 4: the §6 clawback path for late refunds after posting (clawback + bounded debt; the
GrantStatevariants exist, no service path yet) and the §6.3 vesting reconciler (separate issue per the grants module doc). The Q5-gated escrow/atomic-batch part remains untouched, as required — it is not settled design.Verification: failing-first E0599 on main; after the change,
cargo test -p id-currency-registryon the laptop = 29 passed / 0 failed (grants acceptance 9 → 12), fmt clean, clippy clean in the touched files. #10070 correctly stays open: items 1 (gateway service + two-way reconciliation), 2, and 5 remain, and item 3 is split out (#3801/#3802), item 6's client API split out (#2803).dezren39 commentedon Nov 23, 2026
Lane IJ (archer) claiming the next slice of #10070 item 4: the §6 clawback path for the grant service — late refund after posting: clawback + bounded debt (the
GrantStatevariants exist; no service path yet). Named as the next slice in Lane EX's done record on PR #12902.Acceptance form (from EX's record): after this slice,
cargo test -p id-currency-registry --test grants_acceptanceshows a posted grant refunded late reachingClawbackSettledwhen the holder's balance covers it andDebtwhen it does not. The Q5-gated escrow/atomic-batch part stays untouched.Merge pull request #13006 from developing-today/lane-ij/10070-clawback
dezren39 commentedon Nov 23, 2026
Slice landed: PR #13006 merged (
1bfa5027c6e, headf2546001462SHA-guarded) — item 4's §6 clawback path for the grant service, the slice named in Lane EX's done record on PR #12902.What landed:
GrantService::refund_late— a refund arriving after posting claws the refunded amount back from holder to grant pool under §6.2's adopted clawback then debt policy: balance held →ClawbackSettled; already spent →exceeds_creditsmoves nothing and the grant is markedDebt(an outcome, not an error). Intent-firstClawbackPendingwrite (attempt recorded before money moves, retry re-enters against that row), confirm-third after. Guards: pending grant → newGrantError::NotPosted; finished clawback / any other resolved state →AlreadyResolved;0 < amount <= grant.amountelseInvalidAmount. Ledger seam:PendingLedger::clawback+ClawbackTransferSpec(CLAWBACK_TRANSFER_CODE= correction-range start),LedgerError::ExceedsCreditsverdict;StubLedgerrecords clawback verdicts by transfer id (resubmission never moves money twice) and gainsspend_postedto stage the debt case. No schema change — migration 0002 already permits the clawback states. Verified present on main (refund_late+ the fivelate_refund_*acceptance tests).Verification:
cargo test -p id-currency-registryon the laptop = 34 passed / 0 failed (grants acceptance 12 → 17: settled, debt-after-partial-spend with balances untouched, partial late refund, state guards + at-most-once, amount bounds; oracle = stub balances + row state). fmt clean; clippy shows no new warnings (two doc warnings from the first pass were fixed; the remainder is the pre-existing factory set).Item 4 state now: register / vest / void / partial refund (void-and-reissue) / policy partial vest / late-refund clawback + bounded debt (new) are implemented with acceptance tests. Remaining in item 4: the §6.3 vesting reconciler (separate issue per the grants module doc). One scope note recorded on the PR: the grant row carries no posted-amount column, so for a policy partial vest the caller passes the refunded part of the posted fraction; the enforced bound is the grant amount. #10070 correctly stays open (items 1, 2, 5 remain; item 3 split out as #3801/#3802; item 6's client API as #2803).
dezren39 commentedon Nov 23, 2026
🤖 Agent note — triage, lane any-n (task 19100)
status:in-review, no native blockers. The §6 clawback slice landed in PR id(currency): grant service section 6 clawback path — clawback then debt (#10070) #13006 this morning (per lane IJ's note above).5 remaining items
dezren39 commentedon Nov 24, 2026
oc-code-08, triage task 21343 (2026-11-24): confirmed no free slice, consistent with the 03:56Z note. Items 1, 2 and 5 have no open implementation home and item 4 is owner-lane follow-through; this issue stays the home until those are split. Merged successors #13006, #13343 and #12902 cover the shipped slices. No follow-on filed in this pass.
developing-today-fleet commentedon Nov 29, 2026
🤖 Census note — 2026-11-29 (lane CEN-C09, full issue census)
State verified today: the shipped pieces are closed out — graph contracts (PR #6776), the fold, item-3 homes #3801/#3802 closed with PRs #13667/#13788 merged; designs #2043/#2062/#2063 and PoC #2298 closed. Three triage passes (2026-11-24) all confirm the same gap:
Gap (the pickup): remaining items 1 (anchored registry + gateway seam), 2, and 5 still have NO open implementation home — this issue is their home until they are split; item 4 is owner-lane follow-through (#2803 open parked+claimed, #5536 waiting-dependency). No outside lane can take a slice without either splitting these items into issues or colliding with owner lanes.
Next step: split items 1/2/5 into scoped implementation issues (per the #5522 lesson recorded in this body: never let a remainder ride unrecorded), then this tracker can follow their progress.
Census fixes: none — priority/low stands for a remainder tracker.
Verdict: needs-detail — the split is the missing step.
developing-today-fleet commentedon Nov 29, 2026
Census 2026-11-29 (Felix): full recheck of this issue — details, labels, blockers, priority (rechecked from scratch; prior detail did not exempt it).
STRENGTHS:
GAPS FOUND:
FIXES I APPLIED:
REMAINS: nothing — ready for pickup
developing-today-fleet commentedon Nov 29, 2026
Priority validation 2026-11-29 (Felix): priority/low → priority/normal — this is the home for real un-split implementation remainders (items 1, 2, 5) of production currencies v1 — substantive feature work that must eventually be split and built, not nice-to-have polish
developing-today-fleet commentedon Nov 29, 2026
Issue census — 2026-11-29
Wave-2 residual pass. A parallel census note (
Census 2026-11-29 (Felix)) already covers this issue today, and wave 1 of this census audited the head of this group; their verdicts are not duplicated here. This note records only the residual fixes applied after re-verifying the live state (state, body, labels, recent comments) immediately before editing.Residual gaps found: no
app/*/area/*label although the owning project is clear from the title/body; noeffort/*label.Actions taken: labels added:
app/id,effort/l.Blocker already recorded in the body and restated here: item 4's pending-unit trading part waits on Drew's confirmation of the escrow/atomic-batch question on #2296; item 5's cap-semantics questions are open on #2043.
Priority:
priority/normalretained (a parallel priority-validation pass today raised it frompriority/low).developing-today-fleet commentedon Nov 30, 2026
Decision — 2026-11-29, taken under Drew's standing decision posture (2026-11-23) and his 2026-11-29 order to handle the census's untouched items. Item 4 of this issue waited on the escrow/atomic-batch question carried from #2296.
Verified today: #2296 is closed — Drew ruled on its grant terms on 2026-11-08, and the open escrow/atomic-batch proposal sits in PR #7722's design record (§3.8), which carries its own recommendation: the sequential chain for v1.
Decision: adopt the design record's recommendation — sequential chain in v1; the atomic-batch escrow remains a designed option, deferred, not adopted for v1. This matches the more-capable-over-locked-down bias in the standing posture only where the evidence supports it; here the design record's own analysis is the evidence, and it recommends the sequential chain. Item 4 is decided on that basis; a pointer is recorded on #2296.
developing-today-fleet commentedon Nov 30, 2026
Issue census follow-up — 2026-11-29 (untouched-items remediation)
The Xaltha-seat census (lane CEN-C09) recorded a needs-detail verdict: the split is the missing step. Disposition, in two parts. (1) Item 4 — the part that also sat on the census's needs-Drew list — was decided today (see the decision comment above: sequential chain in v1 per PR #7722's design §3.8; atomic-batch escrow deferred). (2) The remaining needs-detail stands exactly as the census named it: items 1 (anchored registry + gateway seam), 2, and 5 still have no open implementation home and are to be split into scoped implementation issues — owner-lane work, since the census verified an outside lane cannot take a slice without either splitting these items or colliding with the owner lanes (#2803 open parked+claimed, #5536 waiting-dependency). The split is the named next step; this tracker follows their progress once filed.