Skip to main content

AbsenceCritic

AbsenceCritic is a survivorship-bias shield for language models: a dedicated critic (the Wald Module) that reasons about the evidence that never made it into the training corpus, the retrieval index, or the evaluation set.

AbsenceCritic was designed and originated by Guzino. The name, the architecture (Wald Module, Non-Survivor Store, Wald checklist), and the design documents in this repository are original work of that author. The historical inspiration is Abraham Wald’s 1943 aircraft-vulnerability analysis; the application of that method as an explicit second-brain critic for contemporary LLMs originated here.

License

Licensed under the Apache License, Version 2.0.

Every source file carries the minimum clean mark:

Copyright 2026 Guzino (https://github.com/guzino)
SPDX-License-Identifier: Apache-2.0

Conceptual origin

The original design package is kept in docs/ so the conceptual origin stays in the repository:

Document Title
docs/00-README.md Design package index
docs/01-wald-origin.md From Wald’s Notebook: The Armor That Is Not There
docs/02-missing-planes-in-llms.md The Missing Planes in the Training Corpus
docs/03-bulletproof-shield-design.md Bulletproof Shield Design
docs/04-implementation-roadmap.md Implementation Roadmap and Engineering Notes

Core claim: a model trained only on the planes that returned will correctly learn the distribution of survivable damage. Robustness requires an explicit process that reasons about the planes that did not return. That process is AbsenceCritic.

Phase 0 — minimal shield

Python package plus CLI on a ports-and-adapters layout (domain / application / adapters / prompts). Loop: primary draft (no store) → keyword retrieval from the Non-Survivor Store → Wald critic JSON → primary revision. Tests and eval use recorded fixtures so they run without an API key.

Agent conventions (tool-agnostic): AGENTS.md. Claude Code: CLAUDE.md. Humans: CONTRIBUTING.md. Working plans for every roadmap phase (Wald pass, slices, measurable done): plans/. Work lands through pull requests, not direct pushes to main. Cursor loaders stay under .cursor/; skill content is generic and is not duplicated per vendor.

Install

python -m pip install absencecritic

The package bundles the seed Non-Survivor Store and the demo fixtures, so the CLI runs right after install with --provider fixture. Point ABSENCECRITIC_STORE at a writable directory before using ingest or feedback, so new entries do not land inside the installed package.

0.1.0 is an alpha. See CHANGELOG.md for what it does and its known limits.

For development, from a checkout:

python -m pip install -e ".[dev]"

CLI

absencecritic "What works for launching a startup?"
absencecritic --no-shield "What works for launching a startup?"
absencecritic --show-critique --json "What works for launching a startup?"

Curated store ingest (Phase 1; does not change the Wald loop):

absencecritic ingest path/to/entries.yaml
absencecritic ingest --catalog tests/fixtures/catalog.yaml

Valid entries are appended to ingested.yaml under the store directory. Duplicate id values are rejected. --catalog requires each row to cite an http(s) source_url.

User notes stay pending until accepted (confidence capped at 0.4; they do not retrieve before that):

absencecritic feedback path/to/note.yaml
absencecritic feedback --accept startup-user-note

Org failure memory is a separate directory on a private volume (--store or ABSENCECRITIC_STORE), not an ACL and not files dropped into data/non_survivors/private/. YamlStore skips a nested folder named private and does not retrieve it. Point the env var at the org store, ingest or copy citable notes there, and keep user notes pending until absencecritic feedback --accept. Do not commit patient-level or employer logs. Pair export refuses feedback/private ids unless --allow-private. The generator still never reads the store.

--provider is fixture unless OPENAI_API_KEY is set (then the default is openai). Force either:

absencecritic --provider fixture "What is 2+2?"
absencecritic --provider openai "What works for launching a startup?"
absencecritic --provider fixture --critic local "What works for launching a startup?"
absencecritic --judge --draft-file draft.txt --json "What works for launching a startup?"

Live OpenAI-compatible calls (OpenAI, OpenRouter, or a local server):

# Windows PowerShell
$env:OPENAI_API_KEY = "..."
$env:OPENAI_BASE_URL = "https://api.openai.com/v1"   # optional
$env:ABSENCECRITIC_MODEL = "gpt-4o-mini"             # optional
absencecritic --provider openai "What works for launching a startup?"

# OpenRouter
$env:OPENAI_API_KEY = "..."
$env:OPENAI_BASE_URL = "https://openrouter.ai/api/v1"
$env:ABSENCECRITIC_MODEL = "openai/gpt-4o-mini"
absencecritic --provider openai "What works for launching a startup?"

# Local OpenAI-compatible server (llama.cpp, vLLM, ...)
$env:OPENAI_API_KEY = "local"
$env:OPENAI_BASE_URL = "http://127.0.0.1:8080/v1"
$env:ABSENCECRITIC_MODEL = "your-local-model"
absencecritic --provider openai "What works for launching a startup?"

Copy .env.example for the variable names. Store path: ABSENCECRITIC_STORE (default data/non_survivors/).

Library:

from absencecritic import run, score
from absencecritic.adapters.llm.fixture import FixtureLLM
from absencecritic.adapters.llm.openai_compat import OpenAICompat
from absencecritic.adapters.store.yaml_store import YamlStore
from absencecritic.paths import default_fixture_path, default_store_dir

result = run(
    "What works for launching a startup?",
    provider=FixtureLLM(default_fixture_path()),  # or OpenAICompat()
    store=YamlStore(default_store_dir()),
    shield=True,
)
print(result.final)
print(result.critique)

judged = score(
    "What works for launching a startup?",
    "Copy the last unicorn.",
    critic=FixtureLLM(default_fixture_path()),
    store=YamlStore(default_store_dir()),
)
print(judged.critique)

Eval and tests

python eval/run_eval.py --provider fixture
python eval/benchmark/run.py --provider fixture --out eval/benchmark/answers.jsonl
python eval/benchmark/score.py --answers eval/benchmark/answers.jsonl
python -m pytest

eval/queries.yaml has ~12 survivor-biased questions and 3 controls. eval/fixtures/responses.yaml holds recorded draft/critique/revision triples. Phase 2 gold critic JSONL is eval/gold/critiques.jsonl, split by committed ids in eval/gold/splits.yaml into train.jsonl and heldout.jsonl (python eval/export_gold.py after fixture edits). Optional human edits go in eval/gold/overlay.yaml and win on the train/held-out export only; they do not rewrite fixtures. Live critic dumps go to gitignored eval/gold/incoming/ via python eval/log_incoming.py --query "..." --provider openai and stay out of train until a human PR. Fixture 15/15 is product regression, not a training score. To refresh fixtures from a live model: python eval/record_fixtures.py --provider openai --out eval/fixtures/responses.yaml. Then python eval/export_gold.py (or --check without writing).

Critic fine-tune stays off CI: scripts/critic_train.md (python scripts/train_critic.py --dry-run). Serve the result through --critic local. Do not train the generator on critique JSON. Primary-model DPO on pair export is scripts/primary_preference.md (python scripts/train_primary.py --pairs ... --dry-run). The default generator stays --provider; if controls start abstaining, the experiment failed.

Held-out survivorship items (disjoint ids, frozen labels, not critic JSON): eval/benchmark/. Preference pairs (shielded vs unshielded, store bodies stripped): python eval/export_pairs.py --provider fixture --out eval/pairs/out.jsonl. Chosen is not a truth label.

CI (.github/workflows/ci.yml) runs pytest and fixture eval on main and pull requests. It never calls a live provider.

Citation

If you use AbsenceCritic, please cite it as follows.

Text

Guzino. AbsenceCritic: A Survivorship-Bias Shield for Language Models. Version 0.1.0, 2026. https://github.com/guzino/absence-critic

BibTeX

@software{guzino_absencecritic_2026,
  author  = {Guzino},
  title   = {AbsenceCritic: A Survivorship-Bias Shield for Language Models},
  year    = {2026},
  url     = {https://github.com/guzino/absence-critic},
  version = {0.1.0},
  license = {Apache-2.0},
  note    = {Original design and conceptual origin by Guzino (https://github.com/guzino)}
}

A machine-readable record is also provided in CITATION.cff.

Metadata

Release files for absencecritic 0.1.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 absencecritic 0.1.0
File Size Uploaded Provenance Actions
absencecritic-0.1.0.tar.gz 105.0 kB With provenance Details for absencecritic-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for absencecritic 0.1.0
File Interpreter ABI Platform Actions
absencecritic-0.1.0-py3-none-any.whl Python 3 none any Details for absencecritic-0.1.0-py3-none-any.whl

Total release size: 152.5 kB

Release files / absencecritic-0.1.0.tar.gz

Download URL absencecritic-0.1.0.tar.gz
Size 105.0 kB
Tags Source
SHA-256 checksum
How to use checksums
df372c2c01fb3c220ba28135399976dff1a83aad26d2cb3e6888060f77da4044
BLAKE2b-256 checksum
How to use checksums
cb50db8af7bf69c9e039a780194754ad0687cc03e80855085edea0aa541122d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 24, 2026.

Transparency log

Release files / absencecritic-0.1.0-py3-none-any.whl

Download URL absencecritic-0.1.0-py3-none-any.whl
Size 47.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
47dfcca0e74175963ad201beb95b759002e194a1d1da55087adf70a6b1dd36a9
BLAKE2b-256 checksum
How to use checksums
f3401ddfc5b32de985e471b6637d7dc947457450db20b5aa263f4c58a47c3ff7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 24, 2026.

Transparency log

Security for absencecritic 0.1.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 absencecritic-0.1.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 Nov 24, 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