Retries turn a temporary failure into a business risk when the first request may have succeeded. The test question is not simply whether a client tries again, but whether it can do so without duplicating a side effect.

Why this Skill is needed

The Retry Testing Skill reviews retry triggers, backoff, idempotency, retry limits, and duplicate side effects as one controlled behavior. It separates a policy description from an executed retry result.

What the Skill does

The critical boundary is the interval where the client cannot tell whether the first attempt took effect.

Use this Skill for payment, notification, job, and API flows where timeouts or transient errors can cause repeated requests. It helps prepare safe, isolated validation without calling production systems.

A good review names the retriable condition, backoff rule, idempotency key, attempt limit, side-effect expectation, evidence source, stop condition, and Human boundary.

Use it when a service is adding retries, an incident shows duplicate writes, or a timeout path has no clear rule for uncertain success.

What it does not do

The Retry Testing Skill can organize material, evidence, and next actions for Trigger judgment. It does not replace:

  • Confirmation of rules, scope, and risk by the accountable domain owner.
  • A real environment, account, dataset, log, or run record; static analysis does not become runtime evidence by itself.
  • Authorization for release, compliance, production actions, or residual-risk acceptance.
  • A Human decision when supplied sources conflict.

What it checks

The value of this Skill is not another keyword list. It connects each focus area to an observable input, a judgment, and a way to close the loop. Start with a small matrix based on the source Skill’s output contract:

FocusQuestion before analysisHandoff output
Trigger judgmentWhich failures should or should not retryPolicy and evidence
Timing behaviorBackoff, jitter, ordering, and attempt limitExpected timeline
Side-effect safetyHow duplicate writes or notifications are preventedIdempotency and data check
Validation boundaryWhat can run safely and when to stopOwner and rollback

If a row has only a conventional expectation and no source or validation method, keep it open instead of turning it into a pass.

Audit inputs before you start

Before analyzing Trigger judgment, classify the input into six evidence states. A gap is not automatically a failure, but it must not disappear inside the conclusion.

StateMeaningHow this Skill should handle it
knownDirectly supported by the supplied materialKeep the source, version, and time with the judgment
missingNeeded for this pass but not suppliedName the smallest evidence action and limit the conclusion
conflictingSources disagreeShow both sources and route the conflict to an owner
stalePresent but outside the relevant version or time windowMark freshness; old evidence is not current proof
out_of_scopeRelated but excluded from this passKeep the boundary explicit
assumptionsTemporarily adopted to continue analysisState how and when the assumption will be checked

Keep the input version, scope, environment, evidence locations, and accountable owner together. Without a run record, deliver analysis, design, or a validation plan—not an execution pass.

From problem to structured Finding

Connect the source, scope, evidence state, analysis, owner, action, close condition, and validation before writing the conclusion. The case below keeps this Skill’s identifier and domain context.

Keep the decision layers separate

For Trigger judgment, do not compress four different kinds of language into “recommended to pass”:

LayerHow to write itApplication here
FactWhat the supplied material directly showsCite the source, version, input, or run record for the focus
Evidence-backed InferenceWhat several facts support togetherShow the inference chain and retain uncertainty
RecommendationThe smallest next actionName the evidence, review, execution, or regression path
Human DecisionWhat an accountable person must decideLeave scope, risk acceptance, resources, and release meaning to the owner

A complete case

This case follows Input, Analysis, Finding, Decision, and Validation. When material is incomplete, keep missing, conflicting, or assumptions visible instead of turning them into a pass.

Input

MaterialWhat to provideWhat to do when it is missing
Retry policyError classes, timeout handling, backoff, jitter, and limitKeep unspecified behavior pending
Operation contractRead or write semantics, idempotency key, and side effectDo not infer safety from HTTP method
Failure scenarioTimeout, connection reset, 429, 5xx, or worker restartModel one controlled trigger
Evidence and environmentLogs, request IDs, mock dependency, data checks, and rollbackDo not use production credentials

Use a request like this:

Use the retry-testing Skill.

Task: Prepare validation for a payment-capture client after a connection reset during the first request.
Inputs: [retry policy, API contract, idempotency semantics, request logs, mock provider, data assertions]
Scope: [isolated staging flow]
Constraints: [no real charge, bounded attempts, explicit cleanup]

Cover triggers, backoff, idempotency, limits, and duplicate side effects. Keep execution and pass claims separate from the plan.

Analysis

Use the input, matrix, and evidence state to form the judgment before writing the Finding; keep missing material as a gap.

Finding

Focused example: Retry a payment capture without charging twice

A connection reset occurs after the provider may have captured the payment. The Skill should require an idempotency key, a bounded retry, and a query or provider mock that distinguishes one capture from two. A successful second HTTP response alone is not evidence that duplicate side effects were prevented.

The analysis prepares a controlled retry validation. It cannot prove idempotency, billing correctness, or absence of duplicate effects until an isolated run produces request and data evidence.

Example finding: turn one problem into a handoff

The field example below shows the recording pattern; it is not an execution result.

If the supplied material cannot prove that Trigger judgment meets its contract, write the finding like this. It does not invent the missing rule or turn missing evidence into a failure.

FieldExample wording
Source and scopeRecord the requirement, version, environment, and the concrete object for Trigger judgment
FindingThe condition or result for Trigger judgment is not yet traceable to evidence
Evidence statemissing / assumptions; use conflicting when sources disagree
Impact and priorityName the affected user, journey, or delivery decision without inflating severity
Owner and Human decisionAsk the product, engineering, security, or test owner to confirm the rule and trade-off
Action and close conditionAdd the smallest missing evidence; close only when source, judgment, and owner can be reviewed
ValidationName one repeatable check, query, or run and retain the raw artifact

The point is to let the next person walk from the finding back to the source and run an action that can change the decision.

Decision

The accountable owner confirms the decision question and risk trade-off; the Skill does not make that choice.

Validation

Before closing the finding, run the stated validation and retain the raw artifact. Without an execution record, the status remains unverified.

How a Finding enters the next stage

Handoff output

Output fieldWhy it existsExample status
Trigger judgmentWhich failures should or should not retryPolicy and evidence
Timing behaviorBackoff, jitter, ordering, and attempt limitExpected timeline
Side-effect safetyHow duplicate writes or notifications are preventedIdempotency and data check
Validation boundaryWhat can run safely and when to stopOwner and rollback

Every conclusion should point to a source, evidence state, and next action. If evidence is missing, use pending, blocked, unassessed, or NOT_SCORED instead of filling the gap with confidence.

Next-stage route

At minimum, hand off the source, evidence state, owner, close condition, and validation action; the next-stage conclusion remains bounded by the evidence state.

How to prepare better input

Provide error classification, timeout semantics, API contract, idempotency behavior, attempt limit, backoff rules, request IDs, mock or sandbox, data assertions, and cleanup. If any is missing, keep the corresponding conclusion pending.

A useful handoff includes input versions, scope, time window, evidence index, assumptions, Human decision boundary, and the smallest validation action.

Working with other Skills

Common traps

  1. Retrying every 4xx and 5xx response without checking whether the operation is safe.
  2. Checking the final response but not the number of writes, messages, or charges.
  3. Leaving backoff and maximum attempts implicit, so an outage becomes a request storm.

Install and invoke

npx skills add https://github.com/naodeng/awesome-qa-skills/tree/main/skills/en/testing-types/retry-testing -g
Use the retry-testing Skill.
Include objective, scope, versions, evidence paths, constraints, and decision boundary.
Audit inputs first, preserve evidence states, and finish with owner, close condition, and validation method.

FAQ

Is an idempotency key always enough?

No. The key, server behavior, retention, response semantics, and side-effect evidence all need to match the operation contract.

Can I test retries against production?

Not by default. Use a mock, sandbox, or isolated environment with bounded attempts and cleanup; production testing requires explicit authorization.

The Skill is most useful when attached to one real project artifact and kept with its source evidence. Start narrow, validate the uncertain part, and expand only when evidence supports it.

References

Source Skill and execution contract

The complete execution contract lives in Retry Testing prompt. The source directory may also contain evaluation cases and supporting material.

Static plans, file presence, and dry runs keep their evidence state. They do not become runtime proof, an all-passed claim, or release approval.

Share