Developers Share Long-Term Memory Designs for AP Invoice Agents
On September 30, several Reddit developers shared practices for adding long-term memory to accounts payable invoice-processing agents: four used the open-source Hindsight framework, while ctenidae8 open-sourced their own "AP Memory Agent" approach. The shared conclusion is that persisting past approval decisions as retrievable memory—with humans making the final call—works well for invoice exception handling.
Confirmed
- Common pain point: standard AP flows detect invoice-PO mismatches but lose decision context across sessions; spoorthi4240 cites failing to recall that the same vendor's similar discrepancy was approved three months earlier due to partial delivery.
- Typical workflow: invoice+PO matching → mismatch detection → retrieve similar historical decisions → present context to a human reviewer → human decides and the decision is stored. BreakfastHuge2847 stresses that invoice exceptions should not be solved from scratch each time.
- rharikareddy17 treats human decisions as the memory-write boundary, using Hindsight as a persistent memory layer rather than a replacement for matching logic.
- AdPlenty2373's key design choice: memory serves as evidence, not authority—reference context for reviewers only.
- ctenidae8's open-sourced approach turns historical policies, approve/reject decisions, exceptions, and reviewer feedback into reusable long-term memory.
Why it matters
- Invoice exception handling involves unpredictable edge cases that pure rules or pure LLMs struggle to cover; long-term memory lets organizational knowledge accumulate and be reused.
- The convergent "humans decide, the system records evidence" architecture reflects cautious thinking about the trust boundaries of agent memory, offering a reference for memory design in other compliance-sensitive domains.
2026-09-30 ~ 2026-09-30 · 5 related posts
Primary sources
- [source] Building an AP Agent That Uses Past Invoice Decisions as Long-Term Memory — ctenidae8 · 2026-09-30
- [source] An AP agent that recalls past invoice decisions before judging new exceptions — spoorthi_4240 · 2026-09-30
- [source] Vendor Memory Around Invoice Decisions: Treating Agent Memory as Evidence, Not Authority — AdPlenty2373 · 2026-09-30
- Building an AP Agent With Hindsight Memory: Human Decisions as the Write Boundary — rharikareddy17 · 2026-09-30
- Invoice agent that learns: Hindsight memory layer for AP exceptions — BreakfastHuge2847 · 2026-09-30