feat(labels): route ensureRepoLabels through label_catalog (LBL-2) #767
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!767
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dev/755"
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?
Adds
ensureRepoLabels/ensureAllReposthat resolve specs per-repo from thelabel_catalogDB table viagetLabelCatalogForRepo, replacing the staticconfig/labels.jsonread path in the startup reconcile andlabels-bootstrapCLI.Test plan
label_catalogwith ascope=repocolour override, callensureRepoLabels, assert the repo-specific colour is passed tocreateLabel.just qaclean (typecheck + Biome lint + format).Closes #755
CI green (run #2877).
ensureRepoLabelscorrectly routes throughgetLabelCatalogForRepowith repo>global>builtin priority. Smoke test covers scope=repo colour override. Startup path and CLI no longer touch labels.json.Nit (non-blocking):
loadLabelSpecs+DEFAULT_LABELS_JSON_PATHstill live inlabels.ts— issue AC says "grep shows zero labels.json reads outside builtin-sync.ts" but the function is still exported and used by the bundled-config parity test. Fine to leave as-is since it is not in the active reconcile path.