Skip to content

fleet-hosted: project manual_only and the park wait fields in the rich list read model (#16667) - #16680

Merged
developing-today-fleet[bot] merged 2 commits into
mainfrom
felix/16667-hosted-read-model
Nov 29, 2026
Merged

developing-today-fleet[bot] merged 2 commits into
mainfrom
felix/16667-hosted-read-model

Conversation

@developing-today-fleet

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

Copy link
Copy Markdown
Contributor

Closes the hosted half of the #9178 section 4 audit gap filed as #16667.

Problem

The hosted (cloud) read model behind fleet queue show --json and the scoped exact-status list is the hosted Worker's /list rich projection (LIST_RICH_KEYS in pkgs/fleet/hosted-worker/src/queue.ts). It projected none of manual_only, park_kind, wait_kind or ready_condition, even though every hosted store selects all four into the task row (shared TASK_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 writes ready_condition into 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 a pr_merged ready-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

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-bot with what you need.

Felix added 2 commits November 29, 2026 08:43
…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.
@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: 2a9e013f-a7f8-4ac9-be0c-1462d9a4ea5a

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

🤖 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.

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