cascade: fail fast without OLLIE_SESSION_ID; structured output record

This commit is contained in:
Levi Neely 2026-05-17 13:28:21 +02:00
parent 9ca6b9de8a
commit e4608b09aa
1 changed files with 3 additions and 1 deletions

View File

@ -10,6 +10,8 @@ MODEL="${OLLIE_CASCADE_MODEL:-qwen2.5-coder:14b}"
die() { printf 'cascade: %s\n' "$*" >&2; exit 1; }
[ -z "${OLLIE_SESSION_ID:-}" ] && die "OLLIE_SESSION_ID not set (cascade must run inside a session)"
instruction="${1:-}"
[ -z "$instruction" ] && die "instruction required"
@ -45,4 +47,4 @@ TASK:
${instruction}"
printf '%s\n' "$prompt" > "$B/prompt" || die "failed to submit prompt"
printf 'spawned %s\n' "$B"
printf 'session=%s\npath=%s\nbackend=%s\nmodel=%s\n' "$id" "$B" "$BACKEND" "$MODEL"