/oh-no-harness:verification-before-completion runs instead · from oh-no-harness
Verifies that completion claims (fixed, passing, ready, safe) are backed by fresh evidence mapped to acceptance criteria. Prevents false success statuses without observable proof.
This skill never runs in Claude Code
It ships in oh-no-harness at skills/, but /oh-no-harness:verification-before-completion (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/verification-before-completion.md../../docs/platforms/codex-child-packet-floor.md../../docs/platforms/codex-verification-before-completion.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.
Do not claim success without fresh evidence. This skill is both a
standalone lightweight final gate and the final evidence gate inside
ralph and ultrawork — when those stronger workflows are active, verify
the final claim without weakening their PRD, review, cleanup, or QA
requirements. Do not use it as a substitute for ralph when the work needs
PRD tracking, cleanup, and review loops.
V1. No completion claim without fresh, acceptance-mapped evidence verified
in the current work pass; a previous run is not fresh evidence unless
nothing it depends on changed.
V2. A success status is not acceptance: HTTP 2xx with an empty or error
body, exit 0 with no state change, or a "done" log line without the
observable effect is missing evidence, not a pass.
V3. A command list is not proof: every acceptance criterion maps to
evidence with coverage strength, freshness, and audit status.
V4. An independent `verifier` audit is required only when a named trigger
fires: an explicit user request; stale, missing, or conflicting evidence;
a named security, data-loss, destructive, migration, recovery, or
public-contract risk that actually needs independent evidence; or accepted
blocking-review fix resolution. Mode, task non-triviality, the current
agent having authored or accepted the proving tests or implementation,
reviewer presence, and imminent completion are explicit NON-triggers. When a
trigger fires, this self-gate never substitutes for that audit.
V9. Fresh revision-bound reviewer, verifier, and command evidence is reused as
recorded. Completion imminence alone never justifies a rerun, an added
test, or a fresh dispatch; only stale, missing, or conflicting evidence
does.
V5. A merge or integration step is evidence-changing unless the caller
proves the final files and dependencies are identical to the
verifier-audited state.
V6. Reuse the caller's canonical ledger in place, recording only the delta;
never rewrite an unchanged parallel acceptance mapping.
V7. Secrets and PII are redacted to labeled placeholders before any
real-surface artifact, command output, or log is recorded as evidence.
V8. Final evidence gate: return the result to the caller; never chain to
another workflow skill.
Before making a completion claim, complete every step below; the claim is invalid if any step is skipped or rests on stale evidence:
verifier audit ran [V4]; if no separate context is available, record dispatch-unavailable as a blocker and return blocked/PAUSED to the caller, since inline command reruns cannot satisfy the audit. If none fired, record Independent verifier: not-required (no trigger fired: <reason>) and treat caller-owned fresh evidence as sufficient — do NOT dispatch a verifier merely because the claim is nontrivial, self-authored, or imminent [V9].code-reviewer was dispatched, record single-reviewer, or
perspective-pair plus its named firing trigger and the
active platform's pair-mode value. One full-role reviewer is the default; a
pair requires that named trigger, which also selects escalated
platform diversity. An inline fallback requires a reason. Missing review
topology is a named ledger gap, not a pass.
If no meaningful command exists, inspect the changed files and write a manual verification checklist instead of implying automated confidence.
Reuse the caller's canonical ledger when present [V6]; a standalone invocation creates this compact mapping once [V3]:
Acceptance-to-evidence mapping:
- AC ID / criterion:
- Evidence:
- Coverage strength: direct | indirect | manual | missing
- Freshness source:
- Audit status: actual | audited | stale | blocked
- Gap or residual risk:
Direct evidence is a focused test, scenario, or inspection that would fail
if the requested behavior were absent or wrong. Indirect evidence — broad
suites, lint, typecheck, formatting, compile — supports but never replaces
direct acceptance evidence for behavior-changing work. In STANDARD or
THOROUGH mode, for user-facing or behavior-changing work, direct evidence
must be an artifact observed from the real surface (actual command output,
terminal or UI capture, an HTTP response body); "should work", "looks
correct", and a printed or --dry-run command are indirect at best. This
bar does not apply to LIGHT or trivial work. New tests are supporting
evidence, not sufficient completion proof, when a viable nearby baseline or
smoke check could catch regressions.
Before the final claim, actively look for the most likely way local green evidence could still miss the real user, maintainer, or uncovered behavior. Keep the questions category-level and requirements-driven, not case-specific.
Risk check before completion:
- Acceptance criteria covered by direct evidence:
- Acceptance criteria only covered indirectly:
- Contract surface and semantic model checked:
- Baseline guard: existing test, smoke, inspection, or no viable baseline reason:
- Likely category risk a skeptical maintainer would test (for example
contract-surface mismatch, semantic-lifecycle/state miss, hidden regression):
- One more useful failing test I would write if time allowed:
- Completion claim:
The "one more useful failing test" field is non-blocking residual-risk
documentation. Do not implement it or use it to block completion unless it maps
to an unmet AC ID or an approved named risk; otherwise record it as not relevant with the reason.
The completion claim classifies the result as: complete with direct evidence, baseline guard satisfied or unavailable with reason, and no blocking review findings; locally verified with explicit residual risk; or blocked / failed verification because evidence or review blockers remain. Report every material finding regardless of class: the blocking predicate determines the completion result, not disclosure; non-blocking findings remain visible as residual risk.
When measurable evidence influenced the work, record a validation check: the evidence used, supported acceptance criterion or user outcome, proof and gap, recurring risk addressed, similar-work expectation, excluded case-specific details, added process cost, and completion claim. Treat metric movement as a diagnostic signal, never the acceptance criteria: reject completion claims whose only support is metric movement, unseen-check guessing, fixture knowledge, task-name-specific guidance, or a metric that does not match the real user, maintainer, operator, or public contract. Also reject process inflation that would not help a skeptical maintainer on similar work.
Dispatch verifier only when a named V4 trigger fires; nontriviality alone is
not one. Independent evidence mapping can change the ship/block decision or
expose residual risk, and when triggered its independence requires a
separate context [V4]. With no trigger, record the compliant not-required reason
and reuse the fresh caller-owned evidence [V9]. Add a code-reviewer (security
lens included) when the changed scope, verification tier, or user-facing risk
warrants it; one full-role instance is the default.
Apply the active platform's dispatch authorization; do not ask for per-run
subagent approval when standing authorization covers these roles. Every direct
role dispatch reuses the target role's required identity/result envelope and
adds only this workflow's claim and evidence delta. A standalone invocation
creates compact Packet, run/session, and task IDs plus the target revision/diff
fingerprint from its current claim and scope; adapters pass that packet
unchanged. Inline verification is appropriate only for tiny direct checks where
V4 does not require an independent audit. When V4 requires one and dispatch is
unavailable, record the blocker and return blocked/PAUSED; inline evidence may
supplement the record but cannot satisfy the audit.
| Agent | Use |
|---|---|
verifier | map the claim to evidence and run or inspect the required checks; scenario lens for user-facing flows; dispatched only on a named V4 trigger, and then a single self-host independent pass, never part of a reviewer pair |
code-reviewer | review behavior-affecting code or workflow prompt changes when risk warrants it; security lens for auth, data, file system, network, secrets, or policy-sensitive changes; ONE full-role instance by default, escalating to a perspective-diverse pair only on the named high-risk trigger that also selects escalated platform diversity (pair synthesis: merged findings) |
A dispatched code-reviewer is ONE instance running the complete role with both
ordered lenses. Only a named security, data, destructive, public-contract,
release-critical, new-concurrency, migration, or broad multi-system trigger
escalates to two same-role instances, each running the
full role: Lens A = adversarial correctness + security skeptic; 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. That same fired trigger
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. The verifier
remains outside this pair contract.
Confirming-verifier reuse: when this skill runs as the final gate inside
ralph or ultrawork and the caller already completed a triggered
independent confirming verifier pass for the same final claim, do not
dispatch a second verifier when the pass ran as an independent dispatch
(never the maker) after the selected code-review stage and no file,
dependency, or evidence changed after that pass [V1, V5]. On the no-fix
path, the review and verifier evidence bind to the reviewed revision. On the
fix path, reuse requires review evidence bound to the reviewed revision plus
verifier evidence bound to the fixed revision, with the verifier dispatched
after the fix manifest was recorded. Record the reused pass as a reference
to the caller's ledger entry and its revision binding under the carve-out.
This reuse satisfies only the verifier-dispatch expectation: every Required
Gate step still executes in full, and this clause never licenses skipping
this skill itself. Dispatch a fresh verifier only when evidence changed after
the caller's pass, or when a named V4 trigger fires and no compliant pass
exists; a compliant not-required (no trigger fired) record needs no dispatch.
Confirming code-reviewer reuse: when this skill runs as the final gate inside
ralph or ultrawork and the caller already completed the single required
code-reviewer round for the same final claim — single-reviewer or a
triggered perspective-diverse pair — do not
dispatch a second code-reviewer. On the no-fix path, reuse requires review
evidence bound to the reviewed revision with no file, dependency, or evidence
change since that review. On the fix path, reuse requires that review binding
plus verifier evidence bound to the fixed revision, with no file, dependency,
or evidence change after the verifier pass. Record the reused review as a
reference to the caller's ledger entry and its revision binding. Dispatch a
fresh code-reviewer only when this skill runs standalone (not nested) or no
compliant code-review exists for the claim.
Return: claim verified; evidence used; commands or inspections performed; acceptance criteria status; acceptance-to-evidence mapping; contract surface and baseline guard status; risk check and completion claim; validation check when applicable; skipped checks and reason; residual risk.
None — this is the final evidence gate [V8]. Return the result to the
caller (ralph, ultrawork, or direct invocation). Do not chain to
another workflow skill.
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 Verification Before Completion 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 verification role and audit lens; for example:
spawn_agent(task_name="verification_before_completion_verifier_audit_1", agent_type="oh-no-verifier", message=<self-contained packet>, fork_turns="none")
Roles are verifier and code-reviewer; use role-correct unique equivalents
for other or sibling audits. 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 verification delta unchanged. 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. If no separate agent context exists,
inline verification is allowed only when the core does not require an
independent audit; otherwise report the dispatch-unavailable blocker so the
caller remains blocked/PAUSED. Close a completed receiver only if the host
exposes a close primitive; if none exists, closure is host-managed — record
that and continue.
code-reviewer was dispatched, record single-reviewer for the
default one full-role Codex review, or perspective-pair plus the fired
named trigger and same-host-perspective-pair / cross-host /
same-host-parallel-fallback; only the fallback requires a reason. Missing
review topology is a named ledger gap, not a pass.| verifier | map the claim to evidence and run or inspect the required checks; scenario lens for user-facing flows; dispatched only on a named V4 trigger, and then a single self-host independent pass, never a cross-host or same-host pair |
| code-reviewer | review behavior-affecting code or workflow prompt changes when risk warrants it; security lens for auth, data, file system, network, secrets, or policy-sensitive changes; ONE full-role instance by default, escalating to a perspective-diverse pair only on the named trigger that also selects cross-host escalation (cross-host merge: merged findings) |
Pair-specific mechanics apply ONLY when that named trigger actually fired; with
no fired trigger, spawn exactly one full-role reviewer. When it did fire:
The two review legs receive redacted packets identical except the single Assigned perspective: line.
This channel opens ONLY after a named THOROUGH code-reviewer trigger actually
fires; absent that trigger there is no second leg to consult. A fired trigger
starts one Codex reviewer 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. An explicitly selected pair keeps strict fallback
semantics. The verifier is never paired.
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.npx claudepluginhub jcwleo/oh-no-harness --plugin oh-no-harnessOther plugins' skills for the same job