Stateful-profile protocol
Generalize Model Bank's staging-verb specificity before the model editor (the second Model-Bank-like app, later) needs it. Grammar first: the CLI already speaks class verb + instance argument (e-demo start books); staging activate-modelbank collapses to staging activate <profile>, with modelbank-orphans / modelbank-running deliberately keeping their names — they are app-domain queries over Model Bank's own rows, not profile infrastructure. The pieces are already parameterized by profile everywhere except names: activation.state lives behind a path function, quiesce reads the profile env generically, the activate body (locks, restart, verify, re-expose) does not care whose. Day-sized pass: verb rename; per-profile activation.state; a "stateful profiles" list in the staging update supervisor (quiesce and restart the rest behind the health gates, leave listed profiles pending activation); the DEMO_CLASS stamp grows a value for the editor's class; deployment-cleanup tests updated (they exist — that is what the recent Fix deployment cleanup commits were). One deliberate exclusion: the drain predicate stays per-app (modelbank's is "no action-hook execution in flight", the editor's is its own spawn/preview shape) — a general drain abstraction from one data point is the speculative-generality failure mode, not the fix. Do as its own item, sequenced before editor work starts (the editor needs it only at its first staging update dance, not to exist). Second rationale recorded so the rename is not relitigated: names are the highest-signal-per-minute surface in the repo — an evaluator reads the CLI help in the first five minutes of due diligence, and activate-modelbank beside the class grammar reads as accretion; staging activate <profile> reads as designed.
- Slot
- 17000
- Status
- 10 Open
- Tags
- scripts, deployment
- Contributors
- Donnie