Skip to content

docs(skills): name the macOS coreutils install and the portable perl fallback wherever agents are told to use timeout (#1054) - #1055

Merged
admarble merged 2 commits into
mainfrom
fix/timeout-portability
Sep 12, 2026
Merged

admarble merged 2 commits into
mainfrom
fix/timeout-portability

Conversation

@admarble

@admarble admarble commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1054.

Stock macOS ships no timeout. Three shipped surfaces prescribed timeout N … with no note: /exec §3 (the #1050 foreground rule), /verify, and the #1032 HOOK_BLOCKED message. An agent on such a machine gets "command not found" and either drops the limit or loops on the hook's advice. The QA quality-checks.sh already falls back to perl -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 coreutils on macOS, or perl -e 'alarm shift; exec @ARGV' N <cmd…>. Synced to all three skill copies and all three hook copies.

Tests: timeout-fallback.test.ts pins 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.ts asserts 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 deadline failed (the sleep ran to completion); restored.

🤖 Generated with Claude Code

…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
@admarble
admarble merged commit eba16d0 into main Sep 12, 2026
9 checks passed
@admarble
admarble deleted the fix/timeout-portability branch September 12, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant