Skip to content

test(compliance): enforce sync webhook silence - #6539

Merged
bokelley merged 5 commits into
mainfrom
codex/lint-language-tag-refs
Aug 14, 2026
Merged

bokelley merged 5 commits into
mainfrom
codex/lint-language-tag-refs

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

What changed

  • bump @adcp/sdk from rc.18 to rc.20 to consume expect_no_webhook
  • observe accepted synchronous wholesale get_products requests for five seconds
  • contribute the successful branch only after no matching task webhook arrives
  • document the new storyboard assertion and advance the temporary SDK patch lock

Why

The existing storyboard verified that wholesale discovery returned inline without
a task_id, but it contributed immediately and therefore could not detect a
seller that emitted a duplicate completion webhook afterward. The new negative
assertion closes that observable conformance gap.

Closes #5389.

Validation

  • npm run test:sdk-shims
  • npm run test:storyboard-branch-sets
  • npm run test:storyboard-test-kits
  • npm run test:storyboard-check-enum
  • npm run build:compliance -- --check

@bokelley bokelley added this to the 3.2.0 milestone Aug 14, 2026
@bokelley
bokelley marked this pull request as ready for review August 14, 2026 07:41

@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: Approve

Approve — clean SDK version bump (rc.18 → rc.20) plus a negative webhook assertion.

What I checked:

  • Version bump is consistent across package.json, package-lock.json, scripts/patch-sdk-rc15.mjs (EXPECTED_VERSION), and tests/patch-sdk-rc15.test.cjs. No hand-edited version mismatch.
  • webhook-emission.yaml adds an expect_no_webhook negative assertion (1.3.0 → 1.4.0); the silence step's filter operation_id correctly matches the request's push_notification_config.operation_id, and moving contributes: true onto the silence step properly defers branch credit until the 5s observation window completes while the request step's task_id-absent validations still gate the branch. This is verification-tightening of an existing MUST-NOT on main, not a new normative requirement.
  • Changeset present (grade-sync-webhook-silence.md, patch); scope and type defensible.
  • No schema field/enum/required changes, no oneOf discriminator regression, no dist/** released-artifact mutation, non-breaking (Editorial/Normative-non-breaking class, not Breaking).

Decision path: No critical/high/medium findings. gated_paths false, high_risk false, no deleted sensitive files, no author team gate, no prior decision. review_decision: REVIEW_REQUIRED does not gate here since gated_paths is false. Rows 1–8 do not fire → row 9 approve.

@bokelley
bokelley merged commit a48e844 into main Aug 14, 2026
47 checks passed
@bokelley
bokelley deleted the codex/lint-language-tag-refs branch August 14, 2026 11:31
bokelley added a commit that referenced this pull request Nov 20, 2026
…backport of #8894) (#9127)

webhook_emission failed polling-only sellers whose create_media_buy
returns the media buy inline. The spec says a synchronous completion
sends no webhook, even when push_notification_config is present
(webhooks.mdx "When webhooks fire", #5389), so such a seller failed
expect_webhook_presence and the signing-key precheck.

When the primary create_media_buy trigger returns the media buy inline,
the storyboard now asserts that no task webhook arrives and skips the
emitted-webhook phases. Triggers that return submitted, or working
without a media_buy_id, are still graded on signed webhooks. A
synchronous seller that declares webhook_signing.supported: true is
still graded on its JWKS (signing_keys_published_declared).

Adapted to 3.1.x:
- The storyboard hunks are main's verbatim. Its version moves 1.3.1 ->
  1.3.2: main's 1.4.x/1.5.0 include the wholesale get_products silence
  step (#6539), which 3.1 does not carry.
- expect_no_webhook is new to the 3.1 storyboards, so its task entry is
  added to universal/storyboard-schema.yaml as main documents it.
- 3.1.x pins @adcp/sdk 9.6.2, whose runner ignores context.* skip_if.
  The full-run tests are skipped under it; the structural gating test
  runs everywhere. They pass under 17.0.0-beta.29 (hosted grading) and
  16.7.2. 3.1's wholesale get_products branch is not capability-gated,
  so the fake agent echoes context for it.

Refs #8771

(cherry picked from commit 7ec4059)

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Conformance: synchronous completion must not emit a webhook by default

1 participant