Hypothesis to evidence ↗
Diagnostic loop workflow (`CAPTURE_SYMPTOM -> FORM_COMPETING_HYPOTHESES -> DISCRIMINATING_CHECK -> EVALUATE_EVIDENCE -> MINIMAL_FIX -> VERIFY_FULL_RECOVERY`) that loops cleanly on falsification.
FeedAkış
Open, portable, evidence-driven resources for AI agents. Inspect the source, check the verification level, and adopt only what earns its place.
Yapay zekâ ajanları için açık, taşınabilir ve kanıt odaklı kaynaklar. Kaynağı incele, doğrulama seviyesini gör ve yalnızca işine yarayanı kullan.
Diagnose software and system failures using evidence-guided localization, competing causal hypotheses, bounded discriminating checks, and full-recovery verification without masking symptoms.
"diagnose-and-verify-failures""Diagnose software and system failures using evidence-guided localization, competing causal hypotheses, bounded discriminating checks, and full-recovery verification without masking symptoms or confusing correlation with root cause. Use for bugs, regressions, failing tests, and outages.""MIT"Use this Skill when investigating a bug, test failure, broken build, performance regression, or service outage.
When not to use: Do not run a multi-hypothesis diagnostic protocol for an obvious, single-line compile or syntax error whose exact file, line, and cause are already unambiguous.
The core rule is: localize by the highest-information signal, discriminate between competing causes before editing, fix the root cause instead of masking symptoms, and verify full recovery rather than merely seeing the error disappear.
Follow the strongest diagnostic signal directly instead of mechanically sweeping every layer top-down or bottom-up:
connectivity | permission | conflict | schema | stale state | implementation defect.Never blindly retry a non-idempotent command after an ambiguous failure, and never switch tools to evade a permission denial.
Multiple symptoms happening together do not prove one caused the other. Explicitly distinguish:
trigger → intermediate state → downstream failure). A known dependency edge shows a possible path, not proof that path fired.When logs or metrics support multiple plausible causes (causal underdetermination), reading more passive logs from the same regime rarely resolves ambiguity.
Design the smallest bounded, read-only (or explicitly authorized) discriminating check where Hypothesis A and Hypothesis B predict different observable outcomes:
Treat symptom suppression as a defect:
try/catch, unsafe type casts, silent fallback values, or unbounded retry loops.healthy or ok when a health or status probe fails; surface unknown, stale, or explicit error state per contract.overflow: hidden, extreme z-index, or !important hacks that break interaction or responsiveness.Fixing the immediate symptom is rarely complete recovery:
Remember hysteresis: traffic or load returning to normal does not automatically erase accumulated queues, stale state, or temporary overrides.
The affected behavior set is often larger than the changed file set:
Users receive HTTP 404 on /api/reports after a frontend and proxy update.
/api incorrectly; (C) stale static artifact served from CDN/build cache./api/reports but proxy forwards /reports, Hypothesis B is confirmed without touching backend code.200 on /api/reports, verify 404 on /api/nonexistent (negative control), and verify unaffected routes still resolve.Before declaring a failure resolved, confirm:
---
name: diagnose-and-verify-failures
description: Diagnose software and system failures using evidence-guided localization, competing causal hypotheses, bounded discriminating checks, and full-recovery verification without masking symptoms or confusing correlation with root cause. Use for bugs, regressions, failing tests, and outages.
license: MIT
---
# Diagnose and verify failures
Use this Skill when investigating a bug, test failure, broken build, performance regression, or service outage.
**When not to use:** Do not run a multi-hypothesis diagnostic protocol for an obvious, single-line compile or syntax error whose exact file, line, and cause are already unambiguous.
The core rule is: **localize by the highest-information signal, discriminate between competing causes before editing, fix the root cause instead of masking symptoms, and verify full recovery rather than merely seeing the error disappear.**
## 1. Localize by evidence, not ritual traversal
Follow the strongest diagnostic signal directly instead of mechanically sweeping every layer top-down or bottom-up:
1. Reproduce or inspect the exact failure signature (error message, exit code, failing assertion, HTTP status, stack trace, affected revision/environment).
2. Classify the failure category early before retrying: `connectivity` | `permission` | `conflict` | `schema` | `stale state` | `implementation defect`.
3. Inspect container/config/routing layers when evidence implicates them; inspect leaf logic directly when the trace points there.
Never blindly retry a non-idempotent command after an ambiguous failure, and never switch tools to evade a permission denial.
## 2. Separate co-occurrence, common cause, and causal cascade
Multiple symptoms happening together do not prove one caused the other. Explicitly distinguish:
- **Co-occurrence:** Two independent faults happening in the same window.
- **Common cause:** One shared hidden dependency (DNS, certificate, cache, auth store, parser, shared package) breaking two apparently separate components — exposing **false redundancy**.
- **Proven cascade:** Observable propagation (`trigger → intermediate state → downstream failure`). A known dependency edge shows a *possible* path, not proof that path fired.
## 3. Use bounded discriminating checks
When logs or metrics support multiple plausible causes (causal underdetermination), reading more passive logs from the same regime rarely resolves ambiguity.
Design the smallest bounded, read-only (or explicitly authorized) **discriminating check** where Hypothesis A and Hypothesis B predict *different* observable outcomes:
- Account for observation side effects (some probes alter caches, locks, or timing).
- Learning value never grants unauthorized mutation or production access.
- If a check does not discriminate between hypotheses, record what it revealed about tooling resolution or confounders rather than discarding it.
## 4. Fix causes — never mask symptoms
Treat symptom suppression as a defect:
- Do not swallow errors with blanket `try/catch`, unsafe type casts, silent fallback values, or unbounded retry loops.
- Do not return `healthy` or `ok` when a health or status probe fails; surface `unknown`, `stale`, or explicit error state per contract.
- Do not hide broken UI layout with `overflow: hidden`, extreme `z-index`, or `!important` hacks that break interaction or responsiveness.
- Do not weaken, skip, or delete an independent test assertion to force a green run.
## 5. Separate containment, root fix, and full recovery
Fixing the immediate symptom is rarely complete recovery:
1. **Containment:** Stop ongoing damage or narrow blast radius.
2. **Root-cause fix:** Eliminate the underlying defect with the smallest coherent patch.
3. **Downstream reconciliation:** Repair stale caches, partial writes, or corrupted derived state left behind by the fault.
4. **Recovery debt audit:** Track and clean up temporary flags, disabled checks, widened permissions, or workarounds added during mitigation; confirm the fix did not create a new single point of failure.
Remember **hysteresis**: traffic or load returning to normal does not automatically erase accumulated queues, stale state, or temporary overrides.
## 6. Verify affected behavior — not just changed lines
The **affected behavior set** is often larger than the **changed file set**:
- Verify the exact failing case now passes *and* relevant negative/boundary cases fail closed.
- Distinguish **syntactic compliance** (linter passes, attribute exists, HTTP 200 returned) from **semantic correctness** (actual data, behavior, state persistence, and accessibility work).
- Re-check protected pre-existing invariants so the fix did not cause a multi-turn regression.
- Preserve any unexplained residual behavior instead of claiming causal completeness ("the only cause") when only causal sufficiency was proved.
## Example
Users receive HTTP 404 on `/api/reports` after a frontend and proxy update.
- **Competing hypotheses:** (A) route handler removed or renamed in backend build; (B) reverse proxy path-rewrite rule strips `/api` incorrectly; (C) stale static artifact served from CDN/build cache.
- **Discriminating check:** Query the backend route table directly (or inspect compiled route manifest) vs. proxy routing config. If backend exposes `/api/reports` but proxy forwards `/reports`, Hypothesis B is confirmed without touching backend code.
- **Verification:** Fix the proxy rule, verify `200` on `/api/reports`, verify `404` on `/api/nonexistent` (negative control), and verify unaffected routes still resolve.
## Completion test
Before declaring a failure resolved, confirm:
1. The causal mechanism was distinguished from co-occurring or correlated symptoms.
2. The fix addresses the cause without suppressing errors or weakening tests.
3. Verification covers the failure trigger, negative/boundary paths, and retained invariants.
4. Any downstream reconciliation or temporary recovery debt is resolved or explicitly tracked.
Export blinded scenarios without descriptive IDs or expected answers, then compare your assistant without vs. with this artifact loaded:
Açıklayıcı kimlikler ve beklenen cevaplar gizlenmiş kör senaryoları dışa aktarıp kendi asistanında bu kaynak olmadan ve bu kaynakla karşılaştırma yap:
python -B scripts/eval_review.py --blind diagnose-and-verify-failuresDiagnose software and system failures using evidence-guided localization, competing causal hypotheses, bounded discriminating checks, and full-recovery verification without masking symptoms.
Best for: Debugging bugs, test failures, regressions, routing/build mismatches, and multi-symptom incidents. When not to use: Obvious single-line syntax or compiler errors whose exact file, line, and cause are already unambiguous. Status: Source draft, not a supported catalog release.
partial (Level 1–2 structural and contract validation; blinded runtime and paired baseline evaluation pending)Facing HTTP 404 on /api/reports, the agent separates backend route registration, reverse-proxy path rewriting, and stale CDN artifacts with one read-only route-table vs. proxy-config check before applying a minimal proxy fix and testing both valid and nonexistent routes.
This Skill guides diagnostic reasoning; executing probes or fixes still requires appropriate environment access and explicit authorization for any mutating step.
Two services failing simultaneously often share one hidden dependency (such as a certificate, DNS zone, or shared parser). Treating them as a cascade wastes time patching the wrong service and hides false redundancy.
Temporary flags, disabled checks, widened permissions, stale caches, or emergency overrides left behind after service restarts. Full recovery requires reconciling downstream state and removing temporary bypasses.
Because masking failures turns observable defects into silent data corruption or false operational confidence. Failed probes must report unknown, stale, or explicit error states per contract.
Original Feed material is distributed under MIT; preserve the bundled MIT notice with the directory. Inspect the registry record for current evidence.
native
Format-compatible baseline (skills-ref 0.1.1) only; runtime installation, activation, and behavioral evaluation remain separate.
Original clean-room public practice authored from general root-cause analysis, experimental debugging, and verification engineering principles; no private implementation source is embedded.