Skip to content

fix(intent): reject invalid types before canonicalization - #69

Merged
AetherAI3 merged 3 commits into
mainfrom
codex/nano-intent-strict-types
Nov 8, 2026
Merged

AetherAI3 merged 3 commits into
mainfrom
codex/nano-intent-strict-types

Conversation

@AetherAI3

Copy link
Copy Markdown
Owner

Intent document loading currently converts boolean/string confidence and numeric entity kinds into apparently valid values before validating them. This checks the original types first, preserves genuine JSON numeric confidence and rejects malformed proposals with IntentValidationError.

Closes #56. Part of #67.

Validation: 102 focused existing/new Intent tests passed, including canonical golden fixtures. Root also ran the full reference suite with the three independent fixes for #55/#56/#57 applied together: 1,617 passed, 8 skipped.

Valid compiler output keeps its canonical bytes. This fixes the demonstrated coercion defects; it does not claim complete schema/runtime parity for every nested receipt field. No providers or hardware used.

@AetherAI3
AetherAI3 marked this pull request as ready for review November 8, 2026 02:21
@AetherAI3 AetherAI3 closed this Nov 8, 2026
@AetherAI3 AetherAI3 reopened this Nov 8, 2026
@AetherAI3
AetherAI3 merged commit 15eba72 into main Nov 8, 2026
7 checks passed
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.

[P1] Reject coerced types at the Intent IR boundary before agent plans are admitted

1 participant