| name | python-development |
| description | Implement, refactor, or fix Python code in Digital Life using the repository's Python 3.11 coding standards, layer boundaries, security rules, and risk-based pytest workflow. Use whenever a task creates or changes Python production code or Python tests. |
Python Development Workflow
Use the project-owned rules below.
- Read
docs/development/python-coding-standards.md.
- Read
docs/development/python-testing-and-review.md.
- Inspect the owning module, callers or consumers, contracts, and related tests.
- Preserve unrelated work and mutable
apps/{id}/data/.
- Add or update a focused behavior or regression test when behavior changes.
- Implement the smallest coherent change using existing project patterns.
- Type changed public interfaces and validate external data at boundaries.
- Synchronize affected contracts and durable documentation.
- Run focused tests first, then expand according to risk.
- Review security, error handling, concurrency, persistence, and instance safety.
Do not mass-format or refactor unrelated Python. Do not claim optional tools passed
when they are unavailable.