Portfolio / Featured / AI / LLM · Systems / Cloud
CUTLINE
Version-bound fact review for documentary editing: a script edit invalidates exactly the claim reviews and cut recipes it affects.
Problem
Documentary teams revise narration after research, and an old “checked” flag can stay green after a date, qualifier or attribution has changed.
What the repository shows
- Each claim review is bound by SHA-256 fingerprints to the exact cue text, captured evidence and edit recipe a person approved; any change marks only the dependent reviews stale.
- Research calls Parallel Search for public evidence, and Gemini on Vertex AI assesses only the returned excerpts.
- A deterministic review state machine owns every transition: research may propose narration but cannot approve, publish or alter quotes.
- Mutations need a session CSRF token and an expected revision; Firestore checks and writes in one transaction.
- Exports a JSON, CSV or text handoff for editors, with CSV formula neutralization.
Python 3.12 · FastAPI · Gemini on Vertex AI · Google ADK · Parallel Search API · Firestore · Cloud Run
Evidence for this project2 sources
- Repository documentedRepository documentation
CUTLINE binds each documentary claim review to the exact cue text, evidence capture, revision and edit recipe a person approved, so a later script edit cannot keep an old approval.
CUTLINE prevents an old fact-check approval from silently surviving a later script edit. It binds every claim review to the exact cue text, evidence capture, content revision, and edit recipe that a person approved.
- The README asks for credentialed production checks before claiming live end-to-end validation; none are recorded in the repository.
README.md (opens in a new tab) @ 7f63806 · reviewed 2026-10-26 · In the ledger
- Repository documentedInspected source code
In CUTLINE's code, a claim review stays current only while its stored hash equals a SHA-256 fingerprint recomputed from the cue, its sources and the claim.
return bool(claim.get("review_hash")) and hmac.compare_digest(claim["review_hash"], fingerprint)
cutline/domain.py (opens in a new tab) @ 7f63806 · reviewed 2026-10-26 · In the ledger
How it works
- Load a timecoded paper edit whose claims were already reviewed.
- Edit a cue: its fingerprint changes, so only the claims and cut recipes that depend on it go stale.
- Research the cue: Parallel Search returns public excerpts, Gemini assesses only those, and may propose a repair.
- A person approves the wording and signs off each recipe.
- Export a current, traceable handoff.
Engineering evidence
- Tests
- 30 test definitions in 9 files (domain, API, providers, security, store)
- CI
- GitHub Actions: Ruff lint and format, unit tests, browser-script syntax, repository policy, container build
- Deployment
- Cloud Run with Firestore and Secret Manager (documented scripts); a Google ADK agent for Vertex AI Agent Engine
- Licence
- MIT
Counted from the repository at commit 7f63806; the tests were not run for this site.
Limitations
- The README lists credentialed checks to run before claiming live end-to-end validation; none are recorded in the repository.
- Fixture mode works without credentials and labels all its evidence as synthetic.