Outcome eval

From Intense-Visions/harness-engineering · View interactive version

Outcome eval is an AI agent skill from the GitHub repository Intense-Visions/harness-engineering. > Post-execution LLM-judgment: did the implementation actually satisfy its spec? Reads the spec's acceptance section, the change diff, and test output, and emits a confidence-rated `OutcomeVerdict` (`

How to use this skill

Skill file

Outcome Eval

Post-execution LLM-judgment: did the implementation actually satisfy its spec? Reads the spec's acceptance section, the change diff, and test output, and emits a confidence-rated OutcomeVerdict (SATISFIED | NOT_SATISFIED | INCONCLUSIVE) with a rationale and unmet criteria. Ship authority is derived in TypeScript, never trusted from the LLM: a high-confidence NOT_SATISFIED blocks ship; every other verdict is advisory. The harness's first blocking post-execution spec-satisfaction gate (long a top-priority gap). Each verdict persists as an execution_outcome node, compounding into skill-effectiveness baselines.

When to Use

Process

Phase 1: GATHER — Collect inputs

  1. Capture the change under judgment as a unified diff: git diff (or git diff <base>...HEAD for a branch). Record it as diff.
  2. Capture test-runner output. If a test command is known, run it and capture stdout+stderr as testOutput; otherwise pass the most recent captured output. Empty/unparseable test output is tolerated (degrades to advisory).
  3. Resolve the spec path. Prefer the spec under docs/changes/<feature>/proposal.md for the current change. Record as specPath.

Phase 2: RESOLVE — Find the judgment section

The evaluator resolves the section internally via the fallback chain ## Success Criteria -> ## User-Visible Behavior -> ## Overview, recording the match in judgedAgainst. No manual action — pass specPath and let OutcomeEvaluator resolve. If no section is judgable, the verdict is INCONCLUSIVE/advisory.

Phase 3: JUDGE — Invoke the evaluator

  1. Invoke the MCP tool mcp__harness__outcome_eval with { specPath, diff, testOutput } (optional model). The tool constructs OutcomeEvaluator cli-side and calls evaluate({ specPath, diff, testOutput }); the supported v1 provider is the anthropic analysis provider (ANTHROPIC_API_KEY).
  2. diff and testOutput are required inputs and the agent MUST supply them from the session (git diff + captured test-runner output). They are the evidence the judge reasons over — passing an empty diff or empty testOutput is the degradation path, not the normal path: the verdict degrades to INCONCLUSIVE/advisory (never blocking), which defeats the gate. Do not invoke the tool without real diff/test content.
  3. The LLM returns ONLY verdict / confidence / rationale / unmetCriteria. authority is computed in TypeScript from (verdict, confidence) and is never read from the LLM — do not attempt to override it. The tool returns the verdict exactly as the evaluator derives it.
  4. The call is degrade-safe: provider failure (incl. no ANTHROPIC_API_KEY), empty diff, empty test output, or missing judgable section yields INCONCLUSIVE/low/advisory. It never throws and never blocks.

Phase 4: GATE — Render and (conditionally) halt

  1. Render the verdict: verdict, confidence, judgedAgainst, rationale, and unmetCriteria.
  2. Authority rule (must match deriveAuthority): authority is blocking iff verdict === 'NOT_SATISFIED' && confidence === 'high'; every other combination — including all INCONCLUSIVE and SATISFIED cases, and all medium/low NOT_SATISFIED — is advisory.
  3. On a blocking verdict: HALT before the Ship step. Report the unmet criteria and stop; do not proceed to step 7. Resolution requires fixing the implementation (or the spec) and re-running outcome-eval.
  4. On an advisory verdict: report it and proceed. Advisory NOT_SATISFIED is surfaced for human attention but does not stop the workflow.

Harness Integration

Known Limitations

Success Criteria

See docs/changes/outcome-eval/proposal.md for the full 9 criteria. This skill satisfies SC8 (orchestrator step 6.5 + blocking halt) and SC9 (introduces no new harness validate findings; layer rules respected).

Rationalizations to Reject

These are common rationalizations that sound reasonable but lead to incorrect results. When you catch yourself thinking any of these, stop and follow the documented process instead.

| Rationalization | Why It Is Wrong |

| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

| "I don't have test output on hand, so I'll invoke the tool with just the diff." | diff AND testOutput are both required evidence. Passing an empty testOutput is the degradation path — the verdict silently falls to INCONCLUSIVE/advisory, a false-negative at the ship gate. Gather real test output from the session before invoking. |

| "The verdict is high-confidence NOT_SATISFIED, but the author insists it's fine, so I'll downgrade it to advisory and proceed to Ship." | authority is deriveAuthority(verdict, confidence) in TypeScript, never read from the LLM or the author. A high-confidence NOT_SATISFIED blocks. The only resolution is to fix the implementation (or amend the spec on its own merits) and re-run — not to override the gate. |

| "This is a small change and Code Review already passed, so I can skip step 6.5." | The gate runs at orchestrator step 6.5, after Code Review and before Ship, and is not optional. A blocking verdict halts before step 7 regardless of change size. |

| "The model keeps returning INCONCLUSIVE, so I'll re-prompt until it commits to SATISFIED." | Repeated INCONCLUSIVE almost always means diff/testOutput weren't supplied or the spec has no judgable section — not that the prompt is too strict. Fix the inputs; never loosen the conservative-confidence prompt to force a verdict. |

| "INCONCLUSIVE persists as result: 'failure', so I'll suppress persistence to avoid punishing the persona." | outcome-eval nodes are scorer-non-counting in v1 (they omit agentPersona and outcome_of edges), so the mapping punishes no one. Do not alter persistence modeling ad hoc; that must change only alongside a deliberate scorer-attribution change. |

Examples

Example: NOT_SATISFIED with high confidence (blocks)

Input: spec Success Criteria require GET /api/users/:id to return 404 with { error: 'User not found' }; the diff implements the happy path only, no 404 branch; test output shows the 404 test failing.

Verdict:

verdict:        NOT_SATISFIED
confidence:     high
judgedAgainst:  success-criteria
authority:      blocking
unmetCriteria:
  - "404 path for nonexistent user is unimplemented; the failing test asserts { error: 'User not found' }."
rationale:      "The diff adds the lookup but returns 200 with an empty body when the user is missing."

Action: HALT before Ship. Report unmet criteria; do not open the PR.

Example: partial implementation (advisory)

Input: the diff meets most criteria; one acceptance item is ambiguous in the diff.

Verdict: NOT_SATISFIED confidence: medium authority: advisory — surfaced for review, workflow proceeds.

Gates

Escalation

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.