Frontend maxColors default (13) exceeds backend cap (10) — every default digitize 422s #26
Labels
No labels
blocked:commit-ready-failed
blocked:gate-fetch
blocked:gate-lint
blocked:gate-plan
blocked:gate-research
blocked:needs-attention
blocked:needs-decision
blocked:needs-human
blocked:no-changes
blocked:verify-failed
bug
deferred
feature-request
in-progress
needs-decompose
needs-triage
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/Kimi_Agent_Brother_10_Digitizing_App#26
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?
Scope: small. One-line frontend clamp.
src/lib/digitize-adapters.ts:40-44mapscolorSensitivity: 50tomaxColors = round(1 + 0.5*23) = 13. Backend caps at 10 → 422 on every default digitize.Fix: linear weight 23 → 9, clamp
(1, 10). Test the existingdigitize-adapters.test.ts(already updated). ~5-line change.Fixed in commit
774e0c0(onorigin/main). Close this once kilo-gsd confirms via test run.Auto-triage: needs decompose
Marked
triage-approved+needs-decompose. decompose-executor will pick this up and break it into implementable sub-issues.Mark referenced this issue2026-07-13 00:05:39 +00:00
Fixed in commit pending (local, not pushed).
src/lib/digitize-adapters.ts:40-44: clampcolorSensitivityto 1–10 instead of 1–24. Default sensitivity 50 now producesmaxColors = 6, well within the service cap.Verification (real-browser end-to-end, July 12)
Two follow-up bugs found and filed while walking through:
fromServiceStitchObjectthrows on null paletteIndex (engine emits null because #24 catalog isn't wired)Mark referenced this issue2026-07-13 23:17:44 +00:00