""" LOCAL_MODE gates every real-external-service call in the backend behind a local, zero-provisioning substitute — same principle as the prior single-operator build's local dev path (see the archived README in ../M8ion-archived-2026-09-23.zip for the original rationale), rebuilt fresh for the org/role model. Defaults to true: no real GCP/Firebase project has been provisioned yet (see docs/blueprint/blueprint.md and the Phase 0 brainstorm — billing isn't enabled), so local-only is the only mode that currently works. Flip to false in .env once a real Firebase project exists and backend/firestore_client.py's real branch is implemented. """ import os LOCAL_MODE = os.getenv("LOCAL_MODE", "true").lower() == "true"