Skip to content

fix(runtime): validate reasoning outputs before rule evaluation - #70

Merged
AetherAI3 merged 3 commits into
mainfrom
codex/nano-reasoning-output-validation
Nov 8, 2026
Merged

AetherAI3 merged 3 commits into
mainfrom
codex/nano-reasoning-output-validation

Conversation

@AetherAI3

Copy link
Copy Markdown
Owner

A reasoning provider can currently return boolean or infinite values for a float field and influence a rule; malformed outputs can also be mistaken for ordinary warm-up. This validates the complete response against the declared supported scalar output signature before dependent evaluation, emits bounded infer.invalid/infer.failed diagnostics, and preserves unrelated rules.

Closes #57. Part of #67.

Output ranges were previously documented and tested as metadata only. This PR deliberately enforces output types/ranges and updates that contract and the route regression: a valid response can log the approved route, while an invalid response takes its declared escalation fallback. The host still owns all external effects. Input-range enforcement is unchanged.

Compatibility tightening: output names must match exactly; bool is not numeric; numeric fields must be finite; int uses the existing IR magnitude bound. String, duration and series outputs are explicitly unsupported by this numeric VM and are rejected before calling a provider. Review the package-version/release implications before merging.

Validation: fake providers cover valid high/low responses, malformed records, ranges, failures, replay, per-bar isolation and cancellation signals. Root full reference suite with the three independent #55/#56/#57 fixes: 1,617 passed, 8 skipped. No paid inference or IBM execution.

@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 058372a 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] Validate reasoning-provider outputs against signatures before evaluating rules

1 participant