Skip to content

fix(compliance): scope optional media-buy behaviors - #6739

Merged
bokelley merged 6 commits into
mainfrom
adcp-6701-6702
Aug 21, 2026
Merged

bokelley merged 6 commits into
mainfrom
adcp-6701-6702

Conversation

@bokelley

@bokelley bokelley commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

Closes #6701.
Closes #6702.

What changed

  • Gate every creative-library compliance path on creative.has_creative_library, including compound gates and direct specialism phases.
  • Move creative sync out of the parent lifecycle where the runner cannot express the required timezone-and-library compound phase gate; capability-gated required scenarios retain coverage.
  • Split supported measurement-term acceptance from universal rejection behind media_buy.measurement_terms_acceptance and replay the exact terms discovered from the product.
  • Gate product refinement on the advertised refine buying mode.
  • Add runner contract documentation, regression coverage, specialism coverage, and a minor changeset.
  • Rebaseline the sales storyboard step floor for the intentionally removed ungateable parent phases.
  • Repair the hosted publication manifest and forward-port the complete immutable
    3.0.25 compliance, schema, and signed protocol artifacts that the failed automatic
    3.0.x forward merge left absent
    from main.

Why

Optional seller capabilities were being graded as universally required. Sellers without a creative library, measurement-term acceptance, or refine support could therefore fail scenarios outside their declared surface and receive incorrect badge denominators.

Impact

Sellers are now graded only on optional media-buy behaviors they advertise. Universal rejection behavior remains required, and sellers advertising acceptance receive an affirmative round-trip test using their own product terms.

Validation

  • Full precommit suite: 6,383 passed, 30 skipped
  • Full schema suite
  • Full build and compliance build/check
  • Storyboard capability-gate regression suite: 14 passed
  • Storyboard sample-request, context-output, and validation-path lints
  • Pre-push storyboard matrix; observed sales baseline 125 clean / 535 passing
  • Changeset protocol-scope and status checks
  • Hosted publication-manifest and OpenAPI checks; immutable 3.0.25 compliance,
    schema, and signed protocol artifacts verified byte-for-byte
  • Hosted compliance alias wrapper tests (45 passing)
    against origin/3.0.x
  • Immutable release artifact, dist schema ID, and packaged compliance-reference tests
  • Protocol, workflow, and code expert reviews: no blockers

@bokelley bokelley changed the title [codex] Scope optional media-buy compliance fix(compliance): scope optional media-buy behaviors Aug 21, 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 paths require human/CODEOWNERS review (review_decision: REVIEW_REQUIRED).

This PR scopes optional media-buy compliance paths to advertised capabilities: creative-library scenarios gate on creative.has_creative_library, measurement-term acceptance splits into a new capability-gated measurement_terms_accepted scenario behind a new media_buy.measurement_terms_acceptance capability, and refine_products gates on media_buy.buying_modes containing refine. The change is additive/optional and correctly carries a minor changeset. Gates, fail-closed behavior, and the terms-replay roundtrip are well tested.

Why escalate (decision table row 2): gated_paths is true and review_decision is REVIEW_REQUIRED (not APPROVED). The gate is not satisfied, so this cannot auto-approve.

Gated files requiring human/CODEOWNERS review:

  • .github/workflows/training-agent-storyboards.yml (matches .github/workflows/**)
  • static/schemas/source/protocol/get-adcp-capabilities-response.json (matches static/schemas/source/**)

Medium findings (non-blocking):

  • static/schemas/source/protocol/get-adcp-capabilities-response.json:821 — New measurement_terms_acceptance capability absent from capabilities reference (schema↔docs coherence gap; should be documented).

No critical/high findings. The schema change is additive-optional, not breaking-class. Once a human/CODEOWNERS approval lands, this can fall through to a normal decision.

Medium findings

  • static/schemas/source/protocol/get-adcp-capabilities-response.json:821 — New measurement_terms_acceptance capability absent from capabilities reference

Why human review

  • Gated path touched: .github/workflows/training-agent-storyboards.yml (matches .github/workflows/**) — human/CODEOWNERS review required; review_decision is REVIEW_REQUIRED, not APPROVED
  • Gated path touched: static/schemas/source/protocol/get-adcp-capabilities-response.json (matches static/schemas/source/**) — human/CODEOWNERS review required; review_decision is REVIEW_REQUIRED, not APPROVED
  • This PR touches a path under a hard, non-overridable approval gate (.github/workflows/training-agent-storyboards.yml (modified) matches .github/workflows/**; static/schemas/source/protocol/get-adcp-capabilities-response.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 Aug 21, 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 paths touched and review_decision is not APPROVED.

This PR modifies files under hard, non-overridable approval gates and the current GitHub review decision is REVIEW_REQUIRED, not APPROVED. Per decision-table row 2, this cannot auto-approve regardless of how clean the diff is; a human/CODEOWNERS approval must be recorded.

Findings
The reviewer surfaced no current findings. The prior medium finding (measurement_terms_acceptance capability absent from the docs reference) has been resolved: this delta adds the corresponding subsection to the get_adcp_capabilities capabilities reference, prose is coherent with the schema description, and all three cross-links resolve. Net improvement over the prior run — the earlier medium is gone and nothing new is actionable.

Absent the gated-path/review-status gate this diff would be clean. Once a human/CODEOWNERS approval is recorded, the gate lifts and this can proceed.

Escalation reasons

  • Gated path .github/workflows/training-agent-storyboards.yml (matches .github/workflows/**) — human/CODEOWNERS review required; review_decision is REVIEW_REQUIRED.
  • Gated path static/schemas/source/protocol/get-adcp-capabilities-response.json (matches static/schemas/source/**) — human/CODEOWNERS review required; review_decision is REVIEW_REQUIRED.
>

Why human review

  • Gated path touched: .github/workflows/training-agent-storyboards.yml (matches .github/workflows/**) — human/CODEOWNERS review required; review_decision is REVIEW_REQUIRED, not APPROVED
  • Gated path touched: static/schemas/source/protocol/get-adcp-capabilities-response.json (matches static/schemas/source/**) — human/CODEOWNERS review required; review_decision is REVIEW_REQUIRED, not APPROVED
  • This PR touches a path under a hard, non-overridable approval gate (.github/workflows/training-agent-storyboards.yml (modified) matches .github/workflows/**; static/schemas/source/protocol/get-adcp-capabilities-response.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 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 paths touched without required review.

This PR modifies two files under hard, non-overridable approval gates and the current GitHub review decision is REVIEW_REQUIRED (not APPROVED), so decision-table row 2 fires (gated_paths: true AND review_decision ≠ APPROVED). A human/CODEOWNERS approval must be recorded before Ladon can approve, regardless of how clean the diff is.

The reviewer found no blocking or Medium findings. The delta is a faithful forward-port of the immutable 3.0.25 compliance bundle (182 new files under dist/compliance/3.0.25/**, verified byte-for-byte identical to origin/3.0.x — a legitimate append/restore of an append-only record, not a mutation of an immutable artifact) plus a publication-manifest repair whose local-bundle guard is satisfied. This matches the prior escalate, which was driven entirely by the same gate.

Escalation reasons

  • Gated path modified: .github/workflows/training-agent-storyboards.yml (matches .github/workflows/**) — human/CODEOWNERS approval required; review_decision is REVIEW_REQUIRED.
  • Gated path modified: static/schemas/source/protocol/get-adcp-capabilities-response.json (matches static/schemas/source/**) — human/CODEOWNERS approval required; review_decision is REVIEW_REQUIRED.

Why human review

  • Gated path modified: .github/workflows/training-agent-storyboards.yml (matches .github/workflows/**) — human/CODEOWNERS review required; review_decision is REVIEW_REQUIRED, not APPROVED
  • Gated path modified: static/schemas/source/protocol/get-adcp-capabilities-response.json (matches static/schemas/source/**) — human/CODEOWNERS review required; review_decision is REVIEW_REQUIRED, not APPROVED
  • This PR touches a path under a hard, non-overridable approval gate (.github/workflows/training-agent-storyboards.yml (modified) matches .github/workflows/**; static/schemas/source/protocol/get-adcp-capabilities-response.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 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 paths touched and review_decision is not APPROVED.

This PR modifies files under hard, non-overridable approval gates while the current GitHub review decision is REVIEW_REQUIRED (not APPROVED). Per decision rule row 2, the outcome must be escalate until a human/CODEOWNERS approval is recorded.

The reviewer found no critical/high/medium findings — the delta since the prior review is exclusively 591 pure additions of the immutable 3.0.25 release artifacts under dist/** (append-only release records, no in-place rewrite of any existing semver artifact; 3.0.25.tgz hashes byte-for-byte to its .sha256). The diff itself is clean. This is not a blocking-findings request-changes; it is a mechanical approval-gate escalation.

Escalation reasons

  • .github/workflows/training-agent-storyboards.yml (modified) matches gated glob .github/workflows/** — human/CODEOWNERS review required; review_decision is REVIEW_REQUIRED, not APPROVED.
  • static/schemas/source/protocol/get-adcp-capabilities-response.json (modified) matches gated glob static/schemas/source/** — human/CODEOWNERS review required; review_decision is REVIEW_REQUIRED, not APPROVED.

The gate lifts automatically once review_decision becomes APPROVED; a clean diff can then approve.

Why human review

  • Gated path modified: .github/workflows/training-agent-storyboards.yml (matches .github/workflows/**) — human/CODEOWNERS approval required; review_decision is REVIEW_REQUIRED, not APPROVED
  • Gated path modified: static/schemas/source/protocol/get-adcp-capabilities-response.json (matches static/schemas/source/**) — human/CODEOWNERS approval required; review_decision is REVIEW_REQUIRED, not APPROVED
  • This PR touches a path under a hard, non-overridable approval gate (.github/workflows/training-agent-storyboards.yml (modified) matches .github/workflows/**; static/schemas/source/protocol/get-adcp-capabilities-response.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.

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

1 participant