SLICE-1: walking skeleton (SD-0001 §7.2) — scaffold, dev Postgres, migration runner, /healthz #5
Reference in New Issue
Block a user
Delete Branch "claude/agitated-heyrovsky-1a1f47"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implements SLICE-1 (walking skeleton) of SD-0001 v0.3.0 §7.2 — the localhost half of BUC-5 (PUC-10). A clean checkout now boots a four-layer FastAPI backend against an empty, self-migrating PostgreSQL database and serves
/healthz.Ships:
main > domains > platformwith the import-linter contract (§6.2; GraphQLapilayer deferred).platform/db— psycopg 3 + small pool, forward-only migration runner (advisory-lock-guarded, fail-stop, INV-7) and migration0001laying the §6.3 schema (account,auth_code,storefront,storefront_membership; INV-2/4/5 honored — noUNIQUE(account_id)).platform/config— single env-driven config surface (INV-8)./healthz(200/503 per §6.4); self-migrates at startup (INV-1).compose.yaml(single pinnedpostgres:16, named volume, healthcheck; D-7).scripts/dev.sh(owns the container lifecycle; bash-3.2 portable) andscripts/check.sh(the single gate: lint-imports + pytest + frontend build)./apiproxy; Gitea CI workflow;docs/BOOTSTRAP.mdlocalhost runbook.Test Plan
scripts/check.shgreen — import-linter contract kept, 7 pytest green against real Postgres, frontend tsc + build..venv+node_modulesmoved aside,docker compose down -v) →scripts/dev.sh→/healthz200{"status":"ok"}on an empty self-migrated DB (0 accounts, migration 0001 applied).dev.shCtrl-C reaps both:8000and:5173cleanly.Per session ecomm-0021. Plan:
docs/superpowers/plans/2026-06-10-slice-1-walking-skeleton.md.🤖 Generated with Claude Code