Repository navigation
Description
When a short worker finishes after a Fleet coordination pass, it remains idle until the next scheduled pass even with eligible work and open capacity. The current recovery watchdog resumes already-admitted runs; it does not select new work. In the 2026-10-08 12:30/13:00 Europe/Zurich passes, the manager started five/six workers while many remained idle, and several started runs settled before the next pass.
Source audit: agent.slot_freed in services/platform/lib/shared/event-types.ts is reserved and unbindable. Task run settlement emits a UI hint, while the ordinary task-status automation producer intentionally covers human changes. Existing Ops workflow and recovery instructions have no completion hook. This is missing behavior, not a reason to bypass task admission.
Implement and independently review the smallest durable availability wake that reuses the existing standing Fleet manager and task-start admission. A committed completion or slot release should coalesce into at most one pending project wake; the manager still selects work after fresh native task, authority and capacity reads. A live manager coalesces the signal, duplicate events do not create duplicate starts, and refused/busy starts preserve the pending signal for a permitted attempt. The existing three-start hourly circuit and its returned retryAfter remain authoritative. Do not add a second manager task, recursive self-start, secret grant, provider change or faster schedule as a bypass. Configuration declarations and provisioning remain owned by Ops and Tale CLI.
First verify the existing within-pass refill and bounded multi-gate review batches: these are already supported and should make useful progress while this change is developed. Distinguish twenty available agents from twenty safely admissible heavy phases.
Acceptance must cover actual completion-to-observation-to-distinct-start or explicit refusal, duplicate and concurrent completions, scheduled-pass races, live-manager coalescing, exact task/agent identity, stale reassignment, unknown pressure, native reserve and circuit retryAfter. Retain native run IDs and per-review verdicts. Prove no duplicate run, no lost pending wake and no guard bypass. Preserve max(20 GiB, native reserve) after predicted growth. Report any remaining between-pass delay imposed by the existing circuit honestly.
Keep the implementation and review agent-owned. This is a follow-up to the current release repair; it must not take over PR #4539, #4519 or their deployment work.
Activity
chore: merge main into the schedule triggers branch with slot wakes
tale-code-bot commentedon Oct 29, 2026
Done on
main:services/platform/backend/domains/tasks/slot-wakes.ts, migration 0168.Turning the wake on for a deployment is configuration outside this repository. Two gaps were noticed and not filed: no test asserts that a run end requests a dispatch pass, and
markAutoRetryRetiredrequests none.Closing as completed. Checked by the development cycle (task TALE-94) at
main9be5cad.