Repository navigation
fix(spawn): give claude crewmates a safe permission allowlist - #380
Closed
mperaltamews wants to merge 1 commit into
Closed
mperaltamews wants to merge 1 commit into
mperaltamews wants to merge 1 commit into
Conversation
--dangerously-skip-permissions is confirmed broken on this machine (still prompts per tool call, stalling autonomous work; see data/learnings.md 2026-07-09). Rather than chase bypass mode - which the captain doesn't want even working, since it has no guardrails - merge a curated allow list (bin/fm-crew-permissions.json) into each claude worktree's .claude/settings.local.json alongside the existing Stop-hook turn-end signal. Allowlisted: read-only/worktree-contained git, file, and build/test/lint commands. Still gated: network egress, git push/merge, gh pr merge, sudo, rm -rf, and anything else not on the list. Verified live: `git status` runs with zero permission_denials under the allowlist; `curl` is blocked with a permission_denials entry, confirming the deny-by-default backstop still holds for anything not listed.
Author
|
Sorry, firstmate went above and beyond with this PR :D |
zeeshaanahmad
added a commit
to zeeshaanahmad/firstmate
that referenced
this pull request
Aug 13, 2026
…#2) * fix(brief): guard no-mistakes ship briefs against unreachable-CI wedges no-mistakes' ci step polls for a check result with no reachable end condition when the forge can never report one, wedging the run for its full timeout while holding branch custody (kunchenguid/no-mistakes#475, kunchenguid#666, kunchenguid#380 - open, unfixed upstream). Add bin/fm-ci-probe.sh, which derives none/present/unknown from the forge's own actions/runs history for a given repo, and wire every generated no-mistakes ship brief to run it before starting the pipeline: skip ci on "none", proceed normally on "present", and refuse to guess on "unknown". * no-mistakes(document): docs(scripts): list fm-ci-probe.sh in bin/ toolbelt inventory
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.
Summary
rm -rf, network egress,sudo, etc).bin/fm-crew-permissions.json: a curatedpermissions.allowlist of safe, worktree-containedBash(...)patterns (git read/status/add/commit/checkout, file inspection, build/test/lint tooling for bun/npm/go/cargo/python, read-onlygh pr/gh issue/gh repolookups).bin/fm-spawn.sh's claude launch path now merges this allowlist (viajq -s '.[0] * .[1]') into the worktree's.claude/settings.local.jsonalongside the existing Stop-hook turn-end signal, instead of clobbering it. Falls back to the old Stop-hook-only write ifjqor the permissions file is unavailable.rm -rf,sudo,curl/wget/network egress,git push*,git merge*,gh pr merge*— those still prompt for a human.Test plan
bash -n bin/fm-spawn.sh— syntax OKpermissions.allowandhooks.Stopin one settings fileclaude -pin a scratch dir using the generated settings.local.json:git status→ ran with zeropermission_denialscurl -s https://example.com→ blocked,permission_denialspopulated, confirming deny-by-default still holds for anything not on the list