Supply Chain Agent Lesson: Memory Knows the Rules, Code Enforces Them

Chemical_Pickle5979 · reddit · 2026-09-30

The author built a decision-support agent for supply chain disruptions (gpt-oss-120b, synthetic dataset: 5 plants, hundreds of suppliers, 3 years of history), architected as narrative memory (Hindsight) + structured state (SQLite) + deterministic simulator + guardrails in code — the LLM never generates a number.

Key lessons:

Results: 14/14 correct actions on held-out disruptions, 4/4 trap cases avoided, 13/14 open commitments surfaced. What failed: of 12 planted recurring patterns, memory recalled the documents reliably but consolidated observations surfaced only 3 on its own — a key reason hard rules live in code. Code is open source.

Original post →

More from coding & agent

coding & agent channel →