Skip to content

/split-agent — phased skill for carving a capability out of a live agent (agent-dev plugin) #16

Open

Description

@vybe

Carving a capability out of an existing agent into a new one that must keep operating as part of the same business process — shared data, schedules, orchestration, hand-offs — currently runs in archaeological order. In the one split we have (corbin → Abilityai/sales-agent, 2026-08-20/21), five of the operator's seven follow-up questions each surfaced a real defect the process should have caught up front. The operator was the enumeration mechanism.

Requirements document: Abilityai/corbin-internal fleet/playbooks/agent-split.md @ b213da9.
Placement decision, form decision, and pushback on the requirements: trinity-pm prds/split-agent.md.

Placement (decided)

Top-level standalone skill in the agent-dev plugin — sibling of agent-fleet-analysis / agent-fleet-migrate, which is already this exact shape (assess an existing fleet → work order → execute non-destructively → verify each unit through a review gate → before/after report, delegating every fix to a named skill).

Rejected as homes, retained as edges:

  • create-agent — fails the input test (a split's input is a live, deployed agent with data and crons, not an empty directory) and the output test (the load-bearing half of a split is the source-side mutation). Retained as a called dependency (/create-agent:custom builds the new half) plus a pointer row in the router menu, because that is where a person will look.
  • add-orchestrator bundle — a split is rare, expensive, and the actor is the source agent, which is not always the orchestrator. Retained as an optional composition: detect fleet/system-map.yaml and compose /discover-agents + /orchestrate; when absent, emit fleet deltas as an unowned-work report rather than dead-ending.

Phases

assess · inventory · authority · residency · contract · close · build · migrate · route · verify · sync · close-out — resumable across sessions via .split/<slug>/state.yaml (a split spans days; the reference case was ~50 commits over 2 days across 4 repos). A phase refuses to start while a prior phase has an open blocker — the cheapest structural encoding of "archaeological order" as a defect.

Full phase table with per-phase gates: prds/split-agent.md §5.

Acceptance criteria

  1. /split-agent verify implements gates G1–G9 (see Split verifier: the nine mechanical gates — the load-bearing half of /split-agent #17); each returns PASS/FAIL with a named reason and a fix; a FAIL blocks phase advance.
  2. Phase order enforced; --resume restores state across sessions.
  3. Composes, never reimplements: /create-agent:custom (build), /discover-agents + /orchestrate (fleet), /canon-publish (contract). Zero duplicated scaffolding.
  4. Degrades: no fleet/ → completes and reports fleet deltas as unowned work; no canon → contract written in-repo with a note on where it belongs. Never dead-ends.
  5. create-agent router carries a pointer row to /agent-dev:split-agent.
  6. No irreversible act in migrate without a recorded reversal path; vacated locations keep an ARCHIVED.md stub naming the destination.
  7. Dogfood gate: validated by replaying the corbin → sales-agent split in dry-run, confirming it would have caught ≥4 of the 5 defects the operator found by probing. This is the only honest acceptance test at N=1 — and it is cheap to run before writing the gates. G4 must run in sales-agent's actual container — a source-side run always resolves source paths and certifies itself.
  8. Marketplace conventions: metadata.version + prepended changelog, /audit-wizards gates green, registered in the plugin manifest, declared interactive-only (splits are operator-supervised by nature — no --autonomous mode).

Non-goals

Not an automated split (every phase is operator-gated). Not a merge/un-split tool. Not a create-agent wizard and does not absorb scaffolding. Not an add-* installer. Not platform work — the three Trinity gaps the split surfaced are routed to the platform trackers separately and must not be papered over in skill prose.

Note on frequency

N=1. The case for this is not that splits are frequent but that Trinity's own direction (archetype fleet ent#137, customers growing an agent past its boundary) makes them structurally recurring. If that assumption is wrong, the right build is gates + a phase list and nothing more — which is why #17 is filed separately.

Activity

  1. added
    enhancement
    on Aug 21, 2026
  2. vybe commented on Aug 21, 2026

    @vybe
    ContributorAuthor

    Operator ruling — 2026-08-21 (Eugene, relayed via Corbin). Filing approved; placement decision (agent-dev, top-level standalone) stands.

    On PRD §12 Q1 (frequency is N=1 — build fully, or ship cheap until a second split proves the shape):

    Build #16 + #17 with the full gate set. The dry-run replay of the corbin → sales-agent split is the go/no-go: it must catch ≥4 of the 5 defects the operator found by probing.

    So AC 7 is not a closing check — it is the gate on writing the gates. Run the replay first, against the reference split, before #17's runners are built. If it does not clear ≥4 of 5, the shape is wrong and that is the cheap moment to learn it.

    Companion issues: #17 (the nine gates) · #18 (G1 → fleet convention). Platform facts the split surfaced: abilityai/trinity#2366, #2367, #2368.

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