Repository navigation
fleet-hosted: project manual_only and the park wait fields in the rich list read model (#16667) - #16680
Conversation
…ait fields (#16667) Failing-first regression for the hosted read-model gap the #9178 section 4 audit found: the rich /list projection behind queue show --json and the scoped exact-status list carries none of manual_only, park_kind, wait_kind or ready_condition, so a parked task's structured wait reads as absent and manual-only tasks are indistinguishable in the hosted read model. The test parks a task on a pr_merged ready-condition and compares the projected fields against the stored row; it also pins the parked timeline event's detail carrying the ready-condition.
…e rich list (#16667) The hosted /list rich projection (LIST_RICH_KEYS) carried none of manual_only, park_kind, wait_kind or ready_condition, while the stores select all four into the task row and the native broker's rich projection carries the park wait fields since #14317. The rich list is the read model behind queue show --json and the scoped exact-status list, so a parked task's structured wait read as absent and manual-only tasks were indistinguishable in hosted reads. Add the four fields to the rich projection; the parked timeline event detail already carries the ready-condition (park writes it, events-list returns detail verbatim) and the new regression test pins that too.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
|
🤖 Lane 0307-C (charlie ADVANCE LANDINGS, 2026-11-29) — verify-only note; NOT merged by this lane (issue #16667 carries lane felix's live claim, 2026-11-29T08:36:35Z, and this PR is its product). Full diff read at head cb38923 (+78/-0, 2 files): adds exactly the four keys the PR names — manual_only, park_kind, wait_kind, ready_condition — to LIST_RICH_KEYS in pkgs/fleet/hosted-worker/src/queue.ts, with a comment tying the projection to the show field list and #14317's native parity; the new test enqueues a manual-only task and a parked task and asserts all four fields survive both the rich list and the scoped list projections, plus the parked timeline event detail. Diff matches the stated purpose; no other behavior touched. Landing left to the claiming lane. |
Closes the hosted half of the #9178 section 4 audit gap filed as #16667.
Problem
The hosted (cloud) read model behind
fleet queue show --jsonand the scoped exact-status list is the hosted Worker's/listrich projection (LIST_RICH_KEYSinpkgs/fleet/hosted-worker/src/queue.ts). It projected none ofmanual_only,park_kind,wait_kindorready_condition, even though every hosted store selects all four into the task row (sharedTASK_COLS) and the native broker's rich projection has carried the park wait fields since #14317. A parked task's structured wait therefore read as absent in hosted reads, and manual-only tasks were indistinguishable — the exact observability gap that let stale manual parks hide during the #9178 section 4 audit.Fix
Add the four fields to
LIST_RICH_KEYS, with a comment recording why the projection must carry every field the show field list reads from the row. The timeline half of the ask needed no change: the hosted park verb already writesready_conditioninto the parked event's detail and the events-list returns detail verbatim — the new regression test pins that behavior so it cannot silently regress.Regression coverage
New test in
test/queue.test.ts: enqueues a manual-only task and a normal task, claims and parks the normal one on apr_mergedready-condition, then compares the rich-list and scoped-list projections against the stored row field by field, and asserts the parked timeline event's detail carries the ready-condition.Evidence
dd5f66919, fleet-command run 46244008717 — queue.test.ts executed 39 tests: 38 pass, 1 fail (not ok 30 - rich list projects the stored manual_only and park wait fields (#16667),rich list drops manual_only).cb3892318): full hosted-worker suite + typecheck dispatched as fleet-command run 46244990059 (results appended on fleet queue: hosted read model drops park_kind/wait_kind/ready_condition/manual_only from task reads #16667).Left unmerged for Felix's review.
{ "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-29T08:57:18Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": "/home/hatch/workspace/lane-16667", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/hatch/workspace/lane-16667", "repo": "developing-today/code", "branch": "felix/16667-hosted-read-model", "sha": "cb38923184f4b0746e8538b09f06c0017d663b36" }, "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.