Enforcement catches
Enforcement catches
Bare except Exception in Python
2026-05-31
enforcement hook — mail-server stack · 2026-05-31
[composure:enforcement] The write you just attempted to send-onboarding.py matches a pattern this codebase doesn't want shipped. What the rule caught (1 item): - Catch specific exceptions, not Exception.
The agent's next message: “The enforcement hook caught a real thing (bare `except Exception`) — fixing that. Re-writing with specific exceptions.” The script landed with named exception classes on the next write.
Composure enforcement hook, firing mid-session on a self-hosted mail-server stack. Catch message reproduced verbatim.