Color Grading Execution Discipline
Applicable Scenarios
- User requests a unified master look, executing a clear profile or LUT.
- User requests adjustment of exposure, white balance, or saturation, performing local processing with explicit parameters.
- User requests multi-shot matching, calculating correction amounts based on a specified reference; if no grading request is made, the original footage is retained.
Successfully rendered assets are accepted by default and enter formal post-production. Original footage is read-only; original program audio is preserved. Historical quality failures remain unchanged; the same successful shot must not be charged again due to component changes. Identity, costume, action, image quality, nominal duration, lip sync, dialog, and audio quality do not trigger default models, ASR, TTS, frame-drop scoring, or manual approval.
SOP: Request → Processing → Actual Receipt
- Triggered by an explicit color grading request; read the actual source file spec, project and shot number, source SHA256, and authorization. The receipt records input bytes; if the file is missing, out of bounds, or source mismatch, fail without regenerating the shot as a replacement.
- Break the request into correction, profile, LUT, and intensity. Explicit log/color space parameters are processed through supported conversion paths; do not infer log from a flat image. The receipt records adopted parameters; unknown profiles, missing LUT, or out-of-bounds intensity fail before processing.
- Execute
colorwrite.gradeonce; correction is always applied at 100% strength, and only the creative look is blended according tointensity.autoanddenoiseare only computed when explicitly requested; they cannot become acceptance criteria for the source shot. - When explicit multi-shot matching is requested, call
colorwrite.match; reference/target statistics are used only to derive the requested transformation, not to evaluate residuals on the final output. Each item has a success or error result; global success must not mask missing or failed targets. - Verify actual tool completion, existence and readability of the output, current SHA256 matching the receipt, and re-read the actual color tags. Report
qualityReviewed=false,qualityScore=null; do not write pass for quality items that were not measured.
color-cli grade --in source.mp4 --out color-v2.mp4 --profile warm-film --intensity 0.75
color-cli match --ref hero.mp4 --in a.mp4 --in b.mp4 --out-dir matched-v2/
colorwrite.best selects one real solution based on explicit recipe, subject matter, or clear candidates, and executes it once; it does not generate a candidate pool, does not decide acceptance based on improvement scores, and does not claim to have found the optimal image quality solution.
Profile Selection and Parameter Table
| Request Content | Profile | Suggested Starting Point | Craft Use |
|---|---|---|---|
| Narrative, Emotional | warm-film | 0.70–0.85 | Warm tone, slight black lift |
| Science, Product Explanation | clean-bright / natural | 0.60–0.80 | Primarily information-oriented |
| Technical, Dark UI | cool-technical | 0.60–0.75 | Clean, cool style |
| Suspense, Serious Subject | moody-dark | 0.50–0.70 | Crush blacks, desaturate |
| Social Media, Promotional | high-contrast-social | 0.70–0.85 | High contrast style |
| Retro, Nostalgic | vintage-fade | 0.60–0.75 | Lift blacks and desaturate |
| Brand Uniformity | teal-orange | 0.60–0.80 | Complementary cold/warm tones |
These are creative references; the user may explicitly select other intensities within the legal range. Subtle changes, black frames, gray frames, or blurry original footage are not rejected on this basis.
Independent Diagnostic Target Value Table (Explicit Call Only)
| Metric | Reference Range | Interpretation Note |
|---|---|---|
| YMIN | 0–16 | Black point creative reference |
| YAVG | 80–140 | Night scenes and high-key scenes cannot be summarized by average |
| YMAX | 235–255 | Peak white reference |
| UAVG / VAVG | 128±6 | Neutral chroma reference |
| SATAVG | 40–80 | Saturation reference |
| Skin Tone | HSV 20–40° | This is not the same scope as signalstats' HUEAVG; explicit patches take priority |
When the user explicitly requests colorread.analyze, scope, or compare, independent diagnostics may be issued; record sampling time, patch, confidence, and unmeasured items. Diagnostic opinions do not delete products, do not automatically go upstream, and do not trigger paid re-rendering. Existing scene cuts, skin tone, noise, and banding knowledge is retained in library/color-kb/.
Parameter Boundaries and Discipline
intensitymust be greater than 0 and not exceed 1; conversions and corrections are not diluted by look intensity.- The profile must exist, the LUT must be actually readable, and color space conversion requires explicit parameters or explicit metadata; guessing from memory is prohibited.
- The original and output cannot be the same; overwriting the original is prohibited in any version; path, tenant, and license must be valid.
- The default quality receipt is unassessed; it is prohibited to print null residuals, empty candidates, or empty diagnostics as 0/full score.
- Process only the pixels as requested; do not alter narrative, subtitle facts, or character identity; updating a recipe does not equate to authorization for a new shot generation.
Failure Modes (Symptom → Cause → Resolution)
| Symptom | Initial Cause to Check | Resolution |
|---|---|---|
| Input or target not found | Actual file path and task source | Return not_found, preserve batch results; do not download unknown substitute |
| Recipe does not exist / intensity invalid | Profile, LUT, intensity | Send a new request with corrected explicit parameters; do not auto-trial render |
| Output path rejected | Allowed directories, original overwrite, permissions | Choose a valid new path; must not relax the fence |
| FFmpeg/FFprobe non-zero exit | Actual tool stderr, encoder, storage | Save real error and command; stop that item; do not fake processing success |
| Batch has both success and failure | results[].ok and actual file SHA | Return all items completely; CLI exits non-zero; successful items retained, failed items named |
| User feels style too strong/weak | User feedback and adopted parameters | Form a clear local rework request; change only look parameters; do not regenerate the original shot |
Output Contract and Knowledge Base
The receipt includes input source, actual filter chain, profile/LUT, intensity, output path/size/actual duration/SHA256, processing errors, and an unassessed statement. Selection explanations preserve subject matter, scene, mood, platform; independent diagnostics are saved separately and cannot masquerade as default completion conditions.
Knowledge entry point: library/color-kb/_INDEX.md, CGRADE-001 Skin Color Science, CGRADE-005 Waveform Monitor, CGRADE-006 White Balance, CGRADE-008 Incident Cases. Historical FC-COL-001 blend weight, FC-COL-007 HSV/HUEAVG mixing confusion for process regression; do not restore the automatic quality gate.