Repository navigation
enhance worktree consent during implementation (PRI-974) - #1124
Merged
Merged
Conversation
Collaborator
Author
|
This change is part of the following stack: Change managed by git-spice. |
This was referenced Apr 10, 2026
arittr
force-pushed
the
feat-add-multi-repo-worktree
branch
2 times, most recently
from
April 13, 2026 18:44
4b07664 to
b1e9711
Compare
arittr
force-pushed
the
add-worktree-consent-step
branch
from
April 13, 2026 18:46
2d446f0 to
72dd30d
Compare
4 of 5 tasks
…-974)
Drill benchmark showed 0/4 consent compliance across both Claude Code
and Codex. Root cause: consent was buried inline in Step 0's conditional
branch. Agents anchor on the next bash command and skip prose.
Fix: promote consent to its own numbered section with imperative framing
("REQUIRED STOP", "Do NOT proceed without an answer") and exact output
template. Also adds explicit "no" path — users who want to work directly
on their current branch skip to Step 3 with no worktree creation.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
… 0.5 (PRI-974) Agents consistently skipped Step 0.5 (consent gate) because fractional numbering signals "optional afterthought" and the prose-only step was invisible to code-block anchoring. The fix inverts the structural gravity: the default path now works in place, and worktree creation is an off-ramp requiring explicit user request. - Renumber to clean integers: Step 1 (detect) → 2 (offer) → 3 (create) → 4 (setup) → 5 (verify) - Step 2 defaults to Step 4 (in-place); Step 3 only on explicit user ask - Step 2 includes a code block so agents register it during execution - Add "creating without being asked" to Common Mistakes - Add anti-inference red flag: consent from task/plan/skill invocation doesn't count Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Post-inversion cleanup: - executing-plans, subagent-driven-development: update Integration description from "Ensures isolated workspace" to "Detects workspace environment and offers worktree isolation on request" - codex-tools.md: update step references (Step 0→1, Step 1→2) - using-git-worktrees Step 2: restore "silence → ask once more" instead of "silence → work in place" to preserve safety net for confused users Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
The skill previously required an explicit reply to its "do you want a worktree?" dialogue, which produced obtuse UX when the user invoked the skill by name — agents had to stop and ask "do you want a worktree?" even though the user just asked for the skill whose purpose is worktrees. Loosen Step 2 to recognize the invoking turn as consent: if the user's most recent message named the skill, asked for a worktree, or asked for an isolated workspace, proceed directly to Step 3 without re-prompting. The gate still fires for the transitive case (agent infers isolation from a feature description) — that remains the #991 failure mode. Also trim "or skill invocation" from the anti-inference Red Flag and destale the Integration section now that SDD/executing-plans no longer require a worktree. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
arittr
force-pushed
the
feat-add-multi-repo-worktree
branch
from
April 13, 2026 23:35
b1e9711 to
ddbba8e
Compare
arittr
force-pushed
the
add-worktree-consent-step
branch
from
April 13, 2026 23:35
72dd30d to
884b1a5
Compare
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.
What problem are you trying to solve?
Drill benchmark showed 0/4 consent compliance across both Claude Code and Codex (PRI-974). Agents skipped the worktree consent gate because it was buried as prose inside Step 0's conditional branch. Agents anchor on code blocks and skip prose — the consent question was invisible to them.
What does this PR change?
Inverts the worktree skill's default: the default path now works in place, and worktree creation is an explicit off-ramp requiring user request. Renumbers steps to clean integers (1-5), adds anti-inference red flags, and restores the silence safety net. Also updates stale references in executing-plans, subagent-driven-development, and codex-tools.
Is this change appropriate for the core library?
Yes — this fixes a compliance failure in the core
using-git-worktreesskill that affects all users. Agents were creating worktrees without consent, which is a destructive action.What alternatives did you consider?
Does this PR contain multiple unrelated changes?
No. All three commits address the same issue (PRI-974): the first promotes consent to its own step, the second inverts the default, the third cleans up stale references from the restructuring.
Existing PRs
Environment tested
Evaluation
Rigor
superpowers:writing-skillsandcompleted adversarial pressure testing (paste results below)
rationalizations, "human partner" language) without extensive evals
showing the change is an improvement
Human review