# ─────────────────────────────────────────────────────────────────────────
# 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
LEAFMESH_LICENSE_KEY=
OPENAI_API_KEY=
ANTHROPIC_API_KEY=
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
# n8n workflow in front of your PSA / HRIS (Kantata, Workday,
# SuccessFactors…) — serves forecast / utilisation / skills modes
PSA_WEBHOOK_URL=
PSA_WEBHOOK_TOKEN=
# MCP server exposing bench / opportunities / skills as tools for
# candidate_screening_agent. Uncomment its `mcp:` block in config.yaml AFTER
# setting the URL (the SDK rejects an empty-URL http mcp at load). DEV: the
# dev-store tools in agency/tools.py serve screening day-0.
PSA_MCP_URL=
PSA_MCP_TOKEN=
# n8n workflow in front of your PSA / BI weekly bench report
BENCH_REPORT_WEBHOOK_URL=
BENCH_REPORT_WEBHOOK_TOKEN=
# n8n workflow that WRITES the human-approved staffing assignment to your
# PSA (person → project → dates → allocation%). Consumed by
# agency/allocation_booker_agent.py — inert until set; DEV records the
# booking in agency/_shared/store.py so the approve → book chain runs day-0.
PSA_BOOKING_WEBHOOK_URL=
PSA_BOOKING_WEBHOOK_TOKEN=
# Manager SUPERVISOR escalation webhook (PagerDuty or other) — inert while empty.
PAGER_WEBHOOK=
# Where human-gate notifications are POSTed IF you switch the human members to
# `human_interface: webhook`. Optional (they ship as `default` / shared inbox).
# 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.
# Local SQLite ledger that mints + stores the per-survey ESAT salt
# (consumed by agency/esat_survey_agent.py). Optional — defaults to
# ./logs/esat_anonymisation.db. The salt never enters mesh state.
ESAT_LEDGER_DB=
LEAFMESH_ENV_TOKEN=development
