Reddit dev proposes LEM/H40: separating AI interpretation from governed execution

_Boon21_ · reddit · 2026-12-07

A Reddit developer shares a dual-engine agent architecture called LEM/H40: LEM interprets and normalizes incoming information, while H40 independently validates whether it may cross an execution boundary, both under predefined constraints the interpreting system cannot modify. The principle: AI may propose operations, but an independent deterministic mechanism governs permission. Parts already run in production without runtime generative AI. The author asks how others prevent AI-generated instructions from gaining unauthorized privileges, whether they use middleware or policy engines, and how to stop agents from circumventing their own governance.

Original post →

More from coding & agent

coding & agent channel →