1.7 KiB
1.7 KiB
Merged and completed SpawnPod.cwd support.
Summary:
- Added optional
SpawnPodInput.cwdfor child process/tool working directory. - Validates
cwdbefore launch: absolute, existing directory, and usable under the child effective direct scope. - Preserves omitted-
cwdbehavior. - Separates runtime workspace context from tool cwd: child runtime receives inherited
--workspace, while requested tool cwd is passed separately as hidden--tool-cwd. Podnow separatesworkspace_rootfrompwd; workspace/project/Ticket/workflow/memory/Profile context usesworkspace_root, while tools/Bash/ScopedFs usepwd.- Updated maintained multi-agent/worktree guidance to use
SpawnPod.cwdas non-authority convenience while keeping delegated scope explicit.
Merged branch/worktree:
- Branch:
allow-spawnpod-child-workspace-cwd - Commits:
3dd7707,248744f - Merge commit on
develop:05df656 merge: allow SpawnPod child cwd
Validation passed after merge:
cargo test -p pod spawn_pod --test spawn_pod_testcargo test -p pod spawn_podcargo check -qcargo fmt --checkgit diff --checkcargo run -q -p yoi -- ticket doctornix build .#yoi
Cleanup completed:
- Stopped coder/reviewer Pods and reclaimed scope.
- Removed
.worktree/allow-spawnpod-child-workspace-cwd. - Deleted branch
allow-spawnpod-child-workspace-cwd.
Residual notes:
- Manual callers using a worktree cwd must still delegate readable workspace context plus explicit worktree scope;
cwdgrants no authority. - Restore behavior for already-spawned Pods with distinct tool cwd was not deeply audited beyond launch-time/nested SpawnPod behavior and remains a possible future refinement if needed.