Phase Wrappers
The 14 HI phases, their invocation mode, and their role as lifecycle entrypoints
Phase wrappers are optional workflow entrypoints.
A manual Harness flow can call the individual skills one by one. A phase wrapper bundles that same workflow into a bounded orchestration unit, while the delegated inner skills keep their own proof standards and stop conditions. Inside AFK delivery-phase, an inner stop that waits for a human decision becomes an Autonomous Decision instead; only missing access stops the run.
Phase wrappers preserve order through progressive routing. They should choose the current gate from repo, tracker, and artifact state before loading child skills. Naming the lifecycle sequence is allowed; front-loading every child skill contract at wrapper start is not.
delivery-phase is a resumable phase router. Its entrypoint reads the router module, chooses one selected phase module, lets that phase write handoff state, then stops or re-enters routing. This means manual HITL steps and AFK delivery use the same artifacts instead of separate workflows.
Manual And AFK Use
Manual flow gives the operator the most explicit step-by-step control. The operator can call requirements, spec, plan, implementation, review, debugging, and docs ingest skills separately, checking the output and validation evidence at each boundary.
AFK flow moves that step-by-step discipline into a bounded run. /goal is the outer execution mode, and goalify writes and activates the goal. A phase wrapper is the lifecycle unit that the goal names, such as delivery, debugging, review, docs ingest, or debt resolution.
Phase Units
The phase tree holds 14 skills. Explicit means the skill sets disable-model-invocation: true: a human names it, or another phase loads its file by path. Model means the agent can select it from its description. Skill Graph shows each phase's direct skill calls and phase handoffs.
| Phase | Mode | Pack | Role |
|---|---|---|---|
business-finder | explicit | planning | Optional Business intake for one Fog, in business language. It composes finder-phase with ceiling Initiative. |
functional-finder | explicit | planning | Optional Functional intake for one Fog, without technical design. It composes finder-phase with ceiling Epic. |
finder-phase | explicit | planning | The shared resumable Fog engine. Only the two wrappers start it. It returns a bounded result and the next explicit human options; it never invokes Requirements Phase or Review Phase. |
prototype-phase | model | planning | One human-evaluated prototype for one Finder claim, with a retained PROTOTYPE-VERDICT.md. Only the Finder prototype gate runs it, and the verdict returns there. |
requirements-phase | explicit | requirements | The only route through requirements-grill, create-architecture, create-spec, and delivery-depth write-backlog projection. |
design-phase | explicit | frontend | Product design from brand identity through a design system, accepted Compositions, and quality-checked Variant Rounds on the real route to committed Design-Owned UI Code, backlog linkage, and a delivery brief. It stops before delivery. |
goalify | model | planning | Writes and activates one lean /goal, then keeps working under it. It is a goal compiler, not a lifecycle router. |
delivery-phase | explicit | planning | Resumable AFK delivery router: pair, backlog and plan gates, implementation, review, optional debugging, docs ingest, and closeout. Each pending user question becomes an Autonomous Decision. |
review-phase | explicit | planning | One Full Code Review Pass of a committed Git change: one fresh Reviewer, one committed Pass Report, and one returned route. |
debugging-phase | model | debug | Runtime-evidence debugging: reproduce, hypotheses, bounded fix, rerun. Standalone or inside delivery. |
docs-ingest-phase | model | docs | Routes docs-affecting work into wiki setup or adoption, capture, health, private ingest, or public docs. |
resolve-debt-phase | explicit | planning | One tech-debt item from validation through a requirements brief and a delivery brief to closeout. |
bug-discovery-phase | explicit | debug | Readonly ClawPatch discovery, report, and triage. It stops before any source change. |
bug-resolution-phase | explicit | debug | Classification and bounded resolution of selected ClawPatch findings, then revalidation. |
delivery-phase is the hub. In Full Delivery it invokes requirements-phase for a missing or stale pair, projection, or plan, review-phase after implementation, debugging-phase for runtime evidence, and docs-ingest-phase for docs-affecting work. Other entry modes persist review_due, name $review-phase as the next phase in their stop report, and ask nothing. Delivery treats Design-Owned UI Code from a design-phase promote commit as accepted input: it adds logic and data, and changes a design-owned file only as a recorded defect fix.
Several phases stop for a human instead of invoking the next phase: design-phase presents a delivery brief that names its promote commit, resolve-debt-phase presents a $requirements-phase brief and then a $delivery-phase brief, finder-phase returns its next options, bug-discovery-phase returns the exact $bug-resolution-phase invocation per finding, and a standalone debugging-phase hands the human a $review-phase command.
Finder And Backlog Contract
The two Finder wrappers are optional intake profiles over one finder-phase state graph. Delivery-depth work belongs to Requirements Phase:
Business -> optional Product Area / Initiative
Functional -> optional Business structure + Epic
Requirements Phase -> Requirements Grill
-> ARCHITECTURE.md (ARC / FLOW selectors)
-> SPEC.md (OUT-### / AC-###)
-> Write Backlog: Product Area / Initiative / Epic placement
+ derived Story / Task identities + blockersFog stays lateral to the product hierarchy and remains open after every Finder return. $write-backlog is the only provider writer. It derives work items from the immutable SPEC.md blob URL; OUT-### codes are traceability only and set no item count. It reconciles existing structure before it creates items, enriches by stable provider and durable wiki identity, and previews structural changes with $show-me before it writes them.
Delivery keeps the provider Task identities and the native blocker graph that Write Backlog derived. It records observed start, blocker, pull-request, merge, staging, and production facts as separate evidence. Production evidence for all accepted Stories and Tasks completes the Fog; merge does not.
Prompt Boundary
Phase wrappers should not appear as scoped AGENTS.md primary skills. Scoped prompts should name local execution and review skills that apply to a code area. Parent goals and handoffs should name phase wrappers when they want full lifecycle orchestration.
The generated prompt specs follow this rule: scoped skill lists leave out every *-phase skill and the Finder wrappers, and the root spec lists them as workflow entrypoints.
Finder is narrower still: a human explicitly invokes the chosen Business or Functional wrapper. Root guidance and model routing do not select one implicitly.
This boundary keeps local prompts focused and avoids making every scope look responsible for every lifecycle phase.
ClawPatch bug lifecycle phases follow the same boundary. They are global entrypoints for parent goals and handoffs, not scoped primary-skill lines.
Validation Evidence
Validation gates come from the inner skills. The wrapper delegates to those contracts for proof standards, valid no-op reasons, and blocker conditions.
The wrapper's job is to preserve the workflow order and collect the resulting evidence into a coherent lifecycle report.