AI Infra Interviews logo

Audit an incident replay for future-evidence leakage

Build a frozen evidence selector with two clocks and explicit case scope. Reject four broken policies, inspect the leaked records and preserve a reproducible CPU report.

PremiumIntermediate

AI Infra Interviews editorial · Updated

How can an incident replay accidentally reveal the answer?

A later annotation can describe an event that happened before an alert. Filtering by event time alone can expose evidence that was unavailable at the declared investigation time. For a frozen historical-observation replay, preserve exact evidence versions, check event and availability times, and enforce the allowed scope before returning text. This CPU exercise tests those selection rules; it does not evaluate an LLM.

Read the primary sources
What you build
A replay-evidence.json report with three eligible records and four rejected selection faults.
Environment
Python 3.10+ · CPU only · no model download
Plan your session
35–50 minutes. A planning estimate, not measured runtime.
Before you begin
Run a Python script and read JSON records. Understand that an incident alert describes a symptom, not necessarily its cause.
14 CPU tests executed. Executed on Linux with Python 3.12.3. Checks both clocks, inclusive boundaries, timezone offsets, scope, malformed records and no-overwrite behavior. No LLM, live tool or GPU execution.
  1. 01Capture

    Keep immutable evidence versions with event and availability times.

  2. 02Select

    Apply the declared scope and both clock checks before returning text.

  3. 03Audit

    Compare returned IDs with a hand-reviewed fixture and retain each rejected fault.

Follow the changing state through the project. Each boundary has a check in the walkthrough.

Continue with Premium

Premium includes this guide’s complete walkthrough and downloadable project files. The technical overview, prerequisites and verification notes above are public.

View Premium access

Start with Prepare a JSONL dataset for small-model fine-tuning (Free to read).

Primary sources

Checked . Source review and execution checks are described separately above.