Repository navigation
fix(server): mirror a raised AdcpError into the payload errors array - #1592
Merged
Merged
Conversation
build_mcp_error_result and the A2A failed-task payload carried only the adcp_error envelope. AdCP's L3 error handling says a fatal failure SHOULD populate both layers, and storyboards such as media_buy_seller/product_signal_targeting read errors[0].field, so a seller raising AdcpError as documented failed those steps. Add errors: [adcp_error] on both transports. Fixes #1558 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean fix for #1558 with no blocking or medium findings.
Checked:
- Mirrors the
adcp_errorenvelope into a payloaderrors[]array on both transports (MCPtranslate.py:263, A2Aa2a_server.py:842) so a fatal failure populates both L3 layers per spec. - Mirrored keys (code/message/recovery/field/suggestion/retry_after/details) are all valid
Errormodel fields — no spec drift. - Shape change is strictly additive and non-breaking;
fix(server):semver signal is correct (no public-API removal/rename/type change, no required→optional flip). - Client-side extractors guard on
is_errorbefore thelen(sc)==1heuristic, so addingerrorsintroduces no new client break. detailssanitization runs before the mirror.- New MCP and A2A tests fail without the fix.
Decision table: no critical/high/medium findings; gated_paths is false; high_risk is true only via (modified) entries but with no medium-or-higher finding (rows 4/5 do not fire); no deleted paths; no author-team gate; no prior decision. Falls through to row 9 → approve. Note: review_decision is REVIEW_REQUIRED, but with gated_paths: false row 2 does not apply.
This was referenced Oct 27, 2026
This was referenced Nov 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1558, reported by @austinwiltshire.
A raised
AdcpErrorproducedstructuredContent = {"adcp_error": {...}}on MCP, and the same single key on the A2A failed-task DataPart. AdCP's L3 error-handling guidance (3.1.27, 3.2.x, main) says a fatal task failure SHOULD populate both layers: payloaderrors[]and envelopeadcp_error. Storyboards read both.media_buy_seller/product_signal_targetingcheckserrors[0].field, so a seller that raisedAdcpErroras the docs recommend failed that step.Change: both transports now emit
"errors": [<copy of adcp_error>]alongsideadcp_error. The context echo and response enhancer still run after, unchanged. Adopters using theresponse_enhancerworkaround from the issue keep working; it no-ops onceerrorsis present.Tests: new MCP tests (the mirror, with a separate object) and an A2A test, all failing without the fix. 17,021 pass. The 6 failures in
tests/test_reporting_production_public.pyare the known sandbox ones (noadcp-reporting-storageinstall) and pass in CI.🤖 Generated with Claude Code