Backend Diagnose Workflow
Purpose
- •Execute
/diagnose-equivalent flow in a single agent. - •Produce root-cause-oriented recommendations with explicit confidence.
Workflow
- •Structure problem type:
- •change failure
- •new discovery
- •Collect missing context and constraints.
- •Gather evidence: logs, traces, failing tests, reproduction steps.
- •Build hypotheses and causal chains.
- •Validate hypotheses with minimal reproducible checks.
- •Derive solution options with tradeoffs.
- •Choose recommendation and define implementation steps.
- •Record residual risks and post-fix verification items.
Confidence Policy
- •
high: enough evidence to implement recommended fix safely. - •
medium: additional investigation likely required but bounded. - •
low: fundamental evidence gaps remain.
If confidence is below high, iterate investigation up to two additional loops.
After two loops, escalate decision to user.
Required Output Structure
- •identified causes
- •cause relationships (independent/dependent/exclusive)
- •investigated scope
- •recommendation with rationale
- •alternatives
- •residual risks
- •post-resolution verification checklist
Hard Rules
- •Do not stop at symptom-level conclusions.
- •Do not skip alternative-hypothesis evaluation.
- •Do not propose fixes without impact and regression analysis.