Skip to content

fix(server): preserve context error codes on decision routes - #2183

Merged
ashhart merged 2 commits into
mainfrom
lead/s243-r11
Nov 5, 2026
Merged

ashhart merged 2 commits into
mainfrom
lead/s243-r11

Conversation

@ashhart

@ashhart ashhart commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

Preserve context error codes on both decision routes

Context-limit errors on /v1/decisions and /v1/systemone now retain context_length_exceeded through preparation and HTTP wrapping for text-only prompts (#2139). With pictures, System One leaves the check to the engine, whose refusal is still a plain request error with no code. Their existing status, message, validation boundaries and successful scoring behavior stay unchanged.

Two actual HTTP regressions fail on main with missing codes. All 26 focused host tests pass after the fix, including no scoring on these refusals. No new request refusal or GPU change is introduced.

@ashhart
ashhart merged commit 249e33b into main Nov 5, 2026
7 checks passed
@ashhart
ashhart deleted the lead/s243-r11 branch November 10, 2026 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant