"It simply ignored all rules in CLAUDE.md time after time." - is our reality..
My one problem in years of operations was making what we agreed happen.
As-Agreed checks each step against what was agreed. It stops the last step if a must term changed. It sees only the terms you declare.
Would it have caught your case? Install it and run the demo: python3 -m pip install as-agreed as-agreed demo --no-retry https://github.com/as-agreed/as-agreed
hope it'll help