Skip to content

id(currency): PoC — registry + factory + gateway, single-currency issue→transfer (from #2062) #2321

Open

Description

@dezren39

Follow-up from the currency control plane design (#2062), §4 and §10 of
doc/2026-10-29T12-42-21Z_design_currency_control_plane/.

This is a proof of concept, not the permanent currency service. It makes its own decisions where the design is silent and must be reviewed before anything permanent is built on it.

Scope

End-to-end, single currency, against the design's interfaces:

  • Registry (F1) + factory (F2) + gateway envelope (F3).
  • register_currency → issue 100 → transfer 40, with a signed graph object per event and a signed receipt returned.
  • One constrained holder account rejecting an overdraft at the cluster.

Acceptance

  • The full issue→transfer flow runs against a local TigerBeetle cluster, with user_data_128 resolving to a graph object for each write.
  • An overdraft is rejected by the cluster, not by a check-then-write in the gateway.
  • A short write-up names every place the PoC guessed, so the review round has something to chew on.

Depends on

F1, F2, F3.

Gate satisfied: this is the PoC gated on "do not start until the #2062 control-plane design fixes the gateway's registry/account-factory shape" (#2298); #2062 now supplies that shape.

Refs #2062, #2298

Activity

  1. added
    kind/featureNew feature or capability request
    source/queue-workerFiled or worked by the queue/worker pilot
    priority/normalOrdinary priority (the default)
    meta/follow-upFollow-up spun out of earlier work
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    on Oct 29, 2026
  2. developing-today commented on Oct 29, 2026

    @developing-today
    Contributor
  3. added
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 29, 2026
  4. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    Intake review

    Related: #2062 (currency control-plane design, §4/§10), #2317 (registry schema), #2318 (account factory), #2319 (gateway envelope) — the F1/F2/F3 pieces this PoC composes; gate issue #2298

    Notes: Single-currency PoC composing registry + factory + gateway: register → issue 100 → transfer 40 against a local TigerBeetle cluster. The body carries a full ## Acceptance list and states its gate (#2062's shape) is satisfied, so this pass is labels-only.

    Risks: It is explicitly a proof of concept that guesses where the design is silent — building anything permanent on it unreviewed compounds the guesses; the write-up of guesses is part of the deliverable.

    Suggested approach: Build after #2317/#2318/#2319 land; run the overdraft-at-the-cluster case as the headline proof; finish with the guesses write-up.

    🤖 Agent note · filed

    • Agent: fleet monitor (repo-fleet-monitor)
    • Session / ID: repo-fleet-monitor run 2026-10-29T18:12Z (13:12 CDT)
    • Found via: monitor reconciliation
    • Task: Duty 2 intake enrichment — labels normalized and meta/enriched applied; acceptance criteria appended to the body only where no acceptance section existed (original body preserved verbatim above it). Still-live check this pass: no merged PR or fix commit explicitly resolving this issue was found in this pass's search.
    • Expectation: see the effort label; done = the acceptance criteria are met.
    • Links: this issue
  5. added
    queue/queuedHas a queued task in the Supabase agent queue
    task/triageQueue packet kind: verify, reproduce, and route this item
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Nov 3, 2026
  6. 35 remaining items

  7. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked

  8. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked

  9. added
    queue/claimedQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 4, 2026
  10. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  11. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    Lane M claimed task 8511 for #2321; execution-lane assignment returned opencode, so this task is handed off to the laptop claimant (opencode-claimant), which launches the bound session. Attempts 24/24 — AT CAP; if the claimant does not bind before lease expiry, a cap raise will be needed. Fresh check this shift: prerequisite issues #2317, #2318, and #2319 are all still OPEN, so the bound session should re-check that gate before implementing.

  12. added
    queue/queuedHas a queued task in the Supabase agent queue
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 5, 2026
  13. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

    • Agent: fleet monitor
    • Session / ID: task 8511 (repo-fleet-monitor run 2026-11-05T15:45:48Z)
    • Found via: monitor reconciliation (Duty 1 claim/label divergence repair)
    • Task: Claim evaporated: task 8511 is queued and unclaimed in repo-health-code-pilot, but this issue still carried claimed labels. Labels reset to the truth (queue/queued + status/needs-triage). Checkpoint stage at evaporation: handed_off.
    • Expectation: The next lane claim picks task 8511 up from the queued state and posts a fresh pickup note.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-inskind/featureNew feature or capability requestmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedmeta/follow-upFollow-up spun out of earlier workpriority/normalOrdinary priority (the default)queue/queuedHas a queued task in the Supabase agent queuesource/queue-workerFiled or worked by the queue/worker pilotstatus/needs-triageNot yet triaged; needs a first looktask/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