[Worktree-Based Execution] Add dedicated PAW worktree execution#292
Merged
[Worktree-Based Execution] Add dedicated PAW worktree execution#292
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- fix remote-only target branch worktree creation - narrow execution-checkout contract wording to initialization/reuse - strengthen PR-strategy ancestry and isolation coverage Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- define repository_identity and execution_binding formats in agent/skill text - state explicitly that CLI sessions treat them as exact WorkflowContext strings - extend contract-content coverage for the clarified wording Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- add repo-level guidance that CLI does not execute src/ - scope worktree docs and skill contracts by platform - remove dead-template execution-contract assertions Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- replace runtime narration with direct agent instructions - keep platform differences in templated skill sections only where needed - update contract tests to assert semantics rather than explanatory phrasing Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Fix heading hierarchy in paw-git-operations: Execution Checkout Contract was breaking Strategy-Based Branching Logic's children - Merge redundant worktree-mode bullets in PAW.agent.md and paw-git-operations - Consolidate overlapping CLI recovery guidance in paw-init - Token savings: PAW.agent -34, paw-git-operations -29, paw-init -92 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Remove incorrect restriction that worktree mode requires an explicit target branch. paw-init already auto-derives feature/<work-id> regardless of execution mode — the derived branch becomes the worktree target. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…d-execution # Conflicts: # docs/index.md
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 #291
Summary
This PR adds dedicated worktree execution to PAW so a workflow can run in an isolated execution checkout while preserving the caller checkout. It hardens worktree initialization and reuse, makes execution mode a first-class contract across prompts and docs, and expands regression coverage around current-checkout and dedicated-worktree behavior.
Changes
.paw/work/worktree-based-execution/artifacts through the execution checkoutclaude-sonnet-4.6Testing
npm run lint./scripts/lint-prompting.sh agents/PAW.agent.md./scripts/lint-prompting.sh skills/paw-git-operations/SKILL.md./scripts/lint-prompting.sh skills/paw-init/SKILL.mdnpm testsource .venv/bin/activate && mkdocs build --strictcd tests/integration && npx tsc --noEmitcd tests/integration && npx tsx --test tests/skills/*.test.tscd tests/integration && npx tsx --test tests/workflows/current-checkout-regression.test.ts tests/workflows/worktree-bootstrap.test.ts tests/workflows/git-branching.test.ts tests/workflows/worktree-pr-strategy.test.tsBreaking Changes
None.
Deployment
paw.enableWorktreeExecutionnow defaults totrue; setting it tofalseforces current-checkout mode and hides dedicated worktree selection.Artifacts
.paw/work/worktree-based-execution/Notes
🐾 Generated with PAW