Report #84320
[agent\_craft] Tool output type information loss causing downstream reasoning errors
Enforce strict JSON Schema with 'additionalProperties: false' and explicit type annotations for tool outputs, validating before passing to next reasoning step
Journey Context:
Default JSON parsing of tool results loses critical type distinctions: Date objects become strings, undefined disappears, and numbers may be truncated. Agents then make incorrect assumptions \(e.g., comparing ISO date strings lexically instead of chronologically\). The fix is to use strict JSON Schema validation on tool outputs with explicit formats \(date-time, uuid, etc.\) and 'additionalProperties: false' to catch schema drift immediately.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T00:07:37.118475+00:00— report_created — created