brand-kit.schema.json preset enum is stale: 4 presets vs 20 in kit.go #350
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#350
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?
internal/brandkit/brand-kit.schema.jsonstill enumerates only the original four presets ("enum": ["matou","ocean","forest","sunset"]) whilebuiltinPresetsininternal/brandkit/kit.gohas carried twenty since DDR 0130.It doesn't bite at runtime — Go
Validate/resolvePalettecheck againstbuiltinPresets, not the schema — but the embedded schema is the documented kit contract and currently rejects sixteen valid presets for any consumer that actually validates against it.Fix: derive the enum from
Presets()(or a generator test that pins the schema to the Go table, the same lockstep pattern asTestPinnedClanRefMatchesFlakeLock), so the two can never drift again.Also stale in the same way:
PRESET_SWATCHESinapp/src/lib/founding.ts(documented fake-client-only; production reads thebrand-presetsop) — fine to leave, but worth a comment breadcrumb if not fixed.Found during the DDR 0145 exploration (commit 938dffe).
Fixed in
ddb2157(on origin/main).internal/brandkit/brand-kit.schema.json: thepresetenum now carries all twenty presets inPresets()order (was the stale fourmatou/ocean/forest/sunset).internal/brandkit/schema_test.go: newTestSchemaPresetEnum_MatchesPresetspins the schema enum to the GoPresets()table in lockstep — the same pattern asTestPinnedClanRef_MatchesFlakeLock. Add a preset to the Go table without the schema and it reds. Written red first (4 vs 20), then green; fullinternal/brandkitsuite passes.app/src/lib/founding.ts: breadcrumb onPRESET_SWATCHES(fake-client-only) recording that its four entries are a deliberate subset, not drift — production reads thebrand-presetsop and the canonical set is the seam.STATUS.md unchanged: a documented-contract drift fix, no phase/gate/feature/artifact-class change.