GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — id: poc: currency gateway boundary — UserDO snapshot cache, signed transfer + hold, idempotent retry across hibernation · Issue #2298 · developing-today/code

id: poc: currency gateway boundary — UserDO snapshot cache, signed transfer + hold, idempotent retry across hibernation #2298

New issue
Copy link
New issue
Copy link
Closed
Closed
id: poc: currency gateway boundary — UserDO snapshot cache, signed transfer + hold, idempotent retry across hibernation#2298
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-insepic/id-programReprioritization program epic (2026-11-12)kind/featureNew feature or capability requestmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Description

@dezren39
dezren39
opened on Oct 29, 2026
Issue body actions

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 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.

Prove, end to end:

  1. 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).
  2. 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.
  3. 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).
  4. 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.

Out of scope: conversions, corrections, registry UI, multi-replica cluster, production auth — all synthesis/#2062 territory.

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.

Program: ID wave-1 follow-on. Parent epic #2056. Source design: #2066 / PR #2297.

Acceptance criteria

  • Gate respected: work starts only after id: design: ID currencies v1 #2043 accepts the id: design: currency as the centralised exception — how the hosted (Workers) edition reaches the currency service #2066 boundary and id: design: currency control plane — registry, account factory, gateway #2062 fixes the gateway shape
  • Stub gateway + single-node TigerBeetle demonstrates transfers, holds (post/void), and signed balance snapshots end to end
  • 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
  • Results doc in doc/ linked here, with every PoC simplification listed explicitly; not built upon as the permanent service unreviewed

Activity

Next
  1. dezren39
    added
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Oct 29, 2026
  2. developing-today commented on Oct 29, 2026

    @developing-today
    developing-todayBot
    on Oct 29, 2026 – with developing.today
    Contributor
    More actions

    CODE-1153

  3. dezren39
    added
    kind/featureNew feature or capability request
    status/needs-triageNot yet triaged; needs a first look
    priority/normalOrdinary priority (the default)
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 29, 2026
  4. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    Intake review

    Related: #2066 / PR #2297 (source design), #2062 (control-plane shape), #2043 (currencies synthesis gate), epic #2056

    Notes: Gated PoC with unusually crisp prove-end-to-end items already in the body; the appended criteria restate them as checkable items.

    Risks: Building before the #2062/#2043 gates land risks a gateway shape that gets thrown away; the body flags this itself.

    Suggested approach: Wait for the gates; then implement in the order transfers → holds → snapshot cache → hibernation test.

    🤖 Agent note · filed

    • Agent: fleet monitor (repo-fleet-monitor)
    • Session / ID: repo-fleet-monitor run 2026-10-29T12:12Z (07:12 CDT)
    • Found via: monitor reconciliation
    • Task: Duty 2 intake enrichment — acceptance criteria appended (original body preserved verbatim above it), labels normalized, meta/enriched applied. Still-live check this pass: no merged PR or fix commit explicitly resolving this issue was found; where a queue triage task owns verification, it is named in the notes.
    • Expectation: see the effort label; done = the appended acceptance criteria are met.
    • Links: this issue
  5. dezren39
    added a commit that references this issue on Oct 29, 2026

    design(id): currency control plane — registry, account factory, gatew…

    2b73f5f
  6. github-actions
    assigned
    dezren39
    on Oct 29, 2026
  7. dezren39
    added
    queue/queuedHas a queued queue task
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Nov 3, 2026
  8. 43 remaining items

  9. dezren39 commented on Nov 14, 2026

    @dezren39
    dezren39
    on Nov 14, 2026
    MemberAuthor
    More actions

    Agent note — picked up, task 15851 for issue #2298 (lane any-a)

    • Fresh check 2026-11-14T06:13Z: issue id: poc: currency gateway boundary — UserDO snapshot cache, signed transfer + hold, idempotent retry across hibernation #2298 is OPEN, no hard-stop labels (no held / user/owned / do-not-merge / do-not-auto-edit), no status/needs-triage. Gates remain cleared: id: design: currency control plane — registry, account factory, gateway #2062 closed (PR design(id): currency control plane — registry, account factory, gateway (#2062) #2315 merged), id: design: ID currencies v1 #2043 closed with rulings folded in, Drew ruling hosted-boundary-2298 (2026-11-12) — dev/stub ledger behind the gateway interface is acceptable; do not block on TigerBeetle.
    • No open implementation PR for id: poc: currency gateway boundary — UserDO snapshot cache, signed transfer + hold, idempotent retry across hibernation #2298 exists (only merged design PR design(id): currency control plane — registry, account factory, gateway (#2062) #2315 references the number).
    • Resuming from the parked checkpoint (build sequence pinned by lanes code-b/code-c): step 1 stub gateway, step 2 UserDO relay, step 3 client-signed transfer + hold/post, step 4 hibernation idempotency proof, step 5 results doc in doc/. This shift starts the build instead of re-parking; the packet explicitly permits an in-process ledger stub behind the gateway interface for the PoC.
    • Labels synced for claim: queue/claimed + status/in-progress added; queue/queued, queue/parked, status/parked removed.
  10. dezren39 commented on Nov 14, 2026

    @dezren39
    dezren39
    on Nov 14, 2026
    MemberAuthor
    More actions

    Released to the queue under Drew's 2026-11-13 unblock-all order (main chat, 23:53 CT). Task(s) 15851 moved from blocked/parked to queued in the fleet unblock-all pass (worker main-unblock-all-2026-11-13). Dependency gates still recorded on a task remain recorded — the dependency checker will re-block it if a gate is genuinely unmet.

  11. developing-today
    added
    status:in-review
    on Nov 14, 2026
  12. dezren39 commented on Nov 14, 2026

    @dezren39
    dezren39
    on Nov 14, 2026
    MemberAuthor
    More actions

    Agent note — PoC implemented, PR opened and flagged for a review round (task 15851, lane any-a)

    • PR: poc(id): currency gateway boundary — UserDO snapshot cache, signed transfer + hold, idempotent retry (#2298) #9803 (branch queue/15851-2298-currency-gateway-poc, commit d8970e3) — left OPEN for the review round the gate note requires; the permanent currency service must not be built on it unreviewed.
    • Results doc (acceptance): doc/2026-11-14T06-22-00Z_poc_currency_gateway_boundary_results/ in PR poc(id): currency gateway boundary — UserDO snapshot cache, signed transfer + hold, idempotent retry (#2298) #9803 — the four proofs with commands/output and the explicit simplification list.
    • What landed (pkgs/id/hosted-worker/src/currency/): in-process ledger stub behind the gateway interface (per Drew ruling hosted-boundary-2298 — no TigerBeetle blocking); single-process stub gateway (POST /v1/transfers, /v1/holds + post/void, GET /v1/balances/{account} gateway-signed server-scoped snapshot, GET /v1/transfers/{request_id} lookup, bilateral signed double-entry for cross-server); UserDO relay persisting {request ID, intent hash, state} before the gateway fetch, caching signed snapshots only, reconciling by request-ID lookup on wake; client-signed intents (the relay/gateway never hold the signing key).
    • Verification: npm test 12/12 pass (8 new currency proofs incl. hibernation idempotency — same request ID = exactly one transfer, mutated retry = exists_with_different_fields hard error — plus 4 pre-existing routing tests); tsc --noEmit clean.
    • Issue stays open pending the review round on PR poc(id): currency gateway boundary — UserDO snapshot cache, signed transfer + hold, idempotent retry (#2298) #9803; labels set to status/in-review.
  13. dezren39
    added
    status/in-review
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 14, 2026
  14. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 Agent note · triaged (bulk-intake concurrence) — PoC implemented; remainder is the PR #9803 review round, with unresolved Codex findings to disposition

    • Agent: queue worker (repo-worker-code), lane code-e
    • Task: task 18219 — bulk-intake triage of issue id: poc: currency gateway boundary — UserDO snapshot cache, signed transfer + hold, idempotent retry across hibernation #2298
    • Fresh verification (2026-11-17, this run): issue id: poc: currency gateway boundary — UserDO snapshot cache, signed transfer + hold, idempotent retry across hibernation #2298 OPEN, no hard-stop labels. PR poc(id): currency gateway boundary — UserDO snapshot cache, signed transfer + hold, idempotent retry (#2298) #9803 verified OPEN this run (branch queue/15851-2298-currency-gateway-poc, +1209/−1, 8 files, updated 2026-11-14). Its Codex review state (chatgpt-codex-connector summary on the PR) records has_unresolved_findings: true on head d8970e31d4, after which Codex hit its usage limit — the findings have never been dispositioned.
    • State of record: task 15851 (2026-11-14) implemented the PoC per Drew's hosted-boundary-2298 ruling (dev/stub ledger behind the gateway interface; no TigerBeetle blocking): stub gateway, UserDO relay with hibernation idempotency, client-signed transfer + hold, results doc in the PR; npm test 12/12 at opening. The PR was deliberately left OPEN for the review round its gate note requires, and the permanent currency service must not be built on it unreviewed.
    • Remainder (routed, not done here): a shepherd/review pass on PR poc(id): currency gateway boundary — UserDO snapshot cache, signed transfer + hold, idempotent retry (#2298) #9803 — read and disposition each Codex finding (fix in the PR or reply on its thread), re-run the currency proofs, then merge or close on the evidence. Per the fleet Codex gate, an undispositioned finding blocks the merge, so this triage does not merge past it.
    • Verdict: triaged. Issue id: poc: currency gateway boundary — UserDO snapshot cache, signed transfer + hold, idempotent retry across hibernation #2298 stays OPEN until PR poc(id): currency gateway boundary — UserDO snapshot cache, signed transfer + hold, idempotent retry (#2298) #9803 is dispositioned and merged (or closed with evidence).
  15. dezren39
    added a commit that references this issue on Nov 17, 2026

    poc(id): currency gateway boundary — UserDO snapshot cache, signed tr…

    8722d2e
  16. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    Agent note — task 19746 done (lane any-t): PR #9803 shepherded, reviewed, and merged; #2298 complete

    • outcome: fixed_merged — PR poc(id): currency gateway boundary — UserDO snapshot cache, signed transfer + hold, idempotent retry (#2298) #9803 MERGED 2026-11-17T08:37:05Z, merge commit 8722d2e. This issue did not auto-close (the PR carried no Fixes line), so it is closed by this note on the evidence below.
    • Codex gate dispositioned on PR poc(id): currency gateway boundary — UserDO snapshot cache, signed transfer + hold, idempotent retry (#2298) #9803 (comment 6942961511): the Codex review never ran (usage limit) and no findings exist anywhere on the PR — the has_unresolved_findings metadata flag that two triage passes routed around is a failed-review artifact, not a finding list. The review round the PR's gate note required was performed in full by this shepherd: ledger/gateway/relay/crypto read line-by-line, with one non-blocking observation recorded (unsigned hold post/void endpoints — a PoC-boundary simplification for the later real-service track, not to be built on unreviewed).
    • Currency proofs re-run: 12/12 at the PR head; after merging current main into the stale branch (one package.json test-list conflict, resolved as the union; merge commit 8196008), the full hosted-worker suite is 20/20 and typecheck is clean.
    • The PoC's acceptance — UserDO snapshot cache (verified signed snapshots), client-signed transfer + hold, idempotent retry across hibernation (persist-before-fetch, lookup-only reconcile, mutated-retry hard error) — is met by proofs 1–4 + 4b in the merged suite.
  17. dezren39
    closed this as completedon Nov 17, 2026
  18. dezren39
    removed
    status/in-review
    on Nov 17, 2026
  19. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-insepic/id-programReprioritization program epic (2026-11-12)kind/featureNew feature or capability requestmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.