Some checks failed
CI / typecheck + lint + boundaries + test + build (pull_request) Has been cancelled
CodeQL / Analyze (javascript-typescript) (pull_request) Has been cancelled
Sentry PII guard (R31) / pii-guard (pull_request) Has been cancelled
CI / Playwright e2e (pull_request) Has been cancelled
CI / Storybook smoke tests + visual regression (pull_request) Has been cancelled
The hoisted applyAction closure loses the collection narrowing (TS18048) and apps with generated CollectionSlug unions reject comparing slugs to 'audit-logs' (TS2367). Re-bind the narrowed collection and widen the slug comparison to string. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>