Skip to content

[codex] Add sync_governance baseline storyboards - #5051

Merged
bokelley merged 2 commits into
mainfrom
sync-governance-baseline
May 27, 2026
Merged

bokelley merged 2 commits into
mainfrom
sync-governance-baseline

Conversation

@bokelley

@bokelley bokelley commented May 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add baseline sync_governance registration to money-moving 3.1 beta compliance storyboards before spend commitment paths
  • mark sync_governance as required for sales-social, sales-catalog-driven, sales-guaranteed, sales-non-guaranteed, sales-broadcast-tv, and the generative seller flow under creative-generative
  • require the shared multi-agent rejection scenario anywhere these baseline tracks require sync_governance, so governance_agents.maxItems: 1 is protected outside governance-aware-seller
  • clarify governance-aware-seller as the optional full check_governance loop layered on top of baseline registration

Closes #4568

Review follow-ups

  • kept the changeset as a minor beta compliance fix and added explicit rationale against the conformance-suite policy in docs/reference/versioning.mdx
  • added adopter migration wording in docs/reference/whats-new-in-3-1.mdx
  • removed the new sync_governance requirement from deprecated sales-proposal-mode
  • fixed the pre-existing sales-catalog-driven brand drift to consistently use amsterdam-steakhouse.example
  • filed creative-ad-server follow-up as compliance: decide sync_governance gate for creative-ad-server #5055

Expert review

  • protocol_reviewer: reviewed baseline/specialism boundary and flagged nondeterministic account binding in sales-social
  • code-reviewer: reviewed storyboard and docs surfaces, also flagged the sales-social account binding issue
  • Fixed both findings by using the brand/operator natural key for sync_governance instead of capturing accounts[0].account_id from an unfiltered list

Notes

Verification

  • node scripts/build-compliance.cjs
  • node scripts/build-schemas.cjs
  • npm run test:storyboard-sample-request-schema
  • npm run test:storyboard-response-schema
  • npm run test:storyboard-context-output-paths
  • npm run test:storyboard-validations-paths
  • npm run test:storyboard-scoping
  • npm run test:docs-nav
  • git diff --check
  • pre-commit hook: image checks, unit tests, dynamic imports, callapi state-change, typecheck
  • pre-push hook: version sync, current-source storyboard matrix, 3.0 compatibility storyboard matrix, docs link checks

@bokelley
bokelley marked this pull request as ready for review May 27, 2026 00:45

@aao-release-bot aao-release-bot 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.

Held for a question on the changeset type. Implementation is clean — brand+operator natural key correctly replaces the earlier accounts[0].account_id capture, and the seven new sync_governance steps are internally consistent across files.

Things I checked

  • All seven new sync_governance steps use the same schema_ref / response_schema_ref / validations set, with unique correlation_id + idempotency_key per storyboard.
  • Brand binding in the new step matches the existing brand in each file: novamotors.example in sales-broadcast-tv/index.yaml:250 matches the create_media_buy at L311; amsterdam-steakhouse.example in sales-catalog-driven/index.yaml:180 matches create_media_buy at L583; the other five use acmeoutdoor.example end-to-end.
  • governance-aware-seller/index.yaml keeps sync_governance in required_tools (L9) and the tool is still exercised by every required scenario (media_buy_seller/governance_* and governance_aware_seller/governance_multi_agent_rejected), so the reframing doesn't strand the requirement.
  • Docs/schema prose alignment: static/schemas/source/enums/specialism.json:43 and docs/building/verification/compliance-catalog.mdx:105 say the same thing. No drift.
  • All seven doc_ref: /accounts/tasks/sync_governance resolve to docs/accounts/tasks/sync_governance.mdx.
  • Bearer credentials placeholder is 36 chars — satisfies the minLength: 32 in account/sync-governance-request.json.

Open question — changeset is minor, should it be major?

docs/reference/versioning.mdx:154 says a conformance-suite change escalates above patch when it "tightens implicit spec validation" or "removes a stable specialism that agents are actively claiming (which is breaking, since agents currently advertising it become non-conformant)."

This PR adds sync_governance to required_tools on five stable sales specialisms (sales-guaranteed, sales-non-guaranteed, sales-broadcast-tv, sales-catalog-driven, sales-social) plus creative-generative. Every existing seller claiming one of those becomes non-conformant on the next grading run until they implement the registration ack. By the structural argument the versioning page makes about removing a stable specialism, this looks like the same shape of break — currently-passing agents stop passing without changing their wire behavior.

The wire didn't move, which is the case for minor. But the conformance bar moved for currently-claiming agents, which is the case for major. Would like the call made deliberately rather than implicitly. What flips me to approve: either the changeset bumps to major with a migration note, or the changeset body explicitly cites versioning.mdx:154 and explains why minor is the right read here (e.g. sync_governance was already in the spec, so this is tightening, not introducing).

Follow-ups (non-blocking — file as issues)

  • maxItems: 1 invariant is unprotected on baseline sellers. The governance_multi_agent_rejected scenario lives under specialisms/governance-aware-seller/scenarios/ and only runs when that specialism is claimed. The schema calls maxItems: 1 load-bearing (static/schemas/source/account/sync-governance-request.json:5). A seller picking up the step via sales-guaranteed only can silently accept a two-agent payload and pass conformance. Promote the rejection scenario to a precondition on every storyboard listing sync_governance in required_tools, or relocate it to universal/.
  • sales-proposal-mode is deprecated (static/schemas/source/enums/specialism.json:51 directs sellers to sales-guaranteed + media_buy.supports_proposals). Adding a new MUST-ship tool to a deprecated stable value pushes net-new conformance work onto the agents being asked to migrate off it. Consider skipping that storyboard.
  • creative-ad-server exemption is defensible today but worth a tracking issue. Creative ad servers touch spend indirectly through trafficking and frequency caps; a buyer running a governance plan will reasonably expect to register a URL there too. Either design a billing-gate scenario or document the permanent exemption.
  • Adopter migration note. No corresponding entry in docs/reference/whats-new-in-3-1.mdx calling out the grading impact for currently-passing sellers. Worth adding regardless of whether the changeset bumps to major.
  • Changeset body wording. Two sentences explicitly naming "existing sellers claiming these specialisms must now implement sync_governance to remain conformant" would let release-notes readers self-service the migration without diffing the PR.

Minor nits (non-blocking)

  1. Pre-existing brand inconsistency in sales-catalog-driven. Lines 703 and 772 use acmeoutdoor.example in log_events and a measurement step while the rest of the storyboard is amsterdam-steakhouse.example. Predates this PR, but worth fixing the next time anyone touches that file.

The "register but never consult" design boundary is interesting — defensible by analogy to DV/IAS tag drops (plumbing precedes behavior, audit value exists even without active calls), but worth a paragraph in governance-aware-seller/index.yaml explaining the layering for adopters reading the diff cold.

LGTM after the changeset-type question is settled.

@aao-release-bot aao-release-bot 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.

LGTM. Clean separation of baseline registration from the full check_governance loop, which is the right shape for the spec.

Things I checked

  • Schema-vs-docs coherence across the four sites that now describe governance-aware-seller: static/schemas/source/enums/specialism.json:43, docs/building/verification/compliance-catalog.mdx:105, docs/reference/whats-new-in-3-1.mdx:215 (+ the new adopter row), and static/compliance/source/specialisms/governance-aware-seller/index.yaml:6,30-44. All four line up on "baseline registration is required by money-moving sales specialisms; check_governance consultation is the opt-in claim." No drift.
  • The six new storyboard step blocks are internally consistent: $context.governance_agent_url defined at storyboard root, brand/operator natural-key (not accounts[0].account_id capture) on the sample request, stateful: true, unique idempotency_key and matching correlation_id per storyboard, full validations (response_schema + accounts[0].status + context echo + correlation_id).
  • governance_multi_agent_rejected is correctly broadened. Dropping governance_aware from agent.capabilities at scenarios/governance_multi_agent_rejected.yaml:30 is fine — agent.capabilities in storyboard YAML is metadata, gating is via required_tools + requires_scenarios. The scenario is shape-validation only ("No governance agent is needed — only the seller's request-schema validation is under test"), so it's satisfiable by any sells_media seller pulling it in.
  • The sales-catalog-driven brand fix (acmeoutdoor.example → amsterdam-steakhouse.example) is complete throughout that file — every domain: site uses the new value, event_source_id: "amsterdam_website" is a distinct identifier and not a missed rename.
  • sales-proposal-mode is correctly omitted (deprecated in 3.1 per #3823, catalog row already says so). creative-ad-server is intentionally carved out per #5055.
  • Changeset is minor under the versioning policy. ad-tech-protocol-expert reads docs/reference/versioning.mdx:148-166 as defensible-either-way (patch is supportable; the wire surface and maxItems: 1 already shipped in 3.0, so this expands the grader's scope rather than the protocol's). Minor is the conservative side and fine on a beta line.
  • Test plan: build-compliance.cjs, build-schemas.cjs, all five storyboard-* tests, docs-nav, and the pre-commit/pre-push hooks all ran per the PR body.

Follow-ups (non-blocking — file as issues if not already tracked)

  • creative-ad-server is the lone money-moving specialism without baseline sync_governance, tracked at #5055. Make sure 3.1 release notes call it out as a known gap rather than letting it read as a silent inconsistency in the "money-moving = registers governance" rule.
  • Working-group ratification on patch-vs-minor for conformance-scope expansions like this one. The two reviewers split on the classification under versioning.mdx's current wording. Worth one line of policy clarification so the next one of these doesn't re-litigate.
  • governance_multi_agent_rejected now lives under governance-aware-seller/scenarios/ but is required by six other specialisms. Schema-shape scenario with universal scope — protocols/media-buy/scenarios/ would be a tidier home. Non-blocking; the require path works as-is.

Minor nits (non-blocking)

  1. Broadcast-TV step placement. sales-broadcast-tv/index.yaml:232 puts the new sync_governance step inside the create_buy phase because that storyboard has no account_setup phase. The idempotency-key prefix sales_broadcast_tv_create_buy_sync_governance reflects that. Reads fine, but if you ever add a real account_setup phase to this storyboard, move it.

Safe to merge.

@bokelley
bokelley merged commit 057ddf6 into main May 27, 2026
31 checks passed
@bokelley
bokelley deleted the sync-governance-baseline branch May 27, 2026 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

compliance: sync_governance as baseline requirement in money-moving specialism storyboards

1 participant