ompsure
All reviews
Enforcement catches

Lazy Function / Object type

2026-05-26

enforcement hook — composure-pro · 2026-05-26
[composure:enforcement] The write you just attempted to route.ts matches a pattern this codebase doesn't want shipped. What the rule caught (1 item): - Lazy type (Function or Object). Use specific signature (() => void) or Record<string, unknown>.

No argument, no workaround: “Enforcement hook caught a lint issue — rewriting the bearer extractor to avoid that pattern.” The next write used a concrete signature and went through.

Why this matters: Bugs that wait for a customerThe failure mode this catch prevents — in App architecture, in practice.

Composure enforcement hook, firing mid-session in the composure-pro repo. Catch message reproduced verbatim.