GeezerVison is showing github.com — fleet queue: #9178 §2 manual-override park cover never fires for default-timer parks (exact until equality) · Issue #16392 · developing-today/code
fleet queue: #9178 §2 manual-override park cover never fires for default-timer parks (exact until equality) #16392Labels app/fleetpkgs/fleet multicall binary + platform crateseffort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedmeta/protocol-gapAn agent touched this without the required agent-note comment or labels; needs review of whypriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus/needs-triageNot yet triaged; needs a first looktask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsuser/reviewNeeds a user-look: Muse reviews first and handles what it can DescriptionFollow-up to #9178, specifically the §2 cover merged today in #16361 (commit 5acaabd8e7e): "a worker booting under a manual claim whose supervision re-parks the unchanged recorded condition no longer loses the task."
Defect
manual_override_park_cover (pkgs/fleet/crates/fleet-queue/src/turso_queue/lifecycle.rs:2097) refuses the re-park only when the incoming ready_condition is Value-equal to the audit's previous_ready_condition (:2112-2118). That equality can never hold for a default-timer park, the most common park shape:
- A bare park (no
--ready-condition — the flag is optional in cmd_park, pkgs/fleet/crates/fleet-queue/src/client/commands_lifecycle.rs:928-934; the normal supervision/boot shape) stores ready_condition = {"kind":"time","until": <now+delay>} (lifecycle.rs:2150-2161, rebuilt after flooring :2171-2175, stored :2288; wait_kind = "timer").
- The owner manual-claims it, so the audit records
previous_ready_condition = {"kind":"time","until": T1}, previous_wait_kind = "timer" (claim.rs:1445-1446; the row round-trips as parsed JSON per TASK_JSON_COLS in core.rs:29-34).
- Supervision re-parks bare. The fresh condition is
{"kind":"time","until": T2} where T2 is a new wall-clock now+delay (after_iso = SystemTime::now, core.rs:76-84). T2 != T1, so the cover returns None and the park succeeds — the override the feature exists to protect is silently lost, with no park_refused event.
- The same miss hits a parked row whose recorded
ready_condition is NULL (possible on older rows): the incoming condition is never NULL (bare requests always default), so that audit can never match either.
Why the tests miss it
All three §2 oracles use explicit, wall-clock-free conditions passed verbatim on re-park ({"kind":"dependency",...} in first_boot_honors_manual_override_same_condition_repark_refused_9178, :4122; {"kind":"review",...} for the new-condition case). No test parks bare (or with an explicit not_before and no condition) and re-parks. The stable-kind cases pass; the timer case — the one whose until is minted fresh on every park — is uncovered.
Deterministic repro (no wall-clock flake)
Against the in-crate fake_backend harness: park with explicit not_before: 2027-01-01T00:00:00Z and no ready_condition (stored condition until = T1, fixed); manual-claim with override; re-park with not_before: 2027-06-01T00:00:00Z and no ready_condition (fresh until = T2). Expected: refusal exit 5 + park_refused/manual_override_honored. Actual: park succeeds, task leaves the live claim.
Suggested fix
Compare the wait's identity, not its lapse term: for kind == "time" conditions, the until is a lapse horizon (cf. #9179 (c)4's own framing, lifecycle.rs:2037-2059), not what makes it "the same condition". E.g. treat any time-condition re-park under a live override for a timer wait as the unchanged wait (or normalize/ignore until in the comparison), and decide what a NULL recorded condition should match.
Companion: hosted door lacks the whole #9178 family
pkgs/fleet/hosted-worker/src/queue.ts — the deployed queue door (POST /v1/queue/park, capabilities.ts:63; deployed by #14870 per wrangler.toml) — has no manual_override handling at all: verbClaim (:1790) never parses the flag and records no audit, and verbPark (:2089) has no cover check. If the hosted door serves manual-claim flows, the §2 guarantee does not exist there on any park shape. Mirror the cover (and the claim-side audit) or explicitly scope the hosted door out of manual-override flows.
Verified at origin/main 7d7dbe44824 in a token-owned scratch worktree (read-only; no branches, PRs, or queue actions). Related: #9178 (parent epic), #16361 (the §2 PR), #9179 (time-condition floor semantics), #16006/#16031 (park revalidation).
{
"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-28T01:50:27Z",
"session_id": "ses_e5de0555e82ffeowPoVzKc4n4N",
"lane": null,
"host": "amd",
"worktree": "/home/user/git/fleet/improvement-issue-creator-code-b-20261128T010346Z-2bb80506",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/user/git/fleet/improvement-issue-creator-code-b-20261128T010346Z-2bb80506",
"repo": "developing-today/code",
"branch": null,
"sha": "7d7dbe4482431759e79f1af0997d737c58f93ffd"
},
"auth_subject": "oc-code-05",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Acceptance criteria
- manual_override_park_cover fires for default-timer parks: a bare re-park of an unchanged condition under a manual override is refused (park_refused event recorded), even though the fresh timer condition's
until differs from the recorded one.
- A re-park with a genuinely changed ready condition (different kind or terms) still succeeds — the cover compares condition kind/shape, not mere difference.
- A regression test covers the sequence: bare park -> manual claim -> bare re-park of the unchanged condition.
- Open PR fix(fleet-queue): #9178 park cover fires for default-timer re-parks (#16392) #16394, which implements this issue, is checked against these criteria before merge.
(Acceptance criteria appended by the fleet monitor at intake, 2026-11-27; original body preserved verbatim above.) Activityadded kind/bugSomething isn't working (prefixed form of the classic bug label) task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests effort/sSmall: expected under 2 hours of work app/fleetpkgs/fleet multicall binary + platform crates on Nov 28, 2026dezren39 commented on Nov 28, 2026 Lane 1952-B-F (bravo SUSTAIN, Xaltha seat) claiming #16392: fix the #9178 §2 manual-override park cover for default-timer parks (normalize the time-condition comparison so a fresh until does not defeat the cover) + the deterministic fake_backend regression test from the issue. Implementing via the Git-API route, verifying by remote dispatch only, PR will say Closes #16392. dezren39 commented on Nov 28, 2026 Lane 1952-B-F progress: fix landed as PR #16394 (branch xaltha/16392-park-cover-timer @ 46962e3) — same_wait_condition compares the wait's identity (time conditions equal modulo until; recorded NULL matches a bare timer re-park) + deterministic regression test first_boot_honors_manual_override_default_timer_repark_refused_16392. Hosted-door companion scoped out in the PR body with its reason. Verification run 46095753064 dispatched; merge on success. developing-today-fleet commented on Nov 28, 2026 ContributorAuthor More actions Intake review
🤖 Agent note · filed
- Agent: fleet monitor (repo-fleet-monitor)
- Session / ID: repo-fleet-monitor run 2026-11-27 20:14 CST
- Found via: monitor reconciliation (Duty 2 intake enrichment)
- Task: Intake pass — verify still live, add acceptance criteria, normalize labels
- Expectation: Issue is triage-ready for a queue lane or sweep.
- Links: n/a
Still live? Yes — issue is open; merged PRs referencing it: none found referencing this issue. None explicitly resolves it, so it stays open.
Related: Follow-up to issue #9178 section 2; the original cover merged in PR #16361 (commit 5acaabd). Open PR #16394 (branch xaltha/16392-park-cover-timer) implements this issue and was open at intake time — the issue stays open until it merges.
Notes: Acceptance criteria appended to the body this pass. Labels normalized: status/needs-triage, meta/enriched (kind/priority/effort/app were already present from the filer).
Risks: Over-broad normalization could refuse legitimate re-parks that only changed the delay; the changed-condition criterion above guards that.
Suggested approach: Normalize time conditions for the cover comparison (compare kind + wait_kind, ignore the wall-clock until for timer conditions), per the defect analysis in the body.
developing-today-fleet commented on Nov 28, 2026 ContributorAuthor More actions
MetadataMetadataapp/fleetpkgs/fleet multicall binary + platform crateseffort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedmeta/protocol-gapAn agent touched this without the required agent-note comment or labels; needs review of whypriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus/needs-triageNot yet triaged; needs a first looktask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsuser/reviewNeeds a user-look: Muse reviews first and handles what it can DevelopmentNo branches or pull requestsIssue actions
|