# ─────────────────────────────────────────────────────────────────────────
# WHAT BELONGS IN THIS FILE — and what does NOT
#
# This file is for the DEPLOYMENT'S OWN identity and its model keys. That is
# all. Provider credentials do NOT live here.
#
#   HERE, in .env
#     LEAFMESH_LICENSE_KEY, LEAFMESH_ENV_TOKEN
#     the ports, REDIS_* / Postgres  (the store the vault itself lives in)
#     your model provider key(s): OPENAI_API_KEY / ANTHROPIC_API_KEY /
#       GOOGLE_API_KEY …  (these are read from the environment as the mesh
#       starts, so they must be here — the vault is read too late for them)
#
#   NOT HERE — in the VAULT, added on Studio's Infrastructure page
#     every channel credential  (Slack bot_token / signing_secret / app_token,
#       Teams, Discord, Cliq, WhatsApp, Email)
#     every connector credential (MCP, Zapier, Composio, n8n, custom)
#     Config then names it:  connection: "slack-workspace"
#
# Why it matters: since 2.4.180 the mesh REFUSES TO BOOT if it finds a
# provider credential written into config — and `${ENV_VAR}` does not help,
# because substitution happens before the check runs, so the check sees the
# token itself. `connection:` is the only path that works.
#
# Note: a value is EMPTY here, never a comment. `KEY=   # explanation` is read
# by python-dotenv as the COMMENT being the value.
# ─────────────────────────────────────────────────────────────────────────

# {{project_name}} — environment

# ── Tier 1 — boot (required to start) ────────────────────────────────────────
LEAFMESH_LICENSE_KEY=
LEAFMESH_ENV_TOKEN=development
OPENAI_API_KEY=
ANTHROPIC_API_KEY=

# ── Tier 2 — host prerequisites (sensible defaults) ──────────────────────────
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
# Relocate the seeded dev store (batches, defects, SPC series, CAPA register,
# recalls, pending-inspection backlog). Defaults to ./data. Dev stand-in for
# your MES/LIMS/QMS/historian — never your system of record.
QUALITY_YIELD_STORE_DIR=
# Where the human gates send their outbound notification (the QA manager /
# inspector / plant engineer / quality director webhooks). Defaults to a local
# stub so the pod runs day-0; point it at your inbox/Teams/Slack webhook relay.
# HITL_OUTBOUND_URL=
#   ^ LOCAL TEST STUB ONLY. Leave it commented. A human seat should be
#     human_interface: "default" (the Studio Inbox) — a real queue a real
#     person clicks. A custom webhook receiver is not how HITL is run.

# ── Tier 3 — connectors (wire your systems of record) ────────────────────────
# LIMS / vision-system MCP gateway — the commented mcp block on
# inspection_intake_agent. Fill the URL, then uncomment the block in
# configs/config.yaml. Until then intake reads the seeded dev store.
LIMS_MCP_URL=
LIMS_MCP_TOKEN=
# QMS MCP gateway — the commented mcp block on corrective_action_tracker_agent
# (track_corrective_actions tool). CAPAs live in your QMS, not here. Until
# wired, the tracker runs the register off the dev store.
QMS_MCP_URL=
# Plant historian MCP gateway if you swap spc_monitor_agent off the dev-store
# SPC series (PI, Ignition, InfluxDB…).
HISTORIAN_MCP_URL=
