refactor(working-directory): single root accessor, extras helper, and review follow-ups
workingDirectory.recordedRootOf returns the recorded root without the deployment fallback, so sandbox-policy and workspace-files share one "root, else header, else own fallback" rule instead of comparing anchor counts. dsh-sandbox exports additionalWritableRoots, the canonical extra roots beside the workspace, which sandbox-local uses for ACEs and runner arguments instead of slicing workspaceWritableRoots. sandbox-policy keeps a local within and reads working-directory as a type-only dependency; its derivation filter dedupes before dropping nested candidates. tool-skill validates the directory before reading the root, as the other root consumers do. The capability graph names api-workspace-files and api-terminal-controller so their nodes link, the workspace-changes README states the per-turn repository and root, the workspace-files solution tsconfig keeps only its face references, and the terminal spawn comment states that the root is read after validation. Review: https://github.com/deepseek-harness/deepseek-harness/pull/7820#discussion_r4463796752 Review: https://github.com/deepseek-harness/deepseek-harness/pull/7820#discussion_r4463796760 Review: https://github.com/deepseek-harness/deepseek-harness/pull/7820#discussion_r4463796781 Review: https://github.com/deepseek-harness/deepseek-harness/pull/7820#discussion_r4463796818 Review: https://github.com/deepseek-harness/deepseek-harness/pull/7820#discussion_r4463796826 Review: https://github.com/deepseek-harness/deepseek-harness/pull/7820#discussion_r4463796841 Review: https://github.com/deepseek-harness/deepseek-harness/pull/7820#discussion_r4463796849 Review: https://github.com/deepseek-harness/deepseek-harness/pull/7820#discussion_r4463796855 Review: https://github.com/deepseek-harness/deepseek-harness/pull/7820#discussion_r4463796861 Review: https://github.com/deepseek-harness/deepseek-harness/pull/7820#discussion_r4463796879
This commit is contained in:
1 parent
bb078f4e2b
commit
dac3cfc231
34 files changed
+143
-73
No files matched your search
@@ -233,7 +233,7 @@ const SERVICE_ROLES: ServiceRole[] = [
|
||||
title: 'Session working directory',
|
||||
mode: 'seam',
|
||||
implementations: ['working-directory'],
|
||||
consumers: ['tool-working-directory', 'tool-fs', 'tool-bash', 'tool-pwsh', 'subagent', 'sdk-jsonrpc-server', 'sandbox-policy', 'workspace-files', 'terminal-controller', 'workspace-changes', 'file-reference-local', 'tool-skill', 'agent-instructions', 'tool-lsp'],
|
||||
consumers: ['tool-working-directory', 'tool-fs', 'tool-bash', 'tool-pwsh', 'subagent', 'sdk-jsonrpc-server', 'sandbox-policy', 'api-workspace-files', 'api-terminal-controller', 'workspace-changes', 'file-reference-local', 'tool-skill', 'agent-instructions', 'tool-lsp'],
|
||||
note: 'Two Session projections own the effective execution directory and the workspace root it is in. The filesystem validates changes and user context reports them; model tools follow the directory while the sandbox boundary, file views, and discovery follow the root, and original metadata stays fixed.',
|
||||
},
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user