chore(service-config): extract factory defaults to code constants #942
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!942
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dev/935"
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?
New
setup/service-config-defaults.tsexportsSERVICE_CONFIG_DEFAULTS— a frozen object covering all nullableservice_configcolumns (container_image,container_image_default,webhook_secret_ref,watchdogs_json,penpot_json,speech_json,janitor_json), each with a one-line comment naming its dashboard surface.service-config-settings.tsnow synthesises thebuiltinresponse from this constant instead of queryingscope='builtin'in the DB.Test plan
service-config-defaults.test.ts: shape matches schema columns, all values null, object frozen.just qaclean — 3266 tests pass, Biome format + lint clean.Closes #935
Correct extraction —
BUILTIN_ROWsynthesised from frozen constant, SQL tightened toWHERE scope = 'global', tests cover shape/values/freeze. Nit: null-check ternaries inBUILTIN_ROWare dead code (all defaults null) but harmless.Merge call returned
false— please merge manually.