diff --git a/plugins/ultraplan-local/commands/trekexecute.md b/plugins/ultraplan-local/commands/trekexecute.md index 7dccc24..d530763 100644 --- a/plugins/ultraplan-local/commands/trekexecute.md +++ b/plugins/ultraplan-local/commands/trekexecute.md @@ -558,13 +558,13 @@ if [ -f "${PROJECT_DIR}/architecture/overview.md" ]; then printf '\n\n---\n\n' >> "${SHARED_CONTEXT_FILE}" cat "${PROJECT_DIR}/architecture/overview.md" >> "${SHARED_CONTEXT_FILE}" fi -MAX_TURNS="${ULTRAEXECUTE_MAX_TURNS:-50}" -MAX_BUDGET_USD="${ULTRAEXECUTE_MAX_BUDGET_USD:-5}" +MAX_TURNS="${TREKEXECUTE_MAX_TURNS:-50}" +MAX_BUDGET_USD="${TREKEXECUTE_MAX_BUDGET_USD:-5}" ``` The budget caps default to safe values for normal-length steps. Operators may override for long runs: -`ULTRAEXECUTE_MAX_TURNS=120 ULTRAEXECUTE_MAX_BUDGET_USD=20 /ultraexecute-local --project ...` +`TREKEXECUTE_MAX_TURNS=120 TREKEXECUTE_MAX_BUDGET_USD=20 /ultraexecute-local --project ...` **2a. Create worktrees for this wave's sessions:** diff --git a/plugins/ultraplan-local/templates/headless-launch-template.md b/plugins/ultraplan-local/templates/headless-launch-template.md index b532a31..79fa34c 100644 --- a/plugins/ultraplan-local/templates/headless-launch-template.md +++ b/plugins/ultraplan-local/templates/headless-launch-template.md @@ -29,8 +29,8 @@ export GIT_OPTIONAL_LOCKS=0 # Per-child guardrails (operator may override via env). Match Phase 2.6 # Step 2a-pre defaults. -MAX_TURNS="${ULTRAEXECUTE_MAX_TURNS:-50}" -MAX_BUDGET_USD="${ULTRAEXECUTE_MAX_BUDGET_USD:-5}" +MAX_TURNS="${TREKEXECUTE_MAX_TURNS:-50}" +MAX_BUDGET_USD="${TREKEXECUTE_MAX_BUDGET_USD:-5}" # Shared context (brief + architecture if present). Absolute path so child # sessions resolve it after `cd` into their worktree. @@ -81,15 +81,15 @@ fi # Pre-flight: verify remote push permissions (catches credential/auth issues # BEFORE spawning sessions). Sub-agent bash sandbox may have different # credentials than the launching shell — Step 0 in each session spec handles -# the sandbox-side detection. Set ULTRAEXECUTE_SKIP_PREFLIGHT=1 for offline +# the sandbox-side detection. Set TREKEXECUTE_SKIP_PREFLIGHT=1 for offline # or air-gapped testing. -if [ "${ULTRAEXECUTE_SKIP_PREFLIGHT:-0}" != "1" ]; then +if [ "${TREKEXECUTE_SKIP_PREFLIGHT:-0}" != "1" ]; then if ! git push --dry-run origin HEAD >/tmp/push-dryrun-launch.log 2>&1; then echo "ERROR: git push --dry-run failed. Sessions will be unable to push." cat /tmp/push-dryrun-launch.log echo "" echo "Fix remote credentials before running parallel execution, or set" - echo "ULTRAEXECUTE_SKIP_PREFLIGHT=1 to bypass (offline/air-gapped only)." + echo "TREKEXECUTE_SKIP_PREFLIGHT=1 to bypass (offline/air-gapped only)." exit 1 fi if grep -qE "(rejected|denied|forbidden|permission)" /tmp/push-dryrun-launch.log; then diff --git a/plugins/ultraplan-local/templates/session-spec-template.md b/plugins/ultraplan-local/templates/session-spec-template.md index c00df75..0c35b6d 100644 --- a/plugins/ultraplan-local/templates/session-spec-template.md +++ b/plugins/ultraplan-local/templates/session-spec-template.md @@ -72,7 +72,7 @@ session_manifest: ultraexecute-local marks the session `blocked` and does NOT proceed. This catches the fail-late push-denial mode observed in Wave 1.* -*Escape hatch:* set `ULTRAEXECUTE_SKIP_PREFLIGHT=1` in the environment to +*Escape hatch:* set `TREKEXECUTE_SKIP_PREFLIGHT=1` in the environment to bypass Step 0 (use only for offline/air-gapped testing). ### Step 1: {description}