Repository navigation
Resolve GA protocol safety gaps in idempotency, MCP sessions, and media-buy names - #7606
Conversation
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated schema paths require human/CODEOWNERS approval.
This PR modifies published protocol source under static/schemas/source/**, which is a deterministic hard approval gate (gated_paths: true). The current review_decision is REVIEW_REQUIRED, not APPROVED, so per decision-table row 2 the gate is not satisfied and the outcome must be escalate.
The reviewer found the change to be a clean, coherent 3.2 spec PR bundling three additive changes (MediaBuy name on compact commitments, MCP sessions non-authoritative, deletion-independent idempotency ledger + COMMITTED_RESOURCE_PURGED) with correct schema↔docs alignment, three minor protocol-scoped changesets, DR-0021/DR-0022 governance records, and passing tests. There are no blocking (critical/high) findings.
Medium findings
- The new
force_media_buy_purgedoc and storyboard omit the schema-requiredprevious_stateon the purge response.
Escalation reasons
- Modifies gated files under
static/schemas/source/**(comply-test-controller-request/response, error-code enum, accept-proposal-request, buy-products-request, media-buy-commitment-response, get-adcp-capabilities-response) whilereview_decisionisREVIEW_REQUIRED. Human/CODEOWNERS approval is required before this can merge.
Why human review
- Modifies gated schema files under static/schemas/source/** (7 files) while review_decision is REVIEW_REQUIRED — human/CODEOWNERS approval required before merge.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/compliance/comply-test-controller-request.json (modified) matches
static/schemas/source/**; static/schemas/source/compliance/comply-test-controller-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/error-code.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/accept-proposal-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/buy-products-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/media-buy-commitment-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/protocol/get-adcp-capabilities-response.json (modified) matchesstatic/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.
d8f5ffc to
58a9cb4
Compare
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated schema files require human/CODEOWNERS approval; one Medium finding present.
This is a subsequent pass on a prior escalate. The developer's three additive changesets (MediaBuy name, MCP-sessions-non-authoritative, idempotency-after-deletion + COMMITTED_RESOURCE_PURGED) are schema↔docs coherent, correctly scoped, and add no undiscriminated oneOf — good iteration. However, two gates keep this escalated:
- Gated paths (row 2): The PR modifies 7 files under
static/schemas/source/**, a hard non-overridable approval gate, whilereview_decisionisREVIEW_REQUIRED(notAPPROVED). Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded. - Sticky escalation (row 6): Prior decision was
escalate, and this run surfaces a fresh Medium finding, so the escalation persists with fresh evidence.
Medium findings
- docs/snippets/compliance-storyboard-inventory.mdx — new
replay_after_resource_purgestoryboard phase purgesinitial_media_buy_idbefore the unchangedverify_media_buy_countphase queries it; false-negative risk for sellers advertisingforce_media_buy_purge.
Escalation reasons
- Modifies gated schema files under
static/schemas/source/**(7 files) whilereview_decisionisREVIEW_REQUIRED— human/CODEOWNERS approval required before merge. - Prior escalate + fresh Medium finding (storyboard phase-ordering) — sticky escalation with current evidence.
Why human review
- Modifies gated schema files under static/schemas/source/** (7 files) while review_decision is REVIEW_REQUIRED — human/CODEOWNERS approval required before merge (hard gate, row 2).
- Prior decision was escalate and this run surfaces a fresh Medium finding (replay_after_resource_purge purges initial_media_buy_id before verify_media_buy_count queries it) — sticky escalation persists with current evidence (row 6).
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/compliance/comply-test-controller-request.json (modified) matches
static/schemas/source/**; static/schemas/source/compliance/comply-test-controller-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/error-code.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/accept-proposal-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/buy-products-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/media-buy-commitment-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/protocol/get-adcp-capabilities-response.json (modified) matchesstatic/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.
58a9cb4 to
7257a9c
Compare
|
Addressed the second Ladon finding in 7257a9c: |
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated schema files require human/CODEOWNERS approval.
This PR modifies 7 files under static/schemas/source/**, which are under a hard, non-overridable approval gate (gated_paths: true). The current review_decision is unknown/none — NOT APPROVED. Per decision rule row 2, Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
The reviewer reported a clean pass: MediaBuy name compact surfaces, non-authoritative unsigned MCP sessions, and deletion-independent idempotency ledgers (new COMMITTED_RESOURCE_PURGED terminal code) are schema↔docs coherent, carry correct minor changesets, introduce no oneOf regression, touch no immutable dist artifacts, and are backed by matching tests. No Critical/High/Medium findings — the prior run's medium finding (replay_after_resource_purge ordering) is no longer present and appears resolved.
Blocking findings: none.
Escalation reasons:
- Modifies 7 gated schema files under
static/schemas/source/**whilereview_decisionis not APPROVED — human/CODEOWNERS approval required before merge (hard gate, row 2). - New protocol surface (new error code, MCP session authority policy, idempotency-ledger semantics) plus governance ratification of DR-0021/DR-0022 is a human act per repo constitution — cannot auto-approve without recorded approval.
Note: the prior escalation was also driven partly by a fresh medium finding (row 6); that finding is now absent, so sticky escalation alone would not persist — but the gated-paths hard gate (row 2) independently forces escalation until a human approval lands.
Why human review
- Modifies 7 gated schema files under static/schemas/source/** (comply-test-controller-request.json, comply-test-controller-response.json, error-code.json, accept-proposal-request.json, buy-products-request.json, media-buy-commitment-response.json, get-adcp-capabilities-response.json) while review_decision is not APPROVED — human/CODEOWNERS approval required before merge (hard gate, row 2).
- New protocol surface including a new error code (COMMITTED_RESOURCE_PURGED), MCP session non-authority policy, and deletion-independent idempotency semantics, plus governance ratification of DR-0021/DR-0022 — ratification is a human act per repo constitution and cannot auto-approve without recorded approval.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/compliance/comply-test-controller-request.json (modified) matches
static/schemas/source/**; static/schemas/source/compliance/comply-test-controller-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/error-code.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/accept-proposal-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/buy-products-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/media-buy-commitment-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/protocol/get-adcp-capabilities-response.json (modified) matchesstatic/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.
Summary
COMMITTED_RESOURCE_PURGEDnameto compact commitment requests and responses with deterministic proposal fallbackCompliance and governance
Closes #7575
Closes #7566
Closes #7536
Validation
Open workspace in Conductor