Expand description
Phase-exact stale-refresh evidence ledger (bead ibuuh.25).
Defines the canonical stale-refresh phase model and captures machine-readable timings, counters, and correctness artifacts for each phase. Downstream performance beads use this ledger as their proof framework: “what changed, how much, and was correctness preserved?”
§Phase model
┌─────────┐ ┌─────────┐ ┌──────────┐ ┌─────────┐ ┌──────────┐ ┌──────────┐
│ Scan │──▶│ Persist │──▶│ Lexical │──▶│ Publish │──▶│ Analytics│──▶│ Semantic │
│ (disc.) │ │ (DB) │ │ (rebuild)│ │ (commit)│ │ (stats) │ │ (vectors)│
└─────────┘ └─────────┘ └──────────┘ └─────────┘ └──────────┘ └──────────┘
│
▼
┌──────────┐
│ Recovery │
│ (error) │
└──────────┘Modules§
- corpus_
families - Standard benchmark corpus family identifiers.
Structs§
- Benchmark
Corpus Config - Configuration for generating a benchmark corpus.
- Equivalence
Artifacts - Correctness artifacts captured after a refresh for equivalence checking.
- Ledger
Builder - Builder for incrementally recording phase data during a refresh cycle.
- Phase
Record - Timing and counter data for a single phase.
- Refresh
Ledger - Complete evidence ledger for a single stale-refresh cycle.
- Refresh
Ledger Evidence - Single-shot derived evidence summary suitable for benchmark
comparison and operator dashboards. Computed from a
RefreshLedgerin O(phases) time with zero allocations beyond the output structs. - Refresh
Ledger Evidence Comparison - Cross-run comparison summary suitable for benchmark CI gates and
regression dashboards. Computed by
RefreshLedgerEvidence::compare_to. - Refresh
Phase Delta - One phase’s regression signal between baseline and current.
- Refresh
Phase Share - Share of total wall-clock time spent in a single phase.
- Refresh
Readiness Milestones - User-facing readiness timing summary derived from a refresh ledger.
- Refresh
Throughput Profile - Per-phase throughput summary derived from a
PhaseRecord. - Regression
Verdict Thresholds - CI-bench-gate threshold configuration. Project-specific values let bench harnesses tune their tolerance: a noisy benchmark runner picks looser thresholds than a deterministic CI worker.
Enums§
- Refresh
Phase - Canonical phases of a stale-refresh cycle.
- Refresh
Search Readiness State - Why ordinary search can or cannot see the refreshed lexical asset yet.
- Regression
Verdict - Hard-gate verdict for CI bench runners.
Failureis the only signal that should cause a non-zero exit;Warningis for PR-comment / dashboard surfaces;Cleanis the steady-state.