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. ## Before you start Connect plugins: - GitHub (required) — Read branches, PRs, reviews, checks, workflow runs, and source diffs. - Browser / Web access (required) — Open pages, inspect live state, collect evidence, and verify changes. - Stripe (required) — Verify checkout, billing, payment, and subscription state. Attach skills: - Loop runner (required) — Self-pace iterations, run the check between passes, and stop only on the exit condition. - Code change + local verification (optional) — Edit code safely, run commands, and keep changes scoped. - CI debugging (optional) — Read failing checks, logs, and the smallest actionable root cause. - Test repair (optional) — Run tests, triage failures, and avoid weakening the suite. - Browser QA (optional) — Exercise product flows, capture visual evidence, and verify fixes in-browser. - Approval workflows (optional) — Keep outbound actions in draft or approval states when risk is non-trivial. 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.
