feat(setup): wizard seeds label_catalog + service_config at scope='global' #938
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#938
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 running the setup wizard on a fresh install, I want the wizard to seed
label_catalogandservice_configrows atscope='global'from the code constants, so that the runtime never needs to read'builtin'rows.The
apps/server/src/setup/presets.tswizard already seedsagent_typerows atscope='global'. After the constants stories land (SERVICE_CONFIG_DEFAULTS,LABEL_PRESETS), the wizard becomes the only place that materialises the factory layer in the DB. This is the bridge from "builtin rows seeded at install time" to "code constants seeded once into the global layer".Acceptance criteria
Wizard
apps/server/src/setup/presets.ts(or a sibling module) seeds oneservice_configrow atscope='global'fromSERVICE_CONFIG_DEFAULTSif noscope='global'row exists yet. Idempotent (INSERT … ON CONFLICT DO NOTHING).label_catalogrow per entry inLABEL_PRESETSatscope='global'if absent. Idempotent on(scope, repo, name).config_revisionrow withcomment='seeded by setup wizard', mirroring the existingagent_typeseeder pattern.Migration coordination
Tests
scope='global'service_configrow withSERVICE_CONFIG_DEFAULTSvalues.scope='global'label_catalogrow perLABEL_PRESETSentry.Out of scope
References
apps/server/src/setup/presets.ts:300-355(agent_type seeding)