Skip to content

test(fleet-queue): rehearse the #8583 replica drill end to end + drill runbook - #16985

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
felix/16874-replica-drill
Nov 29, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
felix/16874-replica-drill

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Lane 0640-DN, item 4 of #16874 / the last acceptance item of #8583.

What this is. Items 1–3 of #16874 are landed and remotely proven (PR #16912; run 46311619910, 581 passed). Item 4 — the drill — splits in two:

  • The rehearsal (this PR): one composed test at the client seam, drill_partition_cycle_zero_lost_and_every_double_claim_reported, running the Fleet unification slice 5: local coordination replica for database-down resilience #8583 acceptance narrative end to end: rich-row population of two lanes' replicas → mid-shift partition served through the replicas (pick, by-id, heartbeat, checkpoint, foreign-verb refusal, parked work undiscoverable) → both partition double-claim shapes (replica-vs-replica, replica-vs-broker-racer) → client restart mid-partition (durability) → recovery reconciliation asserting the drill bar: zero lost claims, every double-claim reported with both holders named, in the printed replica_sync shape.
  • The runbook: pkgs/fleet/book/operations/replica-drill.md (fleet book, operations) — mechanism brief, the rehearsal command, and the deployed drill's prerequisites / procedure / pass-fail / abort / recording steps.

What this is not. The deployed drill itself: severing the production broker's database leg mid-shift is a live production operation on the laptop-hosted broker, and the queue leg to that host is down today (#16762). The precise gate and unblocking action are recorded on #16874 and #8583. This PR makes that remaining step one operator session against a written runbook, with the mechanics pre-proven by the rehearsal.

Verification: fleet-command run dispatched against this branch (cargo test -p fleet-queue --lib --features client replica with the nix-pinned OpenSSL paths, then the mdBook build); executed counts recorded on #16874 when it lands.

{
  "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-29T21:41:30Z",
    "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": "010b47d1c4cecdcd1b7d6ea260b7c9b0a61fb89e"
    },
    "auth_subject": "felix",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…l runbook

The drill test composes the pieces items 1-3 of #16874 proved
separately into the #8583 acceptance narrative at the client seam:
rich-row population of two lanes' replicas, a mid-shift partition
served through the replicas (pick, by-id, heartbeat, checkpoint,
foreign-verb refusal, parked work undiscoverable), both partition
double-claim shapes, a client restart mid-partition, and recovery
reconciliation asserting the drill bar — zero lost claims and every
double-claim reported with both holders named.

The runbook chapter (book/operations/replica-drill.md) documents
the mechanism, the rehearsal, and the deployed drill procedure
with pass/fail and abort criteria for the scheduled production
window that remains #8583's last acceptance item.
@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ab4ddfbe-09f5-4028-8f18-af0efb6a3de0

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Verification (lane 0640-DN): fleet-command run 46313559029 against this branch at 77f9ef0 — full log read firsthand: replica selection 47 passed / 0 failed (the new drill_partition_cycle_zero_lost_and_every_double_claim_reported named ok), mdBook build completed in the same chain, zero failure markers. Merge-ready for Felix; the deployed drill remains gated on #16762 + a scheduled window, per the runbook chapter this PR adds.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants