Work-type skill
Bug Root Cause Analysis
Reproduce a defect, establish its root cause, fix it, and prove non-regression.
Skill orientation
Use this panel to select and sequence the skill. The canonical source follows below.
- Purpose
- Reproduce a defect, establish its root cause, fix it, and prove non-regression.
- Category and sequence
- Work type; sequence 2
- Primary use
- Bug, Regression, Performance, Incident Diagnosis
- Required gates
- Classification, Foundation, Code Intelligence, Production, Proof
- Conditional gates
- smoke when runtime behavior is claimed; ai-assurance and eval when AI is involved
- Red Zone triggers
- Production Data Access, Production Telemetry Containing Customer Data, Incident Containment, Charge, Refund, Void, Financial Reconciliation, Payment Provider Configuration, Customer Communication
- Next route
- Return to the active lifecycle route
- Source identifier
skills/valdris-bug-rca/SKILL.md
Valdris Bug RCA
- Load the adapter, authorized intake, bound workload classification, route, current branch state, and smallest relevant context. Run the intake, classification, route, and code-intelligence gates before codebase claims.
- Resolve the route-required Layer 0 foundation assessment before repair. An audit may report a failing foundation, but a repair may not silently bypass it.
- Reproduce the symptom with a deterministic command or observable trace.
- Minimize the case and separate facts from hypotheses.
- Instrument the boundary locally with synthetic data by default and identify the first incorrect state transition. Production telemetry or customer data requires explicit scoped approval.
- Write
rca/rca.mdwith symptom, reproduction, root cause, blast radius, and rejected hypotheses. - Add a failing regression test at the highest stable seam.
- Apply the smallest fix that removes the proven cause.
- Run the narrow test, relevant suite, every route-required production control, and break-it QA.
For billing or state-transition bugs, state the business invariant explicitly (for example, one logical purchase produces at most one provider charge across concurrency and retries) and test it at the authoritative boundary.
Keep code repair, incident containment, financial reconciliation, and customer communication as separate authority lanes. Charges, refunds, voids, reconciliation, payment-provider configuration, customer/payment data, production containment, deployment, and customer communication are Red Zone actions.
Use $diagnosing-bugs and $tdd when available. Do not implement speculative fixes before the cause is evidenced.
Required proof includes reproduction before, passing regression after, affected-layer evidence, and any residual risk.
