Skip to content

docs(governance): align campaign-governance pages with the specification and schemas - #8931

Merged
bokelley merged 1 commit into
mainfrom
docs/governance-coherence-errata-8733
Nov 13, 2026
Merged

bokelley merged 1 commit into
mainfrom
docs/governance-coherence-errata-8733

Conversation

@lukasz-pubx

Copy link
Copy Markdown
Contributor

Summary

PR 1 of 3 for #8733, with the scope set out in this comment: the errata where the specification or the schema already wins and the losing page simply changes. No wire field, enum member or schema validation outcome changes.

Refs #8733. It does not close it; PR 2 (A1, A4, B1, C1 to C3, C4.3, C4.4) and PR 3 (B2, C4.1, C4.2) are separate.

What changes

Item Files Change
A2 campaign/audit-trail.mdx Governance mode is agent configuration, not a plan field set through sync_plans. A different mode on two entries reflects a configuration change, not a plan revision.
A3 campaign/safety-model.mdx, campaign/specification.mdx, campaign/tasks/report_plan_outcome.mdx The safety model no longer promises budget reservation; it states the point-in-time limitation the specification already states. "Reserve" no longer has two meanings: where the pages said an intent or governance reserves an amount, they say the ledger commits it when the outcome is reported.
A5 campaign/tasks/get_plan_audit_logs.mdx Field table row plans[].entries[].status becomes verdict, as in the schema and every example.
A6 campaign/tasks/sync_plans.mdx, governance/overview.mdx A re-sync increments the version; active buys are evaluated against the updated plan on their next check_governance call, as the specification says.
A7 campaign/tasks/get_plan_audit_logs.mdx The delivery outcome example is buyer-called, matching report_plan_outcome ("Sellers do not call this task").
A8 campaign/specification.mdx, audit-trail.mdx, safety-model.mdx, index.mdx Drift metrics use the schema vocabulary: escalations[], escalation_rate, escalation_rate_trend, thresholds.escalation_rate_min / escalation_rate_max. One sentence relates summary.escalations[] to summary.statuses.human_reviewed.
A9 campaign/tasks/check_governance.mdx, campaign/specification.mdx The three geo findings use geo_compliance, matching categories_evaluated on the same page.
B3 static/schemas/source/governance/check-governance-response.json The else branch for responses without check_type gets a description identifying it as the legacy compatibility shape accepted during 3.x migration.
C5 campaign/specification.mdx, static/schemas/source/protocol/get-adcp-capabilities-response.json The trailing-window aggregation key is (owner_principal, seller_agent).

All doc paths are under docs/governance/.

Notes for review

  • C5 is the one item here that can change agent behaviour, so please confirm it belongs in a patch. No governance schema has ever carried an account_id field (checked from 3.0.0), so the old key's third element was always derived: 3.0 and 3.1 schemas said "the governance agent resolves account from the plan", and get-plan-audit-logs-request.json:21 on main still does. An agent that derives an account that way and partitions its aggregate by it satisfies the conformance row at specification.mdx:429-436 today and would not after this change. If that makes C5 unsuitable for the 3.2.x backport, it can move to PR 2 and the rest of this PR is unaffected.
  • C5 touches one file the issue did not list. The governance.aggregation_window_days description in get-adcp-capabilities-response.json named the old tuple too. The widening example at specification.mdx:421 named the removed element, so it now reads "collapsing across owner_principal so two buyer principals share an aggregate".
  • C5, two things left alone. get-plan-audit-logs-request.json:21 still says plans scope "account and operator". specification.mdx:440 says sellers also declare an aggregation window, and a seller cannot always tell a plan owner from its delegate. Both need a decision, not an edit.
  • B3 wording. The issue comment calls the legacy branch "3.0-compat". Released schemas show check_type absent through 3.1.x and present from 3.2, and a 3.0 response used status where this branch requires verdict, so the description says the shape is what 3.1 governance agents emit. The description is descriptive only. It does not start with "Deprecated", because the repository lint then requires deprecated: true on the node, and annotating the branch is a decision for maintainers.
  • A3, two edits beyond the issue's list. report_plan_outcome.mdx:70 is the sentence the issue cited for the second meaning of "reserve", so it is reworded. governance/overview.mdx:244-252 describes an "Execute" phase in which the authorized amount is "reserved", with a diagram that says the same; that is left alone because it involves an image.
  • A9, index page. The issue said index.mdx lacked the "agent-internal, not a protocol enum" note. That was wrong: the note is already above the table.
  • Not in this PR. The unapproved-seller example in audit-trail.mdx is A4 and is left as it is.

Patch eligibility

Apart from C5 (see the first note), each edit moves a page to the rule the specification or schema already states, or renames prose to fields the schema already defines. A patch changeset is included because static/schemas/source/ descriptions change.

Verification

Run locally on this branch:

  • npm run test:schemas, test:json-schema, test:examples, test:mcp-schema-projection, test:docs-nav, test:owned-links: pass
  • node scripts/check-docs-mdx-syntax.mjs: pass
  • node scripts/docs-json-field-audit.cjs: no new findings
  • node scripts/check-changeset-protocol-scope.cjs origin/main and changeset status: pass
  • npm run test:snippets fails locally in three media-buy and creative pages that need the Python SDK installed; no page in this PR has runnable snippets.
  • Pre-commit hook (root unit tests, server unit suite, typecheck) on Node 24.22.1: pass

🤖 Generated with Claude Code

…ion and schemas

PR 1 of 3 for #8733: errata where the specification or the schema
already wins and the losing page changes.

- A2: governance mode is agent configuration, not a plan field
- A3: no budget reservation; "reserve" keeps one meaning
- A5: audit-log field table names verdict, not status
- A6: a re-sync does not re-validate active buys
- A7: the delivery outcome example is buyer-called
- A8: drift metrics use the schema vocabulary (escalation_rate, ...)
- A9: geo findings use geo_compliance
- B3: describe the legacy check_governance response branch
- C5: aggregation key is (owner_principal, seller_agent)

No wire field, enum member or schema validation outcome changes.

Refs #8733

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@lukasz-pubx
lukasz-pubx requested a review from bokelley November 11, 2026 18:44
@aao-ipr-bot

aao-ipr-bot Bot commented Nov 11, 2026

Copy link
Copy Markdown

IPR Policy Agreement Required

@lukasz-pubx — thanks for the contribution. Before this PR can be merged, the AgenticAdvertising.Org IPR Policy requires your agreement.

To agree, post a new comment on this PR with the exact phrase:

I have read the IPR Policy

Your signature is recorded once and covers all contributions to AAO repositories. See signatures/README.md for what gets recorded and why.

@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 approval.

This PR modifies two files under static/schemas/source/**, which are under a hard, deterministic approval gate (gated_paths: true). The current review_decision is REVIEW_REQUIRED, not APPROVED, so the gate is not satisfied and the PR cannot be auto-approved (decision rule row 2).

The reviewer's substantive assessment is clean: no Critical/High/Medium findings. Doc field renames were verified against shipped schemas (docs were drifting, this corrects docs→schema), both schema edits are description-only with no validation-outcome change (matching the patch changeset), and the one normative aggregation-key change lands on an experimental surface on main and tightens the fragmentation defense. There are no blocking findings — this escalation is purely the deterministic gated-paths requirement.

Escalation reasons

  • static/schemas/source/governance/check-governance-response.json and static/schemas/source/protocol/get-adcp-capabilities-response.json are under the static/schemas/source/** approval gate; human/CODEOWNERS review is required (review_decision is REVIEW_REQUIRED).

Why human review

  • Modifies gated-path files static/schemas/source/governance/check-governance-response.json and static/schemas/source/protocol/get-adcp-capabilities-response.json; human/CODEOWNERS review required since review_decision is REVIEW_REQUIRED, not APPROVED.
  • This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/governance/check-governance-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.

@lukasz-pubx

Copy link
Copy Markdown
Contributor Author

I have read the IPR Policy

@aao-secretariat aao-secretariat Bot added the ladon/needs-human-review Ladon has escalated this PR for human review. label Nov 11, 2026
@aao-ipr-bot

aao-ipr-bot Bot commented Nov 11, 2026

Copy link
Copy Markdown

IPR Policy — signed

Thanks, @lukasz-pubx. Your agreement to the IPR Policy is recorded at signatures/ipr-signatures.json and applies to all AAO repositories.

aao-ipr-bot Bot pushed a commit that referenced this pull request Nov 11, 2026

@bokelley bokelley 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.

Approving on c4b2560. The errata match the specification and schemas. The two schema changes only touch descriptions and change no validation outcome. C5 ships with this on main for 3.3 and stays out of the 3.2.x backport (see #8733).

@bokelley
bokelley merged commit e212baa into main Nov 13, 2026
67 checks passed
@bokelley
bokelley deleted the docs/governance-coherence-errata-8733 branch November 13, 2026 16:11
bokelley added a commit that referenced this pull request Nov 16, 2026
…ion and schemas (3.2.x backport of #8931) (#8980)

Backports #8931 (adcp#8733 PR 1) to 3.2.x without its C5 change. The
trailing-window aggregation key stays (buyer_agent, seller_agent, account_id)
on 3.2.x; the re-key to (owner_principal, seller_agent) changes behaviour for
agents that partition by an account derived from the plan, so it ships in 3.3
only.

(cherry picked from commit e212baa)

Co-authored-by: Lukasz Szczesiak <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
@aao-release-bot aao-release-bot Bot mentioned this pull request Nov 20, 2026
KonstantinMirin pushed a commit to KonstantinMirin/adcp that referenced this pull request Nov 21, 2026
Brings the published 3.2.12 release records to main.

Resolved:
- package.json, package-lock.json, static/schemas/source/index.json: main's.
- static/compliance/published-versions.json: main's in this merge; the
  registration commit adds 3.1.34 and 3.2.12 after qualification.
- CHANGELOG.md: main's plus the 3.2.12 block (forward-merge-release-records.cjs changelog).
- dist/schemas/index.json, latest.json: 3.2.x's, regenerated in the next commit.
- docs/governance/campaign/audit-trail.mdx and tasks/sync_plans.mdx: main's.
  adcontextprotocol#8980 is the 3.2 backport of adcontextprotocol#8931, which main carries in full.
- tests/addie/compliance-validate-input-gates.test.ts: reverted to main's.
  adcontextprotocol#9000's 30 s timeout is 3.2.x-only; main caches the storyboard lookup (adcontextprotocol#8507).

adcontextprotocol#9128 (3.2.x backport of adcontextprotocol#8894) auto-merged with no net change: 3.2.x's
webhook-emission files equal main's.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

2 participants