Solution Pack
Debug an Intermittent Failure or Flaky Test
Treat both passing and failing runs as evidence, shrink the failure domain without changing the failure and preserve the next discriminating test.
Use this when
A bug, CI job or test passes and fails under apparently similar conditions and repeated reruns are producing more noise than diagnosis.
- The same target can pass and fail across runs.
- Version, timing, order, environment or shared state may matter.
- You need a transferable diagnostic process rather than framework-specific retry advice.
Avoid forcing the pack when
- The failure is deterministic and already has a small reproducible case.
- Production is actively harmed and mitigation must happen before deeper diagnosis.
What you should leave with
A pass/fail comparison register, bounded hypotheses, a reproducibility plan and the next test most likely to eliminate a cause.
- Failure signature
- Pass/fail comparison
- Method register
- Current and rival hypotheses
- Next discriminating test
- Mitigation / stop condition
Practise before the real task
Try the judgement before you need it.
A real task may carry consequences. The Academy gives you a safer case to practise on first, with an explanation and a link to the released method. Your practice stays in this browser.
Copy a prompt
Use this pack with your AI
Describe your task, then copy the prompt into your AI assistant. The prompt asks it to check which methods fit, prepare the output shown above and identify what to check next.
Vedokrok keeps this text only while this page is open. If you paste the prompt into an AI service, you share the text with that service.
Preview the prompt
If your AI cannot open the pack link, download the Markdown file and attach it to the same conversation.
Run it level by level
Define what counts as the same failure before changing the system.
Methods: MHC-D-RESEARCH-0973
Record observable conditions that differ across the nearest comparable pass and fail.
Methods: MHC-D-RESEARCH-0973
Maintain more than one plausible explanation and identify predictions that differ.
Methods: MHC-D-RESEARCH-0295
Use bisection only when the candidate space has a valid testable order.
Methods: MHC-D-RESEARCH-0295 · MHC-D-RESEARCH-0971
Capture the point where two components may disagree about the same data.
Methods: MHC-D-RESEARCH-1159
If impact is active, mitigate without destroying evidence; otherwise run the next discriminating test.
Methods: MHC-D-RESEARCH-0300
Go deeper only when the core pack leaves a gap.
The methods below are the curated core. A connected agent may search the wider released Vedokrok library only after it finishes the core Method Register and can name a material gap. Expansion is capped at two searches and three supplemental methods, which stay in a separate register so they are not mistaken for pack-curated methods.
Method Register
Inspect every method, then mark it as use, skip or unclear. A skipped method is not a failure; forcing every method would make the pack less trustworthy.
Item ID | version | role | fit: use/skip/unclear | concise reason | evidence/source role | important limit | source URL
Released methods in this pack
Keep every rerun result when the failure is intermittentKeep every rerun result and compare failures with successes. · MHC-D-RESEARCH-0973 · version 0.1.0Bisect a large failure domain
Bisect a valid ordered failure domain. · MHC-D-RESEARCH-0295 · version 0.1.0Bisect the version history instead of inspecting every change
Bisect version history when a known-good and known-bad boundary exists. · MHC-D-RESEARCH-0971 · version 0.1.0Capture semantic boundaries, not only raw logs
Capture semantic boundaries where representation or meaning changes. · MHC-D-RESEARCH-1159 · version 0.1.0Mitigate first when the incident is still hurting
Separate mitigation from root-cause diagnosis while impact continues. · MHC-D-RESEARCH-0300 · version 0.1.0
Take the pack with you
Markdown is the easiest portable form for a chat or agent. JSON is available for tools that want a structured contract. The run record template gives an agent a stable way to preserve its Method Register, artifact and check without exposing private chain-of-thought. Saved files do not update themselves.
Review a run record
Already used this pack with an AI assistant? Paste its run-record JSON or choose a file to read the result, next check and remaining gaps.
This review stays in this open page. Vedokrok does not upload or save the file or text. Copying shares nothing until you paste it elsewhere.
Maximum 128 KiB. Use this pack’s run record with the same pack version and knowledge release.