
/internal/admin route of the broader application and is gated behind an admin
role claim.adminLevel) in production; a role switcher
exists for local/mock development. Capabilities such as impersonation, credit
adjustment, force-render, and user deactivation are checked against the matrix before any
action is allowed, and write actions are blocked for read-only roles./internal/admin:jobs/[jobId]) — per-job timeline of status transitions, a shot-by-shot breakdown (with per-shot API request/response, latency, and cost), a chronological log viewer, and admin actions to retry, cancel, or force a render.node_modules/next/dist/docs/.@tailwindcss/postcss)tw-animate-css, class-variance-authority, clsx, tailwind-mergeadminLevel claims), Firestore for jobs/audit data, with token refresh handled by a custom API clientsrc/lib/feature-flags.ts) gate surfaces that depend on backend infrastructure that may not be deployed yet (cost tracker, API-call instrumentation), and a mock-data mode lets the app run standalone without any backend env vars — enabling UI development and demos before real data sources are wired in.api/cron/budget-check) for scheduled budget alerting; Vercel is the deployment target.NEXT_PUBLIC_FIREBASE_* and related
environment variables. Surfaces progressively "go live" as their backing infrastructure
ships, controlled by environment-driven feature flags rather than code changes.

Posted Jun 22, 2026
Internal ops cockpit for Marketing OS monitor worker fleets, API health, and spend, unstick jobs, and gate every privileged action behind RBAC and an audit log.