Files
hapi/.scratch/mvp-issues/README.md
T
2026-11-17 14:39:40 -05:00

111 lines
4.5 KiB
Markdown

# HAPI MVP Tickets
**Source:** [MVP-SPEC.md](../MVP-SPEC.md)
**Issue Tracker:** Gitea (https://git.bobbypalko.com/bobby/hapi)
**Triage Label:** `ready-for-agent`
---
## Summary
**Total Tickets:** 20 (expanded from 10 MVP tickets into fine-grained vertical slices)
Each ticket is a **tracer-bullet**: cuts vertically through layers (schema, API, tests, infrastructure) and delivers end-to-end behavior.
---
## Tickets
### Infrastructure
| # | Title | Blocked By | Summary |
|---|-------|------------|---------|
| 01a | Linode Infrastructure with Terraform | — | Linode: PostgreSQL, Object Storage, networking |
| 01b | Kubernetes StatefulSet for PostgreSQL | 01a | K8s StatefulSet for production PostgreSQL |
### Database
| # | Title | Blocked By | Summary |
|---|-------|------------|---------|
| 02a | Alembic Migration Framework | 01a | Alembic configured with additive migrations |
| 02b | Users & Auth Tokens Schema | 02a | `users` and `auth_tokens` tables with JWT support |
### FastAPI
| # | Title | Blocked By | Summary |
|---|-------|------------|---------|
| 03a | Layered FastAPI App Structure | 02b | `models/`, `routers/`, `schemas/`, `services/`, `db/` |
| 03b | JWT Authentication Middleware | 03a | Token validation, login/logout, multiple signers |
| 03c | Rate Limiting Middleware | 03b | Per-token rate limits with headers |
| 03d | Health Endpoint | 03c | `/health`, `/health/ready`, `/health/live` |
### Object Storage
| # | Title | Blocked By | Summary |
|---|-------|------------|---------|
| 04a | Linode Object Storage SDK | 01a | Linode SDK for uploads, downloads, deletes |
| 04b | File Upload Endpoint | 04a | `/files/upload` endpoint with multipart support |
| 04c | File Download Endpoint | 04b | `/files/{file_id}` endpoint with streaming |
| 04d | NextCloud Backup Integration | 04a | Files mirrored to NextCloud after upload |
### Observability
| # | Title | Blocked By | Summary |
|---|-------|------------|---------|
| 05a | JSON Structured Logging | 03a | JSON logs with timestamp, level, message, context |
| 05b | Request ID Injection | 05a | UUID per request, logged and in headers |
| 05c | User ID Logging | 05b | User ID from JWT included in logs |
| 05d | NTFY Alerts Integration | 05c | API pushes errors/warnings to NTFY topics |
### Local Dev
| # | Title | Blocked By | Summary |
|---|-------|------------|---------|
| 06a | Docker Compose Configuration | 03a | FastAPI, PostgreSQL, Adminer services |
| 06b | Hot Reload Verification | 06a | Code changes trigger API reload |
| 06c | Adminer Accessibility | 06a | Adminer at `localhost:8080` |
### CI/CD
| # | Title | Blocked By | Summary |
|---|-------|------------|---------|
| 07a | Gitea CI/CD Build Workflow | 01a | Lint, type-check, test |
| 07b | Gitea CI/CD Push Workflow | 01a | Docker buildx, caching, push |
| 07c | Auto-Deploy Staging on Main | 07a, 07b | Push to `main` triggers staging deploy |
| 07d | Auto-Deploy Production on Tags | 07a, 07b | Tags `v*` trigger production deploy |
### Secrets
| # | Title | Blocked By | Summary |
|---|-------|------------|---------|
| 08a | SOPS + Age Configuration | 01a | Encrypted secrets in Git |
| 08b | Age Keys in Vaultwarden | 08a | Public/private keys in Vaultwarden |
| 08c | CI/CD Secrets Injection | 08a | Decrypt secrets, inject into app |
### Testing
| # | Title | Blocked By | Summary |
|---|-------|------------|---------|
| 09a | Pytest Test Framework Setup | 02b, 03a | Test DB, fixtures, `TestClient` |
| 09b | Auth Endpoint Tests | 09a | Login, logout, token generation/validation |
| 09c | Health Endpoint Tests | 09a | DB and storage dependency checks |
| 09d | Object Storage Workflow Tests | 09a | Upload → Linode → NextCloud → download |
### MVP Integration
| # | Title | Blocked By | Summary |
|---|-------|------------|---------|
| 10a | UptimeKuma Health Polling | 03d, 07c, 07d | Staging/production health checks |
| 10b | NTFY Alert Verification | 05d, 07c, 07d | Alerts verified for staging/production |
| 10c | MVP User Stories Validation | All prior | All 30 user stories validated |
| 10d | MVP Release Notes & Docs | 10a, 10b, 10c | Release notes, API docs, dev guide |
---
## Notes
- **Priority order:** Tickets are ordered by dependency (blockers first). Many tickets can run in parallel (e.g., Object Storage, CI/CD, and Secrets can all start after infrastructure).
- **Frontier:** Work on tickets whose blockers are all closed/merged. At start, frontier includes: 01a, 02a, 03a, 04a, 05a, 06a, 07a, 08a, 09a.
- **Wide refactor exceptions:** None in MVP scope; all tickets are tracer-bullet vertical slices.