GeezerVison is showing github.com — CF-2b (#14942): broker door-client end-state + live traffic cutover to D1 fleet-queue · Issue #14987 · developing-today/code
CF-2b (#14942): broker door-client end-state + live traffic cutover to D1 fleet-queue #14987DescriptionCF-2b — broker door-client end-state + live traffic cutover to D1. Child of #14942 (CF-2), part of the #14866 Cloudflare-first migration programme. This slice carries CF-2's steps 3 (live shadow), 4 (cutover) and 5 (broker end-state) once its two prerequisites land; the CF-2 evidence pass (2026-11-25, queue task 23734) established why they cannot run yet:
End-state decision (CF-2 step 5, recorded here per the issue's instruction): the native broker becomes a client of the hosted door — it holds no authoritative queue state of its own. What stays on the laptop, and why: the broker's local transports (UDS/localhost listeners — the direct-access class named in #14866's exceptions) and its local fan-out role for seat/laptop clients. What leaves the laptop: the authoritative store (the Turso plane is demoted to import/shadow source with a retirement note).
Scope when unblocked: (1) a live shadow window — dual-read comparison between the D1 plane and the Turso plane on live-shaped traffic through the door, divergence counts recorded on #14942 (the snapshot-based sample from the evidence pass — 8/8 terminal tasks agreeing — is the baseline, not the window); (2) in-flight row migration by export/import over the shared schema, column-mapped per #14985; (3) the traffic flip: broker + CLI clients take the door as the live plane; (4) rollback demonstrated (re-point the door/clients to the Turso backend) or its procedure recorded with the rehearsal evidence from #14870 updated for the broker path.
Acceptance: #14942's acceptance is met — the queue's live plane is D1 fleet-queue, parity + shadow evidence on #14942, the Turso backend demoted with a retirement note, rollback demonstrated or recorded. This is a supervised live operation: it moves the production queue every lane stands on, so it runs as its own scheduled pass, not as a side effect of an evidence lane.
Secrets by name only. Deploys follow the versions standard (design §4). Verification runs remotely, never compiled on a seat or the laptop.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-25T09:32:41Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": "/home/hatch",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/hatch",
"repo": "developing-today/code",
"branch": "main",
"sha": "c11f41086f57d626be7eb582763b721f8f557408"
},
"auth_subject": "felix",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Acceptance criteria
Activitydeveloping-today-fleet commented on Nov 25, 2026 ContributorAuthor More actions agent-note:v1 — filed and enqueued in the same pass by the CF-2 lane: queue task 23759 (repo-health-code-pilot), dep-blocked on #14978 and #14985 (both also recorded as blocked_by edges on this issue) with an hourly recheck. It wakes when both prerequisites close. developing-today-fleet commented on Nov 25, 2026 ContributorAuthor More actions agent-note:v1
event: premise-checked — priority-rung draw; one of two prerequisites now closed, wake still owned by task 23759
by: agent felix (kind muse, Muse sandbox seat; drawn via fleet agent next, priority rung, 2026-11-25 ~04:00 CST)
State update: prerequisite #14985 is now CLOSED (PR #14995 merged 2026-11-25T09:46:16Z) — the schema axis no longer blocks. The remaining prerequisite is #14978 (door caller-auth, in flight as task 23753). This issue's own scope runs only once both prerequisites land, and it is framed as a supervised live operation run as its own pass; queue task 23759 holds the dep-block with hourly recheck and owns the wake.
No claim taken, no changes made. This lane draws again. added effort/lLarge: multi-day or open-ended; expect staged check-ins app/fleetpkgs/fleet multicall binary + platform crates meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added on Nov 25, 2026developing-today-fleet commented on Nov 25, 2026 ContributorAuthor More actions Intake review
Related: Child of issue #14942 (CF-2), part of the issue #14866 Cloudflare-first programme. Prerequisites: issue #14978 (task 23753), issue #14985 (task 23756). Evidence pass: task 23734.
Notes: Correctly blocked today: no client can call the queue door until caller-auth lands, and an export-shaped D1 database is not yet one the D1 store speaks. The end-state decision is already recorded in the issue, which removes the usual design stall at unblock time.
Risks: Cutover of the live queue is the fleet's highest-blast-radius operation; the shadow phase must prove parity before any traffic moves.
Suggested approach: Wait for #14978 + #14985, then shadow, parity-check, cut over, and demote Turso — in that order, per CF-2 steps 3-5.
Acceptance criteria appended to the issue body; labels normalised by the fleet monitor intake pass.
🤖 Agent note · filed
dezren39 commented on Nov 25, 2026 agent-note:v1
event: premise-checked — shortlist-rung draw; stand-down, blocker chain verified, no claim taken
by: agent xaltha (kind muse, Muse sandbox seat; drawn via fleet agent next, shortlist rung, 2026-11-25 ~10:44 CST)
Verified this run:
Decision: no claim, no PR, no label changes from this lane. This is not an owner-park on #14987's end-state (that decision is already recorded in the issue body); the open owner decision sits on #9077's first phase, and the execution claim sits with task 23753/#14978. Wake condition unchanged: #14978 closes → task 23759 wakes → supervised cutover pass. dezren39 commented on Nov 25, 2026 agent-note:v1
event: premise-checked — priority-rung draw; stand-down re-verified, blocker chain unchanged
by: agent xaltha (kind muse, Muse sandbox seat; drawn via fleet agent next, priority rung, 2026-11-25 ~13:45 CST)
Fresh verification this run:
Decision unchanged from the 10:44 CST note on this issue: no claim, no PR, no label changes from this lane. Wake condition unchanged: #14978 closes → queue task 23759 wakes → supervised cutover pass. This lane draws again. dezren39 commented on Nov 25, 2026
Stand-down re-verified (xaltha lane, hourly loop 2026-11-25 ~17:50 CST, shortlist-rung draw).
dezren39 commented on Nov 26, 2026 agent-note:v1
event: premise-checked — priority-rung draw; stand-down re-verified, blocker chain unchanged
by: agent xaltha (kind muse, Muse sandbox seat; drawn via fleet agent next, priority rung, 2026-11-26 ~02:41 CST)
Fresh verification this run:
Decision unchanged: no claim, no PR, no label changes from this lane. Wake condition unchanged: #14978 closes → task 23759 wakes → supervised cutover pass. This lane refilled the shortlist (now 6 entries, incl. #15432/#15433/#15485) and draws again. developing-today-fleet commented on Nov 27, 2026 ContributorAuthor More actions
CF-2b supervised pass: deployed, auth proven, cutover BLOCKED on a new production-shape finding.
Deploy (versions standard, design §4):
- Uploaded origin/main
d3dc77e4fdc as version 18ea1945-d59f-4fd9-83d3-d71be12828d5 (tag = full SHA).
wrangler versions secret put TENANCY_FIXTURE_JSON (broker queue-scoped record: sha256 ac4d2bcdbe5bbc3f9c3e43448eac928cf196c43d2f65ae7d07e2f673a2506733, binding c0a79041e621ea16e960d1d2c1cc1a72, routes ["queue"]) → version 140a5038-704c-4ce6-aa38-1cdc8e125578, deployed @100% 23:13Z.
- Health gate:
/health ok, tenancy_configured:true, service_auth_configured:true, d1_bound:true, rp_configured:false (unchanged posture); unauthenticated queue verb still fails closed (missing_token).
- Rollback: promote
0fd14383-94ec-4e4b-b616-ab32166096e8 (pre-deploy live, GHA c3add69) — no traffic moved, Turso still the live plane, so rollback is unexercised but recorded.
Auth route proven end-to-end (Bearer broker token reaches the store layer; failures below are D1-shape, not auth).
Blocker (new): the queue door cannot serve the production-shaped D1.
- Authenticated
POST /v1/queue/health and POST /v1/queue/enqueue (exact harness packet) both answer HTTP 200 with {"ok":false,"exit":4,"error":"D1_ERROR: D1 query result exceeded the maximum response size limit of 50 MB"}.
- Root cause (code-read,
pkgs/fleet/hosted-worker/src/queue.ts): liveIdentityHolder (every enqueue with a work identity) and verbHealth iterate store.allTasks() — full-table load of a 378 MB / ~23k-row tasks table. Prior real-D1 parity (slice(#14866): deploy the fleet queue on D1 — create + bind QUEUE_D1, real-D1 parity, versions deploy #14870) ran against a fresh empty database, so this never surfaced.
- D1 itself flaky under light probing tonight: 2×
7429 D1 DB is overloaded + 1× fetch failed across ~30 min (matches the code-g caution).
No shadow, delta-sync, flip, or rollback-check ran — correctly, per the gate: the door must serve production-shaped D1 first.
Resume for the next pass:
- Code slice (own issue/PR, tested): bound the hot paths — indexed identity lookup for enqueue dedupe (no
allTasks), bounded aggregate queries for health (no allTasks/allEvents full loads + per-task getTask).
- Redeploy (versions standard, same fixture pattern; broker token already on the laptop at
/home/user/.local/share/opencode/tmp/cf2b-broker-door-token, fixture at .../cf2b-tenancy-fixture.json, laptop worktree at .../cf2b-deploy-23759).
- Re-run the live round-trip harness (
FLEET_HOSTED_BASE_URL + FLEET_HOSTED_QUEUE_TOKEN), then shadow (/door-shadow divergence report here), final delta-sync, supervised flip, rollback check.
developing-today-fleet commented on Nov 28, 2026 ContributorAuthor More actions
CF-2b hot-path bound slice: PR open.
- PR fleet-hosted: bound door hot paths for production-shaped D1 (CF-2b #14987) #16376 (branch fleet/oc-code-06/23759-door-hotpath-bound): bounded QueueStore readers on all four stores + tasks_status_lease index; verb engine off full-table scans for enqueue dedupe, lease expiry, and health.
- Tests: new door-hotpath-bound oracle 3 pass (fixture/libsql/D1); queue+doors 40 pass; live-generation parity 3 pass. Heavy d1/hrana parity suites not run on this seat (disk full); same SQL shape, CI to confirm.
- No live traffic moved; Turso still the live plane. Next after merge: redeploy with the tenancy fixture, live round-trip harness, shadow divergence report, final delta-sync, supervised flip + rollback check.
developing-today-fleet commented on Nov 28, 2026 ContributorAuthor More actions
Premise-checked stand-down (priority-rung owner_park serve, 2026-11-28 ~00:40Z): no slice taken, no PR, no label changes.
Fresh verification this run:
Owner-park repair (decide-and-proceed, FDR-0013): already ran — decision:v1 2026-11-23 plus the 2026-11-27 oc-code-01 decision. user/escalated absent; status/blocked stays, correctly naming the environmental gate (live supervised pass in flight under 23759), not an owner gate. Nothing here waits on the owner.
Next: oc-code-06's hotpath-bound PR, then the supervised pass resumes (shadow → final delta-sync → flip → rollback check). This lane draws again. developing-today-fleet commented on Nov 28, 2026 ContributorAuthor More actions
CF-2b slice PR open.
- PR fleet-hosted: broker /door-enqueue first-write probe (CF-2b #14987) #16408 (branch fleet/oc-code-06/14987-door-enqueue-forward): broker gains diagnostic POST /door-enqueue — first write verb forwarded to the hosted door (POST /v1/queue/enqueue, Bearer token, envelope intact). Live /enqueue still uses Turso; only explicit /door-enqueue calls reach the door. No live traffic rerouted.
- Tests: 2 new door oracles (forward contract + without-door exit 3); full door_ filter to be confirmed by remote dispatch https://github.com/dezren39/fleet/actions/runs/46100471571 + PR CI. Not built on this seat (missing OpenSSL dev libs); evidence level: remote dispatch + CI.
- Next: review/merge, then next write verb (claim/checkpoint) or deploy-gated shadow run against the door; supervised flip stays its own pass (queue task 23759 parked to 04:53Z).
Decision (decide-and-proceed, FDR-0013): owner_park is not a hold on code work — status/blocked stays, naming the environmental gate (live supervised pass + parked 23759), not an owner gate.
developing-today-fleet commented on Nov 28, 2026 ContributorAuthor More actions
Stand-down — owned/gated, no slice taken (lane 2107-H, charlie ADVANCE queue draw, 2026-11-27 21:07 CST).
Draw: fleet agent next, priority rung, owner_park serve for #14987 (queue rung down in the draw's tried list — broker tunnel not permitted; no queue task claimed by this lane).
Fresh verification this run (gh CLI, GraphQL-first while core REST quota was 0):
- Read the issue + ALL 33 comments. Issue OPEN,
status/blocked / priority/critical / effort/l, last updated 2026-11-28T02:57:32Z.
- Prerequisites fleet-hosted bridge door: caller-auth enablement (RP issuer + tenancy directory) #14978 and CF-2a (#14942): close the tasks schema-generation gap (manual_only/metadata absent on the live table) before the D1 cutover #14985 both CLOSED (unchanged across the recent stand-down chain).
- The code-h hot-path blocker slice landed: PR fleet-hosted: bound door hot paths for production-shaped D1 (CF-2b #14987) #16376 MERGED 2026-11-28T01:38:22Z, merge commit 1558fb9.
- Live owner: oc-code-06 — its latest note (2026-11-28T02:57:32Z) opened PR fleet-hosted: broker /door-enqueue first-write probe (CF-2b #14987) #16408 (broker
/door-enqueue first-write probe). Fresh re-read: PR fleet-hosted: broker /door-enqueue first-write probe (CF-2b #14987) #16408 is OPEN, non-draft, CLEAN/MERGEABLE at head 2e59256. A parallel slice from this lane would collide with that live work.
- Remaining acceptance (live shadow, traffic flip, broker end-state, rollback check) is a supervised live pass, not a generic-lane side effect. Queue task 23759 is already parked to 2026-11-28T04:53:11Z per oc-code-06's note — the park is already correct, and this lane is not the claim holder, so no re-park was attempted.
- Owner-park repair already ran (decide-and-proceed, FDR-0013):
user/escalated absent; status/blocked correctly names the environmental/supervised-pass gate, not an owner gate. Nothing waits on the owner.
Next: oc-code-06 lands #16408's verification/merge, then the supervised pass resumes at task 23759's wake (redeploy → live round-trip → shadow → delta-sync → flip → rollback check). This lane draws again from the fallback list. developing-today-fleet commented on Nov 28, 2026 ContributorAuthor More actions
CF-2b slice PR #16408 — evidence green.
- Branch
fleet/oc-code-06/14987-door-enqueue-forward @ eb5816e4209: broker diagnostic POST /door-enqueue (first write probe; live traffic untouched).
door_ filter: 11 passed, 0 failed; full fleet-queue lib (queue-broker): 880 passed, 0 failed — ran on this seat via fleet-build-lock with Nix OpenSSL paths (seat/laptop/dispatch runners lack system OpenSSL dev libs; nix develop shell itself fails on an unrelated mcpx Go test, so the direct OPENSSL_$DIR route was used).
- Fixed in review: fake-server Content-Length 33 -> 26 in the new forward oracle.
- Next: review/merge, then next write verb or deploy-gated shadow; supervised flip stays its own pass (queue task 23759 parked to 04:53Z).
developing-today-fleet commented on Nov 28, 2026 ContributorAuthor More actions \n\n**Premise-checked stand-down (priority-rung owner_park serve, 2026-11-28 ~04:40Z): no slice taken, no PR, no label changes.**\n\nFresh verification this run:\n- Gates: #14978 CLOSED, #14985 CLOSED (unchanged).\n- Queue task 23759 parked to 2026-11-28T04:53:11Z (oc-code-06 lane), live plane still laptop broker over Turso.\n- PR #16376 MERGED 01:38Z (hot-path bound). PR #16408 OPEN/MERGEABLE/CLEAN at eb5816e (broker /door-enqueue first-write probe, single file pkgs/fleet/crates/fleet-queue/src/queue_broker.rs + 2 oracles, no required checks reporting). Live work owned by oc-code-06; parallel slice would collide.\n- Remaining acceptance (live shadow, flip, broker end-state, rollback) is the supervised pass, not a generic-lane side effect.\n\nOwner-park repair already ran (decision:v1 2026-11-23 + follow-ups); user/escalated absent; status/blocked stays as environmental gate, not owner gate. Next: #16408 merge, then supervised pass at 23759 wake. developing-today-fleet commented on Nov 28, 2026 ContributorAuthor More actions
agent-note:v1 — lane code-h, priority-rung serve, 2026-11-28 ~06:45Z — stand-down, no slice taken.
Fresh verification: #14978 CLOSED, #14985 CLOSED (unchanged); PR #16408 OPEN MERGEABLE at eb5816e (unchanged head, oc-code-06 live slice); queue task 23759 CLAIMED (lease to 08:53Z, lane any-n) — supervised pass owns the next move. Remaining acceptance (shadow, flip, end-state, rollback) is the supervised live pass, not a generic-lane side effect. Parallel slice would collide. Owner-park: user/escalated absent; status/blocked names the supervised-pass gate. No files changed, no PR opened. developing-today-fleet commented on Nov 28, 2026 ContributorAuthor More actions
CF-2b: PR #16408 MERGED (broker /door-enqueue first-write probe).
- Claim holder this pass: any-n lane (queue task 23759, claimed 2026-11-28T04:53:14Z).
- Diff reviewed (single file pkgs/fleet/crates/fleet-queue/src/queue_broker.rs, +120/-11: diagnostic POST /door-enqueue -> POST /v1/queue/enqueue with Bearer token, envelope intact; 2 new oracles; live /enqueue still on Turso).
- Independent remote verification (required: never compiled on seat/laptop): dispatch run https://github.com/dezren39/fleet/actions/runs/46116340436 (fleet-personal, ref eb5816e):
cd pkgs/fleet && cargo test -p fleet-queue --lib --features queue-broker queue_broker::tests::door_ -> 11 passed, 0 failed. Notes for the next verifier: dispatch runners lack pkg-config (openssl-sys build fails) and the command runs under bash -e, so install it first (sudo apt-get install -y pkg-config) and run from pkgs/fleet (repo-root cargo fails: package outside workspace).
- Merged 2026-11-28T06:43:43Z, merge commit f66cd56.
- Remainder (unchanged): redeploy fleet-hosted with tenancy fixture, next write verbs, live round-trip harness, shadow divergence report, final delta-sync, supervised flip + rollback check. This seat cannot proceed: cf2b fixtures (broker door token, tenancy fixture, deploy worktree) absent here, and local disk 100% full (no clone/worktree/build). Task parked with resume state.
dezren39 commented on Nov 28, 2026 Lane 0837-D (alpha DRIVE 2026-11-28) re-check: gates #14978 (verified CLOSED firsthand) and #14985 are closed and the hot-path slices are merged, but the CF-2b remainder is a supervised live cutover (redeploy with tenancy fixture, live harness, shadow, delta-sync, flip to D1 + rollback) — prior lane records show the laptop broker unreachable and cf2b fixtures absent on this seat, live plane still laptop broker over Turso. Queue task 23759 re-parked (verified status=parked, worker=null, ready=time 2026-11-29T14:45Z). Wake: laptop broker reachable + D1 tenancy fixtures available on the executing seat, then run the supervised cutover pass.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|