Parallel slice orchestration
Use this when the user wants an existing spec or slice plan implemented with
subagents. The orchestrator owns decomposition, dependency order, integration,
and final verification. Workers own narrow vertical slices.
Load tdd for behavior-changing implementation slices. A worker may use a
named docs, configuration, or generated-artifact exception when no executable
behavior changes. Load the relevant repo/domain skill before decomposition.
Only spawn subagents when the user has explicitly asked for subagents,
delegation, or parallel agent work. Otherwise, produce the slice plan and ask
before spawning. If subagents are unavailable in the current harness, run the
same slice plan sequentially and say that parallel execution was not available.
Orchestrator workflow
- Read the spec, slice notes, issue, or plan plus the relevant repo
instructions.
- Identify externally meaningful behaviors and acceptance criteria.
- Build a dependency map using decomposition.md.
- Choose the PR delivery shape before implementation using
decomposition.md. Load
gh-stack when one
story has two or more dependency-ordered review units.
- Convert implementation work into vertical slices, not architectural layers.
- Do blocking foundation work locally or assign exactly one worker to it.
- Spawn workers only for independent slices with disjoint write ownership.
Keep the immediate critical-path task local.
- Give each worker the assignment contract in
worker-contract.md.
- Preserve
AFK and HITL modes. Use
hitl-checkpoints.md for review stops.
- Review each worker result before integrating, using the checklist in
integration.md.
- Resolve integration issues locally, then run the feature's relevant package
verification commands.
- When publication is authorized under
AGENTS.md, publish the chosen
delivery shape. Otherwise stop at a verified local checkpoint. For a stack,
keep foundation at the bottom, dependent behavior above it, and run the
pr-proof-pack freshness check separately for every PR layer.
- Before readiness or merge, apply the Review gate and Sign-off gate from
AGENTS.md to every PR layer. The Review gate must cover the exact head;
Sign-off persists for the PR across later heads.
Slice rules
- Parallelize independent behavior slices, not architectural layers.
- A good slice crosses the real behavior path: UI to API to persistence, command
to side effect, event to stored state, or equivalent.
- Do not assign two workers to the same files, migrations, generated clients,
route definitions, shared types, or shared test fixtures.
- If a shared type/schema/API contract is needed, land that foundation first,
then parallelize consumers.
- Prefer fewer well-scoped workers over many tiny workers that create
integration overhead.
PR delivery shape
- Use one PR when the result is one cohesive review unit.
- Use one
gh-stack stack when two or more independently reviewable concerns
form a strict dependency chain. Plan branch names and order before editing.
- Keep independent parallel slices as standalone PRs or separate stacks.
GitHub stacks are linear; do not serialize independent work merely to put it
in one stack.
- Keep each stacked PR buildable and reviewable against the branch directly
below it. Put a dependency in the same layer or a lower layer, never above.
- Have the orchestrator own stack submission and per-layer proof. Workers return
scoped changes and evidence; they do not independently publish branches from
a shared stack.
Completion criteria
- Every worker result has been read before integration.
- Changed files match assigned ownership.
tdd was followed, or the worker stated a valid
docs/config/generated-code exception.
- Rendered UI slices used
design in production-UI mode for visual direction,
interaction mode when interaction craft was material, and
frontend-ui-validation before reporting done.
- HITL slices stopped at named checkpoints and returned evidence before
continuation.
- Final verification ran in the integrated tree.
- The delivery shape matches the dependency map, and every stacked layer has
its own focused
pr-proof-pack evidence.
- Every ready PR satisfies both
AGENTS.md gates before merge.
Context pointers
- Use decomposition.md for dependency mapping and
vertical slicing.
- Use worker-contract.md for required worker
prompt fields and the prompt template.
- Use hitl-checkpoints.md for
AFK and HITL
handling.
- Use integration.md for worker-result review,
verification, and anti-patterns.
1---2name: parallel-slice-orchestration3description: Implement specs with parallel agents, disjoint ownership, integration, and verification.4---56# Parallel slice orchestration78Use this when the user wants an existing spec or slice plan implemented with9subagents. The orchestrator owns decomposition, dependency order, integration,10and final verification. Workers own narrow vertical slices.1112Load `tdd` for behavior-changing implementation slices. A worker may use a13named docs, configuration, or generated-artifact exception when no executable14behavior changes. Load the relevant repo/domain skill before decomposition.1516Only spawn subagents when the user has explicitly asked for subagents,17delegation, or parallel agent work. Otherwise, produce the slice plan and ask18before spawning. If subagents are unavailable in the current harness, run the19same slice plan sequentially and say that parallel execution was not available.2021## Orchestrator workflow22231. Read the spec, slice notes, issue, or plan plus the relevant repo24 instructions.252. Identify externally meaningful behaviors and acceptance criteria.263. Build a dependency map using [decomposition.md](references/decomposition.md).274. Choose the PR delivery shape before implementation using28 [decomposition.md](references/decomposition.md). Load `gh-stack` when one29 story has two or more dependency-ordered review units.305. Convert implementation work into vertical slices, not architectural layers.316. Do blocking foundation work locally or assign exactly one worker to it.327. Spawn workers only for independent slices with disjoint write ownership.33 Keep the immediate critical-path task local.348. Give each worker the assignment contract in35 [worker-contract.md](references/worker-contract.md).369. Preserve `AFK` and `HITL` modes. Use37 [hitl-checkpoints.md](references/hitl-checkpoints.md) for review stops.3810. Review each worker result before integrating, using the checklist in39 [integration.md](references/integration.md).4011. Resolve integration issues locally, then run the feature's relevant package41 verification commands.4212. When publication is authorized under `AGENTS.md`, publish the chosen43 delivery shape. Otherwise stop at a verified local checkpoint. For a stack,44 keep foundation at the bottom, dependent behavior above it, and run the45 `pr-proof-pack` freshness check separately for every PR layer.4613. Before readiness or merge, apply the Review gate and Sign-off gate from47 `AGENTS.md` to every PR layer. The Review gate must cover the exact head;48 Sign-off persists for the PR across later heads.4950## Slice rules5152- Parallelize independent behavior slices, not architectural layers.53- A good slice crosses the real behavior path: UI to API to persistence, command54 to side effect, event to stored state, or equivalent.55- Do not assign two workers to the same files, migrations, generated clients,56 route definitions, shared types, or shared test fixtures.57- If a shared type/schema/API contract is needed, land that foundation first,58 then parallelize consumers.59- Prefer fewer well-scoped workers over many tiny workers that create60 integration overhead.6162## PR delivery shape6364- Use one PR when the result is one cohesive review unit.65- Use one `gh-stack` stack when two or more independently reviewable concerns66 form a strict dependency chain. Plan branch names and order before editing.67- Keep independent parallel slices as standalone PRs or separate stacks.68 GitHub stacks are linear; do not serialize independent work merely to put it69 in one stack.70- Keep each stacked PR buildable and reviewable against the branch directly71 below it. Put a dependency in the same layer or a lower layer, never above.72- Have the orchestrator own stack submission and per-layer proof. Workers return73 scoped changes and evidence; they do not independently publish branches from74 a shared stack.7576## Completion criteria7778- Every worker result has been read before integration.79- Changed files match assigned ownership.80- `tdd` was followed, or the worker stated a valid81 docs/config/generated-code exception.82- Rendered UI slices used `design` in production-UI mode for visual direction,83 interaction mode when interaction craft was material, and84 `frontend-ui-validation` before reporting done.85- HITL slices stopped at named checkpoints and returned evidence before86 continuation.87- Final verification ran in the integrated tree.88- The delivery shape matches the dependency map, and every stacked layer has89 its own focused `pr-proof-pack` evidence.90- Every ready PR satisfies both `AGENTS.md` gates before merge.9192## Context pointers9394- Use [decomposition.md](references/decomposition.md) for dependency mapping and95 vertical slicing.96- Use [worker-contract.md](references/worker-contract.md) for required worker97 prompt fields and the prompt template.98- Use [hitl-checkpoints.md](references/hitl-checkpoints.md) for `AFK` and `HITL`99 handling.100- Use [integration.md](references/integration.md) for worker-result review,101 verification, and anti-patterns.