Repository navigation
NAT-544: Add a pure Standard Input policy and planner - #165
Merged
eugene-mux merged 5 commits intoOct 16, 2026
Merged
eugene-mux merged 5 commits into
eugene-mux merged 5 commits into
Conversation
eugene-mux
marked this pull request as ready for review
October 1, 2026 23:42
daytime-em
approved these changes
Oct 13, 2026
Base automatically changed from
em/nat-543-standard-input-options
to
feature/nat-534-hevc-standard-ingest
October 16, 2026 18:08
eugene-mux
force-pushed
the
em/nat-544-standard-input-policy
branch
from
October 16, 2026 18:08
4123fb8 to
e1131cc
Compare
eugene-mux
merged commit Oct 16, 2026
0cb8530
into
feature/nat-534-hevc-standard-ingest
1 of 2 checks passed
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a pure Standard Input policy and planner that selects original upload, whole-file SDR conversion, or original-file fallback from normalized media facts and proven capabilities.
Validation
Note
Low Risk
New internal-only types and logic with no production call sites yet; behavior is heavily unit-tested and isolated from upload orchestration.
Overview
Introduces a pure, platform-agnostic Standard Input layer that turns normalized
MediaFactsplus caller-suppliedPlanningCapabilitiesinto aStandardInputPlan: upload original, whole-file SDR conversion, or categorized fallback.Policy (
StandardInputPolicyEvaluator) applies Mux-published tier limits (aligned with Swift) across codec, resolution, frame rate, bitrates, GOP, pixel format, HDR (HEVC 10-bit 420 for HLG/PQ), audio, and edit lists—treating missing evidence as Unknown, not compliant.Planner (
StandardInputPlanner) wiresInputStandardization/HdrHandling: preserves eligible HLG/PQ when compliant, tone-maps when requested, downscales within selected max resolution without upscaling (even-aligned dimensions), picks output cadence (preserve timestamps vs 30 fps resample), and gates conversion on explicit proof (decode/encode, per-requirement remediation, AAC preparation, tone mapping).Adds shared test fixtures and 66+ unit tests for policy boundaries and planning edge cases (HDR, audio, capabilities, insufficient evidence). No upload pipeline integration in this PR.
Reviewed by Cursor Bugbot for commit e1131cc. Bugbot is set up for automated code reviews on this repo. Configure here.