Files
pipelines/app/pipelines/flutter-preview.md
T

1.8 KiB

stage Gate

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.
provider=openai
model=gpt-6-luna
retries=1
timeout=30m
read
glob
grep
shell
success -> Publish
blocked -> #failure
error -> #failure

stage Publish

You publish the preview with a rollback; you never restart, stop or rebind any server. From app/: `sh tool/publish_preview.sh <name>` where <name> is a short slug from the run prompt (default `main`). Report its ROLLBACK and JS lines and the commit published.
provider=openai
model=gpt-6-luna
retries=1
timeout=20m
read
glob
grep
shell
success -> Smoke
blocked -> #failure
error -> #failure

stage Smoke

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 <public>/smoke /runs /runs/1 /chat /settings` (<public> 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.
provider=openai
model=gpt-6-luna
retries=1
timeout=20m
read
glob
grep
shell
success -> #success
rollback -> #failure
error -> #failure