Repository navigation
Commit a1840b8
feat(skills/bounding-heavy-commands): bound each command before it is measured, and keep a row per --cpus
Agents skipped the step that makes a recorded command bound its own parallelism. It was one of six discovery steps, nothing blocked a measurement until it was done, and an entry without a self-bound looked complete. So a session could measure the plain command, record the peak of a command that nothing limits, and later runs waited for twice the slots they needed. Baseline runs also showed that an agent picked the first --cpus by itself, kept only one of two entries measured at different --cpus, and refused a smaller --cpus as if it were a lowered budget, which threw away a finished measurement.
Discovery now bounds the command first, as a gate, and measures the bounded line at --cpus of half the machine's processors. Each record entry has a required self-bound field and a table with one row per --cpus: a new --cpus adds a row, the same --cpus replaces its row, and one row is the default. A row at a smaller --cpus is the way to start sooner. When none exists, the run stays queued and the smaller row is measured under the budget of the smallest row for next time.
Closes #53
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 122f84f commit a1840b8
1 file changed
Lines changed: 34 additions & 19 deletions
0 commit comments