This document defines the formal software engineering and operational lifecycle process used by human operators and AI agents throughout the development of the Personal Lifecycle Tracker.
Every feature, refactoring, and infrastructure change must advance through these sequential lifecycle gates:
[Gate 1: Specification] ──► [Gate 2: Prototype] ──► [Gate 3: Verification Journey]
│
▼
[Gate 6: Tech Stack/ADR] ◄── [Gate 5: Contract Freeze] ◄── [Gate 4: Governance]
│
▼
[Gate 7: Containerization] ──► [Gate 8: Backlog & Makefile] ──► [Gate 9: Active Containers]
│
▼
[Gate 12: On-Call Responder] ◄── [Gate 11: Alerting] ◄── [Gate 10: Observability]
Gate 1: Scoping & Functional Specification:
product-spec.md.Gate 2: Interface & Prototype Confirmation:
src/services/api.ts).Gate 3: Manual Verification Journey:
_docs/manual-test.md and Playwright compliance suite e2e/spec-compliance.spec.ts.Gate 4: Governance Setup & Agent Squad Scaffold:
AGENTS.md, CLAUDE.md, _docs/team.md, _docs/process.md.Gate 5: Contract Freeze:
contracts/openapi.yaml and root openapi.yaml.Gate 6: Architecture Decision Records (ADRs) & Stack Evaluation:
docs/adr/0001-adoption-architecture.md, _docs/stack.md.Gate 7: Scaffolding & Container Foundation:
backend/Dockerfile, frontend/Dockerfile, docker-compose.yaml.Gate 8: Makefile Automation & Task Tracker:
backlog.md, Makefile.Gate 9: Active Running Containers & Live Verification:
docker compose ps confirms all services Up (healthy). Live curl http://localhost:8003/health returns HTTP 200.Gate 10: OpenTelemetry Full-Stack Instrumentation:
backend/app/telemetry.py, observability/.Gate 11: Alerting on User Impact:
observability/alert_rules.yml.Gate 12: Autonomous On-Call Incident Responder:
on-call-engineer/.All code changes must pass the automated testing hierarchy inside Docker before merge:
| Test Tier | Scope | Framework | Execution Command | Gate Invariant |
|---|---|---|---|---|
| Tier 1: Backend Unit | FastAPI routers, store logic, auth, reminders | Pytest in Docker | make test-backend |
34 passing tests, 0 failures |
| Tier 2: Frontend Unit | Date utilities, API client, lifecycle state | Vitest in Docker | make test-frontend |
42 passing tests, 0 failures |
| Tier 3: PostgreSQL Integration | Auth flows, group permissions, item persistence | Pytest + Postgres 16 | make test-integration |
27 passing tests, 0 failures |
| Tier 4: Browser E2E | Multi-user collaboration, daily digest simulation | Playwright in Docker | make test-e2e |
22 passing tests, 0 failures |
| Tier 5: Static Security | SAST vulnerability scan, dependency audit | Semgrep + npm audit | make security-audit |
0 high/critical CVEs |
Continuous Integration (.github/workflows/ci.yml):
main, dev, or develop.YYYYMMDD-HHMMSS-shortsha and deploys to development.Manual Production Promotion (.github/workflows/promote-dev-to-prod.yml):
workflow_dispatch.vX.Y.Z), GitHub release generation, and zero-downtime serving from Amazon ECR.