Use when a debugging thread needs to be compressed into a reusable investigation ledger. Capture the target, evidence, attempted fixes, ruled-out hypotheses, viable hypotheses, and next experiments. Good triggers include "compact this debugging session", "summarize what we've tried", and "turn this into a debugging ledger".
99
100%
Does it follow best practices?
Impact
99%
3.66xAverage score across 8 eval scenarios
Passed
No known issues
You are a senior engineer on a platform team. Your team has spent the past week investigating an intermittent data corruption issue in a distributed transaction system. The investigation is ongoing, with several hypotheses explored and varying results. You're about to take a long weekend and need to hand off the investigation context to a colleague in a form they can immediately act on.
Produce a handoff document that captures the current investigation state from the transcript below. Save it as handoff.md.
The following file is provided as input. Extract it before beginning.
=============== FILE: inputs/investigation_notes.md ===============
About 0.03% of financial transactions are being double-applied — a debit is processed twice instead of once. Issue started approximately 3 weeks ago. Cannot reproduce on demand; only observed in production.
Status: Investigated. All nodes synced to NTP within 2ms. Maximum observed skew is 8ms. The idempotency window is 500ms. Clock skew cannot explain duplicates in this case. Verdict: Ruled out.
Status: Investigated. Added consumer lag monitoring. Observed 4 rebalancing events in the past 72 hours, each coinciding with a duplicate transaction window. Rebalancing causes the consumer to replay uncommitted offsets. This is a credible cause. Verdict: Still under investigation — strong correlation but not confirmed causation.
Status: Investigated. TTL is 30 minutes. Transaction processing time is <200ms. TTL is not the issue. Verdict: Ruled out.
Status: Investigated. Added distributed tracing to lock acquisition. Found 2 cases where two workers both saw the lock as unacquired within a 3ms window. Could be a bug in the lock library (redlock). Not yet confirmed whether this explains all cases. Verdict: Still under investigation — potential lock library bug.
Status: Not yet investigated. Plausible given recent network switch firmware update.
Status: Investigated. Connection pool is isolated per worker. No interleaving possible by design. Verdict: Ruled out.
debit operation, never creditevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
skills
compact-debug-ledger