Undeploy Model button (Model Bank)
An "Undeploy Model" button in Model Bank, peer of Deploy. A model deployed from Model Bank has no models/<name>.lisp — the :deploy-model hook writes it to gitignored models/local/<name>.lisp — so scripts/data-ui delete <name> (identity from the model file, default models/<name>.lisp) dies with FILE-DOES-NOT-EXIST on exactly the apps the button creates.
- Hook (
:undeploy-model, action registry): deployer-role check,runningguard while undeploying, best-effort status toundeployed/failed(deploy-model shape; no transactions) - Calls
scripts/data-ui delete <name>with
MODEL_FILE=models/local/<name>.lisp; delete must find the app even when the local model file is gone (fall back to live cluster identity: dataui-<name> namespace)
- Interim script fix to REMOVE when this item lands (added
2026-10-01): undeploy in scripts/data-ui auto-falls-back to models/local/<name>.lisp when models/<name>.lisp is missing and MODEL_FILE is unset (the block marked INTERIM at the top of the local branch). Delete it when the hook's explicit MODEL_FILE pass-through + cluster-identity fallback replace it.
- Frontend: button next to Deploy on the model row; confirmation
(the k8s namespace, PVs, DB, uploaded files, HAProxy backend/map line, and deploy state are all destroyed)
- Manual path meanwhile:
scripts/data-ui delete <name>now finds
models/local/ on its own (the interim fix above); any delete step tolerates already-deleted resources; re-run is safe
Related: "Undeploy button" stub in Post MVP (same need, that scope); "Role-gated Deploy button" (the role machinery to reuse).
- Slot
- 10200
- Status
- 10 Open
- Tags
- backend, frontend, model, scripts
- Contributors
- Donnie