Follow-up from #32 (PR #43). Today the only lever to stop platform-paid AI is editing PLATFORM_AI_ENABLED in wrangler.toml + redeploy.
Add GET/PUT /v1/admin/settings/platform-ai backed by a platform_settings row that overrides the env default at runtime, so the operator can toggle platform-paid AI without a deploy. Wire the runtime checks (agent-do.ts:72, routes/instances-translation.ts) to consult the override. Audit-log the toggle (recordAdminAction). Known side effect to warn on: OFF → embeddings/summaries/translation no-op (RAG goes dark until a BYOK-embedding path exists).
Part of the PAGS Admin Portal epic (#27). Depends on #28.
Follow-up from #32 (PR #43). Today the only lever to stop platform-paid AI is editing
PLATFORM_AI_ENABLEDinwrangler.toml+ redeploy.Add
GET/PUT /v1/admin/settings/platform-aibacked by aplatform_settingsrow that overrides the env default at runtime, so the operator can toggle platform-paid AI without a deploy. Wire the runtime checks (agent-do.ts:72,routes/instances-translation.ts) to consult the override. Audit-log the toggle (recordAdminAction). Known side effect to warn on: OFF → embeddings/summaries/translation no-op (RAG goes dark until a BYOK-embedding path exists).Part of the PAGS Admin Portal epic (#27). Depends on #28.