Repository navigation
docs(skills): name the macOS coreutils install and the portable perl fallback wherever agents are told to use timeout (#1054) - #1055
Merged
Conversation
…fallback wherever agents are told to use timeout (#1054) Stock macOS ships no `timeout`. The /exec §3 foreground rule, the /verify example, and the #1032 HOOK_BLOCKED message all prescribed `timeout N …` with no note; an agent on such a machine gets "command not found" and either drops the limit or loops. The QA quality-checks script already falls back to `perl -e 'alarm N; exec @argv'`, so the prose now points at the same form. A behavioural test pins that fallback; the skill gate asserts the note. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_0147heJNRw8wBBujPGMqxDpR
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 #1054.
Stock macOS ships no
timeout. Three shipped surfaces prescribedtimeout N …with no note:/exec§3 (the #1050 foreground rule),/verify, and the #1032HOOK_BLOCKEDmessage. An agent on such a machine gets "command not found" and either drops the limit or loops on the hook's advice. The QAquality-checks.shalready falls back toperl -e 'alarm N; exec @ARGV'at both build sites (the issue's first draft overstated that part; corrected on the issue), so the prose now recommends the same form:brew install coreutilson macOS, orperl -e 'alarm shift; exec @ARGV' N <cmd…>. Synced to all three skill copies and all three hook copies.Tests:
timeout-fallback.test.tspins the documented fallback behaviourally (a 5 s sleep under a 1 s alarm dies early; a fast command passes through);exec-skill-foreground-rule.test.tsasserts the note in each copy.Mutation-verified: AC-2 — deleted the coreutils/fallback paragraph from
.claude/skills/exec/SKILL.md;src/lib/__tests__/exec-skill-foreground-rule.test.ts > .claude/skills/exec/SKILL.md > names the macOS install and the portable fallback for timeout (#1054)failed; restored.Mutation-verified: AC-1 — removed
alarm shift;from the documented fallback form under test;src/lib/__tests__/timeout-fallback.test.ts > portable timeout fallback (#1054) > kills the command at the alarm deadlinefailed (the sleep ran to completion); restored.🤖 Generated with Claude Code