Skip to content

Resolve GA protocol safety gaps in idempotency, MCP sessions, and media-buy names - #7606

Merged
bokelley merged 1 commit into
mainfrom
bridgetown-v1
Sep 20, 2026
Merged

bokelley merged 1 commit into
mainfrom
bridgetown-v1

Conversation

@bokelley

@bokelley bokelley commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • make idempotency ledgers independent of created resources, retain ambiguous claims through reconciliation, and add terminal COMMITTED_RESOURCE_PURGED
  • make unsigned MCP transport sessions explicitly non-authoritative and scope task state by authenticated principal/account
  • add MediaBuy name to compact commitment requests and responses with deterministic proposal fallback

Compliance and governance

  • add proposed DR-0021 and DR-0022
  • add controller-gated purge/replay coverage and recovery vectors
  • include three minor changesets

Closes #7575
Closes #7566
Closes #7536

Validation

  • full precommit suite (648 server files / 10,844 tests, plus 1,063 root tests)
  • schema validation (35/35)
  • focused protocol tests (14/14)
  • compliance build/check and storyboard schema lints
  • candidate-mode storyboard smoke: signals 54 clean / 115 passing steps
  • authoritative GitHub storyboard matrix and required checks

Open workspace in Conductor

@bokelley
bokelley enabled auto-merge (squash) September 20, 2026 02:31

@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 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_purge doc and storyboard omit the schema-required previous_state on 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) while review_decision is REVIEW_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) matches static/schemas/source/**; static/schemas/source/enums/error-code.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/accept-proposal-request.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/buy-products-request.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/media-buy-commitment-response.json (modified) matches static/schemas/source/**; 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 Sep 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 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:

  1. Gated paths (row 2): The PR modifies 7 files under static/schemas/source/**, a hard non-overridable approval gate, while review_decision is REVIEW_REQUIRED (not APPROVED). Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded.
  2. 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_purge storyboard phase purges initial_media_buy_id before the unchanged verify_media_buy_count phase queries it; false-negative risk for sellers advertising force_media_buy_purge.

Escalation reasons

  • Modifies gated schema files under static/schemas/source/** (7 files) while review_decision is REVIEW_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) matches static/schemas/source/**; static/schemas/source/enums/error-code.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/accept-proposal-request.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/buy-products-request.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/media-buy-commitment-response.json (modified) matches static/schemas/source/**; 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.

Copy link
Copy Markdown
Contributor Author

Addressed the second Ladon finding in 7257a9c: verify_media_buy_count now runs before replay_after_resource_purge, so the initial MediaBuy is still queryable for the count assertion before the purge/replay invariant executes. Added a focused ordering regression assertion; 14/14 focused tests and compliance build/check pass.

@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 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/** while review_decision is 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) matches static/schemas/source/**; static/schemas/source/enums/error-code.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/accept-proposal-request.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/buy-products-request.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/media-buy-commitment-response.json (modified) matches static/schemas/source/**; static/schemas/source/protocol/get-adcp-capabilities-response.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.

@bokelley
bokelley disabled auto-merge September 20, 2026 08:23
@bokelley
bokelley merged commit 6947106 into main Sep 20, 2026
61 checks passed
@bokelley
bokelley deleted the bridgetown-v1 branch September 20, 2026 08:23
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