Skip to content

id: design: Stage C: TigerBeetle adapter + B→C cutover (from #5676) #5827

Closed

Description

@dezren39

Summary

Follow-on design ticket from #5676 — its decomposition sketch names this as a separate design, and the parent's acceptance requires these tickets to be filed and linked. Filed in the 2026-11-04 gap pass (WS-F) so the design work exists and can be prioritised on its own merits; implementation timing is a separate decision, possibly months out.

What this design must settle

The TigerBeetle adapter mapping and the Stage B→C migration/cutover plan.

Context from the parent

The parent design fixes the staged currency scaling path — Redis hot store, multi-Turso sharding, TigerBeetle — and the invariants every stage must preserve. The parent issue carries the surrounding decisions this ticket must not re-decide; where this ticket's answer would change a parent decision, record that explicitly rather than silently forking it.

Decision record expected

Close this design with a recorded decision (on this issue or in a doc/ record linked from it): the chosen shape, the alternatives rejected and why, and the invariants implementation must hold. If the design splits further, file the splits and link them here rather than growing this issue.

Relations

Parent: #5676. Programme: epic #2056. Filed by WS-F (2026-11-04 ID design gap & expansion pass).

Activity

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

    @developing-today
    Contributor
  3. added
    task/triageQueue packet kind: verify, reproduce, and route this item
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 5, 2026
  4. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  5. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triage findings (task 10230, lane code-u, direct lane)

    Verdict: VALID design ticket, correctly filed and linked — LAST IN ITS STAGE ORDER: behind the parent record, Stage A, and Stage B. Not superseded, not yet actionable.

    Evidence (fresh, 2026-11-05):

    Ordering / blocker (recorded per triage acceptance):

    This triage (task 10230) completes as triaged; issue #5827 stays open as the design ticket of record.

  6. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

  7. added
    status/blockedQueue or user escalation state
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 5, 2026
  8. 26 remaining items

  9. added
    work/assignedQueue worker lifecycle state
    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 16, 2026
  10. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up (task 13037, lane code-h, openchamber scheduled lane)

    Resuming where lane code-b parked: gate #5826 is CLOSED (Stage B decision landed as doc/2026-11-16_design_id5826.md via PR #10769), so this task is now the vehicle for the Stage C design work itself. Plan: write the Stage C decision record (TigerBeetle adapter mapping + B→C cutover) in doc/ following the #5824/#5826 shape, land via PR, link here, close per the issue closing rule.

  11. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · PR opened (task 13037, openchamber scheduled lane)

    Stage C decision record is written and under review: PR #10797 (branch queue/13037-5827-stage-c-design, record doc/2026-11-16_design_id5827.md, Fixes #5827).

    What the record settles (per this issue's brief): TigerBeetle adapter mapping (ledger-per-currency, native pending lifecycle, linked-batch conversions per #5828 §3.3, tb_ledger binding decisions generalised) + per-currency B→C cutover (shadow dual-run with zero-divergence comparison, then the Stage B migration shape reused: freeze → drain → fence → copy/verify → directory flip, rollback only before the flip). Answers parent #5676 open question 5: Stage C is the committed terminal stage. No parent decision changed.

    Next: merge on green CI, verify this issue closes, complete task 13037.

  12. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done (task 13037, openchamber scheduled lane)

    PR #10797 MERGED (merge bfbb546, 2026-11-16T15:19:25Z) — record doc/2026-11-16_design_id5827.md is on main. This issue closed via Fixes #5827 at 15:19:27Z, per its closing rule (recorded decision: chosen shape + rejected alternatives + why + implementation invariants).

    Result: Stage C (TigerBeetle adapter mapping + B→C cutover) decided; parent #5676 open question 5 answered (Stage C is the committed terminal stage); no parent decision changed. Task 13037 completing as done.

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)epic/id-programReprioritization program epic (2026-11-12)status:donetask/triageQueue packet kind: verify, reproduce, and route this itemwork/assignedQueue worker lifecycle state

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions