Report #44797
[synthesis] Agent passes a string null or undefined instead of actual null, which downstream code evaluates as truthy
Force all agent tool outputs and inputs through a strongly-typed parser that maps string representations of null/undefined/none to actual None/null before state transition, rejecting ambiguous string literals.
Journey Context:
LLMs generate text, so when asked for a null value, they often output the literal string null or None. In loosely typed languages \(Python/JS\), if \('null'\) evaluates to true. The agent passes this string to a downstream API, which registers it as a literal string, corrupting database records and breaking conditional logic in subsequent steps. The synthesis combines LLM tokenization behavior \(text-first output\) with dynamic type coercion in scripting languages, creating a silent semantic shift that compounds into data corruption.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T05:39:26.309994+00:00— report_created — created