counterfactual-failure-analysis

Analyze ee lab JSON evidence to produce counterfactual failure-analysis memos.

41|3|Updated Apr 29, 2026
One-click install
npx skills add https://github.com/Dicklesworthstone/eidetic_engine_cli --skill counterfactual-failure-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: counterfactual-failure-analysis
Source: https://github.com/Dicklesworthstone/eidetic_engine_cli/tree/main/skills/counterfactual-failure-analysis
Command: npx skills add https://github.com/Dicklesworthstone/eidetic_engine_cli --skill counterfactual-failure-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires hashlib, json, sys, pathlib, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps you write rigorous counterfactual failure-analysis memos for coding-agent outcomes by grounding the analysis in explicit ee lab evidence rather than speculation.

Core Features & Use Cases

  • Counterfactual evidence for failed runs: Collects and analyzes ee lab capture, ee lab replay, and ee lab counterfactual JSON outputs to assess what changed between interventions.
  • Stop/Go guardrails against overclaiming: Refuses to conclude success and enforces evidence redaction, workspace scoping, provenance linkage, and replay-support requirements.
  • Hypotheses with falsification paths: Produces an evidence-linked memo separating observed facts, replay-supported claims, hypotheses, and explicit assumptions.

Quick Start

Use the Skill to analyze why an agent failed by requesting a counterfactual failure memo grounded in the relevant ee lab JSON outputs for the same workspace and episode id.

Frequently Asked Questions about counterfactual-failure-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is counterfactual failure analysis for coding agents?

Counterfactual failure analysis evaluates why a coding-agent run failed by testing alternative evidence or context interventions. It compares replay outputs against observed failures to determine what changed and what should be tested or falsified.

How do I write an evidence memo for a failed agent run?

To write an evidence memo, you collect ee lab capture, replay, and counterfactual JSON outputs for the same workspace and episode. You then separate observed facts, replay-supported claims, hypotheses, and assumptions into a structured document.

Can I use ee lab JSON outputs to test why my agent failed?

Yes, you can use strictly parsed ee lab JSON outputs containing status, capture, replay, counterfactual, and why fields. The analysis requires provenance linkage and redaction verification to ensure evidence is bound to the specific workspace.

Do I need replay validation to perform counterfactual analysis?

Replay validation is required to enforce Stop/Go guardrails against overclaiming. The analysis refuses to conclude success without replay-supported claims, preventing speculative conclusions about why an agent run failed.

What are the limitations of counterfactual failure analysis?

The analysis enforces strict boundaries preventing durable mutation or DB scraping and requires degraded-code preservation. It cannot conclude success without replay support, and all evidence must pass redaction compliance and workspace scoping checks.

What's the best way to falsify causal hypotheses for coding agent failures?

The best way to falsify causal hypotheses is to ground them in explicit ee lab evidence rather than speculation. You produce an evidence-linked memo with explicit falsification paths separating verified replay claims from unverified assumptions.