Skip to main content

Confidence Auditor — five-step reasoning pressure test

Interrogation, not supervision. You hand it reasoning-in-progress; it returns a collision record with a revised confidence — before→after, per load-bearing assumption and overall. It never originates analysis. It pressure-tests analysis that already exists.

No prerequisites. You don't need to know anything about the project's history, any framework, or any belief system. The mechanism is the whole product.

(Lineage: this is the front-facing conversion of the metacog skill from Ryan's skill-suite, MIT. What changed in the conversion is documented in CHANGELOG.md — the name and nothing else, really; this was already the cleanest skill in the suite.)

What it does

Five steps, in order, never reordered — evaluating before colliding is the most common failure mode (you polish claims that should have died):

  1. Trigger Thresholds — decide whether it's worth firing at all. Fires on: stakes (hard-to-reverse decision), confidence-without-evidence, contradiction-present (an uncollided counter-take exists), premature-convergence (one take survived unchallenged), or explicit invocation. No tripped threshold = stand down, honestly. A controller that always fires is noise.
  2. Strongest Countermodel — the strongest internally-coherent case against the current conclusion. Steelman only: named premises, named evidence, named mechanism. The package checks the countermodel mechanically (see "Why it works") — a strawman fails the run. An honest "I can't build a strong one" is a finding, not a failure.
  3. Load-Bearing Assumptions — every assumption the conclusion depends on, marked load-bearing (if false, the conclusion falls) or structural (supports it, but it survives without it). Only load-bearing assumptions go to collision.
  4. Collision — the countermodel attacks each load-bearing assumption, one at a time: survives / weakened / broken. Contradictions are held in parallel non-subordinating sentences ("X is true. Y is also true." — never "X, however Y"). The surprise check: if the collision produced nothing neither side contained alone, it wasn't a real collision — run it again, harder.
  5. Confidence Revision — before→after per assumption and overall. The delta is the output. A broken load-bearing assumption doesn't merely lower confidence — it demotes the conclusion to a hypothesis pending new evidence. "I feel less sure" (self-report) is distinguished from "the assumption broke under the countermodel" (finding).

Core principle: confidence and correctness are independent variables. This tool interrogates the gap between them.

Why it works

Most reasoning failures are structural, not intellectual. Confidence quietly outruns evidence. The first plausible story wins and alternatives never get built. Contradictions get smoothed with "however." The audit attacks all three mechanically:

  • Trigger gating means it only fires when the stakes or the contradiction warrant it — no theater runs.
  • The steelman check (steelman.py) catches weak countermodels by their mechanical signatures: too short to be specific, hedge phrases with no named premises ("some might disagree..."), no evidence or mechanism named, or a restatement of the conclusion in contrast clothing. A weak countermodel fails the run before the collision can be theater. This is the failure mode live-model evals found in small models — checked in code, not just in prose.
  • Load-bearing classification focuses the collision where it can change the conclusion. Colliding structural assumptions is motion without effect.
  • The demotion rule makes broken assumptions costly: the conclusion doesn't get a softer number, it gets demoted to a hypothesis.

Quickstart

Zero dependencies beyond Python 3.10+ and a model to run the engine on.

cd metacog
python3 -m unittest discover -s tests     # 39 offline tests — prove the machinery first

To run a real pressure test, you need a backend — any LLM that can follow the protocol prompt:

# Fully offline: local Ollama
python3 examples/run_local.py reasoning.txt --ollama

# OpenRouter (free-tier models work fine)
OPENROUTER_API_KEY=... OPENROUTER_MODEL="nvidia/nemotron-3-ultra-550b-a55b:free" \
  python3 examples/run_local.py reasoning.txt --openrouter

reasoning.txt is plain prose:

CONCLUSION: Migrate billing to the new provider now
REASONING: Costs are lower and churn will drop.
EVIDENCE:
- Quote: $38k migration
- Q1 cohort churn 3.8%
CONFIDENCE: 80

The engine returns a rendered collision record — the portable artifact. The engine never writes files and never claims external persistence: your code saves the record.

Or use it as a library:

from metacog import (
    ReasoningInput, run, to_collision_record, OllamaBackend,
)

result = run(
    ReasoningInput(
        conclusion="Migrate billing to the new provider now",
        reasoning="Costs are lower and churn will drop.",
        evidence=["Quote: $38k migration", "Q1 cohort churn 3.8%"],
        stated_confidence=80,
        triggers=["stakes", "contradiction-present"],
    ),
    OllamaBackend(),
)
assert result.ok
print(to_collision_record(result.record).render())

Inputs, outputs

  • Input: a conclusion, the reasoning behind it (prose), optional evidence, optional stated confidence, optional claimed triggers.
  • Output: a normalized record dict, or a rendered collision-record Markdown document — complete, self-contained, no placeholders.

Worked example

examples/example-1-billing-migration.md — a complete collision record for a business decision (migrate billing providers?), annotated so a stranger can follow each step.

The field is constructed for teaching — it shows the audit's shape, not real findings.

FAQ

Does it replace the IFS interrogation engine? No. It pressure-tests reasoning that already exists; IFS interrogates a field from scratch. They attach cleanly (the audit runs at the Collide→Refine boundary), but each works standalone.

Does it need an internet connection? Only for the model call, and only the backend you choose. With Ollama it's fully offline. The 30 unit tests never touch the network.

What does it cost? The package is free and dependency-free. The model call costs whatever your provider charges — free-tier models work.

License

MIT. See LICENSE.

Metadata

Release files for frontface-metacog 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for frontface-metacog 1.2.0
File Size Uploaded Provenance Actions
frontface_metacog-1.2.0.tar.gz 23.4 kB With provenance Details for frontface_metacog-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for frontface-metacog 1.2.0
File Interpreter ABI Platform Actions
frontface_metacog-1.2.0-py3-none-any.whl Python 3 none any Details for frontface_metacog-1.2.0-py3-none-any.whl

Total release size: 45.6 kB

Release files / frontface_metacog-1.2.0.tar.gz

Download URL frontface_metacog-1.2.0.tar.gz
Size 23.4 kB
Tags Source
SHA-256 checksum
How to use checksums
88473ed7ed6cd7c5c7e3d5c3b8b9de418bdf379958156ddbeea952fef39d60dd
BLAKE2b-256 checksum
How to use checksums
c1fbb44ccd007054f69ea591fb9343dfd6e161490c825f093017ffbbd315efda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

Release files / frontface_metacog-1.2.0-py3-none-any.whl

Download URL frontface_metacog-1.2.0-py3-none-any.whl
Size 22.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68bb8c6c6328bd2aa8bf5adb24271d7e29bd5c410b40c6f2be2e412b1e8130a7
BLAKE2b-256 checksum
How to use checksums
075b6ba403789953eae468e10f052101afc5d7666cd64f858845fd2fc8154dd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

Security for frontface-metacog 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for frontface_metacog-1.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page