Emincanozen

Counterfactual Premortem Oracle — AI skill for Claude Code

AI community

Pre-execution AI agent skill for counterfactual failure simulation, epistemic provenance auditing, rollback symmetry checks, and intent-drift detection.

How to install Counterfactual Premortem Oracle

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Emincanozen/counterfactual-premortem-oracle and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Counterfactual Premortem Oracle does

Pre-execution AI agent skill for counterfactual failure simulation, epistemic provenance auditing, rollback symmetry checks, and intent-drift detection.

Alternatives in AI

  • Mex — Persistent project memory for AI coding agents 672 ★
  • Claudekit — by Carl Rannaberg - Impressive CLI toolkit providing auto-save checkpointing, code quality hooks, specificatio 633 ★
  • Mirofish CLI — Multi-agent AI prediction engine - digital sandbox for scenario simulation (fork of 666ghj/MiroFish) 307 ★

README

Counterfactual Pre-Mortem Oracle

[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/) [![Standard: Agent Skills](https://img.shields.io/badge/standard-agent--skills-success.svg)](https://github.com/Emincanozen/counterfactual-premortem-oracle) [![CI](https://github.com/Emincanozen/counterfactual-premortem-oracle/actions/workflows/ci.yml/badge.svg)](https://github.com/Emincanozen/counterfactual-premortem-oracle/actions/workflows/ci.yml)

**Counterfactual Pre-Mortem Oracle** is a zero-dot whitespace agent skill that performs pre-execution epistemic safety audits, Pearl-style counterfactual failure simulation, rollback symmetry verification, and intent drift forensics before state mutation occurs.


Screenshots

Pre-Mortem Audit & Intent Drift Alignment

![Counterfactual Pre-Mortem Oracle CLI Execution](docs/screenshots/cli-execution.png)

Automated Test Verification Suite

![Counterfactual Pre-Mortem Oracle Test Suite Verification](docs/screenshots/test-verification.png)


The Zero-Dot Void in Autonomous AI Skills

Over 95% of public agent skills focus exclusively on *how to generate code, invoke APIs, or orchestrate tools*. Almost none evaluate the **epistemic safety** of an agent's reasoning before mutating state on disk, in databases, or across remote networks.

In multi-turn autonomous loops (Turn 4+), agents regularly fall into **Local Optimization Traps** and develop **Epistemic Drift**:

  1. Speculative assumptions are recorded as working notes.
  2. In subsequent turns, the agent mistakes its own speculative notes for ground truth.
  3. Irreversible mutations (rm -rf, force pushes, unbacked deletions, unparameterized queries) execute with zero rollback vectors.
  4. Silent error-swallowing (except: pass) reports success (exit code 0) while corrupting data.

The **Counterfactual Pre-Mortem Oracle** closes this saf