Skip to content

Wake Fleet coordination when workers finish eligible work #4540

Closed

Description

@yannickmonney

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

  1. added
    agent-ready
    on Oct 29, 2026
  2. tale-code-bot commented on Oct 29, 2026

    @tale-code-bot
    Collaborator

    Done on main:

    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 markAutoRetryRetired requests none.

    Closing as completed. Checked by the development cycle (task TALE-94) at main 9be5cad.

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

    agent-readyimprovement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions