# ─────────────────────────────────────────────────────────────────────────
# 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=
# Nova, Sensa, Sable, Manager (gpt-4o-mini)
OPENAI_API_KEY=
# Rex (claude-sonnet-4-6, super_agent scheduler)
ANTHROPIC_API_KEY=
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
LEAFMESH_ENV_TOKEN=development

# ── Tier 2 — your systems of record (optional day-0; the seeded dev
#    store stands in until these are wired). Fill the URL AND uncomment
#    the mcp block on demand_sensor_agent in configs/config.yaml. Until
#    MES_MCP_URL is set, the finisher records a dev outbox job that
#    announces itself (released:false) — it never fakes a real MES ack. ──
# MES work-centre calendar + MES release
MES_MCP_URL=
MES_MCP_TOKEN=
# ERP/MRP — BOM + on-hand inventory
ERP_MRP_MCP_URL=
ERP_MRP_MCP_TOKEN=

# ── Tier 3 — HITL + escalation egress (optional) ─────────────────────
# The three human gates post here; defaults to the local HITL stub.
# HITL_OUTBOUND_URL=http://127.0.0.1:9999/human-notify
#   ^ 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.
# Manager escalation targets ship COMMENTED in configs/config.yaml —
# uncomment the target you want, then set its var here.
PAGER_WEBHOOK=
SLACK_PLANT_CHANNEL=
