Skip to content

epic: Claude Code subagents on MOCA (tracking moca#378) — detached, gated, collectable leaf sessions #2625

Open
0 of 1 issue completed

Description

@pdettori

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 /runs prompt 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: true on a session, not a second /v1/runs resource.
  • 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

Assisted-By: Claude (Anthropic AI) [email protected]

Update — 2026-11-05

Sub-issues

Sub-issues

0 of 1 Issues completed
Loading 1 sub-issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    epichigh prioritymoca

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions