Repository navigation
feat(batch): M3.6c shift throughput — carry-over, in-shift restart, first: glance, session cap - #670
Merged
Merged
Conversation
…irst: glance, session cap - The first tick of a shift carries the newest earlier slot's late glance/ notify PRs (never closed out, or refused only by the close-out cutoff) into its close-out path under its own grant; the digest names them. - A task an answer released is admitted whatever the brief's backlog scope. - A task parked this shift restarts this shift when the inbox answers it with more than 30 minutes left, once per answer; the writer's fetch repeats for that only while such a park is open, at most every 10 min (network-surface amendment, human-approved 2026-11-17). - first: glance sorts ready glance work before named judge tasks. - With no max-sessions: and a token-budget:, the cap is max(2 x max-workers, ceil(token-budget / 150k)); the snapshot says so. Closes #669 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016nhQ8QyUpAfUVYByA1UgVc
…s, first: glance spawn order only - an in-shift release waits in inshift_pending until its task spawns (then its ids are used): a refused spawn keeps it for the next tick, and one that never spawns leaves the park for the next shift; idempotent across plan() reruns; once per answer (a new answered question releases again); - carry-over skips a task parked on a question, reads only dated slots and the newest one that ran something, and closes out only a PR GitHub reads OPEN (a human's merge is never counted unattended); a carried task is not planned nor this shift's own for the claim gate; - first: glance orders the spawn only; the plan's selection is unchanged; - a released task passes the backlog-dip gates, as a named task does. Refs #669 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016nhQ8QyUpAfUVYByA1UgVc
…d over - carry_in skips a task the previous shift /drop'ped, whatever close-out record it has (a late or paused one has none); - an empty pr_state read is unreadable, never a refusal; - a pending in-shift release the inbox reopened or dropped is withdrawn; - the digest names each in-shift restart and its answer ids. Refs #669 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016nhQ8QyUpAfUVYByA1UgVc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #669. M3.6c of the autonomous-orchestrators epic; prompt
PyAutoMind/active/shift_throughput_carryover_and_order.md. Design choices approved by the human on 2026-11-17.What changes
carry_in).glance/notifyPRs that were never closed out, or were refused only by the close-out cutoff, closed out under the new shift's grant (merge-cap, CI, the close-out session's checks)./drop; any task the human/dropped; a task parked on a question.inshift_pendinguntil the task actually spawns; only then are its answer ids used. A release that never spawns leaves the park for the next shift.git fetchrepeats only while such a park is open and more than 30 minutes remain, at most every 10 minutes.first: glance. An optional brief line, validated bybrief --check. Readyglancework starts before namedjudgetasks; it changes spawn order only, not what the plan selects.max-sessions:and atoken-budget:, the cap ismax(2 × max-workers, ceil(token-budget / 150k)). An explicit value wins. The snapshot shows "N of M (from token-budget)".agents/conductors/batch/AGENTS.md.Changed test
test_batch_watch: a brief withtoken-budget: 5000, 3 workers and nomax-sessionsnow reads "4 of 6 (from token-budget)" instead of "4 of 8". That is the approved formula; a small budget gives 2 × max-workers.Checks
tests/test_orchestrator_throughput.py. The four clauses on a fake clock failed on main 2ca1bd3 (the halves that should stay unchanged passed there, as they should). 23 tests now, including one per review fix.bin/check_skill_line_counts.sh 200 PyAutoBrainand the tenant firewall check (repos_sync.py --check --only "tenant firewall (organ code)") both pass.Known lows, not fixed
mergesline (actor unknown), not inglance-auto-merges.Merge mode: human /prm (tier
judge).Generated by Claude Code