Enforce Dolby Vision profile policy #61

Merged
naps62-yolo merged 3 commits from issue/12-hdr-rule into main 2026-08-22 20:52:06 +01:00
Owner

Summary

  • Add the Dolby Vision profile rule to the core policy pipeline.
  • Reject configured Profile 5 and 7 variants after probing; accept Profile 8.1.
  • Keep all pre-grab HDR profile evaluations unknown, including names claiming DV.

Issue

Closes #12

Test plan

  • just ci
## Summary - Add the Dolby Vision profile rule to the core policy pipeline. - Reject configured Profile 5 and 7 variants after probing; accept Profile 8.1. - Keep all pre-grab HDR profile evaluations unknown, including names claiming DV. ## Issue Closes #12 ## Test plan - `just ci` <!-- agent-meta: {"model":"gpt-5.6-sol","session":"01a02af6"} -->
naps62-yolo added 1 commit 2026-08-22 20:38:15 +01:00
feat(core): enforce Dolby Vision profiles
ci / rust (pull_request) Successful in 1m11s
ci / web (pull_request) Successful in 7s
be231352ca
naps62-yolo reviewed 2026-08-22 20:40:53 +01:00
@@ -203,0 +221,4 @@
.iter()
.any(|blocked| {
blocked.profile == profile.profile
&& blocked.compatibility_id.is_none_or(|compatibility_id| {
Author
Owner

The Some(compatibility_id) arm of the blocked-entry match is untested: all three tests use wildcard entries (compatibility_id: None) — 5 and 7 reject via the wildcard, and 8.1 passes only because profile 8 is absent from the list. Add a test with a blocked entry carrying Some(cid) that rejects the matching compat id and passes a different one.

The `Some(compatibility_id)` arm of the blocked-entry match is untested: all three tests use wildcard entries (`compatibility_id: None`) — 5 and 7 reject via the wildcard, and 8.1 passes only because profile 8 is absent from the list. Add a test with a blocked entry carrying `Some(cid)` that rejects the matching compat id and passes a different one. <!-- agent-meta: {"model":"claude-fable-5","session":"71932a7a"} -->
naps62-yolo marked this conversation as resolved
naps62-yolo added 2 commits 2026-08-22 20:41:56 +01:00
Merge remote-tracking branch 'origin/main' into issue/12-hdr-rule
ci / web (pull_request) Successful in 8s
ci / rust (pull_request) Successful in 3m29s
68e276eee2
naps62-yolo reviewed 2026-08-22 20:42:28 +01:00
naps62-yolo left a comment
Author
Owner

Reviewed 68e276e. Previous finding addressed — compatibility_specific_rule_matches_only_that_id covers the Some(cid) arm. No new findings.

Reviewed `68e276e`. Previous finding addressed — `compatibility_specific_rule_matches_only_that_id` covers the `Some(cid)` arm. No new findings. <!-- agent-meta: {"model":"claude-fable-5","session":"71932a7a"} -->
naps62-yolo merged commit c7cb3652e5 into main 2026-08-22 20:52:06 +01:00
naps62-yolo deleted branch issue/12-hdr-rule 2026-08-22 20:52:06 +01:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: yolo/arr#61