FILE 04 · THE CODED INVESTIGATOR
A read-only investigator that drops uncited claims
I turned 88 multi-source investigation sessions into a local worker. It reads logs, code, knowledge, Sentry, and an opt-in identity vendor, then deletes every claim missing an evidence ID before an engineer makes the call.
- Ownership
- Owner-directed design and build. AI coding agents wrote much of the code under my direction and review.
- Surface
- Request table, per-source read-only lanes, an evidence-gating coordinator, and internal Slack card delivery.
- Scope & split
- 88 owner-chained sessions (Jul–Dec 2026) preceded 70 investigator folders (11 real, 59 replays). Temporal and Metabase stay separate read-only tools (0 of 70 investigator runs).
01 · THE PROBLEM
Every ticket starts across separate tabs with no shared clock.
Queue pressure hits before the facts line up. On almost every technical escalation, the opening pass repeats: pull log rows, check expected code paths, scan past tickets, inspect Sentry traces, then reconstruct order by hand.
Scattered evidence slows the first read and invites early theories before the full record arrives. Standardizing that first pass puts dated records in front of the engineer before anyone argues a cause.
Scope boundary The worker prepares a consistent opening dossier; final diagnosis and customer decisions remain human work.
Three tabs, three clocks
- Logs
- Narrow windows, retries
- Code & KB
- Separate repo + doc hunts
- Sentry
- Isolated stack traces
The engineer stitches timestamps from memory while the queue keeps growing.
One cited file
- Lanes
- 5 read-only sources
- Claims
- Linked to evidence IDs
- Output
- Lean + next step + handoff
Dated evidence lands in one internal card before the engineer weighs in.
02 · PRACTICE TO CODE
The manual habit came first; code locked in the evidence gate.
From July through December 2026, I ran 88 multi-source sessions (some mixing tool work with case work) by chaining read-only lookups in agent sessions. Once the steps repeated reliably, I encoded them into a local worker with one read-only step per source, fail-closed redaction, up to two follow-up rounds, a four-level relevance scale, and per-source evidence caps.
Usage scope Eleven real runs leave daily queue coverage unmeasured; 59 of the 70 folders are replay measurements.
-
STAGE 01 Practice
Owner agent-chained sessions
88 sessions querying at least two investigation sources (Jul–Dec 2026; some mix tool development with tickets). Optional Temporal and Metabase lookups ran here.
-
STAGE 02 Evidence gate
Coded local investigator
One read-only step per lane; up to 2 follow-up rounds; 4-level relevance cap; fail-closed redaction on stored and posted payloads; coordinator drops uncited claims in code.
- Graylog
- Code
- RAG
- Sentry
- Sumsub (opt-in)
-
STAGE 03 Decision
Human engineer decides
An internal Slack card delivers a working lean, cited claims, a next step, and a handoff when missing records sit with another team. Zero live customer or L3 sends.
Code-enforced gate Any claim missing a valid evidence ID gets deleted before the card renders.
Temporal (workflow history) and Metabase (BI warehouse) remain separate read-only tools invoked optionally inside my owner-run agent sessions. Zero coded-investigator runs queried either tool.
03 · THE CASE CARD
Each card pairs cited facts with explicit gaps and a human handoff.
The coordinator classifies every run into one of four states—ours, user, unknown, or nothing_found—and pairs cited observations with confidence, a concrete next step, and a handoff target.
Dry-run limit Customer drafts and L3 escalation notes exist in dry runs only. Zero customer replies or live L3 posts leave this tool.
- Graylog
- Code
- RAG
- Sentry
- Sumsub
The payment entered the clearing workflow, with zero settlement events visible in the search window.
GraylogThe cardholder’s latest clearing entry is absent from the recorded partner response payload.
Code + RAGPartner likely delayed settlement over the weekend cutoff.
Next step
Ask L2 to check the cardholder’s latest clearing record.
Handoff
Payments platform on-call
Inspect card anatomy · select to highlight
04 · REPLAY & COVERAGE
Two AI graders rated 19 of 24 blind ticket replays useful and found zero false claims.
Both graders scored the same 24 past tickets blind, with owner rulings on disagreements. The test measures diagnosis usefulness and factual discipline; resolution rate and time saved remain unmeasured.
24-ticket blind replay
Two independent AI graders with owner rulings · same 24 historical tickets
19 / 24
rated useful · 0 false claims recorded- Total request folders
- 70
- Real investigation runs
- 11
- Replay measurement runs
- 59
- Runs with a next step
- 7
- Runs with a handoff
- 17
- Dry-run customer drafts
- 2
- Live customer or L3 sends
- 0
AI graders with owner rulings scored the replay, leaving peer-engineer review absent. Twenty-four tickets signal early behaviour while leaving broad reliability unproven.
Source coverage across 70 request folders
55 of 70 investigator runs queried at least 3 sources · 11 real runs + 59 replays
05 · AUDIT LEDGER
AI grading, 24 tickets, and 11 real runs define the honest boundary.
Every lane runs read-only by design, the coordinator deletes uncited claims, and all output lands internally. Open security and evaluation gaps sit explicitly on the right.
Established in this fileVerified scope
-
Blind replay diagnosis signalAI-graded19 of 24 blind ticket replays rated useful across two independent AI graders (owner-ruled), with 0 false claims recorded.
-
Code-level evidence gateRecordedThe coordinator drops any claim lacking an evidence ID in code and runs fail-closed redaction on stored and posted text.
-
Five-lane read-only coverageRecorded55 of 70 request folders queried at least 3 wired sources (Graylog 70, Code 68, RAG 53, Sentry 49, Sumsub 25).
-
Actionable internal routingRecorded7 runs produced a next step, 17 produced a handoff, and 2 produced dry-run customer drafts.
Outside this recordBoundaries
-
Engineer grading & strict citationsAI-gradedTwo AI graders scored the 24 tickets with owner rulings; peer-engineer grading remains absent, and strict citation checks logged 2 and 10 uncited clauses.
-
General reliability & daily replacementNot measured24 tickets leave future reliability unproven. Eleven real runs leave daily queue share unmeasured and leave daily workflow replacement unestablished.
-
Outcomes & colleague adoptionNot measuredBefore/after handling time, escalation precision, rework, resolution rate, and colleague usage remain unmeasured.
-
Complete read-only hardeningUntested
apply_patchremains present in the tool surface, and code-mode network access remains untested. -
Separate tools & dry-run outputBoundaryTemporal and Metabase ran in 0 of 70 investigator runs. Customer drafts and L3 escalation messages stay dry-run only.
EVIDENCE BEFORE THE DECISION · FOUR-FILE SERIES
The three systems feeding this investigator
Weekly dual-index refresh, item verification, and server-side caller rings behind the RAG lane.
Open File 01 ↗Log deduping, approved code search with fail-closed redaction, and device-error lookups.
Open File 02 ↗Two cited Slack bots and the shadow triage pilot I stopped before building this on-demand worker.
Open File 03 ↗Five read-only source lanes, an evidence-gating coordinator, and a human-owned verdict.