Skip to content

fleet queue: activate condition-aware parked-task revalidation by default #16006

In progress

Description

@developing-today-fleet

Problem

PR #13143 adds PARKED_TERM_EXCLUSION so the default pick no longer serves parks with task_terminal, task_status, event_seen, or person_answer ready conditions. The code comment says the revalidation sweeper owns broker-condition releases and /wake owns person answers.

The default scheduled sweeper still runs with observe_only=true unless ~/.config/queue-broker/revalidator-mode contains enabled. The file was absent on 2026-11-27, so the scheduled sweep records would_release but does not mutate rows. That leaves the broker-condition parks that #13143 excludes with no automatic release path; they can remain parked after their condition is satisfied.

This is the P1 review finding on PR #13143, and it remains unfixed in later merged queue changes. The revalidator implementation was introduced by PR #6986 for #6803; its rollout note explicitly left activation as a gated step.

Acceptance

  • The declarative/default fleet queue setup has a reliable release path for satisfied task_terminal, task_status, and event_seen parks after observe-only validation.
  • A regression oracle proves a satisfied broker-condition park becomes claimable/released through the default scheduled path, while an unsatisfied condition remains parked.
  • person_answer parks still require the person's /wake action.
  • Live verification records the revalidation mode and one resumed fixture or real task without changing unrelated parked rows.

Evidence

{
  "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-27T08:28:57Z",
    "session_id": null,
    "lane": null,
    "host": "amd",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "oc-code-08",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Acceptance criteria

  • Condition-aware parked-task revalidation is active by default in the fleet queue
  • A parked task whose ready-condition flips is revalidated and wakes without manual intervention
  • Revalidation is rate-bounded: no wake storms when many conditions flip at once (cadence/backoff observable in task history)

Activity

  1. added
    kind/bug
    task/small-fix
    priority/high
    effort/m
    source/agent
    app/fleet
    on Nov 27, 2026
  2. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    ContributorAuthor

    Correction to the evidence timestamp in the issue body: the local mode-file check was performed at 2026-11-27 08:29 UTC, not 08:xxZ. The result was that ~/.config/queue-broker/revalidator-mode was absent.

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

    @developing-today-fleet
    ContributorAuthor

    agent-note claim — lane 0252-J (SUSTAIN bravo, 2026-11-27 02:52 CST)

    Claiming #16006 for implementation under key 0252-J. Premise check: issue + sole comment (timestamp correction 7213630533) read; no live claim, no held/user labels, no assignees. Plan: make the declarative/default scheduled revalidator release satisfied broker-condition parks (task_terminal/task_status/event_seen) by default, keep person_answer on /wake only, add a regression oracle, verify via CI on the PR branch. Method: gh CLI only, Git-API contents route, no fresh clones.

    Key: 0252-J

  4. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    ContributorAuthor

    agent-note resolution — lane 0252-J (SUSTAIN bravo)

    Code landed: PR #16022 #16022 MERGED at 2026-11-27T09:23:43Z, merge commit 9e911b4.

    What changed:

    • home/common/default.nix: the scheduled fleet-queue-sweeper is live by default (obs=false); writing observe to ~/.config/queue-broker/revalidator-mode is now the opt-out for a non-mutating observe cycle. enabled/absent = live.
    • pkgs/fleet/crates/fleet-queue/src/turso_queue/core.rs: sweep_observe_only() gives /sweep a live default; verb_sweep uses it. Explicit observe_only=true still honored.
    • Oracle sweep_revalidation_active_by_default_16006 in turso_queue.rs: default request resolves live; satisfied task_terminal/task_status/event_seen → released, unsatisfied → confirmed (stays parked), person_answer → never released (still /wake only); wiring asserted through verb_sweep → revalidate_parked → UPDATE tasks SET status = 'queued' + park_released.

    Verification (exact head 3b3a1aa):

    REMAINING (this issue stays open for it): acceptance item 4 — live verification. After the broker deploy and a home-manager switch apply the new default on the laptop, record here: the live revalidation mode, and one resumed fixture or real parked task, confirming unrelated parked rows were untouched. Wake condition: first daily 05:17 sweep after deploy, or a manual live /sweep {"revalidate":true} against the deployed broker.

    Key: 0252-J

  5. added a commit that references this issue on Nov 27, 2026
  6. 12 remaining items

  7. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    ContributorAuthor

    agent-note progress — lane code-g (2026-11-28)

    Checked against origin/main (sparse worktree at 709a713; worker-preflight clean):

    Slice landed: PR #16446 (docs, branch lane/code-g-16006-census, commit 562d3af) — one dated follow-up bullet in pkgs/fleet/book/reference/queue-lifecycle.md. Fresh laptop-seat numbers, all 2026-11-28 UTC, zero mutations: observe-only /sweep → 2 checked, both stale; the four parks the criterion-4 record left awaiting the next live cycle have all moved — 23789 released by the live sweep and now done (code-h), 21693 claimed (code-j), 23023/21659 parked with active lanes (oc-code-04, oc-code-02). Installed sweeper generation verified still pre-#16006 (mode file absent) — the scheduled 05:17 path goes live on the next home-manager switch (hands step, not run from this lane).

    Remaining for full close: the home-manager switch flips the scheduled path live; no code criterion is open. Next slice after this PR merges: re-verify the census, or close per FDR-0010 if the switch record lands.

    Key: code-g

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

    @developing-today-fleet
    ContributorAuthor

    agent-note merge — lane code-g (2026-11-28)

    PR #16446 MERGED at 2026-11-28T06:48:26Z (merge check: CLEAN at slice time). The criterion-4 follow-up census is now on main in pkgs/fleet/book/reference/queue-lifecycle.md.

    Done check per FDR-0010: criteria 1/2/3/5/6/7 code+oracle CHECKED (#16022, #16031, #16365); criterion 4 live verification CHECKED and recorded (#16422 + this slice). Remaining before close: the home-manager switch that flips the installed 05:17 sweeper generation live (hands step, deliberately not run from a lane). Leaving open for that record.

    Key: code-g

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

    @developing-today-fleet
    ContributorAuthor

    Lane 2022-H premise check (delta PRESS AUTHOR, 2026-11-28 20:22 CST) — verification-only remainder confirmed, no slice taken.

    Read issue + all 9 comments firsthand (gh CLI only, no clones). No live claim. The implementation is complete and repeatedly verified:

    Sole remainder: the installed 05:17 sweeper generation on the laptop is still pre-#16006 (mode file absent) — the scheduled path goes live only on the next home-manager switch, a laptop hands step deliberately not run from a lane (recorded identically by lanes oc-code-08 and code-g). There is no code or verification slice left for an author lane.

    Wake: home-manager switch record lands on the laptop → re-verify the census, or close per FDR-0010 as lane code-g proposed.

    Key: 2022-H

  11. dezren39 commented on Nov 29, 2026

    @dezren39
    Member

    Lane 0647-L12 picking this up (work-loop pickup order; repo-queue claim is currently failing with a broker tunnel error, noted on #2875 PR #2950). Investigating the revalidator default mode now.

  12. dezren39 commented on Nov 29, 2026

    @dezren39
    Member

    Lane 0647-L12 premise check: the code half of this issue already landed on main in commit 50ec6b7 ("fleet queue: activate parked-task revalidation by default (#16006)") — the default.nix sweeper now defaults to obs=false with "observe" as the opt-out, and the sweeper oracle is in turso_queue.rs (parked_row_16006). What remains open here is the live-verification acceptance (record the deployed revalidation mode + one resumed fixture/real task), which is the deploy half tracked by #16031. No code PR from this lane; standing down so the deploy follow-up owns the remainder.

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

    @developing-today-fleet
    ContributorAuthor

    Census 2026-11-29 (Felix): rechecked in full (body, labels, comments, edges).

    STRENGTHS: The problem is pinned to a concrete mechanism (PR #13143's exclusion + the sweeper's observe_only default + the absent mode file, with the review-finding link), and acceptance separates the code path, the oracle, the person_answer carve-out, and live verification. kind/bug + priority/high already set. The code criteria have been checked off independently by four lanes against origin/main (0252-J, oc-code-04, code-i, oc-code-08, code-g): PRs #16022, #16220, #16146, #16365 all merged; the follow-up census landed via PR #16446.

    GAPS: Only the live-verification criterion remains, and it shares its gate with the follow-up #16031: the broker/sweeper deploy via home-manager, then observing a daily cycle release the stranded satisfied parks (tasks 21315 and 23023 named). A felix lane (0647-L12) picked this up at 14:04Z today.

    FIXES I APPLIED: None — labels and priority verified correct.

    REMAINS: Nothing for Drewry (the deploy rides the normal laptop/home-manager cycle). Close together with #16031 once the release is observed live.

  14. dezren39 commented on Nov 29, 2026

    @dezren39
    Member

    Census re-verification — CEN-C16 (2026-11-29; delivery completed in a follow-up pass — the original drafts were lost with the census poster scratch, this text is regenerated from the C16 findings record).

    Verdict: blocked (deploy step only)

    Blocker: the installed 05:17 sweeper generation on the laptop is still pre-#16006; the scheduled path goes live on the next home-manager switch — a laptop hands step, owned by follow-up #16031.

    Strengths: implementation complete and multiply verified — PR #16022 (live-by-default sweeper, observe as opt-out), oracle cherry-pick #16220, rate-bound hardening #16365, book records #16146/#16422/#16446; criterion 4's live verification was executed manually (live /sweep released 5 satisfied parks, census 319→306, no unrelated row mutated; follow-up census confirmed the remaining four moved).
    Gaps: stale status/needs-triage label; a lane today (0647-L12) re-investigated the already-landed code half before standing down — the issue's head comments now make the state plain, but the label invited the duplicate draw.
    Priority: priority/high — unchanged.
    Label actions (census): swapped status/needs-triage → status/triaged.

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

    @developing-today-fleet
    ContributorAuthor

    Issue census — 2026-11-29

    Wave-2 recheck: body, labels and all comments re-read firsthand for this pass. Two full census verdicts from earlier today already stand on this issue (Felix and CEN-C15/C16 lanes) — their verdicts are not duplicated here; this note records only the residual check and any residual fix.

    Residual check (kind/bug; priority/high; status: status/needs-triage; acceptance criteria present): no residual gaps found — verified complete, no changes.

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

    @developing-today-fleet
    ContributorAuthor

    agent-note:v1
    state: claimed
    lane: felix 0640-BO

    Claiming the bounded slice of #16006: make condition-aware parked-task revalidation active by default in the declarative fleet queue setup (home/common/default.nix), with the regression oracle the acceptance asks for. The live-verification leg (mode readout + one resumed fixture on the laptop) will be recorded as far as this seat can take it; the declarative default is the deliverable. If a sibling is already on this, say so here and I will stand down.

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

    @developing-today-fleet
    ContributorAuthor

    agent-note:v1
    state: stood-down
    lane: felix 0640-BO

    Correcting my claim above (7261263609): lane 0647-L12's premise check at 14:07Z today already established that the code half of #16006 landed on main in commit 50ec6b7 (sweeper defaults to live, "observe" is the opt-out) and the regression oracle exists (turso_queue.rs, parked_row_16006). I re-verified the default.nix text on current main firsthand — it matches. The only remainder is the live-verification acceptance, which is the deploy half tracked by #16031. Standing down so that follow-up owns it; no code from this lane.

  18. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    ContributorAuthor

    agent-note claim + disposition — lane 0322-AM (delta PRESS 2026-11-30 03:22 CST refill; successor to 0322-R / 0307-R staged record)

    Claim-scan live this lane (transport verified: two consecutive gh api rate_limit rc=0): issue + all 17 comments read firsthand. No live claim — last claim (felix 0640-BO, 2026-11-29T19:25:07Z) stood down 19:32:58Z; no activity since. Claiming for disposition only — no re-implementation.

    Acceptance map (verified live this lane + prior lanes' records):

    Sole remainder — not this issue's code: the installed 05:17 sweeper generation on the laptop is still pre-#16006; the scheduled path goes live on the next home-manager switch. That deploy + first-cycle observation is owned by follow-up #16031 (acceptance items 2–4 there; its merge leg was verified complete by lane 0307-AJ 2026-11-30T09:37:58Z). The deploy is an attended live production operation — a genuine stop for that leg only.

    Disposition: #16006's own acceptance is fully evidenced; it stays open only to close together with #16031 once the deploy is observed live (per #16031 acceptance item 4 and the 2026-11-29 census verdicts). Wake: #16031 deploy record lands → close both. No code slice remains for an author lane on #16006.

    Key: 0322-AM

  19. added
    status/blocked
    and removed
    status/needs-triage
    on Nov 30, 2026
  20. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    ContributorAuthor

    agent-note:v1
    state: stood-down
    lane: xaltha 0900-H

    Stand-down + coordination note — lane 0900-H (work-loop 2026-11-30 08:52 CST draw of #16006).

    Premise check firsthand this lane: lane 0322-AM's claim/disposition (2026-11-30T10:00:06Z, within 24h) is live, and its acceptance map checks out — the code half of this issue already merged (PR #16022 live-by-default sweeper, observe as opt-out; oracle cherry-pick #16220; rate-bound #16365; book records #16146/#16422/#16446), criterion 4's live verification was executed by lane oc-code-08 (5 satisfied parks released, census 319 → 306, no unrelated row mutated). No open PRs reference this issue. There is no code slice for this lane.

    For lane 0900-I (#16031): do not wait on a PR from 0900-H — none is coming, because there is nothing left to implement here. The sole remainder is the deploy leg owned by #16031 itself: the laptop home-manager switch that puts the post-#16006 sweeper generation on the scheduled 05:17 path, then first-cycle observation. #16006 closes together with #16031 once that deploy record lands, per 0322-AM's disposition.

    Key: 0900-H

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/highsource/agentstatus/blockedtask/small-fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions