GeezerVison is showing github.com — id: design: conversion engine — linked transfer pairs, rate authorisation, liquidity accounts · Issue #2063 · developing-today/code
id: design: conversion engine — linked transfer pairs, rate authorisation, liquidity accounts #2063DescriptionSource: the TigerBeetle investigation (on #2040): conversions are NOT native — cross-ledger transfers are forbidden, so a conversion is an application-composed pair of atomically linked same-ledger transfers through a liquidity provider's two accounts, at a rate the application computes; the link between legs must be stamped into user_data_128 ourselves. Design: rate authorisation objects (issuer-set, per pair — e.g. ABC to 123 at 0.8123), who may act as liquidity provider, failure/rollback semantics mid-pair, and rate expiry. Feeds #2043.
Program: Drew's 2026-10-28 directive (full text: hatch-personal memory/topics/id-program-2026-10-28.md). Parent epic: #2056.
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.
Acceptance criteria
- A markdown design doc is linked from this issue designing the conversion engine as application-composed, atomically linked same-ledger transfer pairs through a liquidity provider's two accounts.
- The doc covers: rate authorisation objects (issuer-set, per pair, with expiry), who may act as liquidity provider, failure/rollback semantics mid-pair, and how the leg link is stamped into
user_data_128.
- Anything buildable that falls out of the design is filed as follow-up issues linked here.
Activitydeveloping-today commented on Oct 29, 2026 dezren39 commented on Oct 29, 2026 Parent epic: #2056 — ID platform expansion (2026-10-28 directive). Filed as batch 2 from PREPARED-ACTIONS.md. dezren39 commented on Oct 29, 2026 Intake review
Related: parent epic #2056; source investigation #2040 (conversions are not native to TigerBeetle); feeds #2043; depends on the control-plane design #2062 for account/liquidity-provider representation.
Notes: design deliverable in the ID program batch; the linked-pair + user_data_128 stamping approach is already pinned by the source investigation, so the open work is authorisation and failure semantics.
Risks: mid-pair failure semantics are the hard part — a half-completed conversion must never be silently inconsistent; the doc should name the recovery invariant.
Suggested approach: Workhorse design pass after/alongside #2062; rate-expiry and rollback cases enumerated explicitly.
— Fleet monitor intake pass (protocol §5): issue verified still live this run (filed within the last hour; no merged PR or duplicate resolves it), labels normalized, meta/enriched applied. dezren39 commented on Oct 29, 2026 Top priority — ID program wave-1. Drew directed this be picked up in the next runs (2026-10-29): enqueued directly as triage task 3365 in repo-health-code-pilot at queue priority 20 (only breakage-class work at priority 10 outranks it). Wave-1 is the ungated investigations and designs; syntheses and PoCs stay gated on their named inputs. Investigation route: Workhorse. dezren39 commented on Nov 2, 2026
agent-note:v1 — correction to the results note above (task 5239): the client-binding follow-on could not be enqueued as a separate queue task (the v1 fix dedupe key for #2289 returns task 5239 itself). It is tracked on #2289 and in the code backlog as a FOLLOW-ON entry instead. Everything else in the results note stands. developing-today commented on Nov 3, 2026 agent-note:v1
state: reviewed (coverage loop-back)
Coverage pass 2026-11-03, loop-back review: this issue was re-reviewed (drift / overlap / already-handled / stale / blockers / ordering) so every open issue in the four repos is reviewed and in the system. Verdict: still live; in the system as task 7283 (triage, queued, priority 50) in repo-health-code-pilot. Labels audited and synced. If it is already handled at current main, its triage closes it with evidence; if oversized, the triage files the split; blockers belong on this issue.
Found via: coverage loop-back 2026-11-03 dezren39 commented on Nov 3, 2026 🤖 Agent note · results linked
Results for issue #2289 (conversion-executor PoC, live TigerBeetle binding)
PR #5072 merged (d99399c): the currency_poc LedgerBackend now runs over the official TigerBeetle Rust client against the live single-replica harness cluster (pinned 0.17.9). Live scenario suite 8/8 serial (posted conversion legs findable by user_data_128; idempotent re-execution posts once), in-memory suite 44/44 (atomic failure, crash-recovery reconciliation). Codex review of the final head completed with no findings after five dispositioned findings across earlier heads. Full results note is on issue #2289, which closes on its acceptance. dezren39 commented on Nov 3, 2026 agent-note:v1
event: done — closing with evidence
task: 7283 (repo-health-code-pilot; worker repo-worker-code; OpenChamber scheduled lane 02cafe76-eafd-4d0b-aaa6-2b7a737d68dc)
Triage verdict: delivered; closing
Fresh verification on 2026-11-03 (GitHub + current origin/main 9380bf6d7):
- Acceptance 1 — design doc linked.
doc/2026-11-01_design_id2063.md is on main, landed by PR design(id): #2063 conversion engine linked pairs #3844 (MERGED 2026-11-02T15:49:53Z), and was linked from this issue. The doc designs the conversion engine as application-composed, atomically linked same-ledger transfer pairs through an LP's two accounts.
- Acceptance 2 — required coverage. The doc covers the mandatory RateAuthorisation (directional, rational/scale-aware arithmetic, caps, mandatory expiry, issuer-signed revocation), LP eligibility (issuer or registered/funded holder, account binding and constrained inventory; platform LP gets no bypass), failure/reversal semantics (write-ahead intent, pre-generated transfer IDs, recovery scan, no in-place rollback — correction is a new conversion), and
user_data_128 = conversion_id leg linkage with receipt metadata kept graph-side.
- Acceptance 3 — buildable follow-ups filed. id: design: RateAuthorisation as a signed ID-graph object — schema, signing, revocation #2290 (RateAuthorisation schema/signing/revocation) with its independently mergeable phases id(currency): RateAuthorisation + revoke schema types and fold in pkgs/id (Phase 1 of #2290) #3800, id(currency): gateway verification flow + revocation-set check for RateAuthorisation (Phase 2 of #2290) #3801, id(currency): quote issuance + binding for RateAuthorisation (Phase 3 of #2290) #3802; id: PoC: conversion executor — linked transfer pairs, write-ahead intent, recovery scanner #2289 (executor + recovery PoC).
Follow-on state now: #2289 CLOSED (PoC merged in PR #3873; live TigerBeetle binding merged in PR #5072). #3800 CLOSED (rate-authorisation + revoke types/fold, PR #3888). #3801 OPEN/blocked and #3802 OPEN/parked — both track their own work and do not belong to this design issue. #2290 remains OPEN with user/escalated for the platform-emergency-revocation question (recommended: issuer-only graph revocation + platform local suspension); that ruling does not block this design.
Nothing in #2063 remains unbuilt or undecided at this issue's scope. Closing.
dezren39 commented on Nov 3, 2026 agent-note:v1
event: picked_up
task: 7283 (repo-health-code-pilot; worker repo-worker-code; OpenChamber scheduled lane 02cafe76-eafd-4d0b-aaa6-2b7a737d68dc)
state: claimed for current-state verification; design PR #3844 and follow-on state were checked before completing and closing issue #2063 in the same short pass.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|