MCP tools don't populate output.output in the tool.execute.after hook — the MCP content flows through OpenCode's internal parts pipeline instead. This caused a crash: undefined is not an object (evaluating 'text.length') in the truncate function.
969 B
969 B
description: Risk assessment table for debugging: symptom-to-cause mapping and verification steps
Research Triage
Assess risk before choosing your approach.
| Factor | Low Risk | High Risk |
|---|---|---|
| Reversibility | Easy to undo | Hard to reverse (data, deploy) |
| Blast radius | One file/function | Many systems, shared state |
| Confidence | Familiar, clear evidence | Novel, ambiguous symptoms |
| Novelty | Seen this before | Never encountered |
| Time cost | Known fast (<5s) | Unknown = measure first |
Low risk → Satisfice: test the single most likely hypothesis. Stop when confirmed.
Any high risk → Strong Inference: generate 2-3 competing hypotheses, design a discriminating test, eliminate based on evidence.