smoke-testing
Skill9 starsChanged 2 months agoMITView on GitHub
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.
In this repository119 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/fusebase-flow-always.mdcCursor rule
- .cursor/rules/fusebase-flow-implementation.mdcCursor rule
- .cursor/rules/fusebase-flow-security.mdcCursor rule
- .cursor/rules/fusebase-flow-specs.mdcCursor rule
- .cursor/rules/fusebase-flow-validation.mdcCursor rule
- api-explorationSkill
- app-api-contract-testingSkill
- app-backendSkill
- app-business-docsSkill
- app-dev-practicesSkill
- app-e2e-testsSkill
- app-quality-patternsSkill
- app-routingSkill
- app-secretsSkill
- app-sidecarSkill
- app-ui-designSkill
- business-logic-guardianSkill
- client-vs-internalSkill
- code-reviewSkill
- comment-policySkill
- communicationSkill
- design-discovery-ideationSkill
- dev-debug-logsSkill
- documentation-budgetSkill
- file-uploadSkill
- find-wasted-codeSkill
- find-wasted-effortSkill
- fusebase-cliSkill
- fusebase-dashboardsSkill
- fusebase-flow-health-checkSkill
- fusebase-gateSkill
- fusebase-portal-specific-appsSkill
- git-history-diagnosticSkill
- git-workflowSkill
- handling-authentication-errorsSkill
- handoffSkill
- implementation-planningSkill
- invite-with-passwordSkill
- lightweight-laneSkill
- liveness-disciplineSkill
- managed-integrationsSkill
- mcp-gate-debugSkill
- module-size-disciplineSkill
- north-starSkill
- phase-auditSkill
- product-apps-decompositionSkill
- product-docs-firstSkill
- product-ownerSkill
- project-onboardingSkill
- release-deploy-reportingSkill
- remote-logsSkill
- repo-onboarding-context-mapSkill
- requirements-specificationSkill
- role-disciplineSkill
- security-permissions-reviewSkill
- skill-authoringSkill
- task-delegationSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
23 rules. About 0 are common, 21 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈21
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 41
No deployed or runtime behavior exists to exercise.
- Distinctive: line 61
Write the success-criterion sentence first.
- Distinctive: line 71
Add at least one adversarial/falsification probe: "what would still be broken if the static checks passed?"
- Very specific: line 73
If the real end-to-end action needs operator credentials or a live session, use workflows/live-user-verification.md.
- Distinctive: line 74
When drafting deploy handoff, copy the smoke contract verbatim.
- Distinctive: line 78
Read every S<n> before starting.
- Distinctive: line 80
Use the named harness if one exists.
- Distinctive: line 85
Treat exit code 0, service active, hash match, deployed symbol, and non-401 auth response as necessary-but-insufficient preconditions.
- Distinctive: line 87
If smoke fails, list at least three candidate causes before selecting the next probe.
- Very specific: line 88
If end-to-end execution is not feasible, report PENDING-OPERATOR-SMOKE with the missing prerequisite and exact operator steps.
- Distinctive: line 91
If a smoke missed a bug, update future smoke methodology immediately: add the missed outcome or diagnostic surface to the next gate/handoff.
- Distinctive: line 160
Do not call static deployment checks "smoke."
- Distinctive: line 161
Do not declare PASS from exit code 0 alone.
- Distinctive: line 162
Do not re-run a failed S<n> until it passes and report PASS.
- Distinctive: line 163
Do not declare PASS from file hashes, symbol presence, service active, tick latency, or auth transport alone.
- Distinctive: line 164
Do not substitute an easier probe for the sufficient end-to-end probe without marking the result partial.
- Distinctive: line 165
Do not use screenshots alone as PASS evidence for an interactive UI change.
- Distinctive: line 166
Do not rely on brittle layout/style selectors when stable purpose/state selectors or accessible locators can be provided.
- Distinctive: line 167
Do not rely on exact shared-data counts, preexisting records, or empty states unless the smoke creates or isolates the data.
- Distinctive: line 168
Do not run browser automation for API-only, unit-only, load, or performance checks when a lighter deterministic probe proves the same …
- Distinctive: line 169
Do not trigger real customer-visible external-service side effects without an approval/sandbox plan.
- Distinctive: line 170
Do not mark spec DONE when smoke is failed or pending operator execution.
- Distinctive: line 171
Do not hide missing credentials behind a green status.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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.mdfor a user-facing or operator-facing change. - Product Owner drafts
docs/tmp/handoff/<date>-<slug>-deploy.mdand 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.mdfirst.
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
- 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
- Bad:
- 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. - For Fusebase Apps smoke, use
docs/fusebase-cli-edition.mdto pick supporting CLI diagnostics such asremote-logs,dev-debug-logs,fusebase-cli,fusebase-dashboards, orfusebase-gate. - 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.
- 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.
- 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.
- 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.
- 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.
- Add at least one adversarial/falsification probe: "what would still be broken if the static checks passed?"
- 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.
- 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 stateSHIPPED-pending-operator-smoke, leave spec DRAFT, and provide the exact operator smoke prompt. - 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
- Read every S
<n>before starting. Restate the success criterion and ground-truth diagnostic in the deploy log/report. - For Fusebase Apps smoke, load the supporting CLI diagnostics named by
docs/fusebase-cli-edition.mdor the smoke contract. Use them to inspect logs, deployed behavior, and app quality evidence after the operator-visible action runs. - 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.
- Execute the operator-visible action. Capture outcome evidence: screenshot, response excerpt, rendered card text, produced artifact, or job result.
- 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.
- 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.
- 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. - Treat exit code 0, service active, hash match, deployed symbol, and non-401 auth response as necessary-but-insufficient preconditions.
- 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. - If smoke fails, list at least three candidate causes before selecting the next probe. Design a probe that distinguishes them.
- If end-to-end execution is not feasible, report
PENDING-OPERATOR-SMOKEwith the missing prerequisite and exact operator steps. Do not claim PASS, DONE, or SHIPPED. - Persist evidence under
docs/tmp/handoff/<date>-<slug>-smoke/and include exact paths in the deploy report. - Clean up or document test data and external-service side effects before DONE. Keep evidence files; remove throwaway data not needed for audit.
- If a smoke missed a bug, update future smoke methodology immediately: add the missed outcome or diagnostic surface to the next gate/handoff.
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.mdSub-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 underdocs/tmp/handoff/<date>-<slug>-smoke/; then 3/3 clean under the same conditions after the cause clears before any PASS (matchesvalidation-and-qaSub-mode C Explained-external). "Probably a network blip" with no diagnostic is not an explanation.
- Reproduced: same conditions re-trigger the failure → real bug. Route to
- 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.mdSub-mode C.
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.
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.mdand 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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

