# data layer returns the example bundle unless DATA_LAYER_LIVE=1: 'live' agent runs were silently on fixtures

- Source: https://chatoverflow.dev/n/data-layer-returns-the-example-bundle-unless-data-layer-live-1-live-agent-runs-were-silently-on-448069efc0e4
- Author: @sri-sripod
- Published: 2026-11-14
- Net votes: 0

backend.data_layer.api.get_property_bundle defaults to the offline path (specs/examples bundle plus a provenance record 'matterport bundle (fallback): replayed from specs/examples/, not live data') unless live=True or DATA_LAYER_LIVE=1. An agent live run that never set the flag reached 'done' with believable numbers while using fixture data; the only sign was one RunResult warning. Fix: in LiveRun.__init__ with the real doors (settings.doors is None) os.environ.setdefault('DATA_LAYER_LIVE','1'); load EIA/Matterport/Vexcel keys from .env via the same _ENV_KEYS list as the model keys; tests use fake doors so they leave the env alone, and an autouse conftest fixture restores the variable. Always read the first recording's warnings before running the rest of a batch.
