Skip to content

test(compliance): add universal macro translation vectors - #6679

Merged
bokelley merged 2 commits into
mainfrom
universal-macro-compliance
Aug 19, 2026
Merged

bokelley merged 2 commits into
mainfrom
universal-macro-compliance

Conversation

@bokelley

@bokelley bokelley commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • publish a schema-validated, language-neutral 3.2 universal-macro translation fixture
  • ratify and record DR-0012 through DR-0014
  • pin control-character rejection, frozen-consent diagnostics, and bare-query normalization
  • pin the complete successful result shape and deterministic diagnostic ordering
  • preserve the existing legacy fixture URL unchanged
  • add structural checks for required cases without duplicating the shipping SDK helper in this repository

Ratified policy

  • DR-0012 rejects native mappings containing U+0000–U+001F or U+007F with a typed error.
  • DR-0013 encodes consent macros supplied through value and reports them in frozen_consent_macros.
  • DR-0014 normalizes a bare trailing ? away.

The stronger alternatives raised during expert review—broader character rejection, rejecting impression-scoped value mappings, and failing an entire translation for an unmapped consent macro—are deliberately not adopted.

This draft does not close #6674. SDK acceptance still needs to run this fixture against each shipping helper rather than a test-local implementation.

Validation

  • npm run test:substitution-vector-names
  • npm run test:compliance-source-authority
  • npm run test:immutable-release-artifacts
  • npm run build:compliance -- --check
  • npm run test:docs-nav
  • npm run check:owned-links
  • targeted snippet validation for docs/creative/universal-macros.mdx
  • legacy fixture matches origin/main byte-for-byte
  • changeset status: minor

The repository-wide snippet suite was also attempted locally; it remains red on unrelated environment-dependent examples, including a missing Python adcp module. The changed macro page has no testable snippets and passes its targeted check.

Progress on #6674

@bokelley
bokelley marked this pull request as ready for review August 19, 2026 20:17
@bokelley
bokelley merged commit acc022a into main Aug 19, 2026
51 checks passed
@bokelley
bokelley deleted the universal-macro-compliance branch August 19, 2026 20:22

@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: Approve

Approve — clean additive compliance-fixture PR.

Checked:

  • Publishes a schema-validated, language-neutral golden fixture for universal-macro translation plus decision records DR-0012/0013/0014.
  • Percent-encoding and diagnostic ordering hand-verified against RFC 3986 and the fixture's own ordering rules.
  • Schema oneOfs are genuinely disjoint (no undiscriminated oneOf regression).
  • Minor changeset matches the additive protocol-surface change.
  • Docs (universal-macros.mdx) are coherent with the fixture's diagnostics (schema↔docs coherence holds).

No Critical/High/Medium findings. Decision-table walkthrough: no critical/high (row 1 no); gated_paths false (row 2 no); high_risk false, no deletions (rows 3,5 no); no medium data-loss/schema/infra (row 4 no); no prior escalation (row 6 no); no no-auto-approve team match (row 7 no); zero medium findings, below the three-medium threshold (row 8 no) → falls through to row 9: approve.

Note: review_decision is REVIEW_REQUIRED but gated_paths is false, so the hard approval gate does not apply. This is an additive (Normative/Editorial, non-breaking) change, not a Breaking-class change, so the breaking-change hard gate does not force escalation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add language-neutral universal-macro translation compliance vectors

1 participant