# Quality Gates & Watermark

> Understand G0–G3 automatic quality checks, safe output file protection, and the default transparent PraisonAI Film watermark.

PraisonAI Film is built so you never ship a broken frame or accidentally overwrite a good render.

---

## 1. Automatic Quality Gates (`--final`)

When you export with `--final` (1920×1080 @ 24 fps, or 1080×1920 portrait), four built-in quality gates run automatically before encoding starts:

| Gate | What It Checks |
|---|---|
| **G0 — Lint** | Validates your `film.yaml` syntax, names, actions, props, sets, and camera references — with helpful *"did you mean…?"* hints. |
| **G1 — Simulation** | Checks character spacing, prop collisions, walking routes, zebra-crossing timing, and ensures every shot has a clear camera. |
| **G2 — Per-Shot Geometry** | Verifies framing across every cut so characters aren't clipped awkwardly and the background fills the frame edges cleanly. |
| **G3 — Keyframe Stills** | Inspects rendered keyframes for readable faces, speech bubble placement, lighting contrast, and style contract compliance. |

If any gate fails, `aifilm` reports the exact failing stage and stops immediately without wasting render time.

---

## 2. Protected Output Files

- **No accidental overwrites:** Running `aifilm render` against an existing `.mp4` refuses unless you explicitly pass `--overwrite`.
- **Atomic safety on errors:** If you edit `film.yaml` with a mistake and re-render with `--overwrite`, your previously rendered `.mp4` stays intact byte-for-byte until the new video succeeds completely.

---

## 3. Default Transparent Watermark (`PraisonAI Film`)

Every generated film includes a subtle, **transparent `PraisonAI Film` corner watermark** in the bottom-right corner by default:

- **Purely transparent text marker** (no opaque box) with soft legibility shadow so it reads cleanly over both bright (`studio_ink`, `realistic`) and dark (`blueprint_ink`) scenes.
- **Responsive sizing:** Scales smoothly across `640×360` previews, `1920×1080` landscape HD, and `1080×1920` portrait Shorts.
- **Probe-safe:** Automatically hides during G2/G3 quality inspection probes so visual gates measure only your actual scene.

### Commercial Opt-Out (`watermark: false`)

Commercial licence holders can disable the default watermark (or specify custom corner text) directly in `film.yaml`:

```yaml
watermark: false
```

See **[Licensing & Commercial Use](https://film.praison.ai/docs/reference/licensing.md)** for personal vs commercial terms.

## Related pages

- [Default Transparent Watermark](https://film.praison.ai/docs/features/watermark.md)
- [Offline Rendering & Portable Projects](https://film.praison.ai/docs/guides/offline-and-portability.md)
- [How a Film File Works](https://film.praison.ai/docs/features/film-yaml.md)
