Skip to content

performance.md compliance audit: 4-round codebase review #248

@abix-

Description

@abix-

Goal

Audit the codebase against docs/performance.md to confirm:

  1. Code matches the performance patterns and anti-patterns documented in performance.md
  2. Recent performance changes have been recorded in performance.md with before/after numbers
  3. No undocumented hot-path violations exist
  4. 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

  • Round 1: all hot paths, benchmarks, and recent perf commits inventoried with file:line refs
  • Round 2: every hot path checked against anti-patterns, every recent perf PR checked for benchmark docs
  • Round 3: performance.md updated with missing results, anti-pattern violations fixed
  • Round 4: final verification pass confirms no gaps remain
  • Compliance verified against docs/performance.md, docs/k8s.md, docs/authority.md

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-humanagent work done, waiting for human action (merge/close/decision)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions