Skip to content

docs(governance): align campaign-governance pages with the specification and schemas (3.2.x backport of #8931, without C5) - #8980

Merged
bokelley merged 1 commit into
3.2.xfrom
backport/8931-governance-errata-3.2.x
Nov 16, 2026
Merged

bokelley merged 1 commit into
3.2.xfrom
backport/8931-governance-errata-3.2.x

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Backports #8931 (PR 1 of 3 for #8733, by @lukasz-pubx) to 3.2.x, without C5.

What's included

These are doc errata where the specification or schema already wins, so a patch can carry them:

  • A2, A3, A5–A9: governance mode as agent configuration, no budget reservation, the get_plan_audit_logs field table, re-sync semantics, escalation_* drift vocabulary, and geo_compliance findings.
  • B3: the legacy check_governance response branch gains a description. It is description-only and changes no validation outcome.

The 3.2.x schemas already carry escalation_rate, escalation_rate_trend, summary.escalations[] and statuses.human_reviewed, so the renamed drift fields match the 3.2 wire format.

What's left out

C5: the trailing-window aggregation key stays (buyer_agent, seller_agent, account_id) on 3.2.x. In this backport:

  • the three specification.mdx lines are restored to the 3.2.x text;
  • the aggregation_window_days capability description in get-adcp-capabilities-response.json is left unchanged;
  • the changeset bullet is dropped.

The re-key changes behaviour for agents that partition by an account derived from the plan, so it ships in 3.3 only (decision on #8733).

Checks

  • A clean cherry-pick of e212baa, then the C5 hunks removed. grep owner_principal finds nothing in the changed files.
  • node tests/schema-validation.test.cjs passes.

🤖 Generated with Claude Code

…ion and schemas (3.2.x backport of #8931)

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: Claude Opus 5.5 <[email protected]>
@bokelley
bokelley requested a review from lukasz-pubx November 13, 2026 16:14

@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 touched without an approving review.

This PR modifies static/schemas/source/governance/check-governance-response.json, which matches the static/schemas/source/** hard approval gate (gated_paths: true). The current review_decision is unknown/none, not APPROVED, so decision-table row 2 requires escalation and the gate cannot be lifted by a clean diff alone.

Review notes (not blocking):

  • Reviewer found no Critical/High/Medium findings. The change is a description-only annotation on the legacy else arm — no validation, oneOf, required, or dist/** impact. Schema↔docs coherence verified across the renames (drift vocabulary, entries[].verdict enum, mode-as-agent-config). A patch changeset is present and appropriate for this 3.2.x doc-errata backport.
  • No blocking findings exist; the escalation is purely the deterministic gated-path requirement.

Escalation reasons:

  • static/schemas/source/governance/check-governance-response.json is under the static/schemas/source/** hard approval gate and review_decision is not APPROVED. Human/CODEOWNERS review is required before merge.

Why human review

  • static/schemas/source/governance/check-governance-response.json is under the static/schemas/source/** hard approval gate (gated_paths: true) and review_decision is not APPROVED — human/CODEOWNERS review required.
  • 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/**) 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 added the ladon/needs-human-review Ladon has escalated this PR for human review. label Nov 13, 2026

@lukasz-pubx lukasz-pubx 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.

Reviewed against #8931 (e212baa) and the 3.2.x tree.

  • The diff is #8931 minus the C5 hunks, and nothing else. Comparing changed lines, the only differences are the three specification.mdx aggregation-key lines, the aggregation_window_days description, the C5 changeset bullet, and the changeset's first sentence.
  • Every remaining edit matches 3.2.x. get-plan-audit-logs-response.json on 3.2.x carries escalations, escalation_rate, escalation_rate_trend, thresholds.escalation_rate_min / escalation_rate_max, statuses.human_reviewed and verdict. The specification on 3.2.x already says checks do not reserve budget, that active buys are not automatically re-validated, and that mode is internal to the governance agent. check-governance-response.json on 3.2.x has check_type and the same else branch, so the B3 description is accurate there.
  • No losing phrase is left under docs/governance or the governance schemas: human_review_rate, human_reviews[], "budget reservation", "re-evaluates any active", entries[].status.
  • The links added by A3 resolve on 3.2.x (#delegations, #budget-tracking), and budget_limit exists on delegations there.

Leaving C5 out means 3.2.x keeps the (buyer_agent, seller_agent, account_id) key and the "collapsing across account_id" example, which is the intended outcome.

@bokelley
bokelley merged commit 2d7e736 into 3.2.x Nov 16, 2026
50 checks passed
@bokelley
bokelley deleted the backport/8931-governance-errata-3.2.x branch November 16, 2026 15:35
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