/oh-no-harness:systematic-debugging runs instead · from oh-no-harness
Guides systematic root cause analysis for failures, regressions, and flakes. Emphasizes reproduction, hypothesis ledger, causal toggle confirmation, and minimal fix with test.
This skill never runs in Claude Code
It ships in oh-no-harness at skills/, but /oh-no-harness:systematic-debugging (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/systematic-debugging.md../../docs/platforms/codex-child-packet-floor.md../../docs/platforms/codex-systematic-debugging.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.
Find the root cause before changing behavior. This is the direct debugging
entry point for failures that do not need the full ralph execution loop;
do not use it for greenfield feature work — use ralplan or ralph when
the task is broader than a bounded failure.
D1. Reproduce (or explain why reproduction is blocked) before changing any
code; never fix from a stack-trace line when the bad value originated
elsewhere.
D2. A hypothesis ledger precedes diagnostic dispatch and deep investigation:
one recorded hypothesis for an obvious localized failure; 2-3 competing
hypotheses for unknown, nontrivial, flaky, repeated, or cross-boundary
failures.
D3. A root cause is confirmed falsifiably by a causal toggle — toggling the
suspected cause makes the failure appear and reverting makes it
disappear; when a clean toggle is not feasible, state why and name the
next-strongest confirming evidence.
D4. The minimal fix is applied only after root cause and reproduction
evidence exist; behavior fixes create a failing reproduction test
first (read and follow `test-driven-development`).
D5. Respect the active caller's stricter failed-fix budget and escalation
route; without one, stop and route back to the user or `ralplan` after
three failed fix attempts. Also route back on architecture-level coupling
or a fix that would change broad APIs, product behavior, data handling,
security, or delivery scope; do not directly dispatch
`plan-reviewer` — planning review is Ralplan-owned.
D6. `fusion-rescue` is a bounded internal escalation when diagnostics
stall; it returns control here before any fix is applied.
D7. The main agent orchestrates and owns `.oh-no` state. Diagnostic and
evidence roles dispatch by default, and confirmed repository work-product
fixes dispatch `executor`; inline mutation is only a recorded LIGHT-tiny
or dispatch-unavailable fallback.
D8. The verification evidence must show the failure mode is gone, not only
that the current trigger no longer appears in this environment.
D9. Mid-loop skill: after verification, return the result to the caller
(`ralph`, `ultrawork`, or direct invocation); never chain to another
workflow skill.
debugger per hypothesis
under Parallel hypothesis testing. Otherwise select one active hypothesis
and test it sequentially with the smallest diagnostic step. Update the
ledger and reject or replace hypotheses when evidence contradicts them.fusion-rescue, then return here with the synthesis [D6].executor by default once root cause and
reproduction evidence exist. Keep the same executor identity across the
reproduction RED, GREEN, and REFACTOR writes when TDD applies. Inline
mutation is allowed only with Mutation fallback: LIGHT-tiny or after a
failed dispatch attempt recorded as Mutation fallback: dispatch-unavailable [D4, D7], and it owes the unchanged executor contract
per Ralph's ## Mode-Gated Agent Dispatch.## Agent Roles only when
permitted by any caller-owned review budget.verification-before-completion before claiming the failure is fixed
[D8].Parallel hypothesis testing (steps 4-5):
After building the ledger, when two or more active hypotheses are independently testable,
dispatch exactly one debugger per hypothesis in one batch — at most 3 by
default, extending toward 5 only when 3+ genuinely independent hypotheses are
testable. Dispatch the complete eligible batch before waiting for any result.
Each initial fan-out packet names exactly one assigned hypothesis and its confirming/refuting evidence targets.
Every other hypothesis and the rest of the hypothesis ledger are withheld.
Each debugger's initial packet is symptom-first with the raw reproduction,
expected and actual behavior, environment, and a read-only diagnostic scope,
without a preferred cause or fix, expected verdict, confidence ranking, or
sibling conclusions. A debugger must not receive multiple eligible hypotheses
or investigate the full ledger. A later clarification may disclose prior
actions only as neutral exact action, state, and raw outcome. Each debugger
runs only non-mutating diagnostics in a disjoint scope and returns evidence,
confidence movement, and rejected-hypothesis rationale. Keep investigation sequential for
one hypothesis, dependent hypotheses, overlapping scopes, or state-mutating
diagnostics. The main thread synthesizes the evidence, selects the confirmed
root cause, and a single executor applies the fix.
Stop and ask or route back to the user or ralplan when [D5]:
Dispatch diagnostic and evidence roles by default on subagent-capable hosts
[D7] — context separation keeps logs, traces, and exploratory output out of
the main thread. Dispatch is trigger-loaded and governed by the active
platform adapter; when this debugging pass runs inside Ralph, Ralph's
## Mode-Gated Agent Dispatch governs. Apply the active platform's
dispatch authorization; do not ask for per-run subagent approval when
standing authorization covers these roles. One need test covers diagnostic,
evidence, and mutation work alike: inline fallback may be unavailable,
unsafe-to-isolate, or too-small-to-benefit when recorded. Repository mutation
follows the executor-default rule in D7 and records LIGHT-tiny or
dispatch-unavailable for an inline write. Do not collapse a role inline merely
for convenience when the work is sizeable, genuinely independent, or
parallelizable and the host can dispatch it with an isolated scope; a fired
post-fix review or audit trigger is exempt from the need test and never runs
inline.
The normal flow is diagnostic first (debugger, plus explore when
context is missing), then the executor-default minimal fix (executor), then
trigger-gated independent evidence (verifier) only when the predicate below
fires. Every direct role dispatch reuses the target role's
required identity/result envelope and adds only the debugging workflow delta.
An initial debugger packet contains the raw reproduction, expected behavior,
actual behavior, environment, and diagnostic scope. In eligible fan-out it also
names exactly one assigned hypothesis and its confirming/refuting evidence
targets. Every other hypothesis and the rest of the hypothesis ledger are
withheld. The packet withholds the caller's
preferred cause or fix and all sibling conclusions, plus the expected verdict
and confidence ranking. Later disclosures of prior actions use only neutral
exact action, state, and raw outcome. Executor fix packets may include the
independently confirmed root cause. Debugger output itself is not redesigned
here.
| Agent | Dispatch (when) |
|---|---|
debugger | exactly one instance per independently testable active hypothesis in one complete batch; one sequential instance when fan-out is ineligible; a paired investigation only for one named THOROUGH uncertainty when fan-out is not active |
explore | gather codebase facts, related call sites, working examples, and commands; one instance when one covers the question, fanning out to one per genuinely independent subsystem (up to 5), batched |
executor | default owner of the minimal fix after root cause and reproduction evidence exist; preserve its TDD identity across RED/GREEN/REFACTOR [D4, D7] |
verifier | confirm the fix and package evidence; scenario lens for user-facing flows; dispatched only when a named trigger in ### Independent Verifier Trigger Predicate fires, and then a single self-host independent pass, never part of a reviewer or debugger pair |
code-reviewer | post-fix when the changed code is nontrivial, shared, workflow-affecting, or maintainability-sensitive, or its security lens is needed because auth, data, file system, network, secrets, sandbox, or policy-sensitive behavior is touched; ONE full-role instance by default, escalating to a perspective-diverse pair only on the named high-risk trigger (pair synthesis: merged findings) |
STANDARD uses one dispatched debugger per eligible hypothesis in the complete
fan-out batch, or one sequential instance when fan-out is ineligible. Only when
hypothesis fan-out is not active may a named THOROUGH trigger use two same-role
instances with identical packets for one named uncertainty, dispatched in
parallel and synthesized into one result; never multiply that pair across
hypotheses. A dispatched post-fix code-reviewer is ONE full-role instance by
default, recorded single-reviewer. ONLY a named security, data, destructive,
public-contract, release-critical, new-concurrency, migration, or broad
multi-system trigger escalates it to the perspective-diverse pair: two same-role
instances, each running the full role, with Lens A = adversarial correctness +
security skeptic and Lens B = maintainability + coverage completeness. Their
packets are
identical except the single Assigned perspective: line; the instances are
dispatched in parallel and synthesized into one verdict. Reviewer count is never
a quality proxy: mode alone, task size, non-triviality, reviewer availability,
and imminent completion never authorize a second instance. That same fired
trigger also selects escalated platform diversity. The active
platform supplies the diversity leg. If that leg is unavailable, default mode
uses two independent same-model instances and records the reason; an explicit
caller demand for diversity is strict mode and transitions to PAUSED instead of
falling back.
This predicate is the ONLY authority that selects the post-fix verifier.
Dispatch it when, and only when, at least one named trigger fires:
Explicit NON-TRIGGERS — each is insufficient by itself and MUST NOT be recorded
as a verifier basis: the selected execution mode, including THOROUGH; task size
or non-triviality; the proving reproduction tests or fix having been authored or
accepted by the same agent; a code-reviewer having run, or not run; and
completion being imminent. When no trigger fires, record
Independent verifier: not-required (no trigger fired: <reason>) and let the
caller own the fix evidence. When a trigger does fire, the verifier is a single
self-host independent pass, never a pair.
Return: failure reproduced or reproduction blocker; hypothesis ledger with rejected hypotheses and evidence; root cause and evidence; causal chain and why the fix removes the failure mode; causal toggle (the on/off observation, or "not feasible" with the reason and next-strongest confirming evidence); reproduction test or documented exception; fix summary; verification commands and results; residual risk.
None — after any bounded fusion-rescue escalation, return the result to the
caller; do not chain to another workflow skill [D9].
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 Systematic Debugging 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>
Dispatch is trigger-loaded — dispatch only after the core's trigger fires.
If spawn_agent is exposed, make the actual registered-agent call first:
Derive every name from the actual debugging role and hypothesis or phase; for example:
spawn_agent(task_name="systematic_debugging_debugger_hypothesis_1", agent_type="oh-no-debugger", message=<self-contained packet>, fork_turns="none")
Roles are debugger, explore, executor, verifier, and code-reviewer;
use role-correct unique equivalents for other or sibling dispatches. Only an
actual unknown/unavailable agent_type rejection
confirms the custom role cannot be used; then use a generic agent with the
matching docs/agent-core/<role>.md prompt embedded and record the
fallback. One payload shape per spawn; no fork_context. Pass the core-defined
role envelope and debugging delta unchanged. Spawn parallel hypothesis
debuggers as one batch before wait_agent. A timeout, empty wait, or queued acknowledgement is not
final — never close a running or pending subagent merely because it is
slow, and never use missing output as completion evidence. Close a
completed receiver only if the host exposes a close primitive; if none
exists, closure is host-managed — record that and continue.
| debugger | exactly one instance per independently testable eligible hypothesis in one complete batch; one sequential instance when fan-out is ineligible; a paired cross-host or same-host investigation ONLY for one named THOROUGH uncertainty when fan-out is not active |
| verifier | confirm the fix and package evidence; scenario lens for user-facing flows; dispatched only on a named trigger from the core's verifier predicate, and then a single self-host independent pass, never a cross-host or same-host pair |
| code-reviewer | post-fix when the changed code is nontrivial, shared, workflow-affecting, or maintainability-sensitive, or its security lens is needed because auth, data, file system, network, secrets, sandbox, or policy-sensitive behavior is touched; ONE full-role instance on Codex by default, escalating to a perspective-diverse pair only on the named trigger that also selects cross-host escalation (cross-host merge: merged findings) |
STANDARD dispatches one debugger per independently testable eligible
hypothesis in the complete batch, or one sequential debugger when fan-out is
ineligible. Only when fan-out is inactive may a named THOROUGH trigger select a
cross-host or same-host debugger pair for one named uncertainty; never multiply
that pair across hypotheses. A dispatched post-fix code-reviewer review
spawns exactly ONE full-role Codex reviewer, recorded as single-reviewer.
Pair-specific mechanics apply ONLY when that named pair trigger actually fired;
it then runs as an intentional same-host perspective pair recorded
same-host-perspective-pair, with no fallback reason. When the opposite host is
unavailable for a triggered pair, record same-host-parallel-fallback and the
required fallback reason. An explicitly selected pair keeps strict fallback
semantics.
Report every result, but do not classify it as passing until every dispatched review records topology:
an eligible debugger batch records hypothesis-fanout:<count>; use
single-reviewer for a sequential STANDARD debugger and for the default
one full-role Codex post-fix review; use
perspective-pair plus same-host-perspective-pair, cross-host, or
same-host-parallel-fallback only for a triggered post-fix code-reviewer pair
or a triggered
THOROUGH debugger pair. An inline fallback requires a reason. Missing review
topology is a named ledger gap, not a pass. The verifier is never paired.
The two review legs receive redacted packets identical except the single Assigned perspective: line.
This channel opens ONLY after a named THOROUGH pair trigger actually fires;
absent that trigger there is no second leg to consult. When hypothesis fan-out is
inactive, a fired named THOROUGH paired debugger
trigger starts one Codex role and one transport-owner making exactly one
foreground Claude call. A fired post-fix code-reviewer pair trigger likewise
starts one Codex role and one transport-owner making exactly one foreground
Claude call. A launch notice, background acknowledgement, or empty output is
unavailable evidence; on opposite-host unavailability run
same-host-parallel-fallback and record the required fallback reason.
What SKILL.md sets; muted values are Claude Code's defaults
22 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.npx claudepluginhub jcwleo/oh-no-harness --plugin oh-no-harnessOther plugins' skills for the same job