--- inclusion: auto --- # AI-Orchestrator Standards ## Quality Gates (before every commit) 1. `gitleaks detect --source . --no-git` — no secrets in code 2. `ruff check .` — linting passes 3. `pytest` — all tests pass, 80%+ coverage target 4. `mypy src/` — type checking passes ## Conventional Commits ``` feat(orchestrator): add retry backoff fix(tracker): handle timeout on OrgMyLife API test(alerter): add property test for deduplication docs(spec): update current state section ``` ## Testing - pytest + hypothesis for property-based testing - Property test files: `test__properties.py` - Given-When-Then structure in all tests - 80% coverage minimum, critical paths 95%+ ## Autonomous Mode - Never push directly to main — use feature branches - Create PRs targeting the current base branch - If stuck after 3 attempts: stop and document - Report: `PROGRESS: X%` / `HELP: description` ## Security - Secrets via env vars or `.secrets` file (gitignored) - No tokens in source code - PAT registry tracks token expiry