Skip to content
Skills Library
DevOps & cloud · Testing

smoke-testing

/smoke-testing

Use when Product Owner defines smoke prompts or deploy handoffs, and when AI Developer / Deploy phase executes post-deploy smoke. Do NOT use for pre-deploy unit/integration/source gates alone; smoke means proving the operator-visible outcome on the deployed surface with ground-truth diagnostics.

Licence
MIT
Last repository change
19.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 19.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when Product Owner defines smoke prompts or deploy handoffs, and when AI Developer / Deploy phase executes post-deploy smoke. Do NOT use for pre-deploy unit/integration/source gates alone; smoke means proving the operator-visible outcome on the deployed surface with ground-truth diagnostics.

Original author description

Use when Product Owner defines smoke prompts or deploy handoffs, and when AI Developer / Deploy phase executes post-deploy smoke. Do NOT use for pre-deploy unit/integration/source gates alone; smoke means proving the operator-visible outcome on the deployed surface with ground-truth diagnostics.

How it works

  1. Purpose
  2. When to invoke
  3. Do not invoke when
  4. Required inputs
  5. Procedure
  6. Verification cost discipline (record-then-read default)
  7. Output artifacts
  8. Failure cases
  9. Escalation path
  10. Anti-patterns
Original SKILL.md headings · 166 lines, 2,684 words
SKILL.md preview
---
name: smoke-testing
description: Use when Product Owner defines smoke prompts or deploy handoffs, and when AI Developer / Deploy phase executes post-deploy smoke. Do NOT use for pre-deploy unit/integration/source gates alone; smoke means proving the operator-visible outcome on the deployed surface with ground-truth diagnostics.
source_inspiration: conceptual-only
license_status: clean-room-original
fusebase_flow_version: 3.1
risk_level: high
invocation: automatic
expected_outputs:
  - outcome-based smoke prompts in docs/specs/<slug>/verification-gate.md
  - deploy-handoff smoke contract in docs/tmp/handoff/<date>-<slug>-deploy.md
  - smoke evidence in docs/tmp/handoff/<date>-<slug>-smoke/
  - smoke result table in deploy report
related_workflows:
  - smoke-verification.md
  - greenlight-deploy.md
  - live-user-verification.md
hook_dependencies:
  - none
---

# Smoke Testing

> **Style:** Mode-B-lite. Outcome-first smoke discipline for Product Owner definition and AI Developer execution.

## Purpose

Prevent pre-outcome signals from being mislabeled as smoke success. A smoke test passes only when the operator-visible action works on the deployed surface and the system's ground-truth diagnostics show no hidden failure.

## When to invoke

- Product Owner drafts `verification-gate.md` for a user-facing or operator-facing change.
- Product Owner drafts `docs/tmp/handoff/<date>-<slug>-deploy.md` and includes S1..Sn smoke prompts.
- AI Developer / Deploy phase runs post-deploy smoke prompts.
- A previous smoke missed a production bug and the smoke method must be corrected.
- Operator asks whether smoke evidence is sufficient.

## Do not invoke when

- The task is only pre-deploy source validation: lint, typecheck, unit tests, static bundle checks, file hash checks.
- No deployed or runtime behavior exists to exercise.
- A live user session is required but consent/session handling is not available; invoke `workflows/live-user-verification.md` first.

## Required inputs

| Input | Where it lives | If missing |
|---|---|---|
| Operator-visible success criterion | `verification-gate.md` smoke section | PO must write it before designing checks |
| Smoke prompts S1..Sn | `docs/specs/<slug>/verification-gate.md` | Stop; smoke cannot be improvised after deploy |
| Deployed surface / base URL / command | deploy handoff | Stop; ask PO to amend handoff |
| Ground-truth diagnostic surface | smoke prompt field: logs, request dumps, DB row, rendered UI, response body | Stop; PO must define it or explicitly mark unknown |
| Existing smoke harness | `docs/specs/<slug>/smoke.spec.ts`, script path, curl command, or manual steps | Use if present; do not substitute weaker checks silently |
| UI / browser plan, if applicable | S<n> fields or `templates/smoke-test-playwright.md` | Require route, viewport, primary action, stable locators, auth plan, unique test data, expected outcome, diagnostics |
| CLI edition map, for Fusebase Apps work | `docs/fusebase-cli-edition.md` | Continue only if smoke can name another ground-truth diagnostic surface |
| Evidence directory | `docs/tmp/handoff/<date>-<slug>-smoke/` | Create before execution |

## Procedure

### Product Owner: define the smoke contract

1. Write the success-criterion sentence first. It must describe the operator-visible outcome, not an implementation signal.
   - Bad: `spawn exits 0`
   - Good: `operator chat reply renders TemplateListCard with the 8 real templates`
2. For ACs citing quality patterns (QP-xx), start from the pattern's **Verify** line in `flow-skills/app-quality-patterns/references/` — it is a copy-ready S<n> recipe; adapt routes/selectors/data. Then identify the ground-truth diagnostic surface for each S<n>. Examples: request dump JSON, app error log, server log, rendered DOM, response body, database row, job trace.
3. For Fusebase Apps smoke, use `docs/fusebase-cli-edition.md` to pick supporting CLI diagnostics such as `remote-logs`, `dev-debug-logs`, `fusebase-cli`, `fusebase-dashboards`, or `fusebase-gate`.
4. Separate supporting checks from smoke checks. File hashes, symbol presence, service active, exit code 0, and HTTP auth sanity are supporting checks only; they cannot satisfy smoke by themselves.
5. For UI smoke, include at least one real primary interaction when the ticket creates or changes one: navigate, submit, save, send, search, filter, authenticate, or complete the main workflow. A screenshot-only check is visual evidence, not sufficient smoke for an interactive feature.
6. For UI smoke, name stable selectors or accessible locators for interactive controls and meaningful dynamic output. Prefer selectors tied to purpose/state, not styling or layout.
7. For browser-driven smoke, define route/navigation, viewport coverage, auth/session plan, setup data, unique test values, and cleanup responsibility. Do not rely on existing shared data counts or empty states unless the smoke prepares that state.
8. For UI actions that cross backend boundaries, name both evidence surfaces: browser-visible result and backend/log/API diagnostic. Browser success alone is insufficient if server logs show errors.
9. Add at least one adversarial/falsification probe: "what would still be broken if the static checks passed?"
10. Define S1..Sn with these fields: scenario, route/navigation, steps, expected operator-visible outcome, pass criterion, ground-truth diagnostic to inspect, stable selectors/locators if UI-facing, auth/test data plan, viewport if browser-facing, adversarial check, evidence required, insufficient substitutes.
11. If the real end-to-end action needs operator credentials or a live session, use `workflows/live-user-verification.md`. If that is not available now, mark the deploy state `SHIPPED-pending-operator-smoke`, leave spec DRAFT, and provide the exact operator smoke prompt.
12. When drafting deploy handoff, copy the smoke contract verbatim. Do not compress S1..Sn to "run smoke" or "verify feature works."

### AI Developer / Deploy phase: execute the smoke

1. Read every S<n> before starting. Restate the success criterion and ground-truth diagnostic in the deploy log/report.
2. For Fusebase Apps smoke, load the supporting CLI diagnostics named by `docs/fusebase-cli-edition.md` or the smoke contract. Use them to inspect logs, deployed behavior, and app quality evidence after the operator-visible action runs.
3. Use the named harness if one exists. If a script was created for live smoke, run that script or explain why it is impossible; do not replace it with static checks.
4. Execute the operator-visible action. Capture outcome evidence: screenshot, response excerpt, rendered card text, produced artifact, or job result.
5. For browser smoke, run one user flow at a time, preferably in a fresh browser context. Use unique test data and record any created IDs/names for cleanup.
6. Inspect the ground-truth diagnostic after the action, including any delayed dump/log written after process exit. Use a wait window when the system writes diagnostics asynchronously.
7. For UI/backend flows, inspect browser console/network evidence and the backend/log/API diagnostic named in S<n>. Treat either surface showing an error as smoke FAIL.
8. Treat exit code 0, service active, hash match, deployed symbol, and non-401 auth response as necessary-but-insufficient preconditions.
9. For errors shaped like `'X' object is not Y`, `NoneType`, `undefined is not`, or equivalent type/iteration failures, get the full traceback first. Do not bisect from guesses.
10. If smoke fails, list at least three candidate causes before selecting the next probe. Design a probe that distinguishes them.
11. If end-to-end execution is not feasible, report `PENDING-OPERATOR-SMOKE` with the missing prerequisite and exact operator steps. Do not claim PASS, DONE, or SHIPPED.
12. Persist evidence under `docs/tmp/handoff/<date>-<slug>-smoke/` and include exact paths in the deploy report.
13. Clean up or document test data and external-service side effects before DONE. Keep evidence files; remove throwaway data not needed for audit.
14. If a smoke missed a bug, update future smoke methodology immediately: add the missed outcome or diagnostic surface to the next gate/handoff; inside the current gate apply it per § Live-run discipline (standard freeze).

### Flaky-result semantics (FAIL-then-PASS is not PASS)

A smoke S<n> that FAILs and then PASSes on retry is **FLAKY**, not PASS. Retrying until green
launders a real defect (race, ordering dependency, state leak, async timing) into a false-green ship.

- Record every attempt in the evidence dir: `S<n> attempt 1: FAIL <observed>; attempt 2: PASS` —
  never overwrite or omit the first result.
- FLAKY resolves only when the first failure is **reproduced-or-explained**:
  - **Reproduced:** same conditions re-trigger the failure → real bug. Route to
    `flow-skills/validation-and-qa/SKILL.md` Sub-mode C (deterministic-system branch); the S<n>
    verdict is FAIL.
  - **Explained:** a named, evidenced external cause (deploy-propagation delay confirmed in the
    platform log; cold-start timeout visible in `remote-logs`) with the ground-truth diagnostic
    ATTACHED under `docs/tmp/handoff/<date>-<slug>-smoke/`; then 3/3 clean under the same
    conditions after the cause clears before any PASS (matches `validation-and-qa` Sub-mode C
    Explained-external). "Probably a network blip" with no diagnostic is not an explanation.
- Until one of those holds, report `S<n>: FLAKY (unresolved)` — it counts as FAIL against the
  smoke threshold and blocks DONE like any FAIL.
- Reproduction mechanics and the deterministic-vs-model-variance verdict split live in
  `flow-skills/validation-and-qa/SKILL.md` Sub-mode C.

### Live-run discipline (reruns, waits, evidence standard)

- **Freeze the standard per gate.** Before the first live run, commit pending smoke-contract edits and record the contract's commit (`git log -1 --format=%H -- docs/specs/<slug>/verification-gate.md`) in the evidence dir. A mid-gate tightening applies to rows not yet run and to the next gate: commit it and record the new contract commit in the evidence dir with the rows run under each commit. Re-prove an already-PASSed row only when the tightening shows its evidence missed its own pass criterion, and name those rows in the evidence dir.
- **Run past a failure.** After a FAIL, run every remaining independent S<n>. A row that needs state or data another row creates is dependent: if that row failed, record `S<n>: BLOCKED-BY S<k>` (not-PASS against the threshold); never run it on missing setup.
- **Audit waits once.** After the first timing failure, check every harness wait in one pass and correct all short waits together — never one wait per live launch. A wait on the operator-visible outcome is short only when stricter than the product's latency criterion (with no stated criterion, never) and is raised at most to that criterion, never past it; a wait on harness setup is short when below the setup latency the ground-truth diagnostic recorded (log or network timestamps). Short waits on product-finding rows (next bullet) are corrected in the same pass, raised at most to the criterion; the row stays a product finding on its recorded latency.
- **Harness wait vs product failure.** The product's own latency criterion (spec or S<n> pass criterion) stays binding. A timing FAIL is harness-only ONLY with the recorded latency ATTACHED showing the harness wait was stricter than that criterion and the latency above the wait but within the product's stated criterion, or showing the wait timed something explicitly outside its scope (harness setup, not the operator-visible outcome); with no stated criterion only a wait on harness setup qualifies. Then correct the wait per the audit and keep the original FAIL in the evidence. Naming an infrastructure cause (cold start, platform or dev-environment latency) is never enough. A recorded latency over the criterion is a product finding whatever the wait was, as is any timing FAIL without that evidence: `validation-and-qa` Sub-mode C applies, an external cause clears it only under the Explained-external conditions (§ Flaky-result "Explained"), the original FAIL stays, and product timeouts and retries are never lengthened.
- **Fakes need real timing.** A stub or fake service the harness controls runs with a latency mode set from measured real latency; an instant fake never exercises the harness waits.
- **Rerun after a fix.** Rerun the failed and BLOCKED-BY rows, then one whole S1..Sn run on the final deploy; the reported ratio comes from that whole run, where a row still `FLAKY (unresolved)` counts as FAIL. A rerun after a change that targets that row's failure verifies the fix (a wait change counts only through the harness-only evidence above); FAIL-then-PASS with no such change stays FLAKY.

## Verification cost discipline (record-then-read default)

Evidence rules above say WHAT counts; this says HOW to obtain it economically. Agent-side watching (re-reading state every cycle while the system works) costs tokens linear with wall-clock regardless of how little happens — measured at ~10× the cost of reading the same evidence once afterward.

- **Default = record-then-read:** let the system run unobserved and read its durable evidence surfaces ONCE after the run — journals, run records, logs, event trails, snapshots, outcome docs. Prefer the system's own records over agent-side polling.
- **If the system under test has no durable evidence surface, that absence is itself a finding** (observability gap) — report it; don't compensate by watching.
- **The only exception:** the first live drive of freshly-changed code hunting UNKNOWN failure modes, where catching the defect at the moment it happens is the point. Bound it (one flow, one watch window), then revert to record-then-read.
- A long-running verification plan states which mode it uses and why (one line in the S<n> or gate plan).
- Delegated sessions: combine with the turn-completion rule (`task-delegation`) — record-then-read is how a delegated verifier finishes in one turn.
- **Visual evidence (`token-economy` TE-21):** a screenshot stays in the reading agent's context for the rest of its run. Diff captures by script and read only the ones the report flags, once each unless re-captured; crop to the region in question; one bounded agent per screen group. The script narrows which captures are read; the capture a verdict rests on is viewed whether or not it is flagged (evidence rules above).

## Output artifacts

| Artifact | Path or location | Mode |
|---|---|---|
| Smoke contract | `docs/specs/<slug>/verification-gate.md` | Mode B |
| Deploy smoke instructions | `docs/tmp/handoff/<date>-<slug>-deploy.md` | Mode B |
| Evidence files | `docs/tmp/handoff/<date>-<slug>-smoke/S<n>-*.{md,log,png,json}` | Mode B |
| Smoke result matrix | `templates/deploy-report.md` section 4 | Mode B |
| Pending operator smoke prompt | deploy report + PO chat relay block | Mode A + Mode B |

## Failure cases

| Failure mode | Detection | Response |
|---|---|---|
| Pre-outcome signal claimed as smoke | evidence is only exit code/hash/service/curl auth | Mark smoke incomplete; require operator-visible outcome + ground-truth diagnostic |
| Ground-truth diagnostic missing | S<n> has no log/dump/artifact/DOM/row to inspect | PO amends smoke contract before deploy |
| Harness exists but was skipped | deploy report uses weaker manual/static check | Mark smoke incomplete; run harness or report pending operator smoke |
| UI smoke only checks render/screenshot | primary interaction not exercised | Mark incomplete; run the real interaction or document pending operator smoke |
| UI smoke relies on brittle selectors | selectors are CSS/layout/text fragments likely to drift | Add stable purpose/state selectors or accessible locators before claiming PASS |
| Browser smoke plan is incomplete | missing route, viewport, auth plan, unique data, expected outcome, or cleanup | Mark incomplete; amend S<n> before execution |
| Shared-state assumption | test expects exact counts or empty state from data it did not create | Create unique data or isolate state; otherwise smoke cannot prove the outcome |
| Browser and backend disagree | UI appears correct but console/network/server diagnostics show errors | Smoke FAIL; attach both evidence surfaces |
| End-to-end unavailable | missing live cookie/session/API credential | Use live-user workflow or mark `PENDING-OPERATOR-SMOKE`; spec stays DRAFT |
| Smoke fail after deploy | S<n> observed != expected or diagnostic shows error | Do not mark DONE; surface rollback vs fix-forward options |
| Hidden delayed failure | process exits 0 but later dump/log contains exception | Smoke FAIL; attach dump/log evidence |
| Flaky smoke (FAIL then PASS on retry) | first attempt failed, retry passed, no reproduction or evidenced explanation attached | Verdict `FLAKY (unresolved)` = FAIL against threshold; record all attempts; route first failure to `validation-and-qa` Sub-mode C |

## Escalation path

- Missing smoke contract -> Product Owner amends `verification-gate.md`.
- Live account required -> follow `workflows/live-user-verification.md`.
- Smoke threshold not met -> operator chooses rollback or fix-forward in chat text (FR-19).
- Repeated escaped smoke bug -> add/update `docs/problem-catalog/<slug>/problem.md` and amend this skill or project smoke references.

## Anti-patterns

- Do not call static deployment checks "smoke."
- Do not declare PASS from exit code 0 alone.
- Do not re-run a failed S<n> until it passes and report PASS; FAIL-then-PASS is FLAKY until the first failure is reproduced or explained with attached diagnostics (§ Flaky-result semantics).
- Do not declare PASS from file hashes, symbol presence, service active, tick latency, or auth transport alone.
- Do not substitute an easier probe for the sufficient end-to-end probe without marking the result partial.
- Do not use screenshots alone as PASS evidence for an interactive UI change.
- Do not rely on brittle layout/style selectors when stable purpose/state selectors or accessible locators can be provided.
- Do not rely on exact shared-data counts, preexisting records, or empty states unless the smoke creates or isolates the data.
- Do not run browser automation for API-only, unit-only, load, or performance checks when a lighter deterministic probe proves the same outcome.
- Do not trigger real customer-visible external-service side effects without an approval/sandbox plan.
- Do not mark spec DONE when smoke is failed or pending operator execution.
- Do not hide missing credentials behind a green status.

## Clean-room note

Original Fusebase Flow content. Derived from operator-provided retrospective patterns and generalized into repo-local workflow discipline; no third-party code, prompts, skill files, or hook scripts are copied. See `docs/source-map.md`.

Versions

RepositoryScoreLicence
This page · fusebase-dev/fusebase-flow100MIT
lukashouthoofd/cenekathon96MIT

Identical content appears in 2 other GitHub folders. We show one copy with the highest score.

Database snapshot: 13.11.2026 · package version 4367e9a127a5 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100running-smoke-tests
    Execute fast smoke tests validating critical functionality after deployment. Use when performing specialized testing. Trigger with phrases like "run smoke tests", "quick validation", or "test critical paths".
  • 100deploy-verify
    Post-deploy smoke test across browser, Sentry, Supabase, Langfuse, and the public web. Use when "verify deploy", "smoke test production", "post-release check", or "ship or rollback". Deploy plus watch → workflow-ship-and-observe.
  • 100smoke
    Runs production smoke tests to verify the deployed application works correctly in the live environment. This skill should be used when the user asks to "run production smoke tests", "verify the production deployment", "smoke test the live app", "check if production is working",…
  • 100running-smoke-tests
    Execute fast smoke tests validating critical functionality after deployment. Use when performing specialized testing. Trigger with phrases like "run smoke tests", "quick validation", or "test critical paths".
  • 95smoke-test
    Quick health check that every service is up and the basic user flow works. Use when asked to smoke-test, check the app is running, or verify nothing is obviously broken — before starting development or after a deploy.
  • 100deployment-sop
    Deployment workflows, pre-deploy validation, and smoke testing patterns. Use when deploying to staging or production, running smoke tests, or validating deployments.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.