chore(db): drop NON_BUILTIN_SCOPE_FILTER + every ne(scope,'builtin') predicate #947
No reviewers
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks!947
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dev/940"
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?
Removes all read-time guards against
scope='builtin'now that migration 0010 enforces this invariant at the storage layer.Test plan
NON_BUILTIN_SCOPE_FILTERconstant fromladder.tsand all callersne(*.scope, "builtin")Drizzle predicates inagent-type-config.tsWHERE scope != 'builtin'clause fromsr3-m1-migration.tsagent-types-settingsPUT handlers; existence checks now useLIMIT 1without scope filterscope='builtin'toscope='global'/scope='agent_type'; renamed tests whose titles referenced the removed DOB-1 guardjust qaclean (server tests: 3262 pass, 0 fail)Closes #940
Clean removal of dead guards — migration 0010 invariant holds, all
ne(scope,'builtin')predicates andNON_BUILTIN_SCOPE_FILTERcorrectly dropped. Existence checks switched toLIMIT 1, INSERT fallbacks simplified to null defaults. CI green, 3262 tests pass.Nit (non-blocking):
agent-type-config.tscomment atmergeMcpBucketstep 3 now says "non-global scopes" but the implementation still strips locked keys from all operator layers — fine to fix in a follow-up.