Engram · Configuration & integration

Roll out guards and authorize overrides

Use guards for structural checks that can be evaluated during a file mutation. The optional complete --guard accepts require:<regex> or forbid:<regex>. In default shadow mode, would-blocks are recorded without enforcing. Sleep can promote a shadow guard after enough labeled true-positive sessions and no false positives; the default canary minimum is five. Explicit guard_mode = "enforce" is a different policy and deserves review.

Wire the pre-tool-use hook before relying on guards to protect mutations. An unread relevant cue may soft-block with exit 2 until recalled; enforcing guards can block forbidden structural changes. Most internal hook/block errors fail open with diagnostics; invalid harness/OTE configuration can return 1. Exit 0 is not evidence that the check ran successfully.

For an authorized exception, generate and sign an override message binding the enforcing memory, target and named nondefault session. Then use the engram override form in the catalog with that signature and a reason. One matching target mutation consumes the token and records negative evidence; unused tokens expire at session end. This is not a permanent allowlist.

The signature also binds the stored summary digest and the guard-removal state. Generate it against the same selected store, not a guessed old message template. Consumption rechecks the current anchor and summary, emits attested evidence plus a guard tombstone, and leaves that memory complete without that guard. Thus the token is one-use, not a promise that the same guard will block the next mutation. A compiled or overridden memory remains protected against unsigned state/summary rewrites: ordinary negative outcomes can change belief but cannot remove a pinned guard; forget, supersession, completion, revert or migration may refuse guarded changes. Imported compile claims do not install a locally enforcing guard; the receiving operator must compile locally. Inspect guards.enforcing, guards.shadow, guards.ledger_unresolved and receipts in status.