# SC6131: feature-query-provider-scope ## Meaning The compiler emitted this diagnostic for feature query provider scope. The declaration or generated contract violates a statically checkable SupaCloud rule. ## Fix Make the feature state machine and its transitions agree. Use declared states, commands, routes, and governance metadata as the single source of truth. ## Reproduction Place the example below in a focused compiler fixture and assert that `SC6131` is reported with a file location. The fixture must fail before the fix and pass after it. ## Failing Example ```ts // Expected diagnostic: SC6131 @Module({ name: "case", providers: [{ useClass: "ListCaseQuery", scope: "application" }] }) class CaseModule {} // Feature Queries must be request-scoped. ``` ## Registry - Diagnostic names: `feature-query-provider-scope` - Owner: `compiler` - Documentation URL: https://supacloud.dev/errors/SC6131