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(currency): deterministic account factory + per-currency system accounts (from #2062) · Issue #2318 · developing-today/code

id(currency): deterministic account factory + per-currency system accounts (from #2062) #2318

New issue
Copy link
New issue
Copy link
Closed
#10667
Closed
id(currency): deterministic account factory + per-currency system accounts (from #2062)#2318
#10667
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workepic/id-programReprioritization program epic (2026-11-12)kind/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)source/queue-workerFiled or worked by the queue/worker pilotstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Description

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

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

Scope

The deterministic account factory mapping ID accounts to TigerBeetle accounts.

  • Account-ID derivation BLAKE3(domain_sep ‖ ledger ‖ kind ‖ owner ‖ salt)[0..16], versioned domain separator (design §3.1).
  • ensure_account / ensure_currency_accounts, idempotent (a duplicate create_accounts is success).
  • The per-currency system accounts (issuer unconstrained; liquidity, fee, burn) and constrained holder accounts (debits_must_not_exceed_credits, history where audit matters) (design §3.2).
  • The reserved transfer-code table (design §4.4).

Acceptance

  • The same (currency, owner, kind, salt) always derives the same account id, from any component, with no registry round-trip.
  • Calling ensure_account twice creates one account and returns the same id.
  • Flags are fixed at creation and documented; holder accounts reject overdrafts at the cluster.

Depends on

F1 (registry + ledger allocation).

Refs #2062

Activity

Next
  1. dezren39
    added
    kind/featureNew feature or capability request
    status/needs-triageNot yet triaged; needs a first look
    source/queue-workerFiled or worked by the queue/worker pilot
    priority/normalOrdinary priority (the default)
    meta/follow-upFollow-up spun out of earlier work
    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-1168

  3. dezren39
    added
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    effort/mMedium: expected under 1 day of work
    on Oct 29, 2026
  4. github-actions
    assigned
    dezren39
    on Oct 29, 2026
  5. dezren39
    added
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 29, 2026
  6. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    Intake review

    • Related: Design: id: design: currency control plane — registry, account factory, gateway #2062 (currency control plane, §3). Depends on F1 = id(currency): currency registry schema + ledger-u32 allocator (from #2062) #2317 (registry + ledger allocation). Sibling slices: id(currency): currency registry schema + ledger-u32 allocator (from #2062) #2317.
    • Live check: No merged PR implements the deterministic account factory or per-currency system accounts; the body's own ## Acceptance section stands as the criteria (no appended section needed — it is already acceptance-shaped).
    • Notes: Well-scoped slice. The BLAKE3 derivation is versioned by domain separator — the versioning choice is the one irreversible decision here; everything else is idempotent ensure_* plumbing.
    • Risks: Medium — account-ID derivation must match the design exactly; a silent deviation forks every downstream account mapping.
    • Suggested approach: Implement after id(currency): currency registry schema + ledger-u32 allocator (from #2062) #2317 lands; pin the derivation with golden vectors from design §3.1 in tests.
    • Labels: already normalized by the filer (kind/feature, source/queue-worker, priority/normal, effort/m, app/id); added meta/enriched only.
  7. dezren39
    added
    queue/queuedHas a queued queue task
    task/triageQueue packet kind: verify, reproduce, and route this item
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 3, 2026
  8. 188 remaining items

    Load more actions
  9. dezren39
    added
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    and removed
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 11, 2026
  10. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    Agent note — task 8503 dep-blocked on gate #2317 (lane code-d)

    • Fresh check (2026-11-11T06:51Z): gate issue id(currency): currency registry schema + ledger-u32 allocator (from #2062) #2317 (currency registry schema + ledger-u32 allocator, F1) is still OPEN with status/blocked + queue/blocked — the registry schema and allocator this task builds on have not landed, and no implementing PR for id(currency): currency registry schema + ledger-u32 allocator (from #2062) #2317/id(currency): deterministic account factory + per-currency system accounts (from #2062) #2318 exists. Issue id(currency): deterministic account factory + per-currency system accounts (from #2062) #2318 OPEN, no hard-stop labels.
    • Task 8503 is therefore dep-blocked with the machine-readable dependency recorded (blocked_deps: id(currency): currency registry schema + ledger-u32 allocator (from #2062) #2317), replacing the earlier plain park so re-verification is automatic. Resume: id(currency): currency registry schema + ledger-u32 allocator (from #2062) #2317 lands/closes → revalidate id(currency): deterministic account factory + per-currency system accounts (from #2062) #2318 fresh → implement the deterministic account factory + per-currency system accounts.
    • Issue id(currency): deterministic account factory + per-currency system accounts (from #2062) #2318 labels synced to queue/blocked + status/blocked.
  11. dezren39
    added
    epic/id-programReprioritization program epic (2026-11-12)
    on Nov 12, 2026
  12. dezren39 commented on Nov 16, 2026

    @dezren39
    dezren39
    on Nov 16, 2026
    MemberAuthor
    More actions

    Agent note — dependency declared (task 8503, lane any-b, 2026-11-16)

    State: dep-blocked on issue #2317.

    Fresh this shift: issue #2317 (F1 currency registry schema + ledger-u32 allocator) is still OPEN (last updated 2026-11-14), so the gate in this task's packet still binds — no registry contract exists to build the account factory against, and the packet forbids inventing one.

    Task 8503 is blocked with reason class dependency, --blocked-by-issue developing-today/code#2317, max TTL 3 days. The broker rechecks the dependency itself and returns the task to the pool automatically when #2317 closes; on release, implement #2318 per design #2062 (deterministic account factory, idempotent ensure_currency_accounts, per-currency system accounts) as the packet specifies.

  13. dezren39 commented on Nov 16, 2026

    @dezren39
    dezren39
    on Nov 16, 2026
    MemberAuthor
    More actions

    Agent note - released intact, GATE CLEARED: issue #2317 closed today (task 8503, lane any-c, 2026-11-16)

    • Fresh gate check (2026-11-16): issue id(currency): deterministic account factory + per-currency system accounts (from #2062) #2318 OPEN, no hard-stop labels. Its only dependency, F1 issue id(currency): currency registry schema + ledger-u32 allocator (from #2062) #2317 (currency registry schema + ledger-u32 allocator), is now CLOSED (closedAt 2026-11-16T09:24:56Z, label status:done). The dep gate recorded on task 8503 (fresh 2026-11-09: id(currency): currency registry schema + ledger-u32 allocator (from #2062) #2317 OPEN blocked) is stale - this issue is UNGATED and ready to implement.
    • Why released, not implemented here: the implementation is a full dedicated session (effort/m Rust in pkgs/id: BLAKE3 account-ID derivation per design id: design: currency control plane — registry, account factory, gateway #2062 section 3.1, ensure_account / ensure_currency_accounts idempotence, per-currency system accounts with creation-fixed flags, reserved transfer-code table section 4.4, plus tests against the acceptance criteria). This lane claimed it mid-bundle after four prior tasks; releasing intact puts it back in the pool immediately for a lane that can give it a whole session, instead of a partial implementation at a shift tail.
    • Resume (exact): claim task 8503, read doc/2026-10-29T12-42-21Z_design_currency_control_plane/ sections 3 + 4.4 and the F1 code that landed with id(currency): currency registry schema + ledger-u32 allocator (from #2062) #2317, implement per the issue scope, verify: same (currency, owner, kind, salt) derives the same account id with no registry round-trip; ensure_account twice creates one account; holder accounts carry debits_must_not_exceed_credits.
    • Labels: stale queue/blocked + status/blocked removed with this note - they mirrored the cleared id(currency): currency registry schema + ledger-u32 allocator (from #2062) #2317 gate.
  14. dezren39
    removed
    status/blockedQueue or user escalation state
    queue/blockedQueue or user escalation state
    on Nov 16, 2026
  15. developing-today
    added
    status:in-review
    on Nov 16, 2026
  16. dezren39
    added a commit that references this issue on Nov 16, 2026

    Merge pull request #10667 from developing-today/queue/8503-2318-accou…

    25a7770
  17. dezren39
    closed this as completedin #10667on Nov 16, 2026
  18. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 16, 2026
  19. dezren39
    removed
    work/assignedQueue worker lifecycle state
    on Nov 16, 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/mMedium: expected under 1 day of workepic/id-programReprioritization program epic (2026-11-12)kind/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)source/queue-workerFiled or worked by the queue/worker pilotstatus: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.