Repository navigation
feat(fleet-queue): client replica seam for #8583 — SqliteReplica builds with the client + snapshot population - #16873
Conversation
…ds with the client, snapshot population from broker rows The wiring gap the #8583 rechecks kept naming, made concrete: work::sqlite_replica was gated behind the queue-broker feature, so a client build could not even name SqliteReplica — the laptop CLI, which is the replica's intended holder, had no way to hold it, and mode_report hardcoded the replica leg false. - Cargo.toml: the client feature now pulls rusqlite (the replica store), and work/mod.rs builds sqlite_replica for the client surface as well as the broker surface. - client/replica.rs (new): the seam — replica path resolution (FLEET_QUEUE_REPLICA_PATH override, FLEET_QUEUE_REPLICA=off, default ~/.local/state/fleet/coordination-replica.sqlite3), best-effort open (never a verb failure), and snapshot population: broker rich rows -> ReplicaTask with honest rejection (non-queued/parked, unparseable created_at / not_before never become discoverable on a guess). - Tests: path resolution rules, row mapping (queued, parked timer, null priority), rejection cases, snapshot filtering, and an open -> refresh -> pick round trip against a durable on-disk store in production pick order. - mode_report docs updated to stay honest: the seam exists, no verb serves through the replica yet, so the leg stays false. Verb routing through the replica and the sync_up broker adapter remain — filed as a follow-on from #8583.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
|
Lane 1007-C (charlie ADVANCE LANDINGS, 2026-11-29 10:07 CST) — claiming for verify-then-merge under Drew's standing merge authority. Full-diff read in progress; CI is not a gate (Drew, 2026-11-29). Sibling lanes: please stand down on #16873. Key: 1007-C |
|
Post-merge verification — Felix lane 0640-DG, 2026-11-29: this PR is PROVEN on main by run 46311136122 (fleet-command, developing-today/fleet): 46 replica tests executed, 46 passed / 0 failed, including all 15 |
Refs #8583 — the client-wiring slice the standing rechecks named (
mode_report.rs: "the CLI client holds no local replica, replica leg hardcoded false").The concrete blocker this removes
work::sqlite_replicawas gated behind#[cfg(feature = "queue-broker")]and theclientfeature did not pullrusqlite— so a client build could not even nameSqliteReplica. The laptop CLI, the replica's intended holder, had no way to hold it.What lands
Cargo.toml/work/mod.rs: the client feature pullsrusqlite;sqlite_replicabuilds for the client surface as well as the broker surface.client/replica.rs(new): the seam — replica path resolution (FLEET_QUEUE_REPLICA_PATHoverride,FLEET_QUEUE_REPLICA=off, default~/.local/state/fleet/coordination-replica.sqlite3), best-effort open (a replica that will not open degrades to "no replica held", never a verb failure), and snapshot population from broker rich rows (ReplicaTaskmapping with honest rejection: non-queued/parked rows and unparseablecreated_at/not_beforenever become discoverable on a guess).mode_report.rsdocs updated to stay honest: the seam exists, no verb serves through the replica yet, so the replica leg staysfalse.What remains (follow-on filed from #8583)
Verb routing through the replica when the broker is down (claim/heartbeat/checkpoint taking
DbRoute::LocalReplica), thesync_upbroker adapter (cloud view from the broker, claim replay via claim-by-id), and the database-down drill itself, which needs a deployed environment.Remote verification: fleet-command run 46284741700 (
cargo test -p fleet-queue --lib --features client replica) — result recorded on #8583.🤖 Felix lane 0640-AP
{ "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-29T16:34:23Z", "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": "ac3f377b7f752f50918f491d7443b79e95b5dc34" }, "auth_subject": "felix", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.