Skip to content

Coding-agent subagents B9: one leaf kind with bundle, repo, patch and gate #397

Open

Description

@pdettori

Part of the Coding-agent subagents epic (#378). Item B9, milestone B-M3 "implementation subagents". Depends on MI1 S3, B5 (#390) and B7 (#393).

Goal

An implementation subagent that has everything at once: the user's promoted bundle, a repo at a ref, a patch against a known base commit, and the ability to ask its owner something.

Current state (verified on main @ 24c6f5e)

Kind Loads your bundle Gets a repo Returns Can ask you (gate)
prompt ✓ (harness/src/run-leaf.ts:468) ✗, except through a /workloads workspace text ✗
converge ✗ ✓ repoUrl+ref (:108-109) verdict ✓ (:830)
solve ✗ ✓ patch, no base commit (:181) ✗
  • MI1 S3 (§7.2) binds a bundle to a session at creation (cfg) and delivers it through the sandbox grant.

Scope

  1. Load the bundle for converge and solve from the session-bound cfg (MI1 S3).
  2. Give prompt leaves repo convergence, or introduce one unified "agent" kind: clone repoUrl+ref, return text plus an optional patch with base commit (Coding-agent subagents B5: turn state (running/lost), per-turn results, artifacts and retention #390), and gate through Coding-agent subagents B7: gates v2 — gates on prompt/solve leaves, decision API, deadlines #393.
  3. Keep the verdict and patch contracts that existing converge and solve callers rely on.

Acceptance

  • One subagent loads the user's bundle, works on a repo ref, returns a patch with a base commit, and can stop to ask.
  • Existing converge and solve tests stay green.

References

  • ADR-0028, ADR-0030, MI1 §7

Working conventions (for a fresh session)

  • Workspace: git fetch, then create a worktree from rossoctl/main (never local main), under .worktrees/. Populate and build pi-fork (git submodule update --init --recursive && cd pi-fork && npm ci && npm run build), then pnpm install. A worktree without the pi-fork build does not typecheck.
  • Plans: write the plan with superpowers:writing-plans into docs/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 for Errors. Redirect long output to /tmp/kagenti/.... make lint skips untracked files.
  • Commits: git commit -s with Assisted-By: Claude (Anthropic AI) <[email protected]>, never Co-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.

Activity

  1. added
    enhancement
    on Sep 30, 2026
  2. evaline-ju commented on Oct 12, 2026

    @evaline-ju
    Contributor

    Update: #468 landed the solve half of acceptance item 1 ("load the bundle for converge and solve"). Items 2-3, and other part of item 1 remain (the converge leaves don't load the session bundle yet).

  3. changed the title [-]Claude Code subagents B9: one leaf kind with bundle, repo, patch and gate[/-] [+]Coding-agent subagents B9: one leaf kind with bundle, repo, patch and gate[/+] on Oct 13, 2026
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions