Skip to content

Preserve validated native structured output - #603

Merged
SaladDay merged 4 commits into
aos/cutoverfrom
aos/fix-native-structured-output-projection
Oct 9, 2026
Merged

SaladDay merged 4 commits into
aos/cutoverfrom
aos/fix-native-structured-output-projection

Conversation

@SaladDay

@SaladDay SaladDay commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Claude SDK result text can differ from its validated structured output. Publish the original JSON text from the acknowledged native StructuredOutput call after matching its root Session, message, tool identity and validated result. Preserve native retries, retractions, candidate settlement, raw numeric text and cancellation/reuse behavior.

Update the owning English/Chinese contract and coverage ledger. Raw text preservation does not establish exact-number schema validation; native validation still uses binary64. Native fallback without original raw tool-input events fails closed.

Validation: deterministic regressions reproduce the baseline mapping and candidate-lifecycle failures; 173 adapter tests, 30 focused tests, 50 cancellation/reuse runs, typecheck, native runtime export verification, names/docs/CI checks and translation checks passed. Live Core-to-Harness acceptance remains pending.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@SaladDay
SaladDay merged commit 30ed3d8 into aos/cutover Oct 9, 2026
20 checks passed
@SaladDay
SaladDay deleted the aos/fix-native-structured-output-projection branch October 9, 2026 03:02
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