Skip to content

CF-3 (#14866): queue backup/DR retargeted to the D1 plane #14943

Backlog

Description

@developing-today-fleet

CF-3 — Queue backup/DR retargeted to the D1 plane.

Today the queue's backup is a laptop timer exporting the laptop broker's queue into D1 fleet-queue-backup (#8584). Once CF-2 makes D1 fleet-queue the live plane, the backup's source changes: the export becomes an export of the live D1 (D1 export / snapshot to R2), and the laptop timer's role is retired or reduced to a trigger.

Also resolve the naming collision in docs and runbooks: live fleet-queue vs backup fleet-queue-backup must be unambiguous wherever either is referenced. Prove a restore: restore the backup into a scratch database and verify task counts/schema against the live plane.

Acceptance: scheduled backup of the live D1 plane exists and a restore drill is recorded on this issue; the laptop-side export path is retired or its remaining role documented.

Blocked by CF-2 (the backup's source is CF-2's output).

Child of #14866 (Cloudflare-first migration programme). Design of record: doc/2026-11-25_design_cloudflare-first-migration.md (PR #14940). Secrets by name only. Deploys follow the versions standard in design §4 unless this issue says otherwise.

{
  "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-25T08:48:11Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "felix",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Acceptance criteria

  • A scheduled backup of the live D1 queue plane exists (D1 export / snapshot to R2), replacing the laptop broker export as the source of record.
  • A restore drill is recorded on this issue: the backup restored into a scratch database with task counts and schema verified against the live plane.
  • The laptop-side export path is retired, or its remaining role is documented.
  • Docs and runbooks unambiguously distinguish the live fleet-queue database from the fleet-queue-backup database wherever either is referenced.

Blockers

CF-2 (#14942): the backup's source is CF-2's output — the D1 live plane must exist before the backup can be retargeted to it. Stated in the body.

Activity

  1. added
    priority/high
    kind/infrastructure
    on Nov 25, 2026
  2. developing-today commented on Nov 25, 2026

    @developing-today
    Contributor
  3. added
    queue/claimed
    status/in-progress
    work/assigned
    on Nov 25, 2026
  4. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    ContributorAuthor

    ⚠️ Protocol gap — missing agent note

    This issue is claimed in the fleet queue (task 23735, worker repo-worker-code) and now carries queue/claimed + work/assigned + status/in-progress (applied by the fleet monitor this run to match the live claim), but it has no comment containing agent-note:v1 — the holding agent did not leave the required agent note (protocol §2/§6).

    The gap itself needs a human/Muse review of why the protocol was not followed. The holder should post a standard agent note at its next transition.

    🤖 Agent note · escalated

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor run 2026-11-25 05:14 CST
    • Found via: monitor reconciliation
    • Task: flag missing agent note on a claimed item; sync claim labels to the live queue claim (task 23735)
    • Expectation: holder posts an agent-note:v1 note; gap reviewed by human/Muse
    • Links: task 23735
  5. added
    meta/protocol-gap
    user/review
    on Nov 25, 2026
  6. dezren39 commented on Nov 26, 2026

    @dezren39
    Member

    🤖 Agent note · task 23735 claimed by agent-next-22-local

  7. added
    status/parked
    queue/parked
    and removed
    status/in-progress
    on Nov 26, 2026
  8. 22 remaining items

  9. added
    status/in-progress
    and removed
    status/parked
    queue/parked
    on Nov 28, 2026
  10. removed
    queue/claimed
    on Nov 28, 2026
  11. dezren39 commented on Nov 28, 2026

    @dezren39
    Member

    CF-3 recheck — gate still unfired, re-parking (lane 0822-J, delta PRESS, 2026-11-28).

    Fresh verification this run (gh CLI, issue + all 17 comments read):

    Disposition: queue task 23735 re-parked by this lane with ready condition = #14942 closed; on wake, verify the scheduled export #3 record carries the fixed schema (26 tables), then run drill #4 promptly. No code or production changes by this lane.

  12. added
    queue/claimed
    on Nov 28, 2026
  13. removed
    queue/claimed
    on Nov 28, 2026
  14. dezren39 commented on Nov 29, 2026

    @dezren39
    Member

    🤖 Census — lane CEN-C15, 2026-11-29 (full-census pass: body + all comments re-read firsthand; this comment is the current-state record for a cold pickup).

    Verdict: blocked. Drill records are exemplary (safe refusals recorded as evidence, not failures); the naming-collision resolution (fleet-queue vs fleet-queue-backup) is required in the body. Slice PR #15537 merged; activation performed.

    Blockers: (1) the CF-2 #14942 cutover — the backup's source is its output; (2) D1 plane overload (exports/drills gated; the queue-claim path itself threw D1 429s). Wake: #14942 lands and the D1 plane calms.

    Labels/priorities were verified correct in the census — no label changes were needed. (priority high confirmed.)

  15. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Census 2026-11-29 (Felix): rechecked in full (body, labels, comments, edges).

    STRENGTHS: The retarget logic is sound (once D1 is the live plane, the backup's source becomes the D1 plane itself; the laptop timer retires or shrinks to a trigger), the fleet-queue vs fleet-queue-backup naming collision is called out as work, and acceptance demands a recorded restore drill, not just a configured backup. kind/infrastructure + priority/high already set; the blocked_by edge to CF-2 (#14942) EXISTS and is correct — the source does not change until the flip.

    GAPS: The tooling half is done (PR #15564 merged: D1→D1 export/restore-drill tooling + workers.json). The live restore proof has been attempted three times and died each time on this seat's egress proxy truncating a D1 response — a seat-transport limit, not a code defect; the exact completable commands are recorded on this issue (comment 7192863573) for any non-proxied host. The timer swap waits on CF-2's verified flip.

    FIXES I APPLIED: None — labels, priority, and the blocker edge verified correct.

    REMAINS: Nothing for Drewry. Two unlocks, either suffices for the next step: a non-proxied host for the restore proof, or CF-2's flip for the timer swap.

  16. added
    effort/m
    on Nov 29, 2026
  17. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Issue census — 2026-11-29

    Gaps found

    • No effort/* label at census time — added effort/m.
    • Acceptance existed only as an inline 'Acceptance:' line, not as an ## Acceptance criteria section.

    Strengths

    Blocker recorded

    Actions taken by this census

    • Labels added: effort/m.
    • Appended an ## Acceptance criteria section to the body (original text unchanged), plus a short ## Blockers note.
  18. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    CF-3 recheck 2026-11-29 — export-blocked, parked with machine-checked wake (lane oc-code-01).

    Fresh premise check this run (gh CLI, issue + comment chain + repo, 2026-11-29):

    Disposition: no code/production changes (0 changes); parked, not completed — the two live-plane acceptance items cannot be reached from this lane while the gate is open, and forcing them would violate the programme's verification order. Ready-condition recorded: issue_closed on #14942; sweeper-external, recorded faithfully, and wakes when CF-2 lands. Queue task 23735 parked by the same pass.

    Next on wake: verify the live queue plane is D1, confirm a scheduled export record exists with the fixed schema (26 tables), then run a fresh scratch drill (fresh scratch name, --create-scratch --drop-scratch) and post the drill count/schema record here as the slice evidence, per the versions/deploys standard in the design of record.

  19. added
    status/blocked
    and removed
    status/in-progress
    on Nov 30, 2026
  20. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    ContributorAuthor

    P0.2/P0.6 status hygiene (Felix lane 0640-PB, 2026-11-30, Refs #17071). Live re-verification before mutation: this issue is OPEN with native blocker #14942 still OPEN; its landed slice (PR #15564, merged 2026-11-26) does not clear the blocker and no active landing PR exists. Before: status/in-progress. After: status/blocked (verified by re-read). work/assigned left intact — no explicit lease release is on record in the latest comments, so it was not cleared under the unleased-only rule.

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

    effort/mkind/infrastructuremeta/protocol-gappriority/highstatus/blockeduser/reviewwork/assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions