# Nuxt: preserve requirements through advanced agent edits - [Keep Nuxt API mutations scoped to the server-verified session](https://frameworkrecipes.dev/nuxt/server-session-scope/guide.md): Nuxt route middleware controls navigation, while a server/api endpoint can be called directly. Require the server session in the endpoint and carry its identity into the database predicate. Do not replace that scope with a tenant supplied in JSON. - [nuxt-mutation-tenant-scope rule pack](https://reporules.fyi/nuxt/server-session-scope/rule-pack.zip): YAML requirement and agent task. - [Use Nuxt request-scoped state instead of a shared SSR ref](https://frameworkrecipes.dev/nuxt/request-local-ssr-state/guide.md): A ref declared at module scope on the server can survive across requests. Nuxt useState supplies SSR-aware state tied to the current application/request and serialized for hydration. That prevents a later request from inheriting the previous customer’s draft. - [ssr-state-request-isolation rule pack](https://reporules.fyi/nuxt/request-local-ssr-state/rule-pack.zip): YAML requirement and agent task. - [Framework rule pack](https://reporules.fyi/nuxt/rule-pack.zip): All requirements from this framework site.