# Resilience and recovery

**Test family:** `RES`

Apply these to the task, not mechanically to every pixel. Cross-cutting failures often emerge only through interactions with domain item files.

- **RES-001** Dependency timeout, 4xx/5xx, malformed response, partial response, slow response, and unavailable state fail locally and clearly.
- **RES-002** Retry uses bounded exponential backoff/jitter and idempotency; unknown result is reconciled before repeat.
- **RES-003** Offline/reconnect, tab close, browser crash, service restart, deploy, and worker crash preserve or recover durable work.
- **RES-004** Partial multi-step/batch operation reports exact commit point and supports compensation/resume.
- **RES-005** Optimistic UI rolls back to truth and does not let subsequent actions build on failed state.
- **RES-006** Cache/index/replica delay is tolerated without irreversible action on stale assumptions.
- **RES-007** Backup/restore/rollback procedures preserve schema, identity, permissions, files, audit, and external reconciliation.

## Comprehensive per-item coverage

- **RES-008** Apply the quality concern to absent, empty, ordinary, boundary-size, malformed, stale, concurrent, and failure-state data.
- **RES-009** Include text containing ASCII emoticons, emoji/ZWJ sequences, kaomoji, accents, mixed scripts, RTL, combining marks, confusables, invisible characters, and control characters.
- **RES-010** Exercise UI, API, import/export, automation, mobile, background jobs, notifications, analytics, logs, caches, and stored representations.
- **RES-011** Test anonymous, ordinary, privileged, suspended, removed, and cross-tenant actors with least privilege and final-commit authorization.
- **RES-012** Use fresh, stale, conflicting, deleted, archived, and partially migrated records; expose uncertainty rather than silently choosing.
- **RES-013** Repeat and race operations before commit, after commit before response, and after partial downstream success; require safe idempotency.
- **RES-014** Force timeout, disconnect, quota, dependency error, malformed response, regional failover, and recovery failure.
- **RES-015** Use supported browsers, devices, network qualities, locales, time zones, input methods, and assistive technologies.
- **RES-016** Measure median and tail latency, throughput, resource use, queue depth, retries, and degradation at normal and supported boundary load.
- **RES-017** Use inert injection canaries across markup, script, SQL, templates, commands, paths, headers, CSV formulas, and logs.
- **RES-018** Inspect URL, referrer, DOM, storage, clipboard, telemetry, logs, traces, notifications, exports, caches, backups, and screenshots for leakage.
- **RES-019** Verify labels, roles, names, descriptions, focus, keyboard behavior, announcements, reflow, contrast, motion, alternatives, and error recovery.
- **RES-020** Translate and lengthen text, switch RTL/LTR direction, change number/date/currency formats, and use unsupported glyph fallbacks.
- **RES-021** Delete, restore, archive, expire, retain, export, anonymize, and purge; reconcile user-visible, indexed, cached, and backed-up state.
- **RES-022** Verify one coherent audit trail with actor, authority, target, old/new state, time, source, correlation ID, attempts, and outcome.
- **RES-023** Define observable success and failure signals, alert thresholds, dashboards, ownership, runbooks, and a way to test the monitors.
- **RES-024** Compare intended requirement, implementation, deployed behavior, and evidence; do not promote inspected code or a single run into a pass.
- **RES-025** Segment results by role, tenant, locale, platform, data shape, load, and consequential workflow so averages do not hide severe failures.
- **RES-026** Run destructive, high-volume, privacy-invasive, and security probes only in an authorized isolated environment with recovery and stop conditions.
- **RES-027** State residual risk, untested combinations, evidence tier, confidence limits, rollback trigger, and owner before recommending release.

[Back to Cross-cutting quality index](../../cross-cutting.md)
