Data UI Backlog

Dev repl teardown now removes the database volume

Symptom: exit Slime, restart scripts/data-ui repl, connect, (set-model "todos") → database error 42703 column settings.setting_change_password_status does not exist. The dev database outlived the REPL: stop_database_quietly ran compose down without --volumes, so the named volume pg-data-ui-repl-pgdata survived with a pre-change-password schema; on restart init-database saw the admin user and skipped initialize-tables, and current code queried a column the old table never had. The usage text ("throwaway 5444 database") and docs/deployment.md ("development is volatile") promised the opposite of what the code did.

Fix: stop_database_quietly now runs compose down --volumes. Every caller's database is throwaway by design (repl 5444, test 5445, deploy compile 5446); a fresh volume means initialize-tables always runs, so the schema always matches the code just loaded. Safe by construction for host profiles: they never pass through this function (ops/profile-run.sh owns their lifecycle), and their pgdata is a bind mount that --volumes does not touch anyway. The old comment's stated reason ("primary durability for host instances") predates the D16 profile split and no longer described any caller.

Also updated: docs/deployment.md (compile step "container and its volume are destroyed"; environments entry says the dev database is wiped at REPL exit), scripts/README.md (repl and db note the wipe and the bind-mount carve-out). Consequence to remember: development data survives only in snapshots — save before exiting the REPL.

Slot
17600
Status
60 Done
Tags
scripts, bug
Contributors
Donnie