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.

Published catalogYayın kataloğu68 verified releaseskatalog yayını142 MIT artifactsMIT kaynak
GitHub ↗JSON ↗LLMs.txt ↗

Diagnose and verify failures

MIT source draftMIT kaynak taslağı

Diagnose software and system failures using evidence-guided localization, competing causal hypotheses, bounded discriminating checks, and full-recovery verification without masking symptoms.

VersionSürüm
0.1.0-draft
MaturityOlgunluk
drafttaslak
LicenseLisans
MIT
AuthorsYazarlar
Mete Avcı, Me the Tech
VerificationDoğrulama
partial (L1/L2 contract · L3–L5 pending)kısmi (L1/L2 sözleşme · L3–L5 bekliyor)
Disclosure classYayın sınıfı
PUBLIC-PRACTICE

SKILL.md

markdown88 linessatır5.9 KB

SHA-256 · af4420a3952f…GitHub ↗
File metadataDosya bilgileri
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.

MIT · Exact native bytes from methetech/feed · Copy or download does not install a multi-file package.

MIT · methetech/feed deposundaki birebir dosya · Kopyalama veya indirme çok dosyalı bir paketi kurmaz.

Try it yourself (Feed Labs)Kendi ajanında dene (Feed Labs)

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-failures

Usage guideKullanım rehberi

Diagnose 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.

Trust summary

  • License: MIT (bundled notice)
  • Executable scripts: None
  • Network / credential access required: No
  • External dependencies: None
  • Installation side effects: Declared files only
  • Verification: partial (Level 1–2 structural and contract validation; blinded runtime and paired baseline evaluation pending)

How to use

  1. Open SKILL.md. Keep the entire Skill directory intact when installing through your runtime's Agent Skills mechanism.
  2. Provide the observed failure signature, affected version, and relevant context. Expect the agent to separate co-occurring symptoms from common causes or cascades, propose a bounded discriminating check before editing, and verify both the fix and retained invariants.
  3. Exercise the companion conformance suite with multi-cause and symptom-masking scenarios.

Example

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.

Known limitations

This Skill guides diagnostic reasoning; executing probes or fixes still requires appropriate environment access and explicit authorization for any mutating step.

Frequently asked questionsSık sorulan sorular

Why separate common-cause failures from causal cascades?

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.

What is "recovery debt" after fixing a failure?

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.

Why reject symptom suppression like blanket try/catch or returning "healthy" on probe errors?

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.

Under what license is this Skill distributed?

Original Feed material is distributed under MIT; preserve the bundled MIT notice with the directory. Inspect the registry record for current evidence.

CompatibilityUyumluluk

Agent Skills skills-ref 0.1.1 validator baseline

native

Format-compatible baseline (skills-ref 0.1.1) only; runtime installation, activation, and behavioral evaluation remain separate.

Declared effectsBeyan edilen etkiler

ExecutableÇalıştırılabilir
NoHayır
Network accessAğ erişimi
NoHayır
Filesystem writesDosya yazma
NoHayır

Verification evidenceDoğrulama kanıtı

  • [L1/L2 structural & contract] tests/test_strategic_revision_verification.py binds the 0.1.0-draft Skill to its core obligations and synthetic conformance suite; scripts/validate_skills_ref.py and scripts/check_skill_integrity.py validate native format and containment. Blinded runtime and paired baseline evaluation (L3-L5) have not yet been recorded.

ProvenanceKaynak geçmişi

originalOrijinal Original clean-room public practice authored from general root-cause analysis, experimental debugging, and verification engineering principles; no private implementation source is embedded.

Related artifactsİlgili kaynaklar