Locked rules survive a section or whole-document override

FixAIService
Shipped
July 19, 2026 at 1:36 AM UTC
Author
Kamo
Commit
f5812da

An author taking over a rule section by hand replaced the entire section body, which silently discarded the locked pack rules inside it - so 'never quote a rate as a firm number' could be removed just by choosing to write that section yourself. A lock any author can defeat by switching editing mode is not a lock, so this is enforced in the compiler rather than warned about in the UI. Locked rules are now re-appended after any override, including a whole-document takeover. Migrated legacy agents carry no structured rules at all, so nothing is appended for them and the byte-identical migration guarantee still holds - the existing test proves it.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing