Repository navigation
fix: preserve creative slot contracts and composed proposal responses - #3498
Merged
Merged
Conversation
bokelley
marked this pull request as ready for review
October 28, 2026 21:14
There was a problem hiding this comment.
Ladon verdict: Approve
Approve.
Clean fix across two independent compatibility-contract bugs with strong fail-closed discipline and good test coverage.
Checked:
generate-zod-from-ts.ts— composed-envelope branch fails closed on every drift (overlap check, task_id policy, exact if/then viaisDeepStrictEqual) before rewriting.and(→.merge(...).extend({ task_id }); the AST-walker rewrite ofpostProcessLegacyPurchaseContinuationResponseresolves aliases/unions/intersections/merges with a cyclic guard, fails closed on malformed/ambiguous input, wraps the field initializer (not the shared declaration), and applies edits descending by start so offsets don't corrupt.generate-types.tsmaterializeProposalResponseBranchesdistributes rootallOfinto eachoneOfbranch and throws on ambiguous submitted task-id contracts.SingleAgentClient.ts—legacyFormatDefinitionsdeep-cloned viastructuredCloneand destructured out oftaskOptionsso it never leaks to the wire; tests assertcreativeFormatProjection === undefinedand request deep-equality after mutation.
Witness-not-translator contract intact — no mock/fallback injection, no fabricated fields. No new wire field requiring a DR-0033 pathway-back. Both changesets present and patch, defensible as compatibility-contract fixes in beta pre-mode. 348-line fail-closed regression suite plus composed-envelope and tracker-downgrade tests.
Not gated (gated_paths: false), not high-risk, no no-auto-approve team match, no prior decision. No blocking or medium findings → decision table falls through to row 9.
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.
Creative writes could not receive seller legacy format definitions, so a seller negotiating AdCP 3.1 could receive pixel trackers despite declaring legacy URL tracker slots. Proposal response generation also discarded task payloads when the source composed a protocol envelope, then failed to locate the legacy purchase continuation.
Validation: 401 focused tests; pinned beta.0 generation/build; the exact #3490 candidate through generation, schema validation, build, and the protocol creative-asset probe (57 Zod shape checks and 157 canonical checks); beta.1 candidate generation/build. Added regression coverage, documentation, and patch changesets. The new client option repairs the existing legacy projection compatibility contract, so it is included as a bug fix.
Fixes #3491
Fixes #3490
Review: Claude DX, protocol, code, and security experts plus independent Codex protocol/code/security reviewers. Addressed the independent findings with regressions for composed merges, malformed continuation domains, and submitted task handles across all proposal response roots.