- Explicit Boundaries: Do not modify files outside the specific task scope.
- Contract First: Read existing type definitions, schemas, and test assertions before proposing changes.
- No Phantom Code: Every code modification must be backed by an executable test or verifier command.
- Preserve Integrity: Do not delete unrelated comments, docstrings, or formatting unless explicitly requested.
- Standard Tooling: Prefer modern standard tooling (Python 3.11+, uv, pytest, ruff, mypy).
Before declaring a task done:
- Run local tests:
pytest - Run static analysis:
ruff checkandmypy - Verify git diff: Ensure zero unintended side effects or modified global state.