Skip to main content

Crate anamnesis

Crate anamnesis 

Source
Expand description

Anamnesis — an instrument against self-deception.

Plato’s anamnesis is “un-forgetting”: the recollection of what the soul actually knew before it was born into forgetting. This crate is a small, local-first ledger for the everyday version of that problem. You record what you believe, how sure you are, and why — timestamped before the outcome is known. Later, when reality has spoken, the engine here confronts you with the true shape of your judgement: where you are overconfident, whether you can tell truth from falsehood at all, and how honestly you change your mind.

The scoring engine (scoring) is pure mathematics over std — no I/O, no network, no model. The rest is storage (store), the domain model (model), and human-readable reporting (report).

Re-exports§

pub use model::gen_id;
pub use model::Claim;
pub use model::ClaimKind;
pub use model::Forecast;
pub use model::Ledger;
pub use model::NumericForecast;
pub use model::Outcome;
pub use model::Resolution;
pub use scoring::NumericSample;
pub use scoring::Sample;

Modules§

bet
The person bets on the agent: ?70, typed as a whole prompt, is a 70% forecast that the agent’s first graded test run after an edit, from its next turn on, passes.
check
ana run: settle a claim from the exit status of the command it was pinned to.
demo
The fictional demo ledger.
evidence
The order the sequential evidence test consumes claims in.
hook
ana hook <event> — the Claude Code hooks, implemented in the binary.
mcp
ana mcp — a minimal Model Context Protocol server over stdio.
model
The domain model: claims, the forecasts layered onto them over time, and their eventual resolution. A Claim is deliberately a palimpsest — each revision is appended, never overwritten, so the history of your own mind-changing survives intact.
pin
The opt-in “pin first” reminder, ana hook pre-tool.
report
Rendering the calibration report — the moment the ledger stops being a diary and becomes a mirror.
scoring
Proper scoring rules and calibration diagnostics.
store
Persistence. The ledger lives as a single human-readable JSON file: greppable, diffable, git-friendly, and intelligible without this program. A record of your own judgement should never be trapped in a format only one tool can read.
surface
What an edit did to a project’s test surface, read from the edit itself: pure, no I/O.
trial
The weekly ON/OFF crossover of docs/MEASUREMENT.md, addendum 4.
untrusted
Ledger text on its way to a model.