Skip to content

feat(batch): M3.6c shift throughput — carry-over, in-shift restart, first: glance, session cap #669

Closed

Description

@Jammy2211

Overview

M3.6c of the autonomous-orchestrators epic. Shift 2026-11-16-pm produced no stage-2 rows and idled twice:

  • A late glance PR (PyAutoGalaxy#720) arrived after the digest, and no later shift picks such PRs up.
  • An answered question (PyAutoFit#1777, answered 3 minutes after it was asked) released its task only to the next shift.
  • max-sessions 8 stopped new starts with 2.3M tokens unspent.

Plan

  • Carry-over at the first tick. Close out the newest earlier slot's glance/notify PRs that were never closed out, or were refused only by the review-at cutoff, under this shift's grant. Admit resumed tasks (question answered) past the brief's scope.
  • In-shift restart. A task parked this shift whose question is answered with more than 30 minutes left is re-spawned with the resume note. The writer's own git fetch repeats only while such a park is open, and at most every 10 minutes. This amends AUTONOMY.md "The watcher's network surface"; the human approved it on 2026-11-17.
  • first: glance. An optional brief line: ready glance work sorts ahead of named judge tasks, in selection and in spawn order.
  • Session cap from the budget. With no max-sessions:, the cap is max(2 × max-workers, ceil(token-budget / 150k)). An explicit value wins. The snapshot shows where the cap came from.
  • Tier and merge mode: effective level supervised; merge mode is human /prm.
Detailed implementation plan

Affected Repositories

  • PyAutoBrain (primary)

Branch: feature/shift-throughput-carryover

Steps

  1. Write tests/test_orchestrator_throughput.py with the four Witness clauses on a fake clock, and show them failing on main.
  2. _orchestrator.py: carry-over import on the first tick; this slot's parks released by answers with more than 30 minutes left; the bounded fetch; the derived session cap.
  3. _brief.py: first: validation, the derived cap_of, and scope admitting resume records.
  4. _batch.py: first: glance ordering.
  5. _watch.py and _digest.py: the snapshot and the "Carried over" line.
  6. Docs: AUTONOMY.md, the batch AGENTS.md and the skill reference.
  7. Full suite, skill line counts, the firewall check, an independent review, then the PR.

Original Prompt

PyAutoMind/draft/feature/pyautobrain/shift_throughput_carryover_and_order.md (moved to active/ on issue).

Activity

  1. Jammy2211 commented on Nov 17, 2026

    @Jammy2211
    ContributorAuthor

    Shipped. Merged as #670 (07db03a).

    • Carry-over: a shift's first tick closes out the last shift's late glance/notify PRs under its own grant. Only PRs GitHub reads OPEN are taken, never one refused for tier, CI or /drop, and never a question-parked task's.
    • In-shift restart: an answer with more than 30 minutes left restarts the task. The release waits until the task spawns, so a release that never spawns leaves the park for the next shift. The bounded fetch is the human-approved network-surface amendment.
    • first: glance: changes spawn order only.
    • Session cap: derived from the token budget when max-sessions: is absent.

    Checks:

    • Witness: the 4 clauses failed on main and pass (23 tests).
    • Brain suite: 2332 passed; the skill and firewall checks pass.
    • Independent Fable 5.2 review: two rounds, fixed.
    • CI: green.

    Known lows: listed in the PR.


    Generated by Claude Code

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions