/oh-no-harness:ralplan runs instead · from oh-no-harness
Generates a reviewed plan and execution profile for complex, architecture-sensitive tasks. Useful when requirements are known but implementation is broad, risky, or multi-step.
This skill never runs in Claude Code
It ships in oh-no-harness at skills/, but /oh-no-harness:ralplan (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
This generated file is the Codex-facing runtime skill document. Codex should read this file directly; maintainers edit the source documents listed below instead.
Source order:
../../docs/skill-core/ralplan.md../../docs/platforms/codex-child-packet-floor.md../../docs/platforms/codex-ralplan.mdThe sections below are already composed for this platform. Do not ask the runtime model to load another platform's runtime document or invocation syntax.
Ralplan converts approved requirements plus repository evidence into one
reviewed plan and Ralph execution profile. It never implements production
code and writes only under .oh-no/. Plan-Reviewer depth and instance count
are selected by the execution risk, not applied as an unconditional tax.
R1. Requirements direction is user-owned. A role proposal that changes the
Direction Contract is `requested-direction-change: yes` and needs explicit
user approval; do not incorporate a requested direction change without
explicit approval. An approved change starts a new planning run.
R2. The plan body is Planner-owned. Plan-Reviewer reviews and blocks; it MUST
NOT produce a replacement plan.
R3. Plan-Reviewer reviews the exact Planner draft (id + body), not a recap:
architecture pass, then quality-gate pass, in one dispatch.
R4. APPROVE freezes the exact reviewed Planner draft. Non-blocking findings
are optional follow-ups and cause no mutation or dispatch; a body change
required before approval is blocking and yields ITERATE.
R5. On ITERATE, Planner classifies every blocker before mutating the draft or
assigning a new draft id (disposition-before-mutation).
R6. Review runs exactly once (Review v1) per planning run. REJECT escalates
immediately. An all-accepted ITERATE yields exactly one final Planner
revision v2 with no further review.
R8. Every blocker names a basis, exact draft pointer, material consequence,
and smallest sufficient correction. Preference, future-proofing, and
optional stronger proof are non-blocking.
R9. Roles are sequential — Analyst -> Planner -> Plan-Reviewer. Review
topology is risk-selected: STANDARD and ordinary THOROUGH each dispatch ONE
required full-role Plan-Reviewer. Only the named THOROUGH paired-review
trigger selects one perspective-diverse pair and the platform's escalated
diversity (cross-host on Codex); THOROUGH alone never does.
R10. Active semantic risk selects mode and cost; category words and host
capability alone never escalate.
R15. The Active plan contract is compiled once before Planner draft v1, and
the identical block goes to Planner and every reviewer instance.
Reviewer missing-field blocking is limited to its active rows.
R16. Recorded snapshot state authorizes transitions; unrecorded in-memory
conclusions do not.
Conflict priority, highest first: user decision > requirements/Direction Contract > Active Plan Contract > fired gate > exact draft > role findings. Record the conflict and STOP; never infer direction.
STOP means: set outcome PAUSED, persist the snapshot with the blocked
transition and unblock condition, and report — never a silent exit.
Maintain one snapshot at .oh-no/sessions/{sessionId}/planning.md (reuse the
chain session directory when one exists; otherwise create a timestamped one).
Persist it at every phase change, verdict, disposition, approval change, and
before any pause or handoff [R16].
Planning run:
- Run/type: <id>; <direct-ralplan | ultrawork>
- Phase: ROUTE | REQUIREMENTS | DRAFT | REVIEW | APPROVAL
- Outcome: none | ROUTED_INTERVIEW | ROUTED_RALPH | HANDOFF_RALPH |
HANDOFF_ULTRAWORK | RETURN_ULTRAWORK | PAUSED
- Mode: LIGHT | STANDARD | THOROUGH
- Source/Analyst: <path or summary>; <satisfied-by-spec | completed | gap-check | blocked>
- Draft/plan: v<N>; .oh-no/plans/<slug>.md
- Review: not-run | done; <topology>; <verdict>; <blockers + dispositions>
- Approval: pending approval | approved-direct | approved-ultrawork
This snapshot and the ## Findings Ledger Gate ledger are planning.md's only
canonical content. Requirements evidence, baselines, and explore/analyst output
are referenced by pointer — path, finding id, AC ID — never transcribed, and
subagent output is never copied verbatim. Snapshot length is calibrated to
decision content, not to mode; do not restate a decision that already has a
canonical home in the spec or the plan.
| Phase | Exit guard | Next |
|---|---|---|
| ROUTE | intent, scope, or acceptance criteria materially unclear | outcome ROUTED_INTERVIEW |
| ROUTE | single obvious edit with clear acceptance criteria and no planning decision | outcome ROUTED_RALPH |
| ROUTE | plannable request | REQUIREMENTS |
| REQUIREMENTS | source, Analyst status, Direction Contract, mode, and Active plan contract recorded [R10, R15] | DRAFT |
| REQUIREMENTS | gap changes product intent, architecture, data, security, or delivery scope [R1] | PAUSED for user decision |
| DRAFT | Planner draft v1 complete against the Active Plan Contract [R2] | REVIEW |
| DRAFT | Planner revision v2 complete with finding→fix mapping recorded [R2, R5, R6] | APPROVAL (no further review) |
| REVIEW | LIGHT no-review reason recorded, or verdict APPROVE [R4] | APPROVAL |
| REVIEW | a required Plan-Reviewer has no separate context after allowed fallback (dispatch-unavailable) | PAUSED |
| REVIEW | ITERATE with all blockers accepted [R5, R6] | DRAFT (final revision v2) |
| REVIEW | ITERATE with rejected/deferred/direction-change disposition [R5] | PAUSED for user decision |
| REVIEW | user resolved every non-accepted disposition as a permitted waiver with no body change: reviewed draft stays frozen [R4, R5] | APPROVAL |
| REVIEW | REJECT [R6] | PAUSED |
| APPROVAL | per ## Next Skill Handoff (direct) or ### Ultrawork exception | outcome per that section |
On resume after a disposition PAUSED, apply the ## Planner Revision Contract branch matrix: accepted corrections re-enter DRAFT; waiver-only
resolution enters APPROVAL with the waivers visible.
Routing outcomes recommend the named skill and stop; they never auto-invoke it. A direction change in any phase follows R1.
Source priority: approved interview spec > approved PRD/issue/ticket >
current user request plus repository evidence.
Dispatch explore first when repository facts are needed. Exploration
replaces no role.
If an approved spec covers goal, scope, non-goals, constraints, risks, and
acceptance criteria, record Analyst: satisfied by approved interview spec
with Gap check: none blocking; otherwise run analyst (or a limited gap
check) before Planner. Analyst output feeds the Planner draft; it never
replaces it.
Copy or derive the Direction Contract without changing its meaning:
Direction Contract:
- Requirements source:
- User-confirmed primary goal:
- Required outcomes / AC IDs:
- Non-goals:
- Constraints:
- Do-not-silently-change assumptions:
- Direction-change approval rule:
- Confirmation status: confirmed | inferred | open
Preserve the user's actual success criteria: a test, suite, metric, or local command is supporting evidence, not a replacement outcome. If criteria conflict or direction-changing facts remain inferred, mark the plan pending instead of hiding the gap.
Phase: REQUIREMENTS — record the mode before leaving the phase.
Select the lightest credible mode [R10]:
LIGHT = work that qualifies under Ralph's canonical `LIGHT Eligibility —
Risk Gate, Soft Size Screen`: risk-gated localized behavior or
non-behavior work clearing its complete exclusion UNION and bounded-
judgment inclusion conditions; size may veto, never grant, LIGHT.
STANDARD = bounded behavior/config/prompt work with localized blast radius,
known ownership, and no THOROUGH trigger.
THOROUGH = active security/data/auth/permission, destructive,
public/release-critical, migration, changed concurrency/lifecycle,
multi-system, high-uncertainty, or difficult-recovery risk.
Any THOROUGH trigger wins; otherwise apply Ralph's complete canonical LIGHT predicate before defaulting to STANDARD. A localized low-risk behavior change, including cohesive multi-file work, may qualify, while a large or sprawling change routes out to STANDARD under Ralph's canonical soft screen. Escalate on new semantic risk; de-escalate only when evidence removes it. Reusing a verified concurrency owner, or mechanical regeneration of validated generated wrappers, is not a THOROUGH signal by itself. Note when the task may fit Ralph's STANDARD small-task carve-out so Ralph can evaluate it.
Phase: REQUIREMENTS — compile before leaving the phase; consumed in DRAFT and REVIEW.
Compile one mode- and trigger-aware block and send the identical block to Planner and every Plan-Reviewer instance [R15]:
Active plan contract:
- Mode: LIGHT | STANDARD | THOROUGH
- Always required: <active rows below>
- Mode-required: <only rows active for this mode>
- Trigger-required: <only rows whose named trigger fired>
- Explicitly not applicable: <only an ambiguous high-risk trigger worth disambiguating>
- Reviewer entitlement: missing-field blocking is limited to the active fields above
Canonical activation table:
| Row | Activation | Plan projection | Reviewer entitlement |
|---|---|---|---|
| Direction and acceptance core | always | the confirmed Direction Contract; who owns success and the observable signal; confidence and what would lower it | a contradiction, an unobservable success claim, or an unresolved direction-changing inference |
| Minimal scope trace | always | the smallest approach chosen and what it rules out; the Mutation Manifest Ralph inherits — each authorized path with its change kind, semantic obligation, AC/safety basis, and causal generated outputs or none — plus the contract surfaces those authorized paths affect, with residual uncertainty; AC-mapped tasks, with order stated only where order is a real constraint | an infeasible stated order, a wrong surface, unmapped work, or scope beyond the smallest AC-sufficient change |
| Core evidence | always | the smallest verification that settles each AC, and whether TDD applies; the AC-to-evidence mapping | a material proof hole only; a stronger optional proof is a non-blocking suggestion |
| Execution handoff | implementation plan | the next skill, its compact profile, and the recorded worktree policy; the risks and open decisions the next skill inherits | a handoff that is unsafe or inconsistent with the profile; LIGHT stays compact |
| Simplicity justification | STANDARD or THOROUGH | which speculative complexity was rejected; why any new abstraction or dependency is required now | speculative complexity inside current scope only |
| Test design decisions | behavior change or named regression/safety risk | the must-fail and must-pass cases; which negative or adversarial cases are relevant, and which are omitted | a missing relevant case, never an omitted inactive category |
| Process and diff budget | STANDARD or THOROUGH | the expected handwritten scope; the broad-suite cap and the rescope threshold | a concrete budget violation, not an unfired larger process |
| Planning-role evidence | selected roles/review, or LIGHT no-review | role/review order, ids, topology, and dispositions — or one compact LIGHT no-review reason | evidence for roles that actually ran |
| Rollout and recovery | THOROUGH or operational/migration/public-contract risk | the smallest safe rollout; the rollback boundary | only when the named risk makes recovery material |
| Stack decision | greenfield + open stack + recommendation requested | 2-3 options with tradeoffs, the recommended default, and the assumption that would change it | never required without the trigger |
| Validation check | measurable evidence influenced request | the evidence source, the AC it supports, and what it proves versus leaves open | never required without the trigger |
| Parallel dispatch | agent policy not inline-only | which roles are eligible, their scopes, and their dependencies; who owns integration | inline-only needs only its profile value |
| Risk semantics | migration, data/security/destructive, concurrency/lifecycle, or public/release trigger | the semantics and evidence for the fired trigger | depth and gates limited to the named trigger and its owner |
| Paired review | named THOROUGH paired-review trigger | the fired trigger, the platform-defined diversity mode, and the synthesis evidence | never required in STANDARD or without the trigger |
Audited deduplicated baseline caps: LIGHT=11; STANDARD=24; THOROUGH=26.
Inactive rows are omitted — do not emit not applicable ceremony.
When Recommendation requested is yes, present 2-3 viable technology
stacks, their tradeoffs and one recommended default; the recommendation
requires approval through the existing Plan Approval Brief before Ralph.
Planner owns Planner draft v1 and the plan body. Send it the requirements
source, Analyst status, repository evidence, and the exact Active plan
contract. Planner returns role metadata plus the plan body with active fields
only. The plan body is the single canonical schema; ledger and brief
reference it. Plan length is calibrated to decision content, not to mode —
THOROUGH governs review depth and evidence, never plan verbosity; record each
decision once at its canonical section. Plan-Reviewer reviews that exact
draft, not a recap [R3]. No reviewer starts before the complete draft exists.
The plan owns what must change, why, where, and what proves it done. The executor owns how, reading the actual code at execution time. Ralplan roles are read-only, so authored implementation detail is unverified prediction: the more exact it is, the more likely it is already stale.
Each task carries its authorized path and change kind, the semantic obligation
that must hold afterwards, its AC or safety basis, and its causal generated
outputs or none. Those five elements are the Mutation Manifest
Ralph inherits, and it is the ceiling — not a floor to elaborate past. State
the task's completion condition too, but as its own statement: it is what
Ralph carries as the assignment completion contract, not manifest content.
Keep out of the plan body:
- literal replacement text, diffs, or patch bodies for a target
- step-by-step edit routes, or ordering that is not a real constraint
- verification the executor must perform anyway, restated as instruction
- restatement of a decision that already has a canonical section
Name a constraint the executor must honor — a pinned string, an invariant, a forbidden surface — as a constraint with its basis, never as authored replacement text. When exact wording is genuinely direction-owned, it belongs to the requirements source or the Direction Contract, not to a task body.
A task that leaves the executor no decision beyond transcription has crossed the boundary. Detail is not evidence of planning quality: it displaces the judgment of the only role that sees the code, and it inflates the single review pass this workflow allows [R6].
This is a Planner authoring rule, enforced where the plan is written rather than at a gate. Volume alone satisfies no blocker basis, so a reviewer reports a violation as a non-blocking follow-up and the plan may still be approved [R8]. Blocking arrives only through the existing bases when the authored detail is also wrong — a wrong surface, an infeasible stated order, or a contradiction of an active AC or Direction Contract field.
Plan-Reviewer receives the exact Active plan contract, draft id, and full
draft or path, then runs the architecture pass and the quality-gate pass in
one dispatch [R3]. A required Plan-Reviewer cannot be skipped: each required
reviewer instance runs the complete two-pass role and needs its own context,
and when none exists, record
Plan-Reviewer: dispatch-unavailable as a blocker and transition to PAUSED —
an inline review cannot satisfy the required pass. The compliant LIGHT
no-review carve-out remains unchanged.
Topology by risk — the named paired-review trigger, not the mode, selects whether a second reviewer instance exists:
LIGHT -> review may be omitted with one concrete risk-based reason.
STANDARD -> one required Plan-Reviewer instance running the complete two-pass
role in its own context, recorded as `single-reviewer`.
THOROUGH -> one required full-role Plan-Reviewer instance by default, exactly as
STANDARD, recorded as `single-reviewer`. ONLY the named THOROUGH
paired-review trigger — security/data/destructive,
public/release-contract, concurrency, migration, or comparable
multi-system risk — selects one perspective-diverse Plan-Reviewer
pair: two
instances of the same role, each running the full two-pass review
with one distinct assigned perspective (Lens A
strongest-antithesis/feasibility-risk; Lens B
acceptance-coverage/quality-gate completeness), packets identical
except the single `Assigned perspective:` line, dispatched in one
parallel batch and synthesized into one verdict by the caller. The
active platform supplies the diversity leg; unavailable diversity
in default mode falls back to two independent same-model instances
with the reason recorded; explicit diversity demand is strict mode
and transitions to PAUSED. That same fired trigger selects only the
platform's escalated diversity (cross-host pair on Codex).
Reviewer count is never a quality proxy: THOROUGH alone, plan length, and task non-triviality never authorize a second Plan-Reviewer instance — only the named paired-review trigger does. Review still runs exactly once per planning run [R6], and APPROVE freezes the exact reviewed Planner draft [R4], under either topology.
Blocker predicate [R8]:
Blocking basis: <AC ID | safety invariant | Direction Contract field | applicable mandatory gate>,
the exact draft pointer, material consequence, and smallest sufficient
correction; a gate blocker also names its owner, trigger, and failed
obligation.### Authored-Detail Boundary violation is non-blocking on its own:
volume is not material failure, and no basis in the enum above covers it.
Report it as an optional follow-up naming the keep-out category and the
exact draft pointer. It blocks only when the authored detail is itself
wrong — a wrong surface, an infeasible stated order, or a contradiction of
an active AC or Direction Contract field — and then it blocks on that
existing basis, never on detail volume [R8].Return shape:
Reviewed draft: v<N>
Verdict: APPROVE | ITERATE | REJECT
Architecture findings: <list | none>; Quality-gate findings: <list | none>
Direction preservation: preserved | requested-direction-change: yes
Required changes for Planner: <list | none>
APPROVE freezes the exact reviewed Planner draft. Non-blocking findings are optional follow-ups. Any plan-body change that must be incorporated before approval is blocking and yields ITERATE.
On ITERATE, Planner first classifies every blocker as accepted,
rejected, deferred, or direction-change [R5]. A disposition-only
user-decision packet carries the original finding, basis, pointer,
consequence, smallest correction, and Planner reason. Branch matrix:
Every accepted blocker's correction must appear in the final v2 plan body; a ledger entry without the corresponding body change is not a valid revision. The finding id / basis / applied change / body section pointer record belongs to the snapshot ledger and the Plan Approval Brief, not to the plan body. After v2-final, proceed directly to APPROVAL; the Plan Approval Brief carries the per-blocker finding→fix mapping and the user judges.
This ledger, with the Plan Approval Brief, is where the per-blocker finding→fix
mapping lives. Record in the snapshot: selected roles and ids in order,
topology and named trigger, each finding with reviewer-owned
blocking | non-blocking severity and its blocking basis, disposition, applied
change, accepted section pointer, permitted waiver, and
Revision: none | v2-final (finding→fix mapping in brief). An
inline fallback requires a reason. Missing review topology, or topology that
does not satisfy the selected mode and fired trigger, is a blocker rather than
a pass and cannot advance to APPROVAL. Do not advance while a user-pending
disposition or non-waivable gate is open, or accepted blocking feedback is not
in the body.
For a behavior change, start with one case observed in two states, not two separate tests: a must-fail-before-implementation case that becomes the must-pass-after-implementation case for the same assertion; the RED case must fail against the old broken behavior. Add a negative or forbidden-behavior case, semantic/adversarial case, or edge, boundary, or regression case only when an AC or named risk activates it. Reject tests that would pass old or wrong-surface behavior, only check marker strings, snapshot broad output, or mock away the contract; do not build a product-like state machine or fixture system solely for proof. A TDD exception explains why RED/GREEN is not practical.
Ralplan owns the authoritative Ralph execution profile. It owns verification tier. Keep exactly one complete profile in the plan:
Execution profile:
- Overall Ralph mode: LIGHT | STANDARD | THOROUGH
- Mode source: ralplan
- Verification tier: LIGHT | STANDARD | THOROUGH
- Artifact policy: compact | session-verification | full-prd-session
- Agent policy: inline-only | targeted-subagents | full-review-set
- Parallel trigger: approved-plan-handoff | explicit-user-request | natural-dispatch | none
- Worktree policy: direct-automatic-worktree | automatic-worktree-merge | not-applicable
- Worktree location: .oh-no/worktrees/<task-slug> | not-applicable
- Cleanup policy: not-needed | conditional | required
- Task sizing: T1 <mode> - <reason>; ...
- Escalation triggers:
For repository work-product mutation, Agent policy: inline-only is valid
only for a recorded LIGHT-tiny execution or when the execution host cannot
dispatch and Ralph must record that fallback. STANDARD/THOROUGH repository
work-product mutation plans select
targeted-subagents or full-review-set so executor ownership survives even
when Parallel trigger: none; none means no concurrent batch, not inline
mutation. Ralplan plans this ownership while Ralph remains the execution
orchestrator and .oh-no state owner.
Dispatch-eligibility test (canonical; other sections reference it): a role
qualifies for parallel dispatch only with safe isolation, decision-changing
value, and reasonable coordination cost. Record Parallel trigger: approved-plan-handoff only when at least one isolated role passes it;
otherwise record none while preserving the mode-required sequential executor
policy above. Ralplan records worktree policy; Ralph owns the actual worktree
decision.
Save the final plan to .oh-no/plans/{slug}.md with a
Next skill: oh-no-harness:<name> header field, this plan identity block,
approval status, the Direction Contract as its first section, and the
complete active plan body:
Plan identity:
- Planner draft id: v<N>
- Reviewed draft id: v<N> | not-reviewed (LIGHT: <reason>)
- Approval status: pending approval | approved-direct | approved-ultrawork
- Approval source: user approve-and-run | ultrawork automatic approval | none
Compact LIGHT plans must still preserve goal, scope, non-goals, acceptance
criteria, tasks, key files, verification, compact execution profile, and
approval status; they may omit inactive review, process, dispatch, risk, and
rollout ceremony. Dispatch detail appears only for roles passing the
dispatch-eligibility test in ## Execution Profile.
After consensus, show a decision-critical projection: path/status;
goal/scope; tasks/key files; AC alignment; smallest approach and rejected
complexity; active stack/validation/test/rollout decisions; review summary
with unresolved blockers/waivers; when a v2 exists, per-blocker finding→fix
mapping with body pointers and any permitted waivers; worktree/dispatch
handoff; verification; risks/open decisions; one compact execution-profile
recap. Omit inactive sections. Compact LIGHT preserves the same items ## Plan File Requirements
lists for compact LIGHT plans. When dispatch is active, recap only
roles/scopes passing the dispatch-eligibility test in
## Execution Profile.
The Plan Approval Brief ends with exactly one combined choice:
oh-no-harness:ralph choice preserves the plan path and
the exact frozen Parallel trigger value. When that value is
approved-plan-handoff, Ralph treats the approved dispatch plan as
authorization for every eligible isolated role; none preserves sequential
executor ownership without authorizing a concurrent batch.End the question with Which approach?. The plan stays pending approval
until an approve-and-run choice is explicit; the user is approving the host
agent's next action, not being asked to run a command. On approve-and-run,
set approved-direct, hand off the exact frozen plan and profile, and set
outcome HANDOFF_RALPH or HANDOFF_ULTRAWORK. On leave pending, set outcome
PAUSED with no workflow invoked.
If invoked from ultrawork, skip the user-facing brief. Complete the same
planning gates, write the plan plus
Plan approval source: ultrawork automatic approval after interview/spec,
set approved-ultrawork, and return control (outcome RETURN_ULTRAWORK).
Pause for the user only on: changed approved scope, a blocking product
decision or ambiguity, conflict with the approved requirements source,
missing execution profile, any unresolved rejected/deferred/direction-change
blocker, a pending non-waivable gate, an explicit manual-review request, or a
review verdict of ITERATE: a v2-final revision requires explicit user approval
of its finding→fix mapping; automatic approval covers only a zero-blocker
APPROVE path. Automatic approval never accepts a v2-final on the user's behalf,
because the mapping replaces the deleted closure review. Automatic approval
replaces only the prompt; it skips no gate.
Dispatch planning roles as real subagents by default on subagent-capable hosts, per the active platform adapter. Dispatch is the quality mechanism, not an optimization: it keeps exploration noise and draft production out of the main context, and Plan-Reviewer independence requires a separate context — a same-context review self-confirms its own plan. Keep sequential role boundaries [R9].
Optional roles retain recorded inline fallback when the host cannot dispatch
subagents, host policy does not authorize dispatch, the role lacks a concrete
input artifact, isolated responsibility, or expected output, or the work is too
small to benefit from context separation — keep a visibly separate inline role
block and record the reason. A required Plan-Reviewer is
the exception: it must use a separate context, with a generic separate subagent
when the named role is unavailable — one such instance for the single-reviewer
topology, or the active platform's default pair fallback for the pair-bearing
topology; if none exists, record the blocker and transition PAUSED instead
of reviewing inline. Record the trigger as Planning dispatch: natural-dispatch, explicit-user-request, or inline-fallback.
| Agent | Dispatch (when) |
|---|---|
explore | repository facts needed; one instance when one covers the question, fanning out to one per genuinely independent subsystem (up to 5), batched |
analyst | requirements gaps, unless satisfied by an approved interview spec; one instance when one covers the gaps, fanning out to one per genuinely independent requirement or risk area (up to 5), batched |
planner | creates Planner draft v1 and the single final Planner revision v2; owns body and dispositions |
plan-reviewer | reviews the exact draft once per ## Plan Review Contract at the risk-selected topology: one full-role reviewer by default, a perspective-diverse pair only when the named paired-review trigger fired |
Only Ralplan dispatches plan-reviewer; execution skills own their own
review roles.
Return: plan path; role and review-topology summary; findings ledger; execution profile; plan approval brief; approval status; recommended next skill or pause reason.
This compact main-session source is the hook-disabled native-skill fallback for caller-owned child packets. When SessionStart is enabled, its compatible global floor remains the normal direct-dispatch owner.
The main caller sends each child a proportional self-contained English packet with purpose/outcome; target role; exact target/revision and result/revision binding for repository mutation, review, or verification; scope/permissions/non-goals; contract/acceptance; expected evidence/output; and stop/escalation. Keep simple read-only packets proportional. Workflow-specific IDs and deltas come from the selected skill; role prompts do not reconstruct omitted caller context.
For initial independent review, verification, or debugging, withhold maker conclusions, expected verdicts, sibling outputs, and preferred root-cause hypotheses. Disclose them only later when needed for audit or clarification.
<ADAPTER_CONTRACT> This adapter binds the Ralplan core to Codex. The core owns every semantic decision; this file owns only host invocation and lifecycle mechanics. If they conflict, the core wins. The generated core plus this adapter is sufficient: longer platform, shared, and agent documents are optional maintenance context, never a runtime prerequisite. </ADAPTER_CONTRACT>
Follow the active platform runtime document's dispatch policy: dispatch is
trigger-loaded — dispatch only after the active skill's trigger fires. If
spawn_agent is exposed, first make the actual registered-agent call below.
Do not infer unavailability from schema comments, displayed role lists, task
names, or uncertainty; a task name is never proof that the registered role
loaded.
Derive each name from the actual Ralplan role and phase or review lens. For the planner and its two sibling review legs, use distinct identities such as:
spawn_agent(task_name="ralplan_planner_draft_1", agent_type="oh-no-planner", message=<self-contained packet>, fork_turns="none")
spawn_agent(task_name="ralplan_plan_reviewer_feasibility_1", agent_type="oh-no-plan-reviewer", message=<self-contained packet>, fork_turns="none")
spawn_agent(task_name="ralplan_plan_reviewer_coverage_1", agent_type="oh-no-plan-reviewer", message=<self-contained packet>, fork_turns="none")
Roles are explore, analyst, planner, and plan-reviewer; use those exact
oh-no-* types and derive role-correct equivalents for every other dispatch.
Pass one payload shape (message or items), never both. Do not request
fork_context or inherited conversation.
Only an actual unknown/unavailable agent_type rejection confirms the
custom role cannot be used. Then record the failure and use an exposed
generic agent with the matching docs/agent-core/<role>.md prompt embedded.
If no separate agent context exists, optional roles may use the core's recorded
inline fallback; a required Plan-Reviewer instead reports
dispatch-unavailable so the core records the blocker and transitions PAUSED.
Never label a generic child as a custom agent or substitute an inline required
review. Classify other failures:
message + items conflict -> retry once with exactly one payload shape
custom + history conflict -> retry without history; keep fork_turns="none"
timeout / empty wait -> still pending; keep waiting
thread / concurrency limit -> capture an existing dependency before new spawn
Every packet contains: run/phase; role; exact bounded task; requirements source; Direction Contract; Active plan contract; draft id and full draft/path when applicable; scope/non-goals; required output; and dependency/return owner.
Dispatch Analyst, Planner, and Plan-Reviewer only at their core phase and in strict sequence. Every dispatched Plan-Reviewer review at the pair-bearing topology runs as a concurrent perspective pair; spawn both legs before waiting. The single-reviewer topology spawns exactly one leg. Wait through the exposed lifecycle primitive until final status, capture and use the result, then clean up only if an actual cleanup action exists. Timeout, empty/no-update, or a queued acknowledgement is not final. Never interrupt a slow dependency, redo it inline, or use missing output as evidence.
On a named THOROUGH paired risk, start one Codex Plan-Reviewer and one
transport-owner Plan-Reviewer. The two review legs receive redacted packets identical except the single Assigned perspective: line.
The transport owner makes exactly one foreground Claude call when subprocess
permission, ${CLAUDE_BIN:-claude}, and auth are available:
claude --print --model opus --permission-mode dontAsk
--no-session-persistence <redacted exact-review packet>
The packet forbids edits, installs, nested workflows, or another host hop, and requires the synchronous two-pass result. A launch notice, background acknowledgement, empty output, or status pointer is unavailable evidence.
opposite-host success -> synthesize both host-tagged results into one verdict
opposite-host unavailable + default -> second independent Codex
plan-reviewer; record same-host fallback
opposite-host unavailable + require-cross-host -> PAUSED
STANDARD -> one required Plan-Reviewer instance on Codex, recorded as
single-reviewer; this is intentional single review, so no fallback
reason is required.
THOROUGH -> ONE required full-role Plan-Reviewer instance on Codex by default,
exactly as STANDARD, recorded as single-reviewer. ONLY a
named security/data/destructive, public/release-contract,
concurrency, migration, or comparable multi-system paired-review
trigger escalates to the perspective-diverse Plan-Reviewer pair,
recorded as same-host-perspective-pair, and that same fired trigger
selects cross-host review when available, or
same-host-parallel-fallback when the opposite host is unavailable;
record the fallback reason. `require-cross-host` pauses instead.
Pair-specific mechanics apply ONLY when that named paired-review trigger
actually fired; with no fired trigger, spawn exactly one full-role Plan-Reviewer
and record single-reviewer. An explicitly selected pair keeps strict fallback
semantics.
A required Plan-Reviewer is the exception: it must use a separate context, with a generic separate subagent or the existing same-host/cross-host fallback when the named role is unavailable; if none exists, record the blocker and transition PAUSED instead of reviewing inline.
Ask the core's ## Next Skill Handoff combined choice directly in the Codex
conversation. On explicit approve-and-run, invoke the selected installed
Ralph or Ultrawork skill yourself with the exact frozen plan and profile; do
not ask the user to type a command. Under Ultrawork, return control and the
approved artifact to the caller without another approval prompt.
Before every phase transition, verify: actual custom-agent attempt or recorded fallback; final dependency result captured; and at the pair-bearing topology, paired topology valid.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ralplan, planning, architecture-planning, risk-mitigation, task-planning
npx claudepluginhub jcwleo/oh-no-harness --plugin oh-no-harness22 skills in this plugin
/auto-routingUse when the user asks to enable, disable, or inspect future-session routing guidance; configuration only, not current-turn workflow selection./configure-subagentsUser-invoked setup action that configures the model and reasoning effort of the installed Oh No Harness Claude Code subagents. Run it explicitly with the slash command; it is never auto-invoked by the model./fusion-rescueUse when the user explicitly requests rescue or multi-agent synthesis, or a hard problem remains stalled after ordinary analysis/debugging; not for first-pass planning/debugging or routine implementation./install-statuslineUser-invoked setup action that installs the Oh No Harness developer statusline into the user's Claude Code settings. Run it explicitly with the slash command; it is never auto-invoked by the model./interviewUse when the requested deliverable is vague, broad, ambiguous, requirement-light, or missing users, constraints, or acceptance criteria and needs requirements discovery before implementation planning or execution./ralphUse when an approved plan, PRD, spec, ticket, or concrete add/fix/refactor/implement request supplies a usable acceptance contract; explicit test-first intent uses test-driven-development, while unknown root-cause investigation uses systematic-debugging.Other plugins' skills for the same job