Staging Smoke Until Green
Deploy to staging, run browser smoke tests on critical paths, fix failures, and repeat until every path is green.
by Trooper
Start the "Staging Smoke Until Green" loop. Goal: staging deploy passes all critical-path smoke checks Max iterations: 8 Between iterations run: npm run smoke:staging || echo smoke-failed Exit when: all critical paths pass in browser on staging Step 1: Deploy staging, smoke critical paths in the browser, fix failures, and repeat. Self-pace this loop. After each iteration, run the check command, read the output, and only continue if the exit condition is not met. Stop when the exit condition passes or max iterations is reached. Give a short status update each pass.
Paste the kickoff prompt into Cursor, Claude Code, or Codex. Deeplinks do not install hook files.
1. Deploy staging
Trigger or verify the latest staging deploy is live.
2. Smoke critical paths
Walk login, checkout, settings, and other must-not-break flows in the browser.
3. Fix and redeploy
Patch the smallest root cause, redeploy staging, and re-run smoke.
Guardrails
Rules the agent must follow so it cannot cheat the exit condition.
- Do not skip critical paths to force green
- Do not deploy to production from this loop
- Capture screenshots on failure for triage
More Testing loops
E2E Until Green
Run Playwright or Cypress end-to-end tests with annotated failure screenshots, fix root causes, and loop until the suite is green.
Test Until Green
Run your test suite, fix the smallest root cause on failure, and repeat until every test passes.
Signup Flow Until Smooth
Walk register-through-onboard in the browser, annotate friction points, fix UX blockers, and repeat until the flow is smooth.
