Cross-service incident investigation
Send the release notes, the relevant code and the monitoring data together, and have Claude Fable 5.2 find what changed performance or error rates and say which material supports each step. The conclusion should be checkable against the metrics; compare them again after the fix ships.
Example: Why did latency jump after this release?
Material
- Release notes
- v2.8 raises the order list page size from 20 to 100.
- orders.ts
- for (const order of orders) { order.customer = await db.customers.find(order.customerId); }
- Monitoring
- After v2.8, /orders p99 rose from 180 ms to 950 ms and database queries per request rose from 21 to 101.
PromptUsing the release notes, code and monitoring data, find why the /orders endpoint got slower, explain the evidence, and give the fix and how to verify it after deploy.
Sample answer · written by hand to show the reasoning
The loop looks up the customer once per order: at 100 orders per page that is 1 list query plus 100 customer queries, exactly the 101 in monitoring. Replace the per-order lookup with one batched query by ID list, which brings each request down to 2 queries, then confirm p99 is back under 200 ms after deploy.