Repository navigation
feat(claude): align global allow rules with planwright and add the hub's relay rules - #226
<
8000
div class="d-flex flex-items-center gap-2 flex-shrink-0">Merged
Merged
Conversation
…hub's live rules Unpin the plugin-cache rules to a version glob so a planwright update no longer strands them, and keep the read-only and hub rules the hand-started mission-control hub needs, since planwright's profiles reach only the sessions it launches. Set the offload tier and mission-control guidance in the adopter layer.
…ane kills Keep only the answer rule on a version glob, which also matches unrelated commands containing its path, and document that exposure. Pin pending and reclaim back to the installed version. Allow the hub to kill one pane by id, with ask rules for a trailing flag or a tmux command separator.
…ssion The rule names a fixed ssh alias, rendered from the existing LAN item's server host and user with no agent or environment forwarding, so the public file carries no hostname and no wildcard lets extra remote words through.
The pending and reclaim rules now take `*` for the version directory like the answer rule, so no rule goes stale on a planwright update. The pin check takes only the tracked settings and fails on any concrete version; CI runs its suite. The broad tmux send-keys, tmux kill-window and gh pr review allows leave the global layer, since a global allow reaches every dispatched worker.
The per-repo .claude/settings.json the hub's broad rules would live in is gitignored today, so name the un-ignore it needs. The relay alias's comment claimed no environment forwarding, but the system-wide locale SendEnv still applies; say what the block actually withholds.
…c-corp-worker-9b008db4 # Conflicts: # roles/ssh/files/config.lan.tpl
…c-corp-worker-9b008db4
… kept mission-control writes The template now declares mission_control_guidance, so the no-snapshot render test checks that the planted write is dropped rather than that no guidance line exists, and the template comment no longer says a knob write is rendered over.
…c-corp-worker-9b008db4
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.
Brings the global Claude allow list in line with what planwright already provides. Carries over the rules that are live on this machine but that the next render would drop (the merge replaces
permissions.allowwholesale). Adds the mission-control hub's new pane-kill and relay rules.Nothing is removed. planwright's allow layers (the worker, tower and mission-control
--settingsprofiles and their command guards) reach only the sessions planwright launches with--settings. The plugin's own global hooks run only the deny floor, never an allow guard. The hand-started hub and ordinary interactive sessions get none of it, so every read-only rule here is still needed. For the record,config/worker-settings.jsonduplicatesgit status,git rev-parse,git ls-files,git merge-base,lsandstat, but only for the workers planwright launches.Allow and ask rules
Bash($HOME/.claude/plugins/cache/planwright/planwright/*/scripts/fleet-streamjson.sh answer *): renders to the rule already live. Accepted exposure (your pick):*spans spaces and/.., so this rule also pre-approves any command that merely contains that path and verb. planwright's own matcher model matches<cache>/0.67.0/../../../../../../bin/rm -rf <dir> /scripts/fleet-streamjson.sh answer y. This is documented indocs/claude-config.md.pendingandmc-reclaim.sh reclaimstay pinned, bumped from 0.66.0 (stale since the 0.67.0 install) to0.67.0, so neither shares that exposure.scripts/claude-planwright-pin-check.shnow treats a*version as a glob rather than a stale pin, so the check passes with theanswerrule present.Bash(gh pr review:*),Bash(tmux send-keys:*),Bash(tmux kill-window:*): previously live-only. Worth your look: a global allow reaches every session, dispatched workers included, andsend-keyscan type into any pane. planwright's tower guard never approves it. A narrower home would be the hub repo's own.claude/settings.local.json.Bash(tmux kill-pane -t %*), with ask rulesBash(tmux kill-pane -t %* -*)andBash(tmux kill-pane *;*): a flag after the pane id (-akills every other pane) or a;(tmux's own separator) prompts instead. Checked in planwright's matcher model:-a,-Za,\; kill-server,;kill-serverand a second-tall prompt, and-t %691is allowed.Bash(ssh -o BatchMode=yes -o ConnectTimeout=10 planwright-relay 'tmux load-buffer - && tmux paste-buffer -t %570 && sleep 1 && tmux send-keys -t %570 Enter'): exact, no wildcard, because any extra word would run on the remote side. Moving the remote pane means editing the rule.The
planwright-relayssh aliasroles/ssh/files/config.lan.tplgains aHost planwright-relayblock, with no agent forwarding andBatchMode yes, so the public rule names no host. No new 1Password field is needed: the alias reuses the existingserver_hostandserver_userfields on the LAN item (dotfiles-lan-ssh), which already point at the relay host. If the relay host ever differs from the server, addrelay_hostandrelay_userfields and point the block at them. The alias exists only after the LAN config renders (scripts/ssh-lan-config-sync.sh, run by the playbook), and the hub has to switch its command to the alias.planwright adopter layer (requested through mission control)
Keys checked against the installed planwright's
config/defaults.ymlanddocs/options-reference.md. None was already set in the rendered layer.allocation_model_offload: sonnet,allocation_effort_offload: medium: the tier/offloadlaunches at.mission_control_guidance: standard.The render was not run. Merging and running the role is yours.
Checks and review
lefthook pre-commit is green on every commit, including the
claude-settings-merge,claude-statusline,op-render,skill-contractsandinstruction-budgetsuites.scripts/ssh-lan-config-sync-test.shpassed 20 assertions with 0 failures, with a new check that the relay alias renders without agent forwarding.claude-planwright-pin-check.shagainst the live install: OK.A render dry-run against a copy of the live
~/.claude/settings.json(before the pane-kill and relay commits) kept every live entry and added onlypendingandreclaim.Local snag, not caused by this PR: the merge, statusline and op-render suites fail when mise's
jqshim is first on PATH, because they run under a fakeHOMEwhere mise refuses its config. They pass with the realjqbinary first, and every commit ran that way.identifier-check.shcould not run: there is no~/.config/dotfiles/private-identifierson this machine. I checked by hand that no file this PR touches names the relay host or user.Polish (inline) stopped at a hard pause on the version glob, which went to Diego as a decision. It then converged. Panel-review (codex, nested) converged at iteration 1 with nothing to apply. Its declined items: the paste-buffer race (single hub, so no concurrent relays), the fixed
%570pane (as picked), and a false claim that the;ask rule never fires (the split reads escapes, per MB-3).The cadence's isolated polish step ran in-session: in its tmux window, the prompts could not be answered, and mission control closed it. The panel-review record's start time is wrong: written as
2026-11-06T22:40:00Z, it actually started around 05:00Z on 2026-11-07. The records are append-only, so the correction lives here.Synced with main by a merge commit (no rebase). The only conflict was
roles/ssh/files/config.lan.tpl, which keeps both main's offload host block and this PR'splanwright-relayblock. A follow-up commit scopes the relay test's assertions to its own block, since main's offload block also setsForwardAgent no.After the sync, polish and a Gemini panel review ran in-session (a third worker was over the cap). Panel findings were dropped or declined on validation. cubic did not review: the operator kept its quota for other PRs, and the panel review stands in.
Synced with main again by a merge commit (main 0dcc648, which fixed the inherited
lintfailure). The merge was clean, but main's new overlay-render test asserted nomission_control_guidance:line after a no-snapshot render, which this PR's template now declares; the follow-up commit checks that the planted value is dropped instead, and rewords the template comment, since main now keeps mission control's own writes across a render.Polish and a Gemini panel review ran in-session on the new head. All Gemini findings were declined or dropped on validation (details in the run 000003 records). cubic did not review: its quota is reserved for other PRs, and the panel review stands in.
Synced with main again by a merge commit (main e296c92, which fixed the lint job's hang). The merge was clean and the branch's own delta is unchanged. Polish ran one inline pass (a small, narrow diff) and found nothing; the pin-check, op-render, ssh LAN sync and settings-merge suites pass. A Gemini panel review raised four items, all declined on validation: a claimed
&&injection through thetmux kill-pane -t %*allow (Claude Code checks each chained subcommand against the rules separately), the matching doc claim, a missing reference row for planwright's ownmission_control_guidanceknob, andIdentityAgent noneon the relay alias (it authenticates with the agent;ForwardAgent noalready keeps the agent off the remote). cubic did not review: its quota is reserved for other PRs, and the panel review stands in.Cadence records
Steps at
pre-implementation(run000001)Ended on
57a40a1136f6.Steps at
pre-ci(run000001)Ended on
ec5afea2ed7c.Steps at
convergence(run000001)Steps at
pre-pr(run000001)Ended on
57a40a1136f6.Steps at
pre-implementation(run000002)Ended on
af7c1696b22c.Steps at
pre-ci(run000002)Ended on
4eed759d2849.Steps at
convergence(run000002)Ended on
3f5ec5d24223.Steps at
pre-pr(run000002)Ended on
3f5ec5d24223.Steps at
post-pr(run000002)Ended on
3f5ec5d24223.Steps at
pre-implementation(run000003)Ended on
d92c37b736de.Steps at
pre-ci(run000003)Ended on
d92c37b736de.Steps at
convergence(run000003)Ended on
9800629e8451.Steps at
pre-pr(run000003)Ended on
9800629e8451.Steps at
post-pr(run000003)Ended on
9800629e8451.Steps at
pre-ci(run000004)Ended on
5db2c9f312d9.Steps at
convergence(run000004)Ended on
5db2c9f312d9.Steps at
pre-pr(run000004)Ended on
5db2c9f312d9.Steps at
post-pr(run000004)Ended on
5db2c9f312d9.Summary by cubic
Merges the global Claude allow rules with what
planwrightalready provides and carries over the hub's live-only rules that the next render would drop, since the merge replacespermissions.allowwholesale. Nothing is removed:planwright's own allow layers reach only the sessions it launches with--settings, so the hand-started hub and ordinary interactive sessions still need these rules.fleet-streamjson.sh answerandpending,mc-reclaim.sh reclaim) write the version directory as*, so no rule goes stale on aplanwrightupdate. The glob pre-approves any command containing that path and verb, an accepted exposure documented indocs/claude-config.md. The pin check now takes only the tracked settings, fails on any concrete version, and CI runs its suite.gh pr review,tmux send-keys, andtmux kill-windowstay out of the global layer, since a global allow reaches every dispatched worker andsend-keyscan type into any pane; their durable home would be the hub repo's own per-repo.claude/settings.json, once its un-ignore is tracked.tmux kill-pane -t %*is allowed, with ask rules prompting when a flag after the pane id (-akills every other pane) or a;separator appears.ssh ... planwright-relay '<tmux paste>'command with no wildcard; any extra word would run on the remote side.planwright-relayssh alias reusing the existing LAN item's server host and user fields — no new 1Password field — with no agent forwarding andBatchMode yes. The system-wide localeSendEnvstill applies. The alias exists only after the LAN config renders.planwrightoffload tier (allocation_model_offload: sonnet,allocation_effort_offload: medium) andmission_control_guidance: standardin the adopter layer. Since the template now declares the guidance default, the overlay render test checks a planted write is dropped rather than that no guidance line exists, and the template comment no longer claims a knob write is rendered over.Written for commit 5db2c9f. Summary will update on new commits.