Skip to content

fleet queue: hosted read model drops park_kind/wait_kind/ready_condition/manual_only from task reads #16667

Done

Description

@developing-today-fleet

Found by the #9178 §4 criterion-5 migration audit (2026-11-29, worker felix).

Gap. The tasks table carries park_kind, wait_kind, ready_condition and manual_only (see TASK_COLS in pkgs/fleet/crates/fleet-queue/src/turso_queue/core.rs), but the hosted (cloud) read model behind fleet queue show --json and the scoped fleet queue list --queue <q> --task <id> --json projects none of them: the returned task record has no manual_only key at all, and no park/wait/ready-condition fields. fleet queue timeline --json likewise returns event kinds and timestamps with no detail payload, so a parked event's ready-condition is not readable through any front-door verb.

Measured cost. The §4 audit had to classify 345 parked tasks from free-text progress prose (stage/resume_condition/next strings written by parking lanes) instead of the structured fields the queue itself stores. Two genuinely hands-scoped tasks (23879, 24700) could not be converted to manual_only candidates because their task records, as readable, do not show the human wait — the structured fields would have settled both either way.

Ask. Project manual_only, park_kind, wait_kind and ready_condition in the hosted task read model (show + scoped list), and include the park ready-condition in timeline event detail for parked events. Regression coverage in the hosted-worker suite comparing projected fields against the stored row.

Refs #9178.

{
  "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:32:55Z",
    "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": "4291c7d25d6699e6d0378dcce687f1935ec39c09"
    },
    "auth_subject": "felix",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Acceptance criteria

  • fleet queue show --json and the scoped fleet queue list --queue <q> --task <id> --json project manual_only, park_kind, wait_kind, and ready_condition from the stored task row.
  • fleet queue timeline --json includes the park ready-condition in the detail payload of parked events.
  • Hosted-worker regression coverage compares the projected fields against the stored row for a parked, a manual-only, and a plain queued task.
  • The fleet queue: resume-by-session, claim-any-task, and manual-only items #9178 §4 audit classification (345 parked tasks) is re-runnable from structured fields alone, without free-text progress prose.

Activity

  1. added
    kind/bug
    status/needs-triage
    queue/queued
    app/fleet
    on Nov 29, 2026
  2. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Agent-note — claim (lane felix, muse, 2026-11-29): picking this up (self-refill after the queue draw came back empty; sibling #16666 is already under a felix claim). Plan: project manual_only, park_kind, wait_kind and ready_condition in the hosted task read model (show + scoped list), include the park ready-condition in timeline event detail for parked events, with regression coverage in the hosted-worker suite comparing projected fields against the stored row — failing test first. PR will be left unmerged for review.

  3. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Progress (agent:felix): fix landed as PR #16680 (unmerged, for Felix's review).

    Root cause: the hosted /list rich projection (LIST_RICH_KEYS in pkgs/fleet/hosted-worker/src/queue.ts) carried none of manual_only, park_kind, wait_kind, ready_condition, while 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. The rich list is the read model behind queue show --json and the scoped exact-status list, so the fields never reached a hosted reader.

    Fix: the four fields added to LIST_RICH_KEYS. The timeline half needed no change — the hosted park verb already writes ready_condition into the parked event's detail and events-list returns detail verbatim; the new regression test pins that.

    Regression coverage: new test in test/queue.test.ts parks a task on a pr_merged ready-condition and compares the rich-list and scoped-list projections against the stored row field by field, plus the parked timeline event detail.

    Evidence (all remote, fleet-command on the branch):

    • Failing-first, test-only commit dd5f669, run 46244008717: queue.test.ts 38 pass / 1 fail — 'rich list drops manual_only'.
    • Fixed head cb38923, run 46245971507: queue.test.ts + d1/libsql/libsql-hrana/live-generation parity suites — pass 62 / fail 0, the new test ok.
    • A full npm test dispatch (run 46244990059) did not produce results: its Execute step never completed within 13 minutes with output redirected to a runner-local file, and the run was cancelled; the suites covering the changed verb engine and all store backends pass, and the remaining files do not touch the queue read model.
  4. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Verification addendum (agent:felix): typecheck on the PR #16680 head (cb38923) — fleet-command run 46247039358: npm install exit 0, npm run typecheck (tsc --noEmit) printed no diagnostics. The hosted-worker change is type-clean as well as suite-green.

  5. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Agent-note — triage (lane oc-code-07, OpenChamber, 2026-11-29): #16667 remains OPEN and the defect is addressed by open PR #16680, which is still OPEN/unmerged. The issue premise is confirmed by the body and PR description; PR #16680 adds the four omitted fields to the hosted rich list projection and regression coverage for rich/scoped list plus parked timeline detail. Routed by parking this issue’s triage task until PR #16680 merges. Verified with gh issue view 16667 --repo developing-today/code, gh pr view 16680 --repo developing-today/code (OPEN, mergedAt null), and fleet queue list --queue repo-health-code-pilot --status queued --limit 100 (no duplicate queued task). On resume, verify the merged fix, close #16667 with evidence and clear stale queue/triage labels. No implementation was done in this triage task.

  6. added
    priority/high
    effort/m
    source/queue-worker
    meta/enriched
    on Nov 29, 2026
  7. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Intake review

    Related: #9178 (§4 criterion-5 migration audit, 2026-11-29, worker felix — the audit that found this). Sibling gap from the same audit: #16666 (no production path can set manual_only on a live task; this issue is the read-side twin — the field cannot even be seen through the hosted read model). The stored columns exist in pkgs/fleet/crates/fleet-queue/src/turso_queue/core.rs (TASK_COLS).

    Notes: Verified live at intake — issue open, queue/queued, no live queue task; the safety net enqueued triage task 26390 this run. The measured cost in the body is concrete: 345 parked tasks classified from free-text prose, and two genuinely hands-scoped tasks (23879, 24700) left unclassifiable. The fleet monitor hits the same wall from the other side: its digest/broker reads cannot see park/wait structure either.

    Risks: Low implementation risk (projection-only change), but the hosted read model is a separate code path from the store — a partial projection (show but not scoped list, or list but not timeline) would recreate the gap in a subtler form. The acceptance criteria name all three surfaces for that reason.

    Suggested approach: Add the four fields to the hosted task projection in one pass (show + scoped list), add the ready-condition to timeline parked-event detail, and pin all of it with the hosted-worker regression suite comparing projection vs stored row.

    🤖 Agent note · filed

  8. added a commit that references this issue on Nov 29, 2026
  9. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Closing as completed: fixed by PR #16680 (merged 2026-11-29T09:39:32Z) — the hosted Worker rich projection (LIST_RICH_KEYS) now carries manual_only, park_kind, wait_kind, ready_condition; regression test pins it (failing-first run 46244008717, fixed run 46245971507: 62 pass / 0 fail across the queue + store parity suites; typecheck clean). The timeline half needed no change — hosted park already writes ready_condition into the parked event detail. — Felix

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/fleeteffort/mkind/bugmeta/enrichedpriority/highqueue/queuedsource/queue-workerstatus/needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions