Skip to content

Define legacy and compact lifecycle compatibility - #6733

Merged
bokelley merged 4 commits into
mainfrom
audit-lifecycle-split-risks
Aug 20, 2026
Merged

bokelley merged 4 commits into
mainfrom
audit-lifecycle-split-risks

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Closes #6716

Summary

  • define executable compatibility rules for legacy products-only discovery and compact product lifecycles
  • document transaction boundaries and failure semantics when legacy compound operations are split
  • add a typed legacy purchase continuation contract plus cross-version compliance vectors
  • make the training seller enforce atomic inline-creative, proposal, cancellation, account-binding, and replay behavior

Validation

  • protocol compatibility and schema projection tests
  • schema deprecation metadata tests
  • TypeScript typecheck
  • 701 focused training-agent runtime tests
  • full pre-commit suite: 6,404 of 6,405 tests passed before an isolated regression was fixed; the affected test and focused runtime suite pass after the fix

Local push storyboard orchestration could not discover any of its temporary training servers; GitHub CI is the authoritative matrix.

@bokelley
bokelley marked this pull request as ready for review August 20, 2026 16:38
@gitguardian

gitguardian Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

️✅ There are no secrets present in this pull request anymore.

If these secrets were true positive and are still valid, we highly recommend you to revoke them.
While these secrets were previously flagged, we no longer have a reference to the
specific commits where they were detected. Once a secret has been leaked into a git
repository, you should consider it compromised, even if it was deleted immediately.
Find here more information about risks.


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@bokelley
bokelley force-pushed the audit-lifecycle-split-risks branch from e2b8cbb to 5e669a9 Compare August 20, 2026 16:40
@bokelley

Copy link
Copy Markdown
Contributor Author

Addressed the GitGuardian findings: the three matches were identical synthetic UUID-shaped continuation fixtures. They have been replaced with explicit human-readable test tokens, the branch history was rewritten so the flagged value is no longer present in the PR commits, and all 429 composed-schema tests pass.

@aao-secretariat aao-secretariat Bot added the ladon/needs-human-review Ladon has escalated this PR for human review. label Aug 20, 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 review.

This PR modifies published protocol surface under static/schemas/source/** (canonical-media-buy-action, media-buy-valid-action, control-media-buy-request, package-update, request-proposals-response, update-media-buy-request, index) and adds a new legacy-purchase-continuation-input schema. These paths are under a hard, deterministic approval gate (gated_paths: true), and review_decision is REVIEW_REQUIRED — not APPROVED. Per decision rule row 2, the outcome must be escalate until a human/CODEOWNERS approval satisfies the gate.

The reviewer found no Critical/High/Medium findings: changes are additive, schema↔docs coherence holds (name declared at update-media-buy-request.json:129), the purchase_continuation oneOf is kind-discriminated with additionalProperties:false, a changeset is present, and no immutable dist/ artifacts are touched. The diff is mechanically clean — but new enum values / new fields on the published protocol surface constitute a normative wire change whose ratification is a human act, and the gate is not yet satisfied.

Escalation reasons

  • Gated paths touched without required approval: schema changes under static/schemas/source/** (7 modified + 1 added, e.g. static/schemas/source/media-buy/request-proposals-response.json) require human/CODEOWNERS review; review_decision is REVIEW_REQUIRED.

No blocking findings; re-run once a human approval lands and the diff can fall through to approve.

Why human review

  • Gated paths: schema changes under static/schemas/source/** (7 modified, 1 added) touch the hard approval gate and review_decision is REVIEW_REQUIRED (not APPROVED); human/CODEOWNERS review required.
  • New enum values / fields on the published protocol wire surface constitute a normative change whose ratification is a human act.
  • This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/canonical-media-buy-action.json (modified) matches static/schemas/source/**; static/schemas/source/enums/media-buy-valid-action.json (modified) matches static/schemas/source/**; static/schemas/source/index.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/control-media-buy-request.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/legacy-purchase-continuation-input.json (added) matches static/schemas/source/**; static/schemas/source/media-buy/package-update.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/request-proposals-response.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/update-media-buy-request.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 schema paths require human/CODEOWNERS approval.

This PR modifies and adds files under static/schemas/source/**, which are under a hard, deterministic approval gate (gated_paths: true). The required review status is REVIEW_REQUIRED, not APPROVED, so decision-table row 2 fires: the gate is not satisfied and the outcome must be escalate (no blocking critical/high findings exist that would instead make this request-changes).

The reviewer verified the change is coherent: schema↔docs move together, the changeset is present and typed minor, oneOf continuations are kind-discriminated, and released dist/** artifacts are untouched. Only one Low diagnostic-accuracy follow-up was noted (not blocking). Even so, protocol-surface schema changes cannot auto-merge without a human/CODEOWNERS approval.

Escalation reasons:

  • Modifies/adds gated protocol-schema files under static/schemas/source/** (e.g. canonical-media-buy-action.json, media-buy-valid-action.json, control-media-buy-request.json, legacy-purchase-continuation-input.json (added), package-update.json, request-proposals-response.json, update-media-buy-request.json) — human/CODEOWNERS review required because review_decision is REVIEW_REQUIRED.

Non-blocking Medium/Low findings:

  • server/src/training-agent/task-handlers.ts:11332 — root-cancellation ignored_fields warning may list version-envelope fields as ignored (Low).

Why human review

  • Modifies/adds gated protocol-schema files under static/schemas/source/** while review_decision is REVIEW_REQUIRED (not APPROVED) — human/CODEOWNERS approval required per hard approval gate (decision row 2).
  • This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/canonical-media-buy-action.json (modified) matches static/schemas/source/**; static/schemas/source/enums/media-buy-valid-action.json (modified) matches static/schemas/source/**; static/schemas/source/index.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/control-media-buy-request.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/legacy-purchase-continuation-input.json (added) matches static/schemas/source/**; static/schemas/source/media-buy/package-update.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/request-proposals-response.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/update-media-buy-request.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 schema paths require human/CODEOWNERS approval, and a breaking-class protocol change is present.

This PR modifies multiple files under static/schemas/source/**, which are under the repo's hard, deterministic approval gate (gated_paths: true). review_decision is REVIEW_REQUIRED, not APPROVED, so the gate is not satisfied and the PR cannot be approved. Per decision table row 2, this forces escalate.

Independently, this is a substantial compatibility PR reshaping the media-buy wire surface (projection-only products_available outcome, update_name routing, cancellation precedence, atomic inline-creative/assignment validation, invoice_recipient, accepted-proposal successor coherence, new purchase_continuation oneOf). Even a clean protocol change of this class is a human ratification act, not an auto-approve. No critical/high findings were surfaced by the reviewer, and schema↔docs coherence, changeset scope, and oneOf discrimination all check out.

Medium findings

  • server/src/training-agent/task-handlers.ts:12124 — control_media_buy delivery controls mint an accepted-proposal successor, changing accepted terms

A human/CODEOWNERS review is required to lift the schema-path gate and to ratify the protocol changes; a reviewer should also confirm whether the successor-minting behavior on in-envelope delivery controls is intended.

Medium findings

  • server/src/training-agent/task-handlers.ts:12124 — control_media_buy delivery controls mint an accepted-proposal successor, changing accepted terms

Why human review

  • Gated paths: PR modifies static/schemas/source/** (canonical-media-buy-action.json, media-buy-valid-action.json, index.json, control-media-buy-request.json, legacy-purchase-continuation-input.json, package-update.json, request-proposals-response.json, update-media-buy-request.json) under a hard approval gate; review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS review required.
  • Breaking-class protocol surface change (media-buy wire-shape reshaping and new oneOf) is never auto-approved; ratification is a human act.
  • Medium finding: control_media_buy delivery controls mint an accepted-proposal successor, changing accepted terms — a human should confirm intent.
  • This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/canonical-media-buy-action.json (modified) matches static/schemas/source/**; static/schemas/source/enums/media-buy-valid-action.json (modified) matches static/schemas/source/**; static/schemas/source/index.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/control-media-buy-request.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/legacy-purchase-continuation-input.json (added) matches static/schemas/source/**; static/schemas/source/media-buy/package-update.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/request-proposals-response.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/update-media-buy-request.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
bokelley requested a review from patmmccann August 20, 2026 17:00
@bokelley

Copy link
Copy Markdown
Contributor Author

@patmmccann Requested for the required human protocol/schema approval. Expert review found no remaining Critical/High/Medium findings; the control-path finding and diagnostic low were fixed, both inline threads are resolved, and the full local precommit suite passed (6,413 tests, 30 skipped). The PR documents and tests the legacy↔compact lifecycle compatibility contract needed for 3.2 beta.4.

@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 — hard approval gate unsatisfied + breaking-class protocol change.

This PR reshapes the media-buy wire surface: modifies canonical-media-buy-action.json, media-buy-valid-action.json, index.json, control-media-buy-request.json, package-update.json, request-proposals-response.json, update-media-buy-request.json, and adds legacy-purchase-continuation-input.json — all under static/schemas/source/**, a hard, non-overridable approval gate. review_decision is not APPROVED (unknown/none), so the gate is not satisfied.

Independently, per the repo's "Breaking-class changes are never auto-approved" hard gate, a breaking-class protocol surface change (wire-shape reshaping plus a new legacy-compat oneOf) is never auto-approved even with a correct major changeset — ratification is a human act.

Iteration credit: The prior escalate run's medium finding — control_media_buy minting an accepted-proposal successor and rewriting accepted terms — is resolved. A new operationalControlExecution flag threaded from handleControlMediaBuyUnlocked short-circuits the successor-mint, and control_media_buy retains its own accepted-envelope enforcement (REQUOTE_REQUIRED). The version gate is applied consistently across create/update/new-packages with no null-deref, and tests pin adcp_version to keep strict validation asserted. No new blocking or medium findings this run. Net improvement — but the gated-path and breaking-class hard gates still require human/CODEOWNERS approval before merge.

Escalation reasons

  • static/schemas/source/** (8 files) touched under a hard approval gate; review_decision is not APPROVED — human/CODEOWNERS review required.
  • Breaking-class protocol wire-shape change (media-buy reshaping + new legacy oneOf) — ratification is a human act, never auto-approved.

Why human review

  • Gated paths: PR modifies static/schemas/source/** (canonical-media-buy-action.json, media-buy-valid-action.json, index.json, control-media-buy-request.json, legacy-purchase-continuation-input.json, package-update.json, request-proposals-response.json, update-media-buy-request.json) under a hard, non-overridable approval gate and review_decision is not APPROVED — human/CODEOWNERS review required.
  • Breaking-class protocol surface change (media-buy wire-shape reshaping plus a new legacy-compat oneOf) is never auto-approved even with a correct major changeset — ratification is a human act.
  • This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/canonical-media-buy-action.json (modified) matches static/schemas/source/**; static/schemas/source/enums/media-buy-valid-action.json (modified) matches static/schemas/source/**; static/schemas/source/index.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/control-media-buy-request.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/legacy-purchase-continuation-input.json (added) matches static/schemas/source/**; static/schemas/source/media-buy/package-update.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/request-proposals-response.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/update-media-buy-request.json (modified) matches static/schemas/source/**) and the current GitHub review decision is 'unknown', 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 schema paths require human/CODEOWNERS approval and this is a breaking-class protocol change.

This PR modifies the protocol source of truth under static/schemas/source/** (canonical-media-buy-action.json, media-buy-valid-action.json, index.json, control-media-buy-request.json, package-update.json, request-proposals-response.json, update-media-buy-request.json — modified; legacy-purchase-continuation-input.json — added). gated_paths: true and review_decision: REVIEW_REQUIRED (not APPROVED), so the hard, non-overridable approval gate (decision-table row 2) is not satisfied.

Separately, this is a breaking-class protocol surface change (media-buy wire-shape reshaping plus a new legacy-compat oneOf). Per the repo's "Breaking-class changes are never auto-approved" hard gate, ratification is a human act and requires an APPROVED review decision, which is absent here.

The reviewer found no actionable critical/high/medium findings this pass — the three-file delta (task-handlers.ts allowedFields addition, tenant-smoke.test.ts assertion strengthening, mcp-schema-projection.test.cjs dead-code cleanup) is clean and correct. The clean diff does not lift the gate: only a recorded human/CODEOWNERS approval does.

Escalation reasons

  • Modifies gated static/schemas/source/** files while review_decision is REVIEW_REQUIRED — human/CODEOWNERS approval required before merge.
  • Breaking-class protocol surface change (media-buy wire-shape reshaping + new legacy-compat oneOf) — never auto-approved; requires human ratification.

Why human review

  • Modifies gated static/schemas/source/** files (canonical-media-buy-action.json, media-buy-valid-action.json, index.json, control-media-buy-request.json, legacy-purchase-continuation-input.json, package-update.json, request-proposals-response.json, update-media-buy-request.json) while review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS review required (decision-table row 2).
  • Breaking-class protocol surface change (media-buy wire-shape reshaping plus a new legacy-compat oneOf) is never auto-approved even with a correct major changeset — ratification is a human act, and review_decision is not APPROVED.
  • This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/canonical-media-buy-action.json (modified) matches static/schemas/source/**; static/schemas/source/enums/media-buy-valid-action.json (modified) matches static/schemas/source/**; static/schemas/source/index.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/control-media-buy-request.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/legacy-purchase-continuation-input.json (added) matches static/schemas/source/**; static/schemas/source/media-buy/package-update.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/request-proposals-response.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/update-media-buy-request.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 schema paths under REVIEW_REQUIRED plus breaking-class protocol change.

This PR modifies protocol source of truth under static/schemas/source/** (canonical-media-buy-action.json, media-buy-valid-action.json, index.json, control-media-buy-request.json, package-update.json, request-proposals-response.json, update-media-buy-request.json — all modified — and legacy-purchase-continuation-input.json added). gated_paths is true and review_decision is REVIEW_REQUIRED, not APPROVED. Decision-table row 2 forces escalation: the hard, non-overridable approval gate is not satisfied without a human/CODEOWNERS approval.

Additionally, this is a breaking-class protocol surface change (media-buy wire-shape reshaping plus a new legacy-compat oneOf), which is never auto-approved even with a correct major changeset — ratification is a human act (repo hard gate).

Escalation reasons

  • Modifies gated static/schemas/source/** files while review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS review required (row 2).
  • Breaking-class media-buy wire-shape reshaping + new legacy-compat oneOf — breaking changes are never auto-approved absent an APPROVED review.

Iteration note: The delta since the prior escalate touches only scripts/overlay-compliance-cache.sh (CI/test overlay tooling, idempotent, no blocking or medium findings). No new actionable findings, but the underlying gate condition (REVIEW_REQUIRED on gated schema paths) still holds, so escalation persists on that deterministic basis rather than as sticky escalation.

No blocking (critical/high) or medium findings were reported in this run.

Why human review

  • Modifies gated static/schemas/source/** files (canonical-media-buy-action.json, media-buy-valid-action.json, index.json, control-media-buy-request.json, legacy-purchase-continuation-input.json, package-update.json, request-proposals-response.json, update-media-buy-request.json) while review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS review required (decision-table row 2).
  • Breaking-class protocol surface change (media-buy wire-shape reshaping plus a new legacy-compat oneOf) is never auto-approved even with a correct major changeset — ratification is a human act, and review_decision is not APPROVED.
  • This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/canonical-media-buy-action.json (modified) matches static/schemas/source/**; static/schemas/source/enums/media-buy-valid-action.json (modified) matches static/schemas/source/**; static/schemas/source/index.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/control-media-buy-request.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/legacy-purchase-continuation-input.json (added) matches static/schemas/source/**; static/schemas/source/media-buy/package-update.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/request-proposals-response.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/update-media-buy-request.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

Copy link
Copy Markdown
Contributor Author

All 50 CI checks are now green, including current and 3.0-compat storyboard matrices. @patmmccann @ohalushchak-exadel — the remaining blocker is the required human schema/protocol approval.

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.

AdCP 3.2 needs an actionable products-only brief compatibility path

1 participant