Skip to content

feat: configure persistent worker worktree directory - #149

Merged
datacas merged 5 commits into
mainfrom
issue-143-worktree-dir
Oct 2, 2026
Merged

datacas merged 5 commits into
mainfrom
issue-143-worktree-dir

Conversation

@datacas

@datacas datacas commented Oct 2, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add code_cycle.worktree_dir, defaulting to .worktree, for persistent worker worktrees.
  • Validate that the path stays within the repository, including symlink resolution, and pass its resolved path to implementation and resolution stage prompts.
  • Keep disposable review clones outside the configured base; document the Orca managed-location limitation.

Diagnosis

Issue #143 identified that persistent worker worktrees had no shared configurable base and the default was not ignored. The selected scope is persistent worker worktrees; disposable review clones remain outside the repository-relative base.

Verification

  • python3 -m unittest discover -s tests — 1,004 tests passed.
  • python3 scripts/validate-package.py — valid.
  • git diff --check — passed.

Closes #143.

@datacas

datacas commented Oct 2, 2026

Copy link
Copy Markdown
Owner Author

[CCR-20261002-001] · manual · openai/gpt-6→? · unknown · schema:1

Executive summary

The change adds a validated repository-relative base for persistent worker worktrees, defaults it to .worktree, and keeps disposable review clones outside that base. The accumulated diff matches PR #149 and issue #143. No open findings remain.

Reviewed head: 8fd065c6ca96fac3c020108da5ee3bd6174ad7cc (base: main).

Findings

None.

Security triage

The repository's built-in deterministic security triggers did not match the changed paths, filenames, or PR labels. I ran a targeted path-security pass because the change adds path validation: it confirmed rejection of absolute and root-relative paths, traversal, symlink escapes, and symlink loops. No confirmed vulnerabilities were found.

Verification

  • python3 -m unittest discover -s tests — 1,004 tests passed locally.
  • python3 scripts/validate-package.py — valid.
  • git diff --check — passed.
  • git check-ignore -v .worktree/worker-test — ignored by .gitignore:9.
  • GitHub Actions on the current head: Skills, manifests, and Bash installer passed for both push and pull_request; PowerShell installer passed for both events. The Windows job ran the full Python suite and installer flows.

An earlier Windows CI attempt found that Python 3.14 does not raise for a symlink loop in non-strict resolution and that Windows treats /tmp/... as root-relative. The final code now resolves existing symlink components strictly and rejects rooted Windows paths; the current Linux and Windows runs pass.

Unverified items and residual risks

Orca's current documented new-child flow uses Orca's managed worktree location and does not expose a caller-selected base directory. This limitation is documented; worktree_dir applies where the toolkit controls the persistent worktree path. Worker location guidance is delivered through the stage prompt, and Orca's managed placement was not exercised end to end in this review.

Verdict

APPROVED — the current head was fully reviewed, all required checks passed, and there are no open blocking findings.

@datacas
datacas merged commit fb4cd97 into main Oct 2, 2026
4 checks passed
@datacas
datacas deleted the issue-143-worktree-dir branch October 2, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create worktrees inside the repo under .worktree/ (gitignored) so they are self-contained and discoverable

1 participant