Formal Delivery Package & Multi-Style Variants
1. Delivery Goals & Default Policy
Enable users to work with complete files, understand versions, and continue rework. Successfully rendered shots are read-only and reused; later changes to color, music, text, or cover do not incur new generation costs. Real supplier failures, source mismatches, byte modifications, permission violations, and actual execution failures must halt everything.
Do not review identity, clothing, action, lip sync, lines, image quality, sound quality, or nominal duration. Do not invoke quality models, ASR, TTS fill, or manual canary. Standard UHD requests are output to the target canvas by the local encoder; when enhancement is explicitly needed, a separate enhancement station and its real source receipt are used – post-delivery will not start models on behalf of the user.
2. Pre-Validation
- Registered shot IDs are unique; supplier real final success, taskId/assetId bound to current file; historical quality failures remain as-is, with an additional independent acceptance receipt.
- Raw input, source file, and current project SHA-256 match; missing hashes or external replacements must not be falsely claimed as reuse.
- Tenant, workspace, project, license, font, and track scope are valid; local completion does not automatically publish to external platforms.
- Requested variants, subtitle mode, target canvas, cover, and output directory are explicit; missing items follow reasonable defaults, not relying on an old fixed 30-second / 6-shot template.
3. Assets & Project Table
| Asset | Station Path Convention | Purpose / Must Record |
|---|---|---|
| Clean Master | master/master-clean.mp4 | Local composite base, SHA-256, actual width/height, and duration |
| Sidecar Subtitles | subtitles/ (SRT / ASS / VTT) | Font and cues from same source; file bytes and timeline receipt |
| Variant Renders | variants// (MP4) | Actual recipe, audio strategy, filters, and file hash |
| Soft Sub Track Edition | Variant's softsub.mp4 | Switchable subtitles; full video / original audio encoding package reconciliation |
| Hard Sub Copy | burned.mp4 when explicitly requested | New file; clean master preserved |
| Cover | Variant's cover.png | Explicit title, font, current image canvas, and hash |
| Copy Package | copy.md / copy.json | Title, body, topics, and CTA; real rule processing result |
| Audio Receipt | audio.json | Track source, license, original audio strategy, and actual operation parameters |
| Delivery Manifest | delivery-manifest.json | Every real asset, version, SHA-256, quality-not-tested fields |
| Project File | film-project.json | Bloodline of original shots and each post-production layer; rework input |
| Human-Readable Report | delivery-report.md | File usage, recipe differences, and rework entry points |
The real full-chain CLI also has its own project file naming. Look up assets by the calling entry point's manifest; do not treat this station path convention as a hardcoded directory for all entry points.
4. Variant Design & Single Execution
| Axis | Selectable Declared Parameters | User Purpose |
|---|---|---|
| Color | profile, LUT, intensity | Warm/cool and style expression |
| Music | track id/actual path, recipe, level, original audio strategy | Mood and progression |
| Transition | hard, fade, xfade actual request | Adjusting pacing expression |
| Cover | Specific timestamp, title, font, layout | Platform entry image |
| Copy | Provided body or local template | Corresponding publishing tone |
Execute each according to the selected recipe; do not skip frames to measure average pixel difference between two versions, do not measure audio difference, and do not require two axes to be "sufficiently different." Fields like distinctness/divergence/samples in the manifest that are not tested must be null/empty arrays; do not pass untested fields as passed.
Mix music from a clear, original audio source once. It is forbidden to take a master that already contains old music and re-lay music on top as a variant base; for tracks with no audio source, generate a silent program of equal duration for muxing, but do not automatically fill in lines.
5. Executable Entry Points & Parameter Boundaries
node bundles/ai-video/connectors/post-bridge/cli.mjs variants
node bundles/ai-video/connectors/post-bridge/cli.mjs plan --project project.json --shots shots.json
node bundles/ai-video/connectors/post-bridge/cli.mjs deliver --project project.json --shots shots.json --out-dir delivery
node bundles/ai-video/connectors/post-bridge/cli.mjs impact --project delivery/film-project.json --patch patch.json
- Fonts, tracks, and source materials must be real readable files; explicitly invalid split tracks or track references must not fall back to a default track.
- All inputs are read-only; overwriting source shots, old projects, or old version directories is forbidden.
- The target canvas for UHD must still be actually produced and read back; do not substitute an HD preview, and do not write that an unrequested enhancement was executed by a model.
- Each requested variant and attachment must be actually completed; real failures in encoding, mixing, text, covers, or file drops must be propagated – do not discard failed versions and claim completeness.
- Platform and user explicit constraints are the actual output contract; original FPS, original resolution, or original sound quality of a successful source shall not be grounds for post-hoc rejection.
6. SOP
- Trigger: Source has been successfully rendered. Read and validate current task, source input, and file bytes. Receipt: shotGeneration=reused, actual shot ID and SHA-256. Failure: Stop on supplier, source, or permission mismatch; do not automatically resubmit.
- Trigger: Delivery recipe has been declared. Generate master and each requested local layer. Receipt: Per-layer real tool call, parameters, assets, and bloodline. Failure: Stop immediately on non-zero exit or missing file; old version and source retained.
- Trigger: All layer assets ready. Load subtitles, cover, project, and manifest. Receipt: Each path, byte count, hash, actual canvas, qualityReviewed=false. Failure: Missing assets or current hash mismatch – cannot be recorded as delivery complete.
- Trigger: Rework or user selects a version. Record user selection and affected layers. Receipt: Selected variant, version, and project hash. Failure: Stop on expired project or concurrency conflict; do not overwrite new version.
7. Failure Diagnosis (Cause → Action)
| Symptom | Detector / Cause | Action |
|---|---|---|
| A variant is missing | Tool non-zero, path or track missing | Name the actual failure, stop complete delivery; do not silently degrade original audio or omit |
| Subtitles have sidecar but no soft track | softmux request not executed or failed | Add real softmux processing; do not treat the plan manifest as an asset |
| Track registration ID usable but variant cannot find it | ID not resolved to real path | Use the same resolved file and license reference; do not switch to another track to cover up |
| Master modified externally | Project SHA-256 differs from current file | Stop reuse, verify source; old record retained |
| HD marked as UHD | Target canvas read-back mismatch | Re-encode the local layer per actual request; do not fake specs |
| Font or cover missing | File does not exist, license or processing error | Report specific missing item; do not use system fonts or empty cover as fallback |
| User thinks two versions are too similar | User explicit opinion | Modify declared recipe and rework locally; default delivery does not reject based on difference scoring |
8. Evidence Standards & Operational Metrics
| Metric / Fact | Standard | Source |
|---|---|---|
| Request output completeness | Every declared asset actually exists, non-empty, current hash matches | Manifest and execution receipts |
| Shot reuse | Rendered source retained; no new paid task triggered | Original shot hash, taskId, phase invoked |
| Sidecar timeline | Written cues match the defined text format | subtitle-manifest |
| Soft track copy | Full encoding package hash preserved | softmux receipt |
| Default quality review | false; all untested quality values are null | Each station's report |
| User preference & rework rate | Only real user selection events aggregated; no fabricated target achievement | delivery.variant.selected / revision |
Local media operations may declare that no new shot tokens were added this time; if explicit dubbing, enhancement, or other engines incur separate costs, they must be recorded based on actual invocations – do not unconditionally write the entire system as "zero cost."