Repository navigation
Description
Parent design: #8575 (one door, one home per fact — fleet tool state unification). Slice 3 of 7. Approved by Drew 2026-11-11: implement in full.
Work
Fleet verb contract v2: every fleet queue verb declares, in the tool itself, its route order and its degraded behavior for each failure leg — GitHub write failure, GitHub read failure, database failure. The verb reports the mode it actually operated in (normal, gh-write-degraded, gh-read-degraded, db-degraded) on every call. The tool also caches a significant working set of issues from the database mirror (slice 2) so lanes spend almost no GitHub reads.
Per Drew's ruling on #8575: never stop working. No verb refuses to operate because a leg is degraded or a mirror is stale; it degrades, says so, and continues.
Lane instruction bodies then shrink to calling the verbs: all fallback improvisation comes out of the lane runbooks.
Acceptance
- A mode line on every verb's output, machine-readable, naming the route used.
- A drill per leg: with GitHub writes blocked, claims and work proceed and outcomes buffer; with GitHub reads blocked, lanes run off the mirror and cache; with the database blocked, slice 5's replica path engages.
- Lane runbooks updated in the same change to remove local fallback logic.
Refs #12538 (tracking dispatch). Refs #12756 (mode-line slice PR for the acceptance remainder).
Acceptance criteria
- The ask in the title is delivered: Fleet unification slice 3: fleet verb contract v2 — routes and degraded modes in the tool
- The change is recorded on this issue (links to any PR, doc, or decision that carries it).
- A reviewer can verify the result from the linked evidence without private context.
- Follow-on work, if any remains, is filed as its own issue and linked here.
Activity
developing-today commentedon Nov 11, 2026
CODE-2567
dezren39 commentedon Nov 11, 2026
🤖 Agent note · triaged
dezren39 commentedon Nov 11, 2026
agent-note:v1
state: blocked (dependency)
lane: code-c (task 14909)
issue: #8581
Dependency gate declared on task 14909 (fleet queue dep-block, broker rechecks every 15 min, max TTL 3 days): this slice's own acceptance cannot be executed yet. The gh-read-degraded drill requires slice 2's database mirror (#8580) so lanes can run off the mirror and cache, and the db-degraded drill requires slice 5's local coordination replica path (#8583) to engage. Verified fresh 2026-11-11: #8580 and #8583 are both OPEN and unlanded, and no mirror/replica code exists in the fleet tooling (pm-stack search: no mirror or replica implementation, no degraded-mode lines). Building the verb contract against invented mirror/replica interfaces would bake in guesses the sibling slices then have to match. The mode-line/route-declaration half is not blocked in principle, but the packet's acceptance is a single set including both drills, so the task dep-blocks whole rather than landing a half that claims the slice. It returns to the pool automatically when #8580 and #8583 close; whoever claims it then should re-verify the mirror/replica surfaces before starting.
142 remaining items
dezren39 commentedon Nov 22, 2026
🤖 Agent note · slice landed — remainder 1 (verb adapter), lane lane-av2 (archer)
PR #12706 merged (
7817b4effccd584bd2c0aabbb101e5fbc2fe2af3) — the verb adapter this issue and #8583 were waiting on now exists on main:crates/fleet-queue/src/client/mode_report.rsfillsLegAvailabilityfrom what a verb actually observed and selects throughwork::routing::route_for, the consumer the contract was written for. It performs no I/O and attempts no route; the verbs keep their existing serving paths.What is wired:
mode_linekey ({verb, mode, route}fromModeLine::json_value()), following the client's existing additive-key precedent (guard_warning,claim_flow_partial). A claim whose Turso replacement for the queue core: dedicated muse-queue DB + fleet queue-broker Turso backend #6741 fallback-guard read of GitHub fails reportsgh-read-degradedon thecloudroute; the batch output degrades on its worst guard outcome.fallback_switch_json) carries the samemode_line—db-degradedongithub-markers, selected throughroute_forfrom the store-down legs — so every work verb (claim, heartbeat, checkpoint, complete, health) reports its mode and route on the primary-store failure path too, in the envelope worker loops already branch on./claim-flowreports asclaim.Verification:
4a9ac56, stub adapter reportingnormal/cloudunconditionally; laptop,nix develop .#fleetunderfleet-build-lock, filtermode_line): 3 passed, 2 failed —mode_line_reports_the_route_the_verb_actually_used(stub reportednormalwheregh-read-degradedwas required) andfallback_switch_json_carries_the_contract_mode_line(nomode_linekey in the envelope). The two contract tests and the attach test passed, pinning the oracle base.0ed1186e87ae): the AGENTS.md commandcargo test --locked -p fleet-queue --lib --features client,queue-brokerinnix develop .#fleet→ 480 passed, 0 failed (477 baseline + 3 new) on the laptop, with 143turso_queuetest lines confirming the feature-gated suite actually ran; independently confirmed by fleet-run 45081347079 on the PR head — log reads back 480 passed, 0 failed, same 143turso_queuelines.Broker redeploy: NOT needed — confirmed client-side only. The diff touches only
fleet-queue's client module (src/client.rs,src/client/). No broker-served code (queue_broker.rs,turso_queue/, the verb handlers) changes; wire behavior toward the broker is unchanged (same requests, same exit codes); the only output change is the additivemode_linekey.Leg honesty note: this client holds no local replica yet, so a dead store reports
github-markers— the route the fallback switch actually hands the work to — rather than claiminglocal-replicano verb took. WiringSqliteReplicainto the client is #8583's remaining adapter work, ahead of its live drill.What of this issue's acceptance remains (issue stays open), in order:
Execution note: this lane ran entirely via the laptop route (worktree on amd-6 + fleet-run) under Drew's permanent approval, after lane-av's sandbox clone tripped the execution-risk flag — see the claim note above (comment 7087160982).
dezren39 commentedon Nov 23, 2026
Implementation handoff: exact-task status pilot
Drew approved implementing this read-only first slice. Please build it as a separate PR; leave #8581 open for the later verb and fallback slices.
fleet queue list --queue Q --task ID --json; require both selectors and preserve the existing text and bulk-list paths.found,not_found,partial, orunknown; attribute fields to their source and as-of time where available. Only a complete authoritative zero match isnot_found. Timeout, access denial, identity mismatch, or malformed/truncated results must never look like absence. Permission denial is not a reason to try another identity.Push the isolated PR ref before running all builds/test suites through Fleet on default GitHub-hosted runners. Record the exact SHA and remote handle/run URL and track asynchronously; no local builds/suites, Blacksmith by default, or live service changes.
dezren39 commentedon Nov 23, 2026
Claim — Lane WW (archer), 2026-11-23. Taking the exact-task status pilot slice from the implementation handoff above (read-only first slice): opt-in
fleet queue list --queue Q --task ID --jsonwith one exact scoped broker read and the found/not_found/partial/unknown record. Separate PR; #8581 stays open for the later verb/fallback slices. Ownership checked fresh this pass (all comments read, paginated): no live claim on this slice; keeping clear of #12756 and the claim/heartbeat work per the handoff.feat(fleet-queue): exact-task status pilot for queue list --json
Merge pull request #13309 from developing-today/lane-ww-8581
dezren39 commentedon Nov 23, 2026
Done-slice — Lane WW (archer), 2026-11-23. The exact-task status pilot is landed; #8581 stays open for the later verb and fallback slices, per the handoff.
PR #13309 merged (
fb07aa22e833, head SHA-guarded atcdc9e1036564):fleet queue list --queue Q --task ID --jsonmakes one exact scoped rich/listread via the non-exitingcall_resulttransport and prints a single record — verb, mode and route actually used (contract vocabulary via the landed mode adapter), queue, task_id, as-of, andfound/not_found/partial/unknown. Only a complete authoritative zero isnot_found; truncated or uncertified replies arepartialwith a naming detail; transport failure, denial (either leg, never retried under another identity), broker error envelopes, malformed replies, and queue identity mismatches areunknownwith their own details. No fallback is attempted or claimed: an unserved read reportsdb-degraded/unavailable. Both selectors are required and the bulk flags are refused loudly in this form; the legacy text and bulk paths are byte-unchanged, and the fleet book's queue-core chapter documents the form in the same change (DOC-01).Verification (full record on the PR): remote Fleet dispatch was run first on the pushed ref (run 45182066497) and failed on the container's missing cargo — the #13159 environment family, not a test result. The laptop run of the same command is the verification of record: fleet-queue suite 583 passed / 0 failed at the merged head, including the 10 new
exact_status_*fixture tests and both usage-consistency tests (one initial failure — TOP_USAGE's list line missing--json— was this PR's own and is fixed in the merged head).Merge pull request #12756 from developing-today/queue/21043-12538-mod…
developing-today-fleet commentedon Nov 25, 2026
Graph hygiene (#14863 slice 8): label correction (comment-only). status:in-review + status/parked are carried together — one should win when the holder next touches labels. (This issue is also now a recorded native blocker: #8583 and #8585 carry blocked_by edges to it, added this slice.) Refs #14863
developing-today-fleet commentedon Nov 29, 2026
Census 2026-11-29 (Felix):
developing-today-fleet commentedon Nov 29, 2026
Issue census — 2026-11-29
Gaps found: no
## Acceptance criteriasection.Strengths found: detailed body with context a picker-up can start from; linked to its epic/programme via epic/* labels; kind/* classification present.
Actions taken: appended
## Acceptance criteria(original body text unchanged).Priority:
priority/highretained/assigned — matches the work's urgency as evidenced on the issue; no band change.developing-today-fleet commentedon Nov 30, 2026
🤖 P0.4 owner-decision summary — Felix lane 0640-PA, 2026-11-30 (Refs #17071). Adding
user/review(intake, not a stop).State of record (verified live this pass): #8581 is open and parked (
status/parked,queue/parked,priority/high). The exact-task status pilot slice landed 2026-11-23 (PR #13309 merged); the remaining verb-contract and degraded-mode/fallback slices are the open remainder. The issue is now a recorded native blocker for #8583 and #8585 (edges added by the #14863 hygiene slice), so the park holds those two as well. No owner decision on the park is recorded in the issue's comments.Options for the owner:
Felix's read, for what it's worth: (b) is the low-regret move if the verb-contract remainder is not imminent — the dependents' work is narrower than the full unification slice. But this is the owner's call; the lane takes no position by mutating anything beyond this note and the
user/reviewlabel.