Files
streamline/satellite/.env.example
T
2026-11-16 17:26:44 -08:00

62 lines
3.1 KiB
Bash

# Satellite (executor) .env — copy to the REPO-ROOT .env on the satellite machine
# (bun loads .env from the cwd you launch from, i.e. the repo root, not satellite/).
#
# A satellite needs ONLY these. It does NOT need PORT/HOST, MEEGO_*, LARK_*,
# APP_BASE_URL or VITE_SSO_* — those are control-plane-only.
# --- identity / cluster wiring (the important per-node bits) ---
# This node's id == its DDNS host. Pick per machine:
AGENT_HOST=fei-ios-01.bytedance.net
AGENT_PLATFORM=ios # android | ios
AGENT_PORT=5180
# How the CONTROL PLANE dials THIS satellite. On a separate machine this MUST be
# the node's network address (its DDNS), not loopback:
AGENT_BASE_URL=http://fei-ios-01.bytedance.net:5180
# How THIS satellite reaches the control plane's internal API — the control
# plane's reachable address, not 127.0.0.1. Either the published internal API
# domain (below) or a direct host form like http://<control-host>:5173.
CONTROL_PLANE_URL=https://streamline-internal-api.bytedance.net
# Shared secret — must match the control plane's CLUSTER_SECRET (empty = trusted).
CLUSTER_SECRET=
# --- local execution knobs (same meaning as on the control box) ---
CLAUDE_BIN=claude
# Optional node-wide engine: print | pty | cursor | codex
# STREAMLINE_AGENT_MODE=pty
# Optional per-phase override: pins the EVALUATE stage (all task types) to a
# specific engine while run/asking keep obeying STREAMLINE_AGENT_MODE. Unset
# (default) means "same as global"; shares CURSOR_BIN/CODEX_BIN with the global.
# STREAMLINE_EVALUATE_AGENT_MODE=codex
# CODEX_BIN=codex
# STREAMLINE_CODEX_MODEL=
# STREAMLINE_CODEX_SANDBOX=workspace-write
# Security run only: automatic retries after the initial provider turn (0-3; values above 3 are capped).
# SECURITY_RUN_MAX_RETRIES=3
# Backoff for security provider/system failures; report-format repairs resume immediately.
# SECURITY_RUN_RETRY_BACKOFF_MS=30000
BASE_BRANCH=develop
MAX_ROUNDS=5
EVAL_PARALLEL=3 # concurrent evals + advertised eval capacity
# run: all Run task types, Evaluate capacity 0; evaluate: all Evaluate task
# types, Run capacity 0. Unset: both phases. Does not filter by task type.
# Security Evaluate always uses a runner-owned, task-private shallow checkout and
# only runs on nodes whose AI_WORKSPACE has no TikTok. A node with the shared
# AI_WORKSPACE/TikTok checkout starts in any mode, still evaluates bugs and
# features, and never claims security evaluations.
SATELLITE_WORK_MODE=
STREAMLINE_DRY_RUN=0
# Fix-Critic: independent read-only grader of each FIXED run.
# FORCE-DISABLED in code as of 2026-08-19 (satellite/src/runner.ts) — it has never
# produced a verdict; this value is ignored until FIX_CRITIC_FORCE=1 is also set.
FIX_CRITIC=1
# How many non-root-cause verdicts auto-open the next fix round before escalating
# to a human. Defaults to MAX_ROUNDS so the critic keeps re-opening on its own.
# FIX_CRITIC_MAX_AUTOBOUNCE=5
# Optional overrides (defaults shown):
# AI_WORKSPACE=~/ai_workspace # claude cwd; the platform repo must live here, device connected
# BUG_WORKSPACE_ROOT=~/bug_workspace # where this node materialises task workspaces
# AGENT_HEARTBEAT_MS=10000