Skip to content

Fleet queue: reconcile attempt-cap defaults and dead-in-queue recovery #12901

Open

Description

@dezren39

Moved from dezren39/hatch#4 on 2026-11-22 at Drewry's direction (review of hatch/hatch-personal for material that belongs in the code repo). GitHub's native transfer is unavailable (different owner; hatch-personal is also private→public), so this issue carries the original text verbatim; the original is closed with a pointer here.

Follow-up from developing-today/code#2937. Queue tooling is tracked in dezren39/hatch, not in the code worktree.

Verified gaps (2026-11-03)

  • Some queued-at-cap rows were repaired: the local sweep ledger records 69 code tasks with cap doublings and examples such as 8→16, 6→12, and 12→24. The packet's broader total (358 tasks; dead-in-queue 104→0) was not substantiated by the ledger.
  • tools/repo-queue.py warns about expected per-kind caps (6 for triage/CI investigation, 4 otherwise), but its hard validation only requires a positive integer. Its fallback is 4, and the example packet still uses 2. tools/repo-task-v1.schema.json allows up to 10.
  • Tracked migrations keep the database column default/fallback at 3; no local migration raising it to 6 was found. The live database default was not queried, so that remains unverified.
  • The active fleet-monitor instructions tell the operator/agent to double eligible queued-at-cap tasks up to 24. The digest script identifies these rows but does not perform the repair autonomously.

Requested follow-up

  1. Confirm the live database default and decide the authoritative per-kind defaults. Make enqueue validation/defaulting and the migration consistent; update the stale example.
  2. Ensure claim/health reports queued-at-cap rows diagnostically and that recovery has a single documented, auditable path (automated or explicitly operator-run) with a 24-attempt ceiling.
  3. Reconcile the historical repair count and update fleet(queue): tasks can sit at status=queued with attempts=max_attempts, permanently unclaimable — health reports them as available work #2937 with verifiable evidence.

Acceptance

Activity

  1. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Claim — Lane IC (archer), 2026-11-23 ~00:40 CST. Taking the reconciliation slice of #12901: verify the attempt-cap state of the CURRENT queue implementation (the fleet binary / queue broker in this repo — the Python repo-queue.py tooling the 2026-11-03 gaps were measured against has since been superseded), check defaults/schema/ceiling consistency and queued-at-cap diagnostics against the acceptance criteria, land any small consistency fix that remains, and post the evidence record here + the #2937 update. Premise check: issue open, no other live claim found. Working in a laptop worktree off main.

  3. added a commit that references this issue on Nov 23, 2026
  4. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Reconciliation record — Lane IC (archer), 2026-11-23. The 2026-11-03 gaps were measured against the retired Python tooling (tools/repo-queue.py, warn-only caps, schema max 10, DB default 3). The queue now lives in pkgs/fleet/crates/fleet-queue (fleet binary + broker). Verified against current main and the live store:

    1. Defaults / validation / schema — reconciled, one fix landed, one remainder filed.

    2. At-cap diagnostics + recovery — verified in place.

    3. Historical repair counts — as verifiable as they get; practice superseded.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions