Skip to content

Commit afc119d

Browse files
sourcehawkclaude
andcommitted
fix(skills/bounding-heavy-commands): count a server that a heavy command uses
A test suite that talks to a server outside the queue moves its load to that server. A runner that reuses a development server already listening on its port makes that server compile and grow, and no budget or cap covers it. In a baseline test, an agent saw that the growth was outside the budget and ran the suite anyway, because the skill had no rule for it. The skill now treats such a server as a part of the heavy command: give the run a port of its own so that the runner starts the server inside the bounded command, or start the server through the wrapper. Never run against a server outside the queue, and never stop it. Refs #55 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent e81ae76 commit afc119d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎skills/bounding-heavy-commands/SKILL.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ Skip for commands that only read (listing files, searching, version-control quer
2828

2929
A command that does not end, such as a server or a watch mode, holds its memory in the queue until it stops. Start it through the wrapper, and stop it when your work with it is done.
3030

31+
A server that a heavy command talks to is a part of that command: a development server, a database, or a container that a test suite sends its requests to. The work of the suite grows the server, and the budget of the suite does not count a server outside it. When the test runner can start the server itself, let it: give the run a port that no running server uses, so that the server starts inside the bounded command and its budget covers it. When the server must run on its own, start it through the wrapper. Do not run a heavy command against a server that runs outside the queue, also when it already listens on the port: an agent or a person started it without the wrapper, and the queue cannot count it. Do not stop that server either, because it belongs to someone else. Use a port of your own.
32+
3133
## The wrapper
3234

3335
```
@@ -158,6 +160,7 @@ When Python is missing or too old, and when the fault is a fault of the machine,
158160
| "The port was in use, I'll back off once and retry" | Two commands wanted one resource. Record it as `--exclusive` and run through the wrapper. |
159161
| "My command timed out, the tests must hang" | It was waiting in the queue. Run it in the background with no short timeout. |
160162
| "The subagent will find the test command on its own" | It will find the plain one. Put the bounded command lines in its prompt. |
163+
| "The server is already running on the port, the tests can reuse it" | The queue does not count a server that runs outside it, and the tests make it grow. Give the run a port of its own, so that the runner starts the server inside the bounded command. |
161164
| "Four subagents is too many for this machine, I'll dispatch two" | The queue limits the commands. Fewer subagents only makes the work slower. |
162165
| "Project memory is off, so there is no record to keep" | Discover in this session and keep the result in context. The rule does not depend on the memory. |
163166
| "The wrapper cannot run here, so none of this applies" | The fallback applies: one heavy command at a time, toolchain parallelism at half or less, and say so. |

0 commit comments

Comments
 (0)