feat(db): extract service_config / label_catalog / agent_type_* aggregates to Drizzle (#845) #866
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!866
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "code-lead/845"
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?
Splits the resolver hot-path SQL off
domain/agent-config/resolver.tsinto per-aggregate Drizzle modules (service-config-store,label-catalog,agent-type-config) backed by per-aggregate Drizzle schema files; pure ladder helpers move todomain/agent-config/ladder.tsand the resolver itself becomes a re-export shim plus the SC-6 token resolvers.Test plan
bun x turbo run typecheckcleanbun x @biomejs/biome@^2 check .only pre-existing warningsbun x @biomejs/biome@^2 format .cleanbun x turbo run test— 3154/3154 passsql-layer-checkpasses (nobun:sqlitevalue imports outsideinfrastructure/database/)Closes #845
Clean extraction — resolver.ts is now a pure re-export shim, all five schema files mirror the existing SQL shape, ladder helpers correctly split to
ladder.ts, and the_dbcompat parameter is explicitly ignored in favour oform(). No raw SQL strings remain in resolver.ts for the moved tables.Nit:
_dbparameter accepted-but-ignored on every new function — minor, not blocking.