Repository navigation
[codex] Add sync_governance baseline storyboards - #5051
Conversation
There was a problem hiding this comment.
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_governancesteps 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.exampleinsales-broadcast-tv/index.yaml:250matches the create_media_buy at L311;amsterdam-steakhouse.exampleinsales-catalog-driven/index.yaml:180matches create_media_buy at L583; the other five useacmeoutdoor.exampleend-to-end. governance-aware-seller/index.yamlkeepssync_governanceinrequired_tools(L9) and the tool is still exercised by every required scenario (media_buy_seller/governance_*andgovernance_aware_seller/governance_multi_agent_rejected), so the reframing doesn't strand the requirement.- Docs/schema prose alignment:
static/schemas/source/enums/specialism.json:43anddocs/building/verification/compliance-catalog.mdx:105say the same thing. No drift. - All seven
doc_ref: /accounts/tasks/sync_governanceresolve todocs/accounts/tasks/sync_governance.mdx. - Bearer credentials placeholder is 36 chars — satisfies the
minLength: 32inaccount/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: 1invariant is unprotected on baseline sellers. Thegovernance_multi_agent_rejectedscenario lives underspecialisms/governance-aware-seller/scenarios/and only runs when that specialism is claimed. The schema callsmaxItems: 1load-bearing (static/schemas/source/account/sync-governance-request.json:5). A seller picking up the step viasales-guaranteedonly can silently accept a two-agent payload and pass conformance. Promote the rejection scenario to a precondition on every storyboard listingsync_governanceinrequired_tools, or relocate it touniversal/.sales-proposal-modeis deprecated (static/schemas/source/enums/specialism.json:51directs sellers tosales-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-serverexemption 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.mdxcalling out the grading impact for currently-passing sellers. Worth adding regardless of whether the changeset bumps tomajor. - Changeset body wording. Two sentences explicitly naming "existing sellers claiming these specialisms must now implement
sync_governanceto remain conformant" would let release-notes readers self-service the migration without diffing the PR.
Minor nits (non-blocking)
- Pre-existing brand inconsistency in
sales-catalog-driven. Lines 703 and 772 useacmeoutdoor.exampleinlog_eventsand a measurement step while the rest of the storyboard isamsterdam-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.
There was a problem hiding this comment.
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), andstatic/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_governanceconsultation is the opt-in claim." No drift. - The six new storyboard step blocks are internally consistent:
$context.governance_agent_urldefined at storyboard root, brand/operator natural-key (notaccounts[0].account_idcapture) on the sample request,stateful: true, uniqueidempotency_keyand matchingcorrelation_idper storyboard, full validations (response_schema + accounts[0].status + context echo + correlation_id). governance_multi_agent_rejectedis correctly broadened. Droppinggovernance_awarefromagent.capabilitiesatscenarios/governance_multi_agent_rejected.yaml:30is fine —agent.capabilitiesin storyboard YAML is metadata, gating is viarequired_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 anysells_mediaseller pulling it in.- The
sales-catalog-drivenbrand fix (acmeoutdoor.example→amsterdam-steakhouse.example) is complete throughout that file — everydomain:site uses the new value,event_source_id: "amsterdam_website"is a distinct identifier and not a missed rename. sales-proposal-modeis correctly omitted (deprecated in 3.1 per #3823, catalog row already says so).creative-ad-serveris intentionally carved out per #5055.- Changeset is
minorunder the versioning policy.ad-tech-protocol-expertreadsdocs/reference/versioning.mdx:148-166as defensible-either-way (patch is supportable; the wire surface andmaxItems: 1already 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-serveris the lone money-moving specialism without baselinesync_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_rejectednow lives undergovernance-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)
- Broadcast-TV step placement.
sales-broadcast-tv/index.yaml:232puts the newsync_governancestep inside thecreate_buyphase because that storyboard has noaccount_setupphase. The idempotency-key prefixsales_broadcast_tv_create_buy_sync_governancereflects that. Reads fine, but if you ever add a realaccount_setupphase to this storyboard, move it.
Safe to merge.
Summary
sync_governanceregistration to money-moving 3.1 beta compliance storyboards before spend commitment pathssync_governanceas required forsales-social,sales-catalog-driven,sales-guaranteed,sales-non-guaranteed,sales-broadcast-tv, and the generative seller flow undercreative-generativesync_governance, sogovernance_agents.maxItems: 1is protected outsidegovernance-aware-sellergovernance-aware-selleras the optional fullcheck_governanceloop layered on top of baseline registrationCloses #4568
Review follow-ups
docs/reference/versioning.mdxdocs/reference/whats-new-in-3-1.mdxsync_governancerequirement from deprecatedsales-proposal-modesales-catalog-drivenbrand drift to consistently useamsterdam-steakhouse.exampleExpert review
protocol_reviewer: reviewed baseline/specialism boundary and flagged nondeterministic account binding insales-socialcode-reviewer: reviewed storyboard and docs surfaces, also flagged thesales-socialaccount binding issuesync_governanceinstead of capturingaccounts[0].account_idfrom an unfiltered listNotes
creative-ad-serveris intentionally unchanged here: its current storyboard has optional/out-of-band billing and no clean spend-authorization gate for the 3.1-safe baseline registration. Follow-up: compliance: decide sync_governance gate for creative-ad-server #5055.Verification
node scripts/build-compliance.cjsnode scripts/build-schemas.cjsnpm run test:storyboard-sample-request-schemanpm run test:storyboard-response-schemanpm run test:storyboard-context-output-pathsnpm run test:storyboard-validations-pathsnpm run test:storyboard-scopingnpm run test:docs-navgit diff --check