Skip to main content

Module audit

Module audit 

Source
Expand description

Corpus coverage audit.

Walks a directory of session logs, parses every line through the typed crate::schema, and reports — with real counts — exactly what we model, what we model-but-drop on normalization, and what we don’t model at all. This is the machine that turns “what’s missing?” into an enumerated answer rather than a guess.

use std::path::Path;
use supercode_harness::audit::{audit_dir, Corpus};

let report = audit_dir(Path::new("/home/me/.codex/sessions"), Corpus::Codex, None);
report.print();

Structs§

Report
The full audit result.
Tally
A tally for one discriminant value.

Enums§

Corpus
Which corpus a directory holds.
Coverage
How a given discriminant is handled by the loader.

Functions§

audit_dir
Audit a directory. limit caps the number of files scanned (None = all).