feat(config): DOB-1 — drop scope='builtin' from resolver, fall to code-side defaults (#793) #799
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!799
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dev/793"
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?
Summary
builtinfromSCOPE_PRIORITY;scopePriorityForreturns -1 for everyscope='builtin'row so they are silently skipped. New ladder:instance > agent_type > global.defaults.tswith typedReadonly<T>code-side defaults for every per-kind artifact (SERVICE_CONFIG_DEFAULTS,SPEECH_CONFIG_DEFAULTS,LABEL_CATALOG_DEFAULTS,MCP_SERVER_DEFAULTS,PLUGIN_BINDING_DEFAULTS,PLUGIN_MARKETPLACE_DEFAULTS,AGENT_TYPE_CONFIG_DEFAULTS).getServiceConfigreturn type changed to non-nullServiceConfigRow; returns{ id: 0, scope: 'global', ...SERVICE_CONFIG_DEFAULTS }when no global row exists.resolveMcpServersalways injects forge + penpot fromMCP_SERVER_DEFAULTSfor names absent from the DB.getLabelCatalogForRepoSQL drops thescope = 'builtin'filter; onlyglobalandreporows are fetched.scope='builtin'seeds flipped toscope='global'; new "empty DB → defaults" and "global-only → row returned" cases added; 66 cascading failures in the broader server suite fixed.Closes #793
Ladder drop is correct —
scopePriorityForreturns -1 for builtin, SCOPE_PRIORITY type tightened toExclude<ConfigScope, "builtin">,getServiceConfigreturn type promoted to non-null. All AC items met; test coverage comprehensive across every per-kind resolver.