GeezerVison is showing github.com — id: investigate: TigerBeetle — multi-currency ledgers, conversions, per-coin vs balance model, 3-node cluster topology · Issue #2040 · developing-today/code
id: investigate: TigerBeetle — multi-currency ledgers, conversions, per-coin vs balance model, 3-node cluster topology #2040DescriptionLIST 11a. Drew's candidate backend for ID currencies is a single TigerBeetle cluster. Verify from TigerBeetle's own docs/source: does it support adding currencies dynamically and conversions between them (the hope is to avoid hand-rolling double-entry accounting)? Is a token a currency-in-a-wallet balance, or can individual coins be identified? How does a 3-node cluster actually work (one active + replicas?), and what does operating it across three machines / multiple clouds look like? Deliverable: capability report with citations, including anything that contradicts the assumptions above.
Program: Drew's 2026-10-28 directive (full text: hatch-personal memory/topics/id-program-2026-10-28.md).
Working pattern: parallel investigations, then the named synthesis issue merges them into a full design. Route guidance: Workhorse by default; Specialist/Summit for synthesis and ramification-heavy work. A result that says "done" is not the endpoint — the orchestrator reviews it and may commission another round. Deliverables: a markdown design/investigation doc (mermaid/SVG diagrams welcome) linked from this issue, plus follow-up issues for anything buildable. Build a proof of concept where the design calls for one, but do NOT build the permanent feature on top of an unreviewed PoC. Activitydeveloping-today commented on Oct 29, 2026 dezren39 commented on Oct 29, 2026 Parent epic: #2056 — ID platform expansion (2026-10-28 directive). dezren39 commented on Oct 29, 2026 Investigation COMPLETE (2026-10-28, Muse research pass; full report lands in-repo via the program docs PR — local copy: ~/workspace/id-program-2026-10-28/investigations/tigerbeetle.md, 525 lines, cited to official TigerBeetle docs + the Jepsen analysis).
Headlines:
- Dynamic currencies: YES with caveats — a currency is a bare u32 ledger value, created implicitly (no DDL/restart), ceiling ~4B ledgers; but TigerBeetle stores NO name/symbol/scale/issuer metadata (control plane is ours — see id: design: currency control plane — registry, account factory, gateway #2062), and a ledger's asset scale is effectively immutable.
- Conversions: NOT native — cross-ledger transfers are explicitly forbidden. A conversion is an application-composed pair of atomically linked same-ledger transfers through a liquidity provider's accounts at an application-computed rate; there is no rate/authorisation/AMM concept, and leg linkage must be stamped into user_data_128 ourselves (design: id: design: conversion engine — linked transfer pairs, rate authorisation, liquidity accounts #2063).
- Per-coin identity: NO — balance-only accounts (four 128-bit counters); units are fungible by construction.
- Cluster: NOT one-active-plus-backups — all replicas run under Viewstamped Replication with an elected primary; 3 replicas tolerate ONE failure; vendor production recommendation is 6 across 3 sites; cluster size is fixed at format time (decision: id: investigate: TigerBeetle cluster topology decision — 3 vs 6 replicas, site placement, commit latency #2064).
- Refunds/revocation: posted transfers are immutable; a clawback can FAIL if the holder spent the balance; no freeze/seizure primitive. Mitigation designed in id: design: refundable grants via pending transfers — Steam premium tokens voidable through the refund window #2065: issue refundable grants (Steam premium tokens) as pending transfers voidable through the refund window.
- No authentication in TigerBeetle — a gateway performing ID-signature checks is mandatory (id: design: currency control plane — registry, account factory, gateway #2062). Currency also cannot run in the Workers edition, making it the centralised exception (id: design: currency as the centralised exception — how the hosted (Workers) edition reaches the currency service #2066).
dezren39 commented on Nov 3, 2026 agent-note:v1
state: triaged (coverage pass)
Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 30 (priority/none). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
Found via: coverage pass 2026-11-03 dezren39 commented on Nov 3, 2026
Agent note — triage: already done, closing with evidence
- Task: task 7829 (repo-health-code-pilot, lane F / code-f shift, 2026-11-03). This issue's deliverable was the TigerBeetle capability investigation (LIST 11a under parent epic epic: ID platform expansion — apps, comms, currency, hosting, boards (2026-10-28 directive, LIST 6–15) #2056).
- Investigation completed 2026-10-28 and the full report landed in-repo: PR docs(id): 2026-10-28 program investigations — TigerBeetle + Cloudflare Workers fit #2067 merged 2026-10-29 ("docs(id): 2026-10-28 program investigations — TigerBeetle + Cloudflare Workers fit") — present at current main as
doc/2026-10-28T23-34-15Z_investigation_tigerbeetle_currency_backend/2026-10-28T23-34-15Z_investigation_tigerbeetle_currency_backend.md.
- The 3-node cluster topology question got its own landed investigation: PR docs(id): TigerBeetle cluster topology investigation — 6 replicas / 3 near sites (#2064) #2291 merged 2026-10-30 —
doc/2026-10-29T11-57-00Z_investigation_tigerbeetle_cluster_topology/ (6 replicas / 3 near sites, id: investigate: TigerBeetle cluster topology decision — 3 vs 6 replicas, site placement, commit latency #2064).
- Every follow-up the report named is filed as its own issue and has a landed design: id: design: currency control plane — registry, account factory, gateway #2062 control plane (PR design(id): currency control plane — registry, account factory, gateway (#2062) #2315 merged), id: design: conversion engine — linked transfer pairs, rate authorisation, liquidity accounts #2063 conversion design (
doc/2026-11-01_design_id2063.md on main), id: design: refundable grants via pending transfers — Steam premium tokens voidable through the refund window #2065 refundable grants (PR docs(id): design refundable grants as pending transfers (#2065) #2293 merged), id: design: currency as the centralised exception — how the hosted (Workers) edition reaches the currency service #2066 centralised exception (PR doc: currency as the centralised exception — hosted boundary design (#2066) #2297 merged); the PoC the design called for exists (pkgs/id/src/currency_poc/) and is being hardened under its own issues (e.g. id: PoC: conversion executor — linked transfer pairs, write-ahead intent, recovery scanner #2289, PR id: conversion-executor PoC — linked transfer pairs, write-ahead intent, recovery scanner (#2289) #3873 merged).
- Nothing from this issue's scope remains untracked, so it closes as
already_done. If the program wants a further investigation round, that is a new issue under epic epic: ID platform expansion — apps, comms, currency, hosting, boards (2026-10-28 directive, LIST 6–15) #2056, not a reopen of this one.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|