Repository navigation
Description
Separated from #16 deliberately, because it is the half most likely to be quietly dropped from scope, and dropping it makes the skill worthless.
The argument. The playbook's own law 1 is "structural beats instructional — every prose guard leaked this split, no structural guard did." A prose SKILL.md is instructional by construction. If /split-agent ships as eleven prose phases and no gates, we will have encoded law 1 in a form that violates law 1 — and the next split will leak in exactly the same places while feeling supervised. The verifier is the product; the phase prose is scaffolding around it.
| ID | Gate | Mechanism | Earned by |
|---|---|---|---|
| G1 | No selector trusted until proven non-empty against live data | Assert row counts > 0 for every filter/join the split introduces or inherits; cross-system identity joins assert exact-string match against the system of record. Phase-1 extension: also assert disk reality vs git index at inventory — du + untracked sweep vs git ls-files — and report the delta (a 365 MB workspace with 31 committed text files reads "trivially movable" from the index alone) |
The stage-change field populated on 2 of 178 rows; the Alex Korin / Oleksander Korin join reading as an empty pipeline rather than an error; gitignored bulk media silently excluded from index-based inventories |
| G2 | Write-path scan | Grep the moved domain's writers across skills, scheduled skills' prose bodies, subagent delegations, profile routing sections; every hit retired-to-stub or explicitly waived with a reason | daily-intake Part 2 — a stage-write bypass that survived to the last day |
| G3 | Receiver contract suite | Synthetic batches: in-batch duplicates, replay of a delivered id, flag-only confidential, malformed fingerprint, and a state-change attempt that must be structurally impossible, not refused | The authority line: an autonomous caller may add evidence, never move state |
| G4 | Pointer resolution from the target's runtime | Every pointer written into the new agent resolves in the new agent's container, not the source's disk | The dangling-symlink class — reintroduced during this very split before being fixed |
| G5 | Confidentiality pass before anything crosses | Scan for the third-party-confidential classes declared in authority, before migrate writes |
An NDA'd partner doc crossed in and had to be pulled back out |
| G6 | Cold-session routing probe | Fresh session, question-shaped ask naming the moved subject; must route to the new agent. Failure escalates to the structural fix (remove the source's read access), not a stronger sentence | Routing fell through in a fresh session; answering from the source worked, so nothing signalled the wrong path |
| G7 | Adversarial review disposition | The target agent's review returns a typed list; each item fixed / accepted-with-reason / deferred-to-issue-#N; cannot close with an undispositioned item |
"What would you push back on?" is a good prompt with no pass condition — unstructured, it degrades into "the agent said it looks good" |
| G8 | Liveness | Every inbound path to the new agent has a named consumer + trigger, or is recorded UNOWNED with a named decision-owner | Schedules ship disabled + autonomy off: a dead half that looks alive in the fleet map passes every other check |
| G9 | Interactive-skill-as-receiver ban | No skill reachable from an unattended cron may call AskUserQuestion |
AskUserQuestion in a cron burns the whole timeout on a prompt nobody sees — a live failure class |
Gate execution locus. Every gate result in .split/<slug>/state.yaml carries executed_by: source|target + executed_in: <container>. G1, G4, and G9 refuse a result produced outside the target container — the source's disk always resolves the source's paths, so a source-side G4 check certifies itself. The mechanism above is correct; the missing piece is that the state file must record which side answered.
Reuse, don't invent: G9 already exists as an /audit-wizards v1.3 gate (#6). G2 and G6 are greppable/scriptable. G1 and G4 need a runner in the target container — chat_with_agent / run_skill already provide it.
AC: each gate returns PASS/FAIL with a named reason and a concrete fix; a FAIL blocks phase advance in #16; the gate set is exercised by #16's dogfood replay.
Activity