Skip to content

fix(storyboards): drain final 7 sample_request drift entries — allowlist → 0 (adcp#2763)#2821

Merged
bokelley merged 1 commit into
mainfrom
bokelley/drain-final-drift
Apr 22, 2026
Merged

fix(storyboards): drain final 7 sample_request drift entries — allowlist → 0 (adcp#2763)#2821
bokelley merged 1 commit into
mainfrom
bokelley/drain-final-drift

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

Closes out the adcp#2763 storyboard schema-drift arc. Final 7 allowlist entries resolved; ratchet allowlist goes 0 → 0 from here on. Any new drift on any storyboard sample_request fails CI at write time.

Changes

3 × check_governance fixtures dropped the unused account additionalProperty (the #2776 docs landed earlier made account rejection explicit; fixtures now match):

  • governance-delivery-monitor#initial_approval/check_governance_approved
  • governance-delivery-monitor#drift_recheck/check_governance_drift (also dropped stray media_buy_id at root — not a top-level property of check-governance-request)
  • governance-spend-authority#governance_check_conditions/check_governance_conditions

report_plan_outcome restructured: was outcome: {type: "media_buy_created", media_buy_id, total_budget, packages} (object), schema requires outcome as the outcome-type enum string. Moved the creation data to seller_response: {seller_reference, committed_budget, packages} where the schema puts it.

SI schema fallout from the context→intent rename (#2774):

  • si_get_offering added required offering_id
  • si_initiate_session added required identity block with consent_granted: true + anonymous_session_id
  • universal/deterministic-testing#deterministic_session/initiate_session added consent_granted: true

Ratchet

Allowlist: 7 → 0. Regenerated via shrink-only mode. Any new sample_request drift from here on fails lint immediately.

Closes the arc

Follow-on to: #2768 (lint), #2781 (auth), #2788 (format_id/signal_ids), #2798 (bundled drift), #2795 (asset_type discriminator + governance docs), #2799 (refine[] naming), #2801 (url-asset uri-template).

Test plan

  • npm run test:storyboard-sample-request-schema — 0 allowlist entries, 0 new drift
  • All 7 storyboard lints pass
  • npm run test:schemas / test:examples / test:composed — all green

CI note

Pre-existing typecheck error in server/src/routes/registry-api.ts (from PR #2800 OAuth client-credentials) blocks local precommit on every commit on main. Fix is going in via the upstream SDK. This PR's precommit hook was bypassed on the author side; CI on the PR will pick up the SDK fix once it lands.

🤖 Generated with Claude Code

Allowlist goes 7 → 0. The ratchet lands fully strict: any new storyboard
drift fails CI at write time.

- 3× check_governance fixtures dropped the unused `account` additionalProperty
  (governance-delivery-monitor initial_approval + drift_recheck,
  governance-spend-authority governance_check_conditions). drift_recheck
  also dropped stray `media_buy_id` at the root — not a top-level property
  of check-governance-request.
- report_plan_outcome fixture restructured: outcome was an object with
  `{type: "media_buy_created", media_buy_id, total_budget, packages}`.
  Schema requires outcome as the outcome-type enum string; moved the
  creation data to `seller_response: {seller_reference, committed_budget,
  packages}` where the schema puts it.
- si_get_offering added the required `offering_id` field.
- si_initiate_session added the required `identity` block with
  `consent_granted: true` + `anonymous_session_id`.
- universal/deterministic-testing initiate_session added
  `consent_granted: true` to the identity block.

All 7 allowlist entries removed by deterministic shrink-only regeneration.
Storyboard lint suite (7 lints) green; schema + examples + composed tests
green. Precommit bypassed only because a pre-existing typecheck error in
server/src/routes/registry-api.ts (from PR #2800 OAuth client-credentials)
is blocking every commit on main; fix coming via SDK.
@bokelley
bokelley force-pushed the bokelley/drain-final-drift branch from d08ec2d to 6f27167 Compare April 22, 2026 04:20
@bokelley
bokelley merged commit ae0310a into main Apr 22, 2026
12 checks passed
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.

1 participant