OpenParable
Skip to content
← Back to skills

Structural Counterfactual

Research
structural-counterfactual

Structural Counterfactual is an Agent Skill for research published in the yogsoth-ai/de-anthropocentric-research-engine repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Strategy: Pearl Three-Step counterfactual — Abduction (fit model to evidence), Action (intervene on factor), Prediction (derive counterfactual outcome).

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/yogsoth-ai/de-anthropocentric-research-engine/blob/HEAD/skills/structural-counterfactual/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/structural-counterfactual, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Structural Counterfactual Strategy

Pearl Three-Step: Abduction, Action, Prediction applied to artifact validation.

Method

  1. causal-claim-extraction identifies causal structure in the artifact
  2. factor-enumeration lists all factors in the causal model
  3. Abduction: fit background variables to observed evidence
  4. Action: single-factor-removal intervenes on one factor at a time
  5. Prediction: counterfactual-scenario-construction derives new outcome
  6. necessity-evaluation and sufficiency-evaluation score each factor
  7. load-bearing-identification synthesizes results

Budget Table

ParameterSML
Factors modeled51020
Interventions per factor124
Prediction depth248

Orchestration

causal-claim-extraction → factor-enumeration
→ [for each factor]:
    single-factor-removal (abduction + action)
    → counterfactual-scenario-construction (prediction)
    → necessity-evaluation + sufficiency-evaluation
→ load-bearing-identification → fragility-measurement

Subagents

  • causal-claim-extraction (model building)
  • factor-enumeration (variable identification)
  • single-factor-removal (intervention)
  • counterfactual-scenario-construction (prediction)
  • necessity-evaluation (PN scoring)
  • sufficiency-evaluation (PS scoring)
  • load-bearing-identification (synthesis)
  • fragility-measurement (aggregation)

Available Tactics

Optional, no fixed order; the final leaf is always a sop.

TacticWhen to use
causal-necessity-testingTactic: Extract causal claims, evaluate probability of necessity (PN) and sufficiency (PS) for each, classify into necessity-sufficiency quadrants.
systematic-factor-ablationTactic: List all factors, remove one at a time, assess conclusion stability, rank factors by load-bearing importance.

Available SOPs

Optional, no fixed order; the final leaf is always a sop.

SOPWhen to use
causal-claim-extractionExtract all causal claims (X causes Y, X leads to Y, X enables Y) from an artifact, producing a structured list of cause-effect pairs.
counterfactual-scenario-constructionConstruct precise, internally consistent counterfactual scenarios where specified factors are altered, then reason about the resulting conclusion.
factor-enumerationList all key factors, conditions, and assumptions that support or enable the artifact's conclusion.
fragility-measurementCompute a fragility index from flip-point distances and degradation scores, summarizing how robust the conclusion is.
load-bearing-identificationIdentify which factors are "load-bearing walls" — factors whose removal would collapse the conclusion.
necessity-evaluationEvaluate the probability of necessity (PN) for a causal factor — would the conclusion fail if this factor were absent?
single-factor-removalRemove one specified factor from the artifact's support structure and reason about how the conclusion changes.
sufficiency-evaluationEvaluate the probability of sufficiency (PS) for a causal factor — would this factor alone be enough to produce the conclusion?