Commit 7f3a36c
committed
fix: address Copilot review (PR #168 round 1)
9 review comments, all addressed:
entrypoint.sh:
- /workspace/CLAUDE.md is now chmod 600 (was 644) — orchestrators may
embed credentials or private guidance; matches the mode used for
~/.claude/settings.json and ~/.git-credentials earlier in the script.
- Plugin copy is now idempotent across re-runs against a persistent
/workspace volume. Without the rm-first the 'cp -a src dst' pattern
against an existing dst/ creates a nested dst/<basename>/ tree.
tests/integration/test_entrypoint_workspace_injection.py:
- Removed unused 'json' and 'tempfile' imports.
lib/python/agentic_isolation/agentic_isolation/workspace_files.py:
- inject() now validates container_path is absolute and has a
non-empty basename, raising ValueError otherwise. Was silently
producing tar entries with empty/invalid filenames for paths like
'/' or 'relative/path'.
- Two new unit tests cover the rejection paths.
docs/workspace.md:
- Fixed Python snippet — was mixing docker_client + client variable
names; copy-paste-runnable now.
docs/superpowers/plans/2026-05-12-workspace-injection-contract.md:
- Replaced the two 'docker build providers/workspaces/claude-cli'
invocations with the canonical 'just build-workspace-claude-cli'
(docs/issues/002 had already noted this).
CLAUDE.md:
- Removed the absolute /Users/neural/... path; replaced with a link
to the sibling repo's Gitea URL.
docs/handoff-workspace-files-primitive.md:
- Deleted. The original handoff doc that kicked off this brainstorming
described the OLD per-domain contract (/etc/agentic/domain,
AGENTIC_DOMAIN_*, AGENTIC_ALLOWED_TOOLS, entrypoint preamble
templating). The merged spec + ADR-035 + docs/workspace.md
supersede it. Git history preserves it.
176 Python tests + 7 integration tests + 1 OpenAPI snapshot all green.1 parent 0f1f9ef commit 7f3a36c
8 files changed
Lines changed: 63 additions & 228 deletions
File tree
- docs
- superpowers/plans
- lib/python/agentic_isolation
- agentic_isolation
- tests
- providers/workspaces/claude-cli/scripts
- tests/integration
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
This file was deleted.
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
463 | | - | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
464 | 467 | | |
465 | 468 | | |
466 | 469 | | |
| |||
1343 | 1346 | | |
1344 | 1347 | | |
1345 | 1348 | | |
1346 | | - | |
1347 | | - | |
1348 | | - | |
| 1349 | + | |
| 1350 | + | |
1349 | 1351 | | |
1350 | 1352 | | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
1351 | 1357 | | |
1352 | 1358 | | |
1353 | 1359 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
| 111 | + | |
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
| |||
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
73 | 79 | | |
74 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
75 | 87 | | |
76 | 88 | | |
77 | 89 | | |
| |||
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
238 | 241 | | |
239 | 242 | | |
240 | 243 | | |
| |||
243 | 246 | | |
244 | 247 | | |
245 | 248 | | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
246 | 254 | | |
247 | 255 | | |
248 | 256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | | - | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
| |||
0 commit comments