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.

Repository inspected: view the source for this claimReviewed at 7f63806 · last commit 2026-09-10Licence MIT

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
  1. 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

  2. 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

  1. Load a timecoded paper edit whose claims were already reviewed.
  2. Edit a cue: its fingerprint changes, so only the claims and cut recipes that depend on it go stale.
  3. Research the cue: Parallel Search returns public excerpts, Gemini assesses only those, and may propose a repair.
  4. A person approves the wording and signs off each recipe.
  5. 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.