We need to analyze the review process and make it better. here is the postmortem report…
- User
We need to analyze the review process and make it better. here is the postmortem report from a recent incident - @docs/postmortems/2026-03-21-search-escape-bug.md
Assistant
This is a thorough postmortem. Let me read the current review process and QA policy to understand what we're working with before proposing changes.
Assistant
Now let me read the key files in detail to understand the current review process and QA policy.
Assistant
- User
i am seeing this requires multiple ways.. We need to make the reviewer persona dynamic and not stick to 1 or 2. Or probably use the claude built in codereview skill along with our triple layer review.. this may enhance our review process. One other way i look is to create dynamic reviewer persona based on changes we made - like SQL expert if db related changes, react expert if react app changes and node expert for backend changes. they should not be too narrow which misses domain or general tech knowledge but at the same time not be too broad and generalist reviewer..
Consider my above points and then resurface the changes you mentioned above with further refinements
Assistant
Great thinking. Let me read the current TA agent definition and the code-review skill to understand what we're working with before redesigning.
Assistant
- User
I think point 4 and 5 are specific to the bug we discovered.. i am looking for general hooks or agent prompt updates that will ensure future issues like this can be averted
Assistant
- User
yes, go ahead. use feature branch to make this changes and create a PR
Assistant
We've already designed this thoroughly through our conversation — 3 systemic changes, agreed scope, clear deliverables. Let me implement directly.
Assistant
Now let me implement all 3 changes across the affected files. I'll start with the new specialist registry doc, then update the review orchestration, then the supporting files.
Assistant
The security warning is a false positive —
dangerouslySetInnerHTMLappears in the React specialist's checklist as something to check for, not actual code. Let me proceed with the remaining files.Now let me update
start-review.mdwith the dynamic specialist selection and post-fix re-verification:Assistant
Now update Step 3 to replace the static Outsider and Wild Card launches with dynamic specialist launches:
Assistant
Now update Step 5 to add the post-fix re-verification requirement:
Assistant
Now update the PR comment template to reflect the new structure:
Assistant
Now update the important rules section to reflect the new structure:
Assistant
Good. Now update the TA agent's synthesis phase to handle VERIFY AT RUNTIME items, and update
docs/AGENTS.mdanddocs/QA.md:Assistant
Now update the TA's authority section and the Phase 1 review tables:
Assistant
Update the Phase 1 review table in the TA agent to reflect the new reviewer structure:
Assistant
Now update
docs/AGENTS.md— the review section:Assistant
Update the Phase 2 synthesis and Phase 3/4 in AGENTS.md:
Assistant
Now update
docs/QA.mdto refine the SHOULD TDD threshold for complex routes:Assistant
Also update the domain classification table in QA.md:
Assistant
Finally, update the postmortem action items to reflect completion:
Assistant
Now let me commit and create the PR:
Assistant
The
REVIEW-SPECIALISTS.mdfile wasn't written due to the security hook interruption. Let me recreate it:Assistant
Good. Now let me commit and create the PR:
Assistant
PR created: https://github.com/melagiri/code-insights/pull/227
★ Insight ─────────────────────────────────────Defense-in-depth through abstraction levels: This PR creates three independent defense layers that each catch a different failure mode:-
Domain specialists catch bugs that require domain knowledge (SQL escaping, React hooks, parser edge cases) — the TA focuses on architecture, so these fall through without a domain expert.
-