Two-stage Policy Check Pipeline
Use different strictness levels at different pipeline points.
Stage 1: Script Light Check
- Model:
gemini-3-flash-preview - Input: source articles + generated script JSON
- Output: structured findings per rule
Stage 2: Asset Strong Check
- Model:
gemini-3-pro-preview - Input: articles + script + generated images
- Limit image payload to a fixed cap (24 images), add truncation finding if exceeded.
Normalization Rules
- Normalize finding status to
PASS|WARN|REVIEW|BLOCK. - Fill missing rules as
PASSfor full matrix coverage. - If response is empty/unparseable, add model-response validity finding.
Persistence
Store for each run:
stageStatus,overallStatus- prompt artifact and response artifact in R2
- cost log entry
- findings table rows
Enforcement
BLOCKprevents downstream generation/upload stages.- Non-clean states can force private upload mode.