Skip to content

Commit 82f7e35

Browse files
sourcehawkclaude
andauthored
fix(skills/bounding-heavy-commands): stop endless waits for free memory (#85)
* feat(skills/bounding-heavy-commands): hold a run file while a bounded command runs (#84) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(skills/bounding-heavy-commands): compute the largest budget that fits now (#84) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(skills/bounding-heavy-commands): stop the memory wait when no bounded command runs (#84) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(skills/bounding-heavy-commands): tell the agent what to do when the wrapper exits 75 (#84) Exit code 75 means that no other bounded command ran, so programs outside the queue hold the memory and the same budget fails again. The skill now gives the next move: the largest recorded row within fits, or a report to the user for a measurement or when no row fits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(skills/bounding-heavy-commands): exit 75 when no bounded command can free the budget (#84) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(skills/bounding-heavy-commands): show the largest budget that fits in the check (#84) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(skills/bounding-heavy-commands): give exit 75 its own section and a precise fits (#84) The steps after exit 75 sat between the wait rules and their bullets, so the bullets read as part of them. They now have their own section, which needs the no-memory line, since a command can exit 75 by itself. fits counts memory only; starts also counts the slots and the line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(skills/bounding-heavy-commands): end measured rows only on the wrapper's own no-memory stop (#84) - bounded_once re-raises NoMemory after the log line, so only the wrapper's own stop ends the rows. A command that exits 75 by itself is a normal non-zero exit. - The usage text gives the 75 paragraph its own block and says that fits counts only memory. - A test covers the older-wrapper scope count in read_running under the hard cap. - The --check test asserts " line=busy fits=". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(skills/bounding-heavy-commands): point the wait rules at the right section (#84) The new section after exit 75 made "see the next section" point at it. Name the section instead. The Red Flags row now says that the same budget fails again only while programs outside the queue hold the memory, as the section does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(skills/bounding-heavy-commands): describe fits as free memory in every place (#84) The check section and largest_fit_mib still said that fits would start now, but it counts memory only. Also rewrap the stop-signal paragraph. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(skills/bounding-heavy-commands): read the memory again before a no-memory stop (#84) The last bounded command can end between the read of the free memory and the count of running commands, since it ends without the memory lock. The wait now reads the memory again after a count of 0, and starts when the budget fits. A row that stops for memory after a failed row now exits 75, as its line says. The usage text says that a command can exit 75 by itself, and the lock test accepts the count from before the run file exists. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(skills/bounding-heavy-commands): tie exit 75 to the no-memory line everywhere (#84) The Red Flags row read exit 75 alone as a memory stop, but a command can exit 75 by itself. The --measure-rows entry now says that a memory stop ends the list with 75. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(skills/bounding-heavy-commands): report what the wrapper saw, not who holds the memory (#84) Without the hard cap, a command of an older wrapper holds no run file, so a no-memory stop does not prove that programs outside the queue hold the memory. The text now says that the wrapper found no bounded command running, and the agent reports budget, free and fits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(skills/bounding-heavy-commands): wait when the lock directory cannot be listed (#84) A failed listing of the lock directory gave a count of 0 running commands, so an I/O error could end in a false no-memory stop. It now gives no count, and the wrapper waits as it did before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(skills/bounding-heavy-commands): wait when the cgroup scopes cannot be listed (#84) A failed listing of the scopes counted as no bounded command running, but a command of an older wrapper shows only as a scope. The count is now unknown in that case unless a run file shows a running command, so the wrapper waits and does not stop with 75. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 35d69b0 commit 82f7e35

3 files changed

Lines changed: 392 additions & 46 deletions

File tree

0 commit comments

Comments
 (0)