2026-05-30
[composure:enforcement] The write you just attempted to server.ts matches a pattern this codebase doesn't want shipped. What the rule caught (1 item): - Return type assertion detected. Use satisfies, a type guard, or annotate the function return type.
The write never landed. The agent's next message: “The enforcement hook caught my `return ... as AvailabilityRule` cast — correctly. Fixing it canonically with a type guard (no assertion, using `in`-narrowing) — not silencing it.” The rewrite passed on the next attempt.
Composure enforcement hook, firing mid-session on an AI scheduling SaaS build (the builder's own product). Catch message reproduced verbatim.
You can stop reading and start checking.
This was one record from a live session — install the plugin and your agent meets the same hooks on its next risky write.