Goal
Audit the codebase against docs/performance.md to confirm:
- Code matches the performance patterns and anti-patterns documented in performance.md
- Recent performance changes have been recorded in performance.md with before/after numbers
- No undocumented hot-path violations exist
- Benchmark results in performance.md are current
Modeled after #247 (k8s.md compliance audit).
Rounds
Round 1: Inventory
- Catalog all hot paths identified in performance.md
- List all Criterion benchmarks and their documented results
- Find all
git log commits with perf-related titles/labels since the last performance.md update
- Identify any perf changes not reflected in performance.md
Round 2: Violation detection
- For each hot path in performance.md, read the current code and check against documented anti-patterns
- For each recent perf commit, verify before/after numbers exist in performance.md
- Flag any code that violates performance.md patterns (O(n^2) in hot paths, repeated scans, unbounded debug cost, etc.)
- Flag any perf PRs merged without benchmark evidence in performance.md
Round 3: Fixes
- Update performance.md with missing benchmark results from recent perf PRs
- Fix any documented anti-pattern violations found in Round 2
- Add missing hot-path documentation for systems not yet covered
- Run Criterion benchmarks locally to verify current numbers match documented numbers
Round 4: Verification
- Re-read performance.md and confirm all sections are current
- Verify all hot paths have documented benchmark coverage
- Confirm no anti-pattern violations remain
- Final sign-off
Acceptance Criteria
Critical Docs
docs/performance.md -- primary audit target
docs/k8s.md -- cross-reference for system architecture
docs/authority.md -- data ownership for GPU/CPU hot paths
Goal
Audit the codebase against
docs/performance.mdto confirm:Modeled after #247 (k8s.md compliance audit).
Rounds
Round 1: Inventory
git logcommits with perf-related titles/labels since the last performance.md updateRound 2: Violation detection
Round 3: Fixes
Round 4: Verification
Acceptance Criteria
Critical Docs
docs/performance.md-- primary audit targetdocs/k8s.md-- cross-reference for system architecturedocs/authority.md-- data ownership for GPU/CPU hot paths