Skip to content

fix: allow cross-cwd managed worktree patches#7

Open
andrei-hasna wants to merge 1 commit into
mainfrom
task/42bbcc3e-worktree-guard-target-detection
Open

fix: allow cross-cwd managed worktree patches#7
andrei-hasna wants to merge 1 commit into
mainfrom
task/42bbcc3e-worktree-guard-target-detection

Conversation

@andrei-hasna

Copy link
Copy Markdown
Contributor

Summary

  • recognize absolute file-tool targets inside a different verified linked managed worktree
  • fail closed for malformed/standalone repos, Git metadata, roots, symlink/hardlink escapes, and forged worktree provenance
  • cache managed-root discovery across multi-file patches

Verification

  • bun test src/hooks/codewith-native.test.ts — 47 passed
  • bun test — 876 passed
  • bun run typecheck
  • git diff --check
  • staged gitleaks scan — no leaks
  • fresh independent adversarial review — GO, no P0/P1

No global hook install, package publication, deployment, or fleet rollout is included.

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.

1 participant