Skip to content

id: design: currency as the centralised exception — how the hosted (Workers) edition reaches the currency service #2066

Closed

Description

@dezren39

Source: the TigerBeetle investigation (on #2040) + the Cloudflare Workers fit investigation (on #2044). TigerBeetle cannot run in isolates, so in an otherwise serverless ID architecture, currency is deliberately centralised. Design the boundary: the gateway's API shape for hosted and native clients, and which currency operations (issue/transfer/convert/balance) each edition may perform.

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 defining the currency boundary for the hosted (Workers) edition: the gateway API shape for hosted and native clients.
  • The doc states which currency operations (issue / transfer / convert / balance) each edition may perform, and through which path.
  • The centralised-currency exception is justified against the otherwise-serverless ID architecture, with the TigerBeetle-can't-run-in-isolates constraint cited.
  • Anything buildable that falls out of the design is filed as follow-up issues linked here.

Activity

  1. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    Parent epic: #2056 — ID platform expansion (2026-10-28 directive). Filed as batch 2 from PREPARED-ACTIONS.md.

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

    @developing-today
    Contributor
  4. added
    source/humanFiled directly by a human
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 29, 2026
  5. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    Intake review

    Related: parent epic #2056; source investigations #2040 (TigerBeetle) and #2044 (Workers fit); feeds the currencies v1 synthesis #2043 and the conversion/control-plane designs #2062/#2063.

    Notes: part of the 2026-10-28 ID program batch filed this morning; a design deliverable, not a build — the endpoint is a reviewed design doc plus follow-ups, per the program pattern in the body.

    Risks: the gateway shape decided here constrains #2062 (control plane) and #2063 (conversion engine); sequence or cross-check those designs before any build.

    Suggested approach: Workhorse-grade design pass per the program route guidance; escalate to Specialist/Summit only for the synthesis step.

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

  6. added
    priority/highImportant and time-sensitive
    queue/queuedHas a queued task in the Supabase agent queue
    on Oct 29, 2026
  7. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    Top priority — ID program wave-1. Drew directed this be picked up in the next runs (2026-10-29): enqueued directly as triage task 3368 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.

  8. 27 remaining items

  9. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  10. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked

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

    @dezren39
    MemberAuthor

    🤖 Agent note · done (triaged)

  13. removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Oct 29, 2026
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/mMedium: expected under 1 day of workkind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivepriority/normalOrdinary priority (the default)source/humanFiled directly by a humanstatus:done

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions