Do not launch agents without a usable stage brief #1

Merged
arthur merged 1 commit from fix/runner-require-stage-brief into main 2026-09-13 12:48:00 +00:00
Owner

New console stages can precede their fallback files in the workspace image. If the live brief fetch fails, the current runner renders a missing fallback, appends generic instructions and launches anyway.

Require a nonempty source and successfully rendered brief before continuing. On failure return the claim to its prior status using compare-and-set and skip launch. This protects the new user-pain research stage from falling through into generic coding instructions; it also covers existing goal stages and corrupt/empty fallback files.

Validation: node workspace/test_card_brief.js (missing and empty source, preserving prior output, successful substitution, claim return/skip guard); sh -n workspace/card-runner. No provider session started, image built, merge, rollout or customer workspace restart. Normal Git push. The image workflows run on main, so this PR itself does not publish an image.

New console stages can precede their fallback files in the workspace image. If the live brief fetch fails, the current runner renders a missing fallback, appends generic instructions and launches anyway. Require a nonempty source and successfully rendered brief before continuing. On failure return the claim to its prior status using compare-and-set and skip launch. This protects the new user-pain research stage from falling through into generic coding instructions; it also covers existing goal stages and corrupt/empty fallback files. Validation: node workspace/test_card_brief.js (missing and empty source, preserving prior output, successful substitution, claim return/skip guard); sh -n workspace/card-runner. No provider session started, image built, merge, rollout or customer workspace restart. Normal Git push. The image workflows run on main, so this PR itself does not publish an image.
fix(workspace): refuse to launch without a stage brief
All checks were successful
build-workspace / workspace (push) Successful in 29m40s
45e5bed166
arthur merged commit 45e5bed166 into main 2026-09-13 12:48:00 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
z3k-images/images!1
No description provided.