Skip to content

feat(extensions): register AdCP opportunity discovery bridge - #7904

Merged
bokelley merged 2 commits into
mainfrom
feat/adcp-opportunity-extension
Oct 3, 2026
Merged

bokelley merged 2 commits into
mainfrom
feat/adcp-opportunity-extension

Conversation

@bokelley

@bokelley bokelley commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Legacy get_products in AdCP 3.2 cannot carry the core opportunity context that the compact proposal tasks already support. Register ext.adcp.opportunity as an optional AdCP-owned bridge, reusing the unchanged published 3.2.1 OpportunityContext object so cooperating buyers and sellers can associate discovery with a planning cycle while #7902's core field remains 3.3 work.

The binding requires explicit seller support, authorized account scope, durable proposal association, and preservation through refinement. Discovery lifecycle fields are snapshots; transitions retain their existing task contracts. Existing core opportunity fields take precedence, and buyers migrate to the core field when negotiated support is available. Registration does not deploy seller persistence or migrate vendor extensions.

The builder permits only the canonical AdCP-owned registry entry through the reserved-namespace guard. Other reserved names remain unavailable to vendors. valid_from: "3.2" declares compatibility, not a rewrite of any released registry; the extension remains pinned to the 3.2.1 core schema. The general schema-validation test loader resolves published references from their exact immutable release directory, without network requests or a current-source fallback. The registry links the repository's documentation source because the clean docs route still redirects to the immutable 3.2.1 snapshot. No released artifacts or legacy request fields change. A minor protocol changeset records the new registry surface.

This is a non-breaking Normative proposal, implementing the decision memo on #7902. DR-0009 controls schema openness; this preserves it. Schema-source paths require the repository's human review gate before merge. Agent protocol and buyer-workflow reviews supplement that gate.

Validation:

  • Extension validation, reserved-namespace protection, real registry publication, pinned 3.2.1 request and opportunity validation, and CI test-registration checks pass.
  • Schema URI/subschema tests, schema-backed documentation examples, and the documentation field audit pass with no new findings.
  • Full schema build, immutable-release checks, changeset scope and Changesets CLI status pass.
  • Normal commit hooks pass: 1,094 root tests, the full server unit suite, dynamic-import and format-identity guards, state-change checks, and type checks.
  • All four canonical CI shards pass locally (105 stages, with the full server suite run separately). The final shard includes the pinned-reference loader fix and passes all general schema and example validation.

Refs #7902. The core get_products.opportunity issue stays open.

@bokelley
bokelley enabled auto-merge (squash) October 3, 2026 16:17

@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-path approval gate not yet satisfied.

This PR cleanly registers the AdCP-owned ext.adcp.opportunity extension bridge. The reviewer found no Critical/High/Medium findings: the change is additive/normative (non-breaking), carries a correct minor changeset, schema↔docs stay coherent, no new undiscriminated oneOf, released artifacts are untouched (inner $ref pins to frozen 3.2.1), DR-0009 additionalProperties:true is preserved, and the reserved-namespace guard exception is narrow and well-tested.

However, the PR modifies/adds files under static/schemas/source/** (core/ext.json modified, extensions/adcp.json added), which places it under the deterministic hard approval gate (gated_paths: true). review_decision is REVIEW_REQUIRED, not APPROVED, so decision-table row 2 fires: the gate is not satisfied and the outcome must be escalate. Human/CODEOWNERS review of the schema-source changes is required before this can merge.

No blocking findings exist on the merits — once a human/CODEOWNERS approval lands, this should fall through to a clean approve.

Escalation reasons

  • static/schemas/source/core/ext.json (modified) and static/schemas/source/extensions/adcp.json (added) are under the hard approval gate; review_decision is REVIEW_REQUIRED. Human/CODEOWNERS approval required.

Why human review

  • Gated paths touched (static/schemas/source/core/ext.json modified, static/schemas/source/extensions/adcp.json added) with review_decision=REVIEW_REQUIRED — human/CODEOWNERS approval required before merge (decision table row 2).
  • This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/ext.json (modified) matches static/schemas/source/**; static/schemas/source/extensions/adcp.json (added) 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 Oct 3, 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 approval.

This PR modifies static/schemas/source/core/ext.json and adds static/schemas/source/extensions/adcp.json, both of which match the static/schemas/source/** gated-paths glob. gated_paths is true and review_decision is REVIEW_REQUIRED (not APPROVED), so the hard approval gate (decision rule row 2) is not satisfied.

The reviewer found no Critical, High, or Medium findings — this is a clean, non-breaking Normative addition registering the optional AdCP-owned ext.adcp.opportunity bridge for 3.2 get_products, with correct minor changeset, preserved DR-0009 openness, intact reserved-namespace guard, and comprehensive new tests. The diff is mechanically sound, but the gated schema-source files require explicit human/CODEOWNERS review before merge.

Escalation reasons

  • Touches gated paths static/schemas/source/core/ext.json (modified) and static/schemas/source/extensions/adcp.json (added); review_decision is REVIEW_REQUIRED. Human/CODEOWNERS approval required to satisfy the hard approval gate.

Why human review

  • Touches gated schema-source paths static/schemas/source/core/ext.json (modified) and static/schemas/source/extensions/adcp.json (added) while review_decision is REVIEW_REQUIRED — human/CODEOWNERS approval required to satisfy the hard approval gate.
  • This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/ext.json (modified) matches static/schemas/source/**; static/schemas/source/extensions/adcp.json (added) 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 disabled auto-merge October 3, 2026 21:27
@bokelley
bokelley merged commit f924f6f into main Oct 3, 2026
65 checks passed
@bokelley
bokelley deleted the feat/adcp-opportunity-extension branch October 3, 2026 21:27
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.

1 participant