Skip to content

docs(skill): tell local agents about per-workload sandboxes and the new pack rules - #617

Merged
moonlight16 merged 2 commits into
rossoctl:mainfrom
moonlight16:docs/delegate-skill-own-sandboxes
Oct 27, 2026
Merged

moonlight16 merged 2 commits into
rossoctl:mainfrom
moonlight16:docs/delegate-skill-own-sandboxes

Conversation

@moonlight16

Copy link
Copy Markdown
Member

Local agents only know what SKILL.md tells them. This updates the moca-delegate-task skill for the phase 2 work in #476 (per-workload sandboxes and storage) and Context Service v0.3.0.

What changes in the skill

  1. Sandboxes of its own (optional): 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:
    • that create waits until the sandboxes are ready;
    • to use writable for tasks that build on each other's changes, and read-only for independent fan-out;
    • to retry without --sandboxes if the operator hasn't turned the feature on (400 workload_field_not_allowed).
  2. Packing rules: with contextctl v0.3.0 or later, .claude and gitignored files are skipped too, and --include-claude and --no-ignore keep them.
  3. Writable behavior:
    • spawn --writable is still a copy per task, discarded when the task ends;
    • on a --mount writable workload, changes stay until the workload is deleted;
    • either way, changes never reach the local files, so the skill tells the agent to ask for them in the answer.
  4. Limits: per-workload sandboxes aren't shared with other users' tasks, and are capped at 2 per workload and 4 per user by default.

references/internal-flow.md also notes per-workload sandboxes. Docs only; no code changes.

🤖 Generated with Claude Code

…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]>
@moonlight16
moonlight16 requested a review from pdettori as a code owner October 26, 2026 18:55
@pdettori pdettori added the ready-for-ai-review Request automated AI code review from clawgenti label Oct 26, 2026

@ingpaolodettori-dev ingpaolodettori-dev left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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]>
@moonlight16
moonlight16 merged commit d9245e8 into rossoctl:main Oct 27, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-ai-review Request automated AI code review from clawgenti

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants