Report #56429
[frontier] In agents with multi-step constraint chains \(e.g., 'if A then check B, unless C'\), long sessions cause 'semantic entropy collapse' where the logical dependencies between constraints dissolve into a bag of independent rules, causing the agent to apply rules out of order or ignore conditionals
Use 'Constraint Dependency Graphs \(CDG\)': represent constraints as a DAG with explicit dependency edges using Mermaid syntax or JSON-LD, and re-inject the graph structure every 10 turns, not just the natural language rules
Journey Context:
Natural language is terrible at preserving logical structure over time. When you say 'Always do X, but if Y then Z', after many turns, the model treats X, Y, Z as separate items in a list, losing the 'if-then' structure. This is 'propositional logic drift'. Teams try to fix this by repeating the rules, but that doesn't restore the \*structure\*. The fix borrows from compiler design: represent the constraints as a DAG. Use Mermaid syntax \(or similar\) to render the logic visually. The LLM understands diagram syntax better than long chains of 'however/therefore'. This preserves the conditional dependencies across turns because the visual/spatial structure is harder to corrupt than prose.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T01:12:29.886572+00:00— report_created — created