Home / Market / test-code-change

test-code-change

Mandatory risk-driven verification workflow for maintained-code changes. Use when implementing, fixing, refactoring, deleting, migrating, or reviewing code to identify all materially affected behavior, map failure risks to sufficient tests, execute required evidence, and report unresolved test gaps

skill★ 00 dlclawhubMIT-0Install in CosmosUpstream Source

Documentation & Preview

Change Test Evidence

Use this template for every maintained-code implementation or review. Keep small-change entries compact, but retain enough evidence to audit every Gate and Risk ID.

Contents

Gate Status

| Gate | Status | Evidence or blocking reason | |---|---|---| | Change Basis | | | | Contract | | | | Impact | | | | Portfolio | | | | Baseline | | | | Execution | | | | Evaluation | | | | Handoff | | |

Use PASS only when the Gate pass condition is met. Otherwise use BLOCKED.

Change Basis

Observable Contracts

| Change ID | Old behavior | New behavior | Inputs/outputs/state | Side effects | Error modes | |---|---|---|---|---|---|

Change Impact Traceability

| Change ID | Changed contract | Affected surface | Repository evidence | Failure mode | Risk | |---|---|---|---|---|---|

Assign a stable Risk ID and level in every material Risk cell.

Test Portfolio Traceability

| Risk ID | Boundary | Method | Cases | Oracle | Evidence | Status | |---|---|---|---|---|---|---|

Every Risk ID must end as exactly one of:

Do not declare sufficient verification while a Risk ID has no final status or any High/Critical risk is BLOCKED.

Baseline Evidence

Use the strongest available baseline evidence. Do not write N/A without explaining why direct evidence is unavailable.

Execution Result

| Command | Collected | Executed | Passed | Failed | Skipped | What it proves | |---|---|---|---|---|---|---|

Record deselected cases, retries, flakes, timeouts, and environment failures. Never report a recommended or unexecuted command as passing evidence.

Coverage and Oracle Quality

Cross-Boundary and Non-Functional Evidence

Use Not impacted only after the Impact Gate has evidence for excluding the surface.

Frontend Verification

Complete this section only when frontend behavior, presentation, accessibility, client state, or browser runtime is materially affected.

| Surface or consumer | State and data | Viewport or runtime | Method and oracle | Executed evidence | Result | |---|---|---|---|---|---|

Do not fill the matrix with every possible combination. Include representative boundaries, interacting dimensions, critical journeys, and historical failures selected from the impact analysis. A screenshot without an authoritative expected result is an observation, not a visual-regression oracle.

Residual Risk

| Risk ID | Inherent level | Executed evidence or control | Residual level | Downgrade evidence | Remaining uncertainty | |---|---|---|---|---|---|

Never lower the Impact dimension because tests pass. Cite concrete executed evidence for every residual-risk downgrade.

Handoff

Summarize:

  1. inspected change and discovered impacts
  2. final status for every Risk ID
  3. exact evidence executed and what it proves
  4. unresolved test gaps and blocking reasons
  5. residual risk and missing environments

Bound the conclusion to the inspected change, discovered impact map, executed environment, and observed evidence.

Final judgment: there is no known impact left undiscovered and no testing gap left unexplained.