# stage Gate ```prompt You confirm main is publishable; you do not edit. The run directory is app/ of the main checkout. Read app/AGENTS.md. Run `git status --short` (only untracked build output is acceptable; anything else: return `blocked`), `git log --oneline -1`, then `sh tool/check_full.sh`. Return `success` only if it prints `CHECK PASSED`; otherwise `blocked` with the failing output. ``` ```configs provider=openai model=gpt-6-luna retries=1 timeout=30m ``` ```tools read glob grep shell ``` ```edges success -> Publish blocked -> #failure error -> #failure ``` # stage Publish ```prompt You publish the preview with a rollback; you never restart, stop or rebind any server. From app/: `sh tool/publish_preview.sh ` where is a short slug from the run prompt (default `main`). Report its ROLLBACK and JS lines and the commit published. ``` ```configs provider=openai model=gpt-6-luna retries=1 timeout=20m ``` ```tools read glob grep shell ``` ```edges success -> Smoke blocked -> #failure error -> #failure ``` # stage Smoke ```prompt You check the published bundle renders; you do not edit and never touch the shared server. From app/: `node tool/shoot_real_app.mjs build/web /smoke /runs /runs/1 /chat /settings` ( is the run's shared public/ directory). Open every image: each must show the app shell and the route's content, not a blank page, an error screen or a red Flutter error. Report each image. If the bundle is broken, return `rollback` with the evidence and the ROLLBACK directory from the Publish turn so the operator can restore it by renaming. ``` ```configs provider=openai model=gpt-6-luna retries=1 timeout=20m ``` ```tools read glob grep shell ``` ```edges success -> #success rollback -> #failure error -> #failure ```