--- title: Structure every RCA response as symptom, evidence, hypothesis, recommendation, and follow-ups impact: MEDIUM tags: - output - reporting - template - rca --- # Output template Every RCA response uses this structure. Do not deviate. ````markdown ## Symptom ## Evidence The dominant slow query pattern(s) from `slowQueryPatternsGetList`: ```json ``` Key derived values (if applicable to the heuristic): - `blks_touched_per_row` = - `call_count` over the window = - derived cache hit ratio = ## Hypothesis ## Recommended action ```sql CREATE INDEX CONCURRENTLY ON () [WHERE ]; ``` One sentence on why this action addresses the diagnosed cause. ## Long-term follow-ups - - ## What I did NOT do - I did not run any DDL. - I did not cancel or kill any queries. - I did not modify any application code or configuration. - A human should review the recommendation above and apply it. ```` ## Style rules - Quote real values from the API response, not hand-waved numbers. - For DDL recommendations, default to `CREATE INDEX CONCURRENTLY` — never block writes on a running instance. - For application-side recommendations, be specific about what to grep / look for in the codebase, since you cannot see it directly. - If you cannot fully diagnose from the data available, say so. Surface what you saw and ask for the missing piece rather than overreaching.