You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two small contract improvements surfaced during the #193 GUI-consume-client review:
Declare the custom 400 in the OpenAPI spec./validate and /plan map semantic errors (e.g. out-of-range wind angle) to HTTP 400 via the exception handler, but only 200/422 are declared in the spec. The GUI client depends on the 400 at runtime; adding responses={400: ...} to the FastAPI routes makes the contract explicit and lets the OpenAPI drift gate cover it.
Structured planner warnings on /plan. The GUI preview used to show planner warnings scraped from CLI stderr; the API exposes none, so the preview now shows no warnings (noted in CHANGELOG / refactor(gui): consume the API client; replace event streaming with polling #193). Add a structured warnings: list[str] to the planner result and PlanResultOut so the preview can surface them again.
Both are additive (non-breaking) and tie off the local-API architecture epic (#195).
Investigation update from PR for the 400 half: the structured planner warnings part is being dropped as unnecessary. The planner emits no non-fatal warnings — every advisory check (circuit divisibility, lockDegrees alignment, lead-in bounds) raises LayerValidationError (→ 400), and grep finds no warnings.warn/LOGGER.warning anywhere in core. The GUI's old preview 'warnings' were scraped CLI stderr (error text on failure / logging noise), so #193's empty warnings list is not a regression. Genuine advisory warnings would be a new feature (deciding what to warn vs. reject) — open a fresh issue if wanted. The 400-declaration (the actionable part) is delivered.
Activity
CameronBrooks11 commentedon Jun 26, 2026
Investigation update from PR for the 400 half: the structured planner warnings part is being dropped as unnecessary. The planner emits no non-fatal warnings — every advisory check (circuit divisibility, lockDegrees alignment, lead-in bounds) raises
LayerValidationError(→ 400), andgrepfinds nowarnings.warn/LOGGER.warninganywhere in core. The GUI's old preview 'warnings' were scraped CLI stderr (error text on failure / logging noise), so #193's empty warnings list is not a regression. Genuine advisory warnings would be a new feature (deciding what to warn vs. reject) — open a fresh issue if wanted. The 400-declaration (the actionable part) is delivered.feat(api): declare the 400 response on compute routes (#211)