Title: id: poc: currency gateway boundary — UserDO snapshot cache, signed transfer + hold, idempotent retry across hibernation · Issue #2298 · developing-today/code · GitHub
Open Graph Title: id: poc: currency gateway boundary — UserDO snapshot cache, signed transfer + hold, idempotent retry across hibernation · Issue #2298 · developing-today/code
X Title: id: poc: currency gateway boundary — UserDO snapshot cache, signed transfer + hold, idempotent retry across hibernation · Issue #2298 · developing-today/code
Description: Gated PoC — follow-up from the #2066 design (PR #2297, doc/2026-10-29T12-20-00Z_design_currency_centralised_exception/). Gate: do not start until (a) the currencies v1 synthesis #2043 accepts the #2066 boundary (one gateway API for both ...
Open Graph Description: Gated PoC — follow-up from the #2066 design (PR #2297, doc/2026-10-29T12-20-00Z_design_currency_centralised_exception/). Gate: do not start until (a) the currencies v1 synthesis #2043 accepts the #...
X Description: Gated PoC — follow-up from the #2066 design (PR #2297, doc/2026-10-29T12-20-00Z_design_currency_centralised_exception/). Gate: do not start until (a) the currencies v1 synthesis #2043 accepts the #...
Opengraph URL: https://github.com/developing-today/code/issues/2298
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"id: poc: currency gateway boundary — UserDO snapshot cache, signed transfer + hold, idempotent retry across hibernation","articleBody":"**Gated PoC** — follow-up from the #2066 design (PR #2297, `doc/2026-10-29T12-20-00Z_design_currency_centralised_exception/`).\n\n**Gate:** do not start until (a) the currencies v1 synthesis #2043 accepts the #2066 boundary (one gateway API for both editions; hosted tier holds signed balance snapshots only, never ledger truth), and (b) the #2062 control-plane design fixes the gateway's registry/account-factory shape. This is a proof of concept that makes its own simplifications — flag it for a review round; do NOT build the permanent currency service on top of it unreviewed.\n\n**Prove, end to end:**\n1. A stub gateway (single process, the only TigerBeetle client) in front of a single-node development TigerBeetle, exposing `POST /v1/transfers`, `POST /v1/holds` + post/void, and `GET /v1/balances/{account}` returning a gateway-signed snapshot (balance + transfer watermark).\n2. A hosted-edition client: one UserDO that persists `{request ID, intent hash, state}` in its SQLite **before** the gateway fetch, caches the signed snapshot, and reconciles by request-ID lookup on wake.\n3. One client-signed transfer and one hold → post cycle driven through the UserDO relay (the Worker/DO never holds the signing key; signing happens client-side).\n4. An idempotency test: kill/restart the DO between submit and response (hibernation), retry with the **same** request ID, and show exactly one transfer exists; a retry with a mutated field under the same ID must surface TigerBeetle's `exists_with_different_*` as a hard error.\n\n**Out of scope:** conversions, corrections, registry UI, multi-replica cluster, production auth — all synthesis/#2062 territory.\n\n**Acceptance:** a short results doc in `doc/` linked here, with the four proofs above demonstrated (commands/output), and an explicit list of every simplification the PoC made.\n---\nProgram: ID wave-1 follow-on. Parent epic #2056. Source design: #2066 / PR #2297.\n\n\n## Acceptance criteria\n\n- [ ] Gate respected: work starts only after #2043 accepts the #2066 boundary and #2062 fixes the gateway shape\n- [ ] Stub gateway + single-node TigerBeetle demonstrates transfers, holds (post/void), and signed balance snapshots end to end\n- [ ] Hibernation idempotency proof: kill/restart between submit and response, same request ID → exactly one transfer; mutated retry surfaces exists_with_different_* as a hard error\n- [ ] Results doc in doc/ linked here, with every PoC simplification listed explicitly; not built upon as the permanent service unreviewed\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-29T12:05:43Z","url":"https://github.com/developing-today/code/issues/2298"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6eb92867-9157-0d1a-b114-c1bfcef3f1ab |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D8C2:20AEB3:8176BA:AD3569:6B06344D |
| html-safe-nonce | 79a5fc8f7fa560a9a8ab43fe919bba2a0a042289e4ded53920fe48156900c8a7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOEMyOjIwQUVCMzo4MTc2QkE6QUQzNTY5OjZCMDYzNDREIiwidmlzaXRvcl9pZCI6IjU4MTQzMzcwNjEzNjQ1NzczNTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5879ec4a5af61ca68c0554cf59989778d207f886d8639c4259396e3dae80e825 |
| hovercard-subject-tag | issue:6099253977 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/2298/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8bffaf7de9a63af64dd801cea8416e114d559d31cbcdf363564d6ccd2f28b3f5/developing-today/code/issues/2298 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8bffaf7de9a63af64dd801cea8416e114d559d31cbcdf363564d6ccd2f28b3f5/developing-today/code/issues/2298 |
| og:image:alt | Gated PoC — follow-up from the #2066 design (PR #2297, doc/2026-10-29T12-20-00Z_design_currency_centralised_exception/). Gate: do not start until (a) the currencies v1 synthesis #2043 accepts the #... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | c3584c853cd39700ecff6e2cf8364295ffdb5313e571046c41cd2479270f7df0 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9eb3bb1597d09170a5f282cd38ae376dee1a5ec1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width