Repository navigation
docs(skill): tell local agents about per-workload sandboxes and the new pack rules - #617
Conversation
…ew pack rules - SKILL.md: --sandboxes N --mount read-only|writable (rossoctl#604), when to use writable vs read-only, the 400 when the feature is off, the caps - contextctl v0.3.0 pack filters: .claude and gitignored files skipped - spawn --writable vs a --mount writable workload; changes never reach the local tree either way - references/internal-flow.md: per-workload sandboxes Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Jeremy Cohn <[email protected]>
ingpaolodettori-dev
left a comment
There was a problem hiding this comment.
Summary
Docs-only update to the moca-delegate-task skill for per-workload sandboxes (--sandboxes/--mount) and contextctl v0.3.0 pack rules. I checked the claims against main 2b61839 and the context-service v0.3.0 release notes. They are accurate: the 5-minute wait (READY_TIMEOUT_MS), 400 workload_field_not_allowed when the provisioner isn't configured, the 2-per-workload and 4-per-owner defaults, --include-claude/--no-ignore, and --writable being a no-op on a writable mount. One suggestion about ordering on a shared writable tree.
Author: moonlight16 (MEMBER — maintainer)
Areas reviewed: Docs (agent skill)
Agent/IDE config (.claude/.vscode): none
Commits: 1 commit, all signed-off: yes
CI status: passing (k8s-kind-e2e not run, docs-only paths)
| ``` | ||
|
|
||
| - `create` then waits, up to 5 minutes, until every sandbox is ready. | ||
| - With `--mount writable`, every task works on the same files, so what one task changes is there |
There was a problem hiding this comment.
suggestion: spawn returns at once (step 3), so an agent following this literally will fire a "sequence of tasks that build on each other" concurrently onto the same tree, and with several sandboxes that's concurrent writers with no locking (spec §5.4: "Concurrent writers are the workload's own concern; MOCA adds no locking"). Suggest saying explicitly: for a sequence, wait until each task is done (step 4) before spawning the next, and don't fan out writing tasks on a --mount writable workload.
There was a problem hiding this comment.
Good point, done in 0545f9a: for a sequence, wait until each task is done (step 4) before spawning the next, and never run several writing tasks at once on a --mount writable workload, since they share one tree and MOCA adds no locking.
Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Jeremy Cohn <[email protected]>
Local agents only know what
SKILL.mdtells them. This updates themoca-delegate-taskskill for the phase 2 work in #476 (per-workload sandboxes and storage) and Context Service v0.3.0.What changes in the skill
mocactl workloads create --sandboxes N --mount read-only|writable, from feat(demo): two-user Kind demo for per-workload sandboxes (phase 2, PR 4) #604 (two-user demo). The skill now explains:createwaits until the sandboxes are ready;writablefor tasks that build on each other's changes, andread-onlyfor independent fan-out;--sandboxesif the operator hasn't turned the feature on (400 workload_field_not_allowed).contextctlv0.3.0 or later,.claudeand gitignored files are skipped too, and--include-claudeand--no-ignorekeep them.spawn --writableis still a copy per task, discarded when the task ends;--mount writableworkload, changes stay until the workload is deleted;references/internal-flow.mdalso notes per-workload sandboxes. Docs only; no code changes.🤖 Generated with Claude Code