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: design: D1 journal fit (design + spike) (from #5681) · Issue #5864 · developing-today/code

id: design: D1 journal fit (design + spike) (from #5681) #5864

New issue
Copy link
New issue
Copy link
Done
Done
id: design: D1 journal fit (design + spike) (from #5681)#5864
Copy link
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)epic/id-programReprioritization program epic (2026-11-12)kind/designA design proposal (design-architect): multi-step, phased, decision-bearingpriority/lowNice to have; do when convenientsource/queue-workerFiled or worked by the queue/worker pilotstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
Milestone
ID platform program

Description

@dezren39
dezren39
opened on Nov 5, 2026
Issue body actions

Summary

Follow-on design ticket from #5681 — 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

D1's ordering, sessions, and replication behaviour against the #806 signed-stream requirements, with a small proof of concept.

Context from the parent

The parent design decides D1 vs Turso vs both for the serverless (Workers) edition and fixes the storage contract each backend must satisfy. 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: #5681. Programme: epic #2056. Filed by WS-F (2026-11-04 ID design gap & expansion pass).

Activity

Next
  1. dezren39
    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
    developing-todayBot
    on Nov 5, 2026 – with developing.today
    Contributor
    More actions

    CODE-1547

  3. dezren39
    added
    queue/queuedHas a queued queue task
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 5, 2026
  4. github-actions
    assigned
    dezren39
    on Nov 5, 2026
  5. developing-today commented on Nov 5, 2026

    @developing-today
    developing-todayBot
    on Nov 5, 2026 – with developing.today
    Contributor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-w
    • Session / ID: task 10266
    • Found via: queue claim
    • Task: Triage issue id: design: D1 journal fit (design + spike) (from #5681) #5864 — execution lane assigned to opencode; handing off to the opencode claimant, which launches the bound session.
    • Expectation: claimant launches the bound opencode session for task 10266; this lane does not work the task directly.
    • Links: id: design: D1 journal fit (design + spike) (from #5681) #5864
  6. developing-today
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    work/assignedQueue worker lifecycle state
    and removed
    queue/queuedHas a queued queue task
    on Nov 5, 2026
  7. developing-today commented on Nov 5, 2026

    @developing-today
    developing-todayBot
    on Nov 5, 2026 – with developing.today
    Contributor
    More actions

    🤖 Agent note · state: handed off

    • Agent: queue worker (repo-worker-code), lane code-m
    • Session / ID: task 10266
    • Found via: queue claim (task 10266 returned to the queue after a prior handoff park expired unbound)
    • Task: Triage of issue id: design: D1 journal fit (design + spike) (from #5681) #5864 (id design: D1 journal fit, from design(id): serverless edition storage — D1 vs Turso vs both for id on Cloudflare Workers #5681) is assigned to the opencode execution lane — handed off again to the opencode claimant, which launches a bound session to drive task 10266 to its terminal state.
    • Expectation: claimant launches the bound opencode session during the park window; if unbound at lease expiry, task 10266 returns to the queue.
    • Links: issue id: design: D1 journal fit (design + spike) (from #5681) #5864
  8. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · state: handed off

    • Agent: queue worker (repo-worker-code), lane code-i
    • Session / ID: task 10266
    • Found via: queue claim (task 10266 returned to the queue after a prior handoff park expired unbound)
    • Task: Triage of issue id: design: D1 journal fit (design + spike) (from #5681) #5864 (id design: D1 journal fit, from design(id): serverless edition storage — D1 vs Turso vs both for id on Cloudflare Workers #5681) is assigned to the opencode execution lane — handed off again to the opencode claimant, which launches a bound session to drive task 10266 to its terminal state.
    • Expectation: claimant launches the bound opencode session during the park window; if unbound at lease expiry, task 10266 returns to the queue.
    • Links: issue id: design: D1 journal fit (design + spike) (from #5681) #5864
  9. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · state: handed off

    • Agent: queue worker (repo-worker-code), lane code-o
    • Session / ID: task 10266
    • Found via: queue claim
    • Task: triage of issue id: design: D1 journal fit (design + spike) (from #5681) #5864 is assigned to the opencode execution lane — handed off to the opencode claimant, which launches a bound session to drive task 10266 to its terminal state.
    • Expectation: claimant launches the bound opencode session during the park window; if unbound at lease expiry, task 10266 returns to the queue.
    • Links: issue id: design: D1 journal fit (design + spike) (from #5681) #5864
  10. dezren39
    removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 5, 2026
  11. 383 remaining items

    Load more actions
  12. developing-today
    added
    status:to-do
    on Nov 14, 2026
  13. dezren39 commented on Nov 14, 2026

    @dezren39
    dezren39
    on Nov 14, 2026
    MemberAuthor
    More actions

    Concurrence from the 90-day closed-item review (batch 109) — WRONGLY_CLOSED, already remedied.

    This review independently reached the same verdict as the wrongful-closure audit that reopened this issue today (2026-11-14, Drew's order). The record: PR #6350 merged 2026-11-12T18:56:21Z and developing-today[bot] closed this issue 7 seconds later (2026-11-12T18:56:28Z) with the status:done done-audit disposition, while the worker's done note for task 10599 recorded that this issue stays OPEN per the task packet's acceptance (the correction note of 2026-11-12T18:58:57Z documents exactly this). The design record is preserved via parent issue #5681, which remains open. The ledger row for this issue in the 90-day review records WRONGLY_CLOSED with the remedy (this reopen) already executed by the audit; PR #6350's own row is IMPLEMENTED.

  14. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 Agent note · triaged — spike landed; the design-record remainder is owned by parent #5681 and gated on #5863

    • Agent: repo-worker-code (Muse lane any-b)
    • Session / ID: queue task 18394
    • Found via: atomic unfiltered claim from the one fleet queue (stream repo-health-code-pilot)
    • State of record (re-verified fresh this shift): the spike half of this issue is done — PR spike(id): probe D1 journal sessions (#5864) #6350 merged 2026-11-12 (b1a3abb, task 10599 fixed_merged). The bot closure that followed it was reversed by Drew's 2026-11-14 wrongful-closure audit, whose remainder statement stands: the D1 journal-fit design decision record this issue asks for has not landed; the spike result stands and its conclusions stay provisional.
    • Where the remainder lives: parent design(id): serverless edition storage — D1 vs Turso vs both for id on Cloudflare Workers #5681 (serverless edition storage design) is still OPEN and carries the synthesis (merged doc via PR docs(id): parent synthesis for serverless storage choice and shard placement (#5681) #8296 cites this spike); id: design: serverless storage contract (from #5681) #5863 (serverless storage contract) is still OPEN and the spike's conclusions are provisional on it. The design record for id: design: D1 journal fit (design + spike) (from #5681) #5864 therefore lands with the parent's record once id: design: serverless storage contract (from #5681) #5863 settles — it is not a separate packet, and filing one would duplicate the parent's in-flight record.
    • Routing: triage completes as triaged. id: design: D1 journal fit (design + spike) (from #5681) #5864 stays OPEN until the design(id): serverless edition storage — D1 vs Turso vs both for id on Cloudflare Workers #5681 design record (with id: design: serverless storage contract (from #5681) #5863's contract settled) records the D1 journal-fit decision; then this issue closes on that record.
  15. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 Agent note · blocked — dependency on issue #5863

    • Agent: queue worker (repo-worker-code), lane any-i
    • Session / ID: task 19932
    • Found via: queue claim (small_fix follow-on from triage task 18394)

    Fresh verification (2026-11-17):

    • Issue id: design: D1 journal fit (design + spike) (from #5681) #5864 is OPEN, no hard-stop labels. Its spike half is done: PR spike(id): probe D1 journal sessions (#5864) #6350 merged 2026-11-12 (merge commit b1a3abb, task 10599 fixed_merged). The bot closure after that merge was reversed by Drew's 2026-11-14 wrongful-closure audit: the D1 journal-fit design decision record this issue asks for has not landed, and the spike's conclusions stay provisional.
    • The gate is real and checked this run: issue id: design: serverless storage contract (from #5681) #5863 (serverless storage contract) is OPEN, and parent issue design(id): serverless edition storage — D1 vs Turso vs both for id on Cloudflare Workers #5681 (serverless edition storage design, which carries the synthesis citing this spike) is OPEN. Triage task 18394 (2026-11-17) recorded the same routing: the design record for id: design: D1 journal fit (design + spike) (from #5681) #5864 lands with the parent's record once id: design: serverless storage contract (from #5681) #5863 settles; a separate packet would duplicate it.
    • Per this task's packet ("If the issue states a dependency, block this task on it"), task 19932 is dep-blocked on issue id: design: serverless storage contract (from #5681) #5863 — the broker releases it automatically when id: design: serverless storage contract (from #5681) #5863 closes. This is a §5b dependency, not a Drew escalation: no decision is needed from Drew.
  16. dezren39
    added
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed
    status/blockedQueue or user escalation state
    queue/blockedQueue or user escalation state
    on Nov 17, 2026
  17. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    Pickup — task 19932 (lane code-d): dependency cleared, design record now writable

    Task 19932 was dep-blocked by lane any-i on issue #5863 (note 2026-11-17T09:44:32Z); #5863 CLOSED 2026-11-17T09:47:13Z (its storage-contract record landed via PR #11179), the broker auto-released the task, and this lane claimed it. Fresh verification: #5864 OPEN, no hard-stop labels; spike half done (PR #6350 merged 2026-11-12, D1 journal PoC PASS); parent #5681 synthesis record landed (PR #8296); sibling records #5863/#5865/#5868 landed. The remaining deliverable — the D1 journal-fit decision record — is now unblocked on every gate its triage named, so I am authoring it this shift as a docs-only PR, following the sibling record format (#5865).

  18. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    Decision record opened — PR #11200 (task 19932)

    The D1 journal-fit decision record for #5864 is open as a docs-only PR: #11200 — doc/2026-11-17_decision_id5864_d1_journal_fit.md. It settles ordering (journal-layer sequence over D1 single-primary serialisation; fork = (journal, seq) uniqueness + typed refusal), sessions (bookmark = session cursor, not the stream cursor; read-your-writes spike-proven via PR #6350, discharging the synthesis's [spike-owed #5864] cells), and replication (platform replication = availability only, never journal replication; Time Travel is not a recovery path), against the landed #5863 contract v1. Remaining spike-owed items (fork under contention, production replica lag, ceiling behaviour) are named in §7 with the contract suite as owner. Parent-decision impact: none.

    The PR uses Refs #5864, not a closing keyword — the closing lane verifies the record against this issue's "Decision record expected" before closing.

  19. dezren39 commented on Nov 22, 2026

    @dezren39
    dezren39
    on Nov 22, 2026 – with Claude
    MemberAuthor
    More actions

    Merged work, still open. Every pull request that references this issue has merged (#8296, #11179, #11200) and none is open, but the issue kept status:in-review. Tasks that name it as a blocker have been waiting on it.

    status:in-review is removed. Whoever takes this next: run the issue's done check against main. Close the issue if it passes; if not, list what is left here and carry on with it (AGENTS.md, "Finishing work").

    By: Claude, 2026-11-22 flow review.


    Generated by Claude Code

  20. developing-today-fleet commented on Nov 24, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 24, 2026 – with developing.today fleet
    Contributor
    More actions

    Done check against main — PASSES. Closing.

    Per the 2026-11-22 flow-review note on this issue ("run the issue's done check against main; close the issue if it passes"), verified fresh today against origin/main (521a299):

    The decision record this issue asks for has landed. doc/2026-11-17_decision_id5864_d1_journal_fit.md, merged via PR #11200 (commit 39b3a45, task 19932). Checked against this issue's "Decision record expected":

    • Chosen shape — §2 ordering (sequence assigned by the journal layer, never by D1; single-primary serialisation is the enforcement, not the source, of order; fork = (journal, seq) uniqueness + typed refusal; entries stored as exact signed bytes), §3 sessions (bookmark is a session cursor, never the stream cursor; read-at-watermark maps onto bookmark-constrained sessions; silent staleness forbidden), §4 replication (platform replication is availability only — the signed stream is the only journal replication; Time Travel is not a recovery path), §5 declared limits and contract flags (embedded_replica false, offline_append false, workers_native true).
    • Alternatives rejected, with why — §8: D1-assigned order, bookmark-as-cursor, unguarded replica reads, Time Travel as recovery, and waiting for a production spike before recording.
    • Invariants implementation must hold — the numbered clauses of §2–§5 against the landed id: design: serverless storage contract (from #5681) #5863 contract v1, including the typed fork / unavailable / limit refusals.
    • The spike half — executed and merged earlier: PR spike(id): probe D1 journal sessions (#5864) #6350 (2026-11-12, pkgs/id/worker-poc): ordinals 1–3 in append order, bookmark-carried read-your-write across requests, snapshot + ordered tail byte-identical. Record §6 consumes it as evidence; the synthesis's two [spike-owed #5864] cells are discharged by it (record §9).
    • Parent-decision impact — recorded explicitly in §9: none. design(id): serverless edition storage — D1 vs Turso vs both for id on Cloudflare Workers #5681's both-with-roles decision stands unchanged.
    • What remains — §7's three spike-owed measurements (fork refusal under contention, watermark behaviour under production replica lag, ceiling behaviour) are not silent: they carry named owners (the first D1 adapter implementation and its id: design: serverless storage contract (from #5681) #5863 contract-suite conformance run; id: design: cost & limits guardrails (serverless storage) (from #5681) #5868's guardrail checks). They are adapter-conformance work, not open design questions, so they do not hold this design issue open.

    No live claim stood on this issue (last pickup, task 19932, completed with PR #11200). This pickup arrived via Felix's fallback shortlist after the queue broker legs dropped; closing on the evidence above rather than duplicating a settled design.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/idPackage/app: id (pkgs/ or apps/ in this repo)epic/id-programReprioritization program epic (2026-11-12)kind/designA design proposal (design-architect): multi-step, phased, decision-bearingpriority/lowNice to have; do when convenientsource/queue-workerFiled or worked by the queue/worker pilotstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Milestone

      • ID platform programNo due date

      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.