Skip to content
Dhruv Pithadia
<- All work

07 · Agents

Last Witness

An archivist holding a reel nobody can identify.

A multi-agent investigation of unidentified historical footage. Investigators build competing identifications from timecoded clues, a skeptic argues against each one, and a person makes the call.

Status
Demonstrated
Year
2026
Built with
FastAPI, Pydantic, Google ADK, Gemini, Parallel Search, Firestore, FFmpeg, React, SSE

The problem

The user is a moving-image archivist whose catalog search and visual matching have already failed. The job is to recover an identity from whatever clues survive in the frame. Producing a plausible movie title is easy. Showing why one identity survives and the alternatives do not is the actual work.

The flow

  1. 01Reel intake.
  2. 02Timecoded observations of what is actually visible.
  3. 03Filmography and historical-context research, run concurrently.
  4. 04A skeptic searches for evidence against each hypothesis.
  5. 05Ranked hypotheses.
  6. 06Human review.
  7. 07A structured dossier export.

Decisions in the code

  • Observations and interpretations are separate fields. What is visible and what someone infers from it never share a column.
  • Research branches share case context and keep source provenance. A failed branch can still leave useful partial evidence, with a warning attached.
  • The model cannot confirm an identity. Confirm, reject, or unresolved belongs to the archivist, and each requires a note.
  • One service owns persistence. Optimistic revisions and ordered event streams protect the evidence record.
  • The live stream handles reconnects with cursors, validates events at runtime, and cleans up safely on abort.

What changed my mind

Real provider integration broke the clean version. The controlled-output schemas sent to the provider had to drop constraints, with strict validation moved to our side. Video size and model latency forced a leaner demo derivative and new timeouts.

What happened

One recorded live run identified A Trip Down Market Street Before the Fire (1906) from eight clues, with six sourced citations and three hypotheses. Two of those were false leads the skeptic disproved. It took roughly 60 to 70 seconds.

That is one run, not a benchmark. Cloud deployment and a preloaded case library are still on the list.