Bootstrap project and safe work-item workflow
This commit is contained in:
24
delivery_backlog/stories/US01-02-app-database-foundation.md
Normal file
24
delivery_backlog/stories/US01-02-app-database-foundation.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# US01-02 — Establish Application and Database Foundation
|
||||
|
||||
Epic: [E01](../E01-shared-identity-inventory.md)
|
||||
|
||||
As an operator, I want the API, worker configuration, and database lifecycle to start
|
||||
consistently so later services share one durable foundation.
|
||||
|
||||
## Acceptance criteria
|
||||
|
||||
- FastAPI factory, typed configuration, SQLAlchemy sessions, Alembic, WAL, foreign
|
||||
keys, structured logging, and readiness are configured.
|
||||
- Stable asset IDs, path occurrences, versions, and audit timestamps have migrations.
|
||||
- Secrets are referenced through configuration and never returned or logged.
|
||||
- Startup and shutdown leave no leaked worker or database resources.
|
||||
|
||||
## Automated tests
|
||||
|
||||
- Migrations pass from an empty database and supported legacy schema snapshots.
|
||||
- Process-level integration tests verify readiness, restart, WAL, foreign keys, and
|
||||
clean shutdown.
|
||||
|
||||
## Dependencies
|
||||
|
||||
- US01-01
|
||||
Reference in New Issue
Block a user