Support native structured output through the shared execution contract - #11
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sessions previously rejected every
text.format=json_schemaconfiguration, even when the native harness could execute it. This adds shared schema transport and a qualified Claude SDK path for single-agentenvironment:noneexecution with ordinary functions, preserving the native validated JSON and output identity through Items, SSE and cold continuation.Core stays harness-neutral. Unqualified combinations reject explicitly; no model-output repair, prompt coercion, replacement loop or legacy compatibility is added. Saved Agent schemas remain lossless, including numeric constraints that the Claude runtime cannot execute exactly.
Validation:
make openapi.make checkand fresh independent GPT-6 Astra high whole-diff review passed. Regression also verifies a callback-free custom harness cannot dispatch previously queued structured work after qualification is removed, even when its Runtime still advertises support.Scope/limits: Codex and MiniMax structured output, workspace/HTTP MCP/Subagent combinations and non-object roots remain unqualified. Claude's public Usage breakdown remains a known gap; native counters are retained. This is partial protocol coverage. Evidence:
~/.parsar/remediation/20260922/structured-output/onzju_a100_2.Validation scope: live model acceptance ran on
7f533d4; the shared dispatch qualification simplification in697926dhas dedicated PostgreSQL/gateway regression. Final candidate0d6fc43additionally updates the exported Runtime feature assertion and passes the full gate. Optional unrelated live-provider suites are not claimed as rerun. Failed intermediate logs are retained: one test-database ownership collision and one stale packaging feature assertion. The final gate used the database exclusively and retained the strict complete feature-list assertion.