AOI-5: prune stale instance-scope enabled=false rows #734
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks#734
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
As an operator upgrading to add-only-inheritance, I want a one-shot migration to clean up any stale instance-scope
enabled=falserows, so that the resolver's new behavior does not silently strand orphan rows that no longer take effect, and so AOI-1's CHECK constraints can be added on a clean DB.Ships before AOI-1. AOI-1's CHECK constraint will fail to apply if these rows still exist.
Acceptance criteria
Migration
migrations/00Y-prune-instance-disables.ts(number before AOI-1's migration).plugin_bindingandmcp_serverwherescope='instance' AND enabled=0.info:Operator messaging
"AOI-5 pruned <N> stale instance-scope disable rows. To re-disable, edit at agent_type or global scope."N=0: single line"AOI-5: no stale disables to prune."Tests
enabled=falserows atscope='instance'for bothplugin_bindingandmcp_server, run migration, assert rows gone, assert log emitted with correct kind/name.Out of scope
agent_typescope; backup adds complexity for marginal value.skill/system_prompt(noenabledcolumn to prune).References
apps/server/src/infrastructure/database/migrations/(existing migration entry point).