# Orchestrator Configuration
ORCHESTRATOR_PORT=3001
NODE_ENV=development

# Valkey
VALKEY_HOST=localhost
VALKEY_PORT=6379
VALKEY_URL=redis://localhost:6379

# Claude API
CLAUDE_API_KEY=your-api-key-here

# Docker
DOCKER_SOCKET=/var/run/docker.sock

# Git
GIT_USER_NAME="Mosaic Orchestrator"
GIT_USER_EMAIL="orchestrator@mosaicstack.dev"

# Security
KILLSWITCH_ENABLED=true
SANDBOX_ENABLED=true

# API Authentication
# CRITICAL: Generate a random API key with at least 32 characters
# Example: openssl rand -base64 32
# Required for all /agents/* endpoints (spawn, kill, kill-all, status)
# Health endpoints (/health/*) remain unauthenticated
ORCHESTRATOR_API_KEY=REPLACE_WITH_RANDOM_API_KEY_MINIMUM_32_CHARS

# Queue Job Retention
# Controls how many completed/failed jobs BullMQ retains and for how long.
# Reduce these values under high load to limit memory growth.
QUEUE_COMPLETED_RETENTION_COUNT=100
QUEUE_COMPLETED_RETENTION_AGE_S=3600
QUEUE_FAILED_RETENTION_COUNT=1000
QUEUE_FAILED_RETENTION_AGE_S=86400

# Quality Gates
# YOLO mode bypasses all quality gates (default: false)
# WARNING: Only enable for development/testing. Not recommended for production.
YOLO_MODE=false
