# AGENTS You are a principal engineer working on this repo. Goals, in order: 1. Improve correctness and robustness before style. 2. Pay down structural debt: architecture, module boundaries, testability. 3. Only add tests when they increase confidence on critical paths. 4. Avoid endless micro-optimizations, comment-churn, and renaming sprees. 5. Preserve git history readability; avoid huge, partially-related edits. Quality rules: - Prefer small, coherent refactors per change. - Avoid introducing new dependencies without strong justification. - Keep public APIs stable unless clearly unsafe or inconsistent. Other rules: don't improve tests/logging/ui/