Repository navigation
Open
Labels
enhancementNew feature or request
Description
Part of the Coding-agent subagents epic (#378). Item A5, optional for the demo. Depends on A2 (#381).
Goal
A demo act that shows the durable human gate: a subagent stops with a summary and a proposed action, and after mocactl approve it resumes and finishes.
Current state (verified on main @ 24c6f5e)
- Only converge leaves can gate.
request_approvalis registered only inrealProduceVerdict(harness/src/run-leaf.ts:706,:830). Converge leaves don't load the bundle (configRefis read only inrunPromptLeaf,:361,:468). - Converge leaves clone
repoUrl+ref(:108-109). The VM sandbox can clone public repos (VM demo C: per-user inference credentials and a curl/git research turn in the P6 container sandbox #368, PR feat: per-user inference credential headers and sandbox research tooling (#368 phase 1) #372). - The paused record carries
gateIdandgate: {summary, proposed_action}(packages/knative-server/src/server.ts:692-696). - Resume resends the envelope with an inline
decision(ADR-0020,run-leaf.ts:104). Matching ongateIdmakes stale or replayed decisions harmless. - No deadline (ADR-0016). No notification.
Scope
- Document the converge
itemshape and how a gate is requested, with a pinned public repo and ref. - A runbook act:
mocactl spawn --kind converge …→paused→watchor the hook shows the summary →mocactl approve→donewith a verdict. - Say which limits are shown and which are hidden: no bundle, no notification, and approval needs the laptop or an SSH session.
Acceptance
- The act passes on the VM with a real model (and once on the Epic: P6 on Kubernetes — process manager, relay, Redis and control plane as K8s workloads; only P4 on a VM/bare metal #426 K8s stack, Kind is enough), and its limits are written into the runbook (Coding-agent subagents A6: demo runbook #385).
Out of scope
- Gates on prompt and solve leaves, the decision API, deadlines (Coding-agent subagents B7: gates v2 — gates on prompt/solve leaves, decision API, deadlines #393); notifications (Coding-agent subagents B8: notifications for paused and finished subagents #394).
References
- ADR-0016, ADR-0020, human-gate spec
docs/specs/2026-06-28-human-gate-design.md
Working conventions (for a fresh session)
- Workspace:
git fetch, then create a worktree fromrossoctl/main(never localmain), under.worktrees/. Populate and buildpi-fork(git submodule update --init --recursive && cd pi-fork && npm ci && npm run build), thenpnpm install. A worktree without the pi-fork build does not typecheck. - Plans: write the plan with
superpowers:writing-plansintodocs/plans/<date>-<slug>.md. Plans are gitignored and never committed. Write it in chunks, one append per task. - Pre-flight table: list every process entrypoint, systemd unit, env example and shell/Go launcher whose boot contract changes, not only TypeScript call sites.
- Tests: Redis on 6379 must be up. Use each package's own
node_modules/.bin/vitest. vitest can exit non-zero with every test green, so grep the log forErrors. Redirect long output to/tmp/kagenti/....make lintskips untracked files. - Commits:
git commit -swithAssisted-By: Claude (Anthropic AI) <[email protected]>, neverCo-Authored-By. - Shared KVM rig: alert the owner before using it, record a manifest of what you install, and verify cleanup.
- Don't push or open PRs without the owner's go-ahead.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
[-]Claude Code subagents A5 (optional): a gated converge subagent asks for approval[/-][+]Coding-agent subagents A5 (optional): a gated converge subagent asks for approval[/+]