You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
id: design: currency backend port + invariant test suite contract (from #5676) #5823
Follow-on design ticket from #5676 — its decomposition sketch names this as a separate design, and the parent's acceptance requires these tickets to be filed and linked. Filed in the 2026-11-04 gap pass (WS-F) so the design work exists and can be prioritised on its own merits; implementation timing is a separate decision, possibly months out.
What this design must settle
The backend port (interface) every currency stage implements, and the invariant test-suite contract a backend must pass to be called a currency backend.
Context from the parent
The parent design fixes the staged currency scaling path — Redis hot store, multi-Turso sharding, TigerBeetle — and the invariants every stage must preserve. The parent issue carries the surrounding decisions this ticket must not re-decide; where this ticket's answer would change a parent decision, record that explicitly rather than silently forking it.
Decision record expected
Close this design with a recorded decision (on this issue or in a doc/ record linked from it): the chosen shape, the alternatives rejected and why, and the invariants implementation must hold. If the design splits further, file the splits and link them here rather than growing this issue.
Relations
Parent: #5676. Programme: epic #2056. Filed by WS-F (2026-11-04 ID design gap & expansion pass).
Expectation: decision record as doc/2026-11-14_design_id5823.md in a PR closing id: design: currency backend port + invariant test suite contract (from #5676) #5823: port shape formalised from the PoC seam (generalised beyond conversions), the conformance-suite contract (cases, pass rule, evidence), alternatives rejected, implementation invariants. No implementation code — timing is a separate decision per the packet.
Task 16878 ("Design pass: currency backend port + invariant suite contract (id: design: currency backend port + invariant test suite contract (from #5676) #5823)", kind small_fix, source triage-16767, enqueued while task 16768 was in flight) was cancelled by lane code-d: it duplicates the design work completed in task 16768 — decision record doc/2026-11-14_design_id5823.md merged via PR docs(id): currency backend port + invariant test-suite contract (#5823) #10017 (9394f2e), and this issue is closed. Remaining follow-ons are the three implementation items named in the record §8, to be filed when implementation is scheduled. If task 16878 was intended as distinct work beyond the record, re-enqueue it against the record with the distinct scope named.
Activity
developing-today commentedon Nov 5, 2026
CODE-1506
developing-today commentedon Nov 5, 2026
🤖 Agent note · handed off
dezren39 commentedon Nov 5, 2026
🤖 Agent note · picked up
96 remaining items
dezren39 commentedon Nov 14, 2026
🤖 Agent note · picked up
--filter 'repo = code'), lane assignmentdirect(fix(queue): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3) #8187)held/user/owned/do-not-merge/do-not-auto-editlabels; parent id: design: Currency scaling — autoscaling service, Redis → multi-Turso → TigerBeetle path #5676 OPEN. On main6983e3b5:pkgs/id/src/currency_poc/mod.rsstill declares the seam a PoC;ledger.rsholds the TigerBeetle-shapedLedgerBackendtrait with two implementations (InMemoryLedger, andTigerBeetleLedgerintb_ledger.rsbehindcurrency-poc-tb). No design record for id: design: currency backend port + invariant test suite contract (from #5676) #5823 exists on main. Sibling records consume this one: id: design: currency load & correctness verification programme (from #5676) #5829's record (PR design(id): #5829 currency load & correctness verification programme #7580, merged) runs this suite unmodified as its leg 0 and restates the invariants as I1–I8; id: design: Stage A: Redis hot store + regular-store system of record (from #5676) #5824's record (PR docs(id): Stage A decision record — Redis hot store + regular-store system of record (#5824) #7872, merged) §7 binds naming conflicts in id: design: currency backend port + invariant test suite contract (from #5676) #5823's favour. No superseding PR.doc/2026-11-14_design_id5823.mdin a PR closing id: design: currency backend port + invariant test suite contract (from #5676) #5823: port shape formalised from the PoC seam (generalised beyond conversions), the conformance-suite contract (cases, pass rule, evidence), alternatives rejected, implementation invariants. No implementation code — timing is a separate decision per the packet.Merge pull request #10017 from developing-today/queue/16768-5823-curr…
dezren39 commentedon Nov 14, 2026
🤖 Agent note · done
doc/2026-11-14_design_id5823.mdvia PR docs(id): currency backend port + invariant test-suite contract (#5823) #10017 (merge 9394f2e); issue id: design: currency backend port + invariant test suite contract (from #5676) #5823 is CLOSED on the strength of the record.currency_pocLedgerBackendseam formalised and generalised (batched accounts/transfers, linked-chain atomicity incl. unterminated-chain and Exists-in-chain rules, id(currency_poc): executor submit() and recovery resubmission treat a short create_transfers result vector as success — a backend returning no results marks the conversion Posted with nothing in the ledger #4669 result-length rule, write-ahead caller IDs, failed-ID rule, fallibletry_lookups as the only contract lookups), extended with a required pending/hold lifecycle, four-figure balances, and sequenced per-account history. The suite contract: one executable suite through the port only, invariants I1–I8 (adopted from the id: design: currency load & correctness verification programme (from #5676) #5829 record §3.4 as binding vocabulary), case catalogue AB/TC/A/H/R/E, pass = every case unmodified with no waivers, conformance statements as evidence; it is the id: design: currency load & correctness verification programme (from #5676) #5829 programme's leg 0. PoC superseded as the standard (§3.5).dezren39 commentedon Nov 14, 2026
🤖 Agent note · duplicate follow-on cancelled
doc/2026-11-14_design_id5823.mdmerged via PR docs(id): currency backend port + invariant test-suite contract (#5823) #10017 (9394f2e), and this issue is closed. Remaining follow-ons are the three implementation items named in the record §8, to be filed when implementation is scheduled. If task 16878 was intended as distinct work beyond the record, re-enqueue it against the record with the distinct scope named.