Repository navigation
tooling: box-capacity skill + box_status.py (admission control, collision checks for agent fleets) - #4882
Conversation
…collision checks for agent fleets On 2026-10-11 the 15-minute load reached 13.5 on 12 cores with a couple of agents running: the caps count agents, not load, and the orchestrator's own gates, unwrapped pytest runs and Docker proofs ran beside the slots. - tests/tools/box/box_status.py: cores, load, CPU / memory pressure (PSI), memory available, swap, who holds each heavy-run slot and the golden lock, busiest worktrees by cores in use, containers; verdict GREEN / YELLOW / RED (decide(), pure; swap merely in use is not judged alone: paging now is memory pressure). --json for scripts. - .claude/skills/box-capacity: admission (heavy agents only into free slots, nothing on RED), what counts as heavy, overload response (pause the newest heavy worker at a checkpoint, find orphans, idle singletons), collisions (file overlap with in-flight branches, hot files, generated/ratchet files, shared runtime changes, singletons, API budget), per-launch checklist. - parallel-pr-agents: references it (box tools table + checklist). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AUWeQX7v4QBdErFbghEEEX
|
No description provided. |
|
PR #4882 @ d96e8a0: 2 failed check(s) == full-suite (failure) -- real == full-suite part 3/3 (failure) -- real |
…roc except (CodeQL) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AUWeQX7v4QBdErFbghEEEX
|
CI shepherd: the head of this PR (11056f9) is not the one a maintainer labelled |
…tatus sees short-lived processes Measured while #4882 was in CI: load 52-86 on 12 cores with two workers. pr_gates' unicode gauntlet ran --jobs nproc in every heavy slot, so two gates at once ran 24+ CPU-bound scans on 12 cores; the slot model assumed a job takes nproc / slots. - heavy-run.sh exports GG_JOB_CORES = nproc / heavy slots held when the job starts (alone: every core; two jobs: half each). pr_gates' gauntlet and unicode_gauntlet's --jobs default read it (CI runners: unchanged). - box_status: a process born during the sample counts all its ticks (the gauntlet's scans live ~1 s and were invisible); a lock whose taker has exited is attributed to the processes holding its descriptor. - test_box_tools: the fair share (alone vs beside a held slot). - box-capacity skill: parallel tools size themselves from GG_JOB_CORES. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AUWeQX7v4QBdErFbghEEEX
|
Two commits added after review:
|
|
No description provided. |
|
PR #4882 @ 80b421c: 1 failed check(s) == full-suite part 3/3 (failure) -- real |
|
No description provided. |
…EADS=1 on CI) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AUWeQX7v4QBdErFbghEEEX
|
CI shepherd: the head of this PR (6f27358) is not the one a maintainer labelled |
|
No description provided. |
Why
Agents share one box. The concurrency caps count agents, not load. On 2026-10-11 the 15-minute load reached 13.5 on 12 cores while only a couple of agents ran: the orchestrator's own gate runs, unwrapped pytest runs and Docker proofs ran beside the
heavy-run.shslots. Overload isn't only slow. Load-induced regex timeouts faked 2,911 golden diffs (#4247), and proofs time out.What
tests/tools/box/box_status.py(--jsonfor scripts) reports:decide()is pure and tested. Swap that's merely in use isn't judged on its own, because it can be old pages from a spike long gone; paging now shows as memory pressure..claude/skills/box-capacitycovers:heavy-run.sh, the orchestrator's own runs included);kill-by-cwd.sh --dry-run, stop idle singletons;parallel-pr-agentsreferences it, in the box tools table and the checklist.Checks
test_box_status.py: 6 pass. It exercises only the puredecide(), so it also runs on the Windows and macOS legs.pr_gates --fastPASS;--ratchets7/7 PASS, nothing skipped.🤖 Generated with Claude Code
https://claude.ai/code/session_01AUWeQX7v4QBdErFbghEEEX