Phase 1 — Implement POST /v1/threads/resolve (forked from #25) #31

Closed
opened 2026-07-13 01:54:50 +00:00 by Mark · 0 comments
Owner

Scope: small. Implement POST /v1/threads/resolve.

Forked from #25 (closed by decompose). Add route handler to app.py that reads colors: [...] from body, loads catalog JSON in-process, returns {matches: [{src, best, deltaE, alternatives}, ...]}.

Vectorize: pre-compute catalog Lab once, use numpy for Delta-E. ~80 lines. Malformed input (missing colors, invalid hex) → 422 with structured error envelope.

**Scope: small.** Implement `POST /v1/threads/resolve`. Forked from #25 (closed by decompose). Add route handler to `app.py` that reads `colors: [...]` from body, loads catalog JSON in-process, returns `{matches: [{src, best, deltaE, alternatives}, ...]}`. Vectorize: pre-compute catalog Lab once, use numpy for Delta-E. ~80 lines. Malformed input (missing colors, invalid hex) → 422 with structured error envelope.
Mark changed title from Decompose: Backend /v1/export and /v1/threads/resolve stub replacements — Phase 1: Implement POST /v1/threads/resolve to Phase 1 — Implement POST /v1/threads/resolve (forked from #25) 2026-07-14 00:44:39 +00:00
Mark closed this issue 2026-07-15 00:54:38 +00:00
Sign in to join this conversation.
No description provided.