Repository navigation
Open
0 / 10 of 1 issue completedOpen
epic: Claude Code subagents on MOCA (tracking moca#378) — detached, gated, collectable leaf sessions#2625
0 / 10 of 1 issue completed
Copy link
Labels
epicLarge multi-workstream initiativeshigh priorityMust be address ASAPmocaRelates to the moca repo (formerly serverless-harness): serverless agent runtime, P4/P6, mocactl
Description
Tracking epic
This is the rossoctl-side tracking epic for moca#378 — Epic: Claude Code subagents on MOCA (detached, gated, collectable leaf sessions).
Execution, children, and design record live in moca. This epic exists so the work is visible in the rossoctl/rossoctl epic list and rolls up in the weekly report.
Scope (from moca#378)
Claude Code stays the orchestrator; MOCA gives its subagents durable, isolated, managed execution that outlives the laptop. A subagent is one MOCA session (Pi with the developer's promoted Claude Code bundle, tools in a MOCA sandbox); a batch is the caller's ledger.
- Track A — quick demo on the bug: When Deploying Agent from Image the Form Does Not Ask For Remote Repo Secret #370 VM: detached sync
/runsprompt leaves (A0 spike, A1 interim contract), mocactl subagent commands (A2), bundle promotion over SSH tunnel (A3), demo-grade Claude Code plugin (A4), gated converge subagent (A5, optional), runbook (A6). All open. - Milestone B-M1 "detached for real": async turn design (B1), control-plane submission + turn records (B2), grants minted at dequeue (B3), async leaf worker on P6 (B4), turn state and artifacts (B5), budgets/quotas/cancel (B13). All open.
- B-M2 "away mode": owner-scoped event stream (B6), gates v2 (B7), notifications (B8), long-lived auth (B14), Claude Code plugin v1 as MCP server (B11).
- B-M3 "implementation subagents": one leaf kind with bundle + repo + patch + gate (B9), workspace handoff and private repos (B10), patch safety and remote verification (B12), capability manifests (B15).
- B-M4 "beyond": durable orchestration design (B16), docs/ADR amendments (B17).
Key design points
- Session-centric vocabulary per moca#279: a subagent is a session; async is
async: trueon a session, not a second/v1/runsresource. - The server enforces safety: Claude Code is treated as an untrusted, nondeterministic external caller — caps, cancel, quotas, idempotency and gate deadlines hold regardless.
- P6 first; the Knative/KEDA path is not extended (RA1).
- Results flow into the user's local Claude Code: returned text is data, patches go through a path policy into a worktree, nothing auto-applied (B12).
Related
- epic: Design a serverless Harness solution for Rossoctl #2513 — the superseded SH design epic whose use-case 1 (promote a Claude Code workflow) this inherits
- epic: Serverless Harness density experiments — multi-tenancy isolation + microVM sandbox #2546 — the parent density-experiments epic
- ADR-0030 / ADR-0031 — bundle promotion + read-only memory
Assisted-By: Claude (Anthropic AI) [email protected]
Update — 2026-11-05
- moca#386 (Track B's B1 async-turn design) is active: @pdettori commented 11-05 that it
is now also on the critical path for removing Knative/KEDA (moca#686's fan-out epic, which
replaced the KEDA leaf-worker — PR Add orchestrate and onboard skill families with comprehensive CI blueprint #691, ADR-0041), pointing at moca#687 and 🌱 Add Claude Code skills developer guide and worktree-first workflow #689. The B1
design now has two consumers: this epic's subagent work and P6's async fan-out.
Sub-issues
Collapse Sub-issuesSub-issues
Loading 1 sub-issues
Metadata
Metadata
Assignees
Labels
epicLarge multi-workstream initiativeshigh priorityMust be address ASAPmocaRelates to the moca repo (formerly serverless-harness): serverless agent runtime, P4/P6, mocactl
Type
Projects
- StatusShow more project fieldsNew/ToDo
Activity