ClearFrame
A screenplay clearance agent. Screenplay in, cited and risk-rated clearance report out, scored RED, AMBER or GREEN by deterministic rules. Then the flagged items stay under watch.
- Built for
- Agentic Cinema: The Blockbuster Hackathon, Parallel track · 2026
- Stack
- Gemini
- Google ADK
- Parallel Search · Task · Monitor
- Firestore
- Python

The problem
Before a film can shoot, and before an insurer will issue the Errors & Omissions policy a distributor requires, the screenplay has to pass script clearance. An analyst reads it line by line and flags everything that could draw a claim: a song cue, a brand on a coffee cup, a painting on a wall, a character who shares a name with a real person in the same city and profession, a street address that actually exists, a phone number outside the reserved 555 range.
Then they research each one, and write it all up with a risk rating and the source behind it. It takes days to weeks, costs thousands, and is redone after every rewrite. And it goes stale the moment it’s delivered: rights get sold, lawsuits get filed, and works enter the public domain every January 1st.
The approach
ClearFrame runs the whole pass as a pipeline of agents:
- Ingest the screenplay and parse it into scenes.
- Extract every clearable element across nine industry categories, including the two that only show up on real clearance reports: character names that collide with real people, and on-screen signage like phone numbers, plates and URLs.
- Research each element against the live web with Parallel, one researcher per category running in parallel, keeping every citation attached.
- Score each one RED, AMBER or GREEN.
- Report the rights holder, basis, citations and confidence for every item.
- Watch the RED and AMBER items with Parallel Monitor, so the report re-flags itself when the world changes.
Step 6 is the point. Clearance isn’t a document; it’s a standing obligation.
A language model never assigns a risk rating. This is the decision the whole design rests on. Gemini researches and summarizes; a plain Python rule engine reads the facts and decides. Rules run in order, the first match wins, and every verdict carries the ID of the rule that produced it. The output is reproducible and auditable, and anyone can read exactly why a song came back AMBER.
def rule_mus_002(element, facts, citations):
"""MUS-002: Composition is PD but master sound recording is protected by copyright."""
if facts.is_public_domain is True and facts.master_recording_protected is True:
return create_verdict(
element=element,
rating=RiskRating.AMBER,
rule_id="MUS-002",
rationale="Composition entered US public domain, but this specific master "
"recording is protected by copyright. License master or re-record.",
citations=citations,
)
That rule catches the classic trap for first-time filmmakers: assuming a song is free because it’s old. The composition may be in the public domain while the specific recording is not.
Every fact carries its source. Parallel returns a basis for each claim: citations, reasoning and
a confidence level. That maps almost exactly onto what a clearance report has to contain, so it flows
through to the screen unmodified. A finding without a citation is treated as a bug.
Unknown is a valid answer. Anything the rules can’t settle comes back AMBER / UNRESOLVED. In a
legal workflow, an admitted gap beats a confident guess.
The report has a history. When a monitor fires, it creates a new verdict instead of overwriting the old one. So the report can show that an item was GREEN when it was cleared, is AMBER now, and which article changed it.
Result
- A working end-to-end pipeline: screenplay in, highlighted script and cited, rule-tagged report out, with a live watchdog stream of active monitors.
- Demo material written from scratch: an original scene deliberately loaded with clearance landmines, with every brand and person invented. A project about rights clearance shouldn’t have a clearance problem of its own.
- Built for the Agentic Cinema hackathon’s Parallel track on Google Cloud and Gemini. Open source under Apache 2.0.