Repository navigation
feat(protocol): adopt AdCP 3.2.0-rc.2 - #2888
Conversation
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean AdCP 3.2.0-rc.2 adoption.
Checked:
- Regenerated types/schemas/manifests, deleted the schemas-preview staging surface, promoted
sync_reporting_statusto the published task. - Hand-written surface reviewed:
status-ingest.tsschema migration, depth guard,superRefinesafety, framework envelope wiring, storyboard validation-only task, forecast-rate codegen. - Witness-not-translator holds; strict envelope is operator-gated; idempotency auto-derives correctly.
- Changeset correctness: minor bump is appropriate since removed exports never shipped in a stable release.
No Critical/High/Medium findings. No high-risk flag, no gated paths, no no-auto-approve team match. Falls through to row 9.
Note: review_decision is REVIEW_REQUIRED, but gated_paths is false so the row 2 hard gate does not apply.
|
Adoption review of 69f8f6b, against published AdCP 3.2.0-rc.2. We are currently on SDK 14.0.0-rc.33 and would like to adopt the published consumer-status task after this release. I realize this branch is still being cleaned up; the comments below refer to this exact head. The direction fits our reporting pipeline: consumer status can describe an independently observed missing/unreadable/received revision while remaining separate from seller revisions, managed materialization evidence and billing receipts. The envelope-only server validation is also appropriate for partial-success batches. 1. Concrete issue: the exported Zod schemas still lose important rc.2 constraints. I ran the generated schema code from this head against the exact published rc.2 JSON Schemas at protocol commit
A minimal first-case reproduction: import { ReportingConsumerStatusSchema } from '@adcp/sdk/schemas';
ReportingConsumerStatusSchema.safeParse({
reporting_status_id: 'reporting-status-case-0001',
delivery_config_id: 'daily',
delivery_config_version: 1,
report_definition_id: 'impressions-v1',
period: {
start: '2026-09-01T00:00:00Z',
end: '2026-09-02T00:00:00Z',
source_timezone: 'UTC',
},
consumer_status: 'received',
status_as_of: '2026-09-02T01:00:00Z',
}).success; // true at this head; rc.2 rejectsRelevant locations are Please preserve the conditional/closed-object, request-readOnly exclusion, response-required and minimum-array constraints in generation, with parity tests against the pinned JSON Schemas. Keep the server's deliberate envelope-only dispatch path separate so one malformed item still does not reject valid siblings. A type test distinguishing submitted from recorded status would also help. 2. Existing-ledger adoption: expose a narrow, documented store adapter. Our canonical revision, authorization, retention and acquisition stores already exist. The adapter contract should explicitly retain authenticated caller/account isolation, current authorization before replay/readback, immutable revision bindings, and atomic current-leaf comparison + append + original batch-result replay. The documented internal-account namespace requirement is understood; a custom-store example should show how that composes with a platform that already has several authorized principals for one retained account, without duplicating its authority store. This is an adoption request, not an assertion of a new PostgreSQL isolation regression. 3. Please make the calendar-period adapter recipe executable.
These are source/adoption observations and a focused schema comparison, not a rerun or replacement of the PR's full qualification. No SDK upgrade or production activation has been performed on our side. |
|
Addressed the adoption feedback on head
I also ran an independent Astra red-team through the real HTTP/MCP seller and public buyer client: not-ready → revision, exact binding read, replay/conflict, authorization isolation, restatement recovery, and zero-row reporting all passed. Full CI and the final DX/protocol/code/security review stack are running on this head. |
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean pass on additive AdCP 3.2.0-rc.2 adoption.
Checked:
- Reviewer surfaced no critical/high/medium findings.
- No no-auto-approve team match;
gated_paths: false(row 2 does not apply even thoughreview_decisionis REVIEW_REQUIRED);high_risk: false. - Witness-not-translator preserved: sync_reporting_status response types tightened to non-empty tuples with defensive empty-result guards; no wire fabrication, no re-shaping at seams.
- Official transport clients untouched; no reimplemented HTTP/SSE.
- Changesets present and correctly typed (minor) for the src/lib and schema deltas; no hand-edited package.json version line.
- Doc-link integrity intact; no stale blob/main or tree/main links, no EXEMPT_PATHS additions.
No rows 1–8 fired, so the outcome falls through to row 9 (approve). Prior decision was also approve; this remains clean.
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — delta pass on PR #2888, no blocking findings.
This is a single targeted bug fix: safeExtend in the reporting consumer-status schema builder now binds to the refined exactSchema instead of the un-refined objectSchema, so .safeExtend({}) no longer drops the rc.2 wire-parity refinements — a witness-fidelity fix. Regenerated schemas.generated.ts matches at both call sites and the test asserts safeExtended outcomes against published JSON Schemas. Changesets present (minor).
Checked against decision table:
- No critical/high findings (row 1 n/a).
- gated_paths is false (row 2 n/a).
- high_risk is false, no deletions (rows 3, 5 n/a).
- No medium findings at all (rows 4, 8 n/a).
- Prior decision was
approve, notescalate(row 6 n/a). - No no-auto-approve team match (row 7 n/a).
Falls through to row 9. Note: review_decision is REVIEW_REQUIRED, but gated_paths is false, so the row 2 hard gate does not apply. No trigger fired → approve.
There was a problem hiding this comment.
Ladon verdict: Approve
Approve.
Delta pass on a four-file Zod-generation fix for the rc.2 reporting consumer-status schemas. Reviewer confirms all three changes are correct and tested: extend now binds to exactSchema to preserve rc.2 refinements (matching safeExtend), ext removed from the consumer-status item allowed-key set to match the published JSON Schema (verified via AJV), and SyncReportingStatusRequestV1Schema switched to safeExtend to keep the request-level superRefine. Changesets present, generated file regenerated (not hand-edited), witness-not-translator intact.
No critical, high, or medium findings. No author team gate, gated_paths is false, high_risk is false. None of decision rows 1–8 fire, so the outcome falls through to row 9 (approve).
There was a problem hiding this comment.
Ladon verdict: Approve
Approve.
Clean pass — no critical/high/medium findings. The delta narrows to a single file (src/lib/server/create-adcp-server.ts): a faithful refactor of the sync_reporting_status envelope validator from .extend() on the generated superRefine wrapper to an equivalent hand-rolled z.object({...}).strict(), plus removal of the now-unused SyncReportingStatusRequestRuntimeSchema import. Field set, strict unknown-key rejection, and the deferred per-item (z.unknown) status validation all match the generated wire schema and the documented partial-success intent — witness-not-translator fidelity preserved. Changesets are present for the reporting/consumer-status changes. Prior decision on the preceding head was also approve with no findings.
No decision-table trigger fired: no critical/high (row 1), gated_paths false (row 2), high_risk false (rows 3/5), no medium data-loss/schema/infra findings (row 4), prior decision was approve not escalate (row 6), no no-auto-approve team match (row 7), fewer than three medium findings (row 8). Falls through to row 9 → approve.
Note: review_decision is REVIEW_REQUIRED, but gated_paths is false, so row 2's escalation gate does not apply.
There was a problem hiding this comment.
Ladon verdict: Approve
Approve.
No blocking findings. This is a subsequent review; the prior decision was also approve with no findings, and this clean delta pass surfaces nothing actionable.
What was checked:
- Extraction of shared
validateSyncReportingStatusEnvelopehelper delegating to the published schema viavalidateRequest— tightens wire-shape fidelity while preserving the partial-success batch contract (placeholder statuses) and themaxItemsboundary. Consistent with witness-not-translator. - De-duplication of redundant per-status validation in the generated schema.
- Two validation-only storyboard skip sites moved to a fail-closed
missing_toolreason. - All changes covered by updated tests.
- Changesets present; no hand-edited
package.jsonversion line; CLAUDE.md is docs-only with intact links.
Gate checks:
gated_paths: false— row 2 does not apply.high_risk: false— rows 3/5 do not apply.- No no-auto-approve team match — row 7 does not apply.
- Zero medium findings — rows 6/8 do not apply.
review_decision is REVIEW_REQUIRED, but that only forces escalation when gated_paths is true (row 2), which it is not. Falls through to row 9 → approve.
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean pass on the delta since ee76906 (head 5afaefc).
No blocking or Medium findings. The reviewer confirmed the rc2-boundary hardening is correct and well-tested:
- pick/omit now bind to the refined schema, preserving loud failure instead of silently dropping published cross-field constraints
- the V1 schema refactor inherits base require/forbid refinements rather than dropping them
- hasBoundedJsonDepth gains a correct node-width bound
- validateStatus enforces the account-scope check for multi-tenant isolation
- storyboard validation no longer mutates frozen inputs
Changesets are present and correctly typed as minor. Witness-not-translator, official-transport, and changeset-vs-wire-impact checks all pass.
Gate checks: no no-auto-approve team match; gated_paths is false (row 2 does not apply despite review_decision REVIEW_REQUIRED); high_risk is false; no findings at any severity. Prior decision was approve with no findings. No decision-table trigger (rows 1–8) fires → row 9 approve.
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — delta pass on PR #2888 surfaced no findings.
This is a subsequent review; the prior decision was approve with a clean slate. The current run reviewed three test-only changes: the consumer-status.json fixture adds a seller-restatement-mismatch scenario, a fixture.json size/sha256 bump, and matching test assertions. The reviewer confirmed the new scenario is internally consistent — base64→sha256→JSON round-trip and observed-revision digest binding are enforced by the passing test loop, and current_revision 0002 vs reporting_revision_id 0001 correctly yields post_state.mismatch=true.
Decision-table walk:
- Rows 1 (critical/high): no such findings.
- Row 2 (gated paths): gated_paths is false — not triggered despite review_decision=REVIEW_REQUIRED.
- Rows 3–5 (high_risk): high_risk is false.
- Row 6 (sticky escalate): prior outcome was approve, not escalate.
- Row 7 (no-auto-approve team): no team match.
- Row 8 (≥3 medium): zero medium findings.
- Row 9: approve.
There was a problem hiding this comment.
Ladon verdict: Approve
Approve
Clean pass. This delta adds a fail-closed multi-tenant guard in validateStatus (rejects when revision.wireRevision.account_id !== accountId), providing defense-in-depth at the store seam that mirrors the existing getObligation account check. The property access is type-safe (ReportingRevision.account_id is required) and a new test isolates exactly this branch. Changesets are present and appropriate for the wire/SDK impact.
No blocking or medium findings. No high-risk paths (high_risk: false), no gated paths, and no no-auto-approve team match. Prior decision was also approve with no findings; this run remains clean.
Decision table: rows 1–8 do not fire → row 9 (approve).
There was a problem hiding this comment.
Ladon verdict: Approve
Approve.
Clean pass. The effective delta is confined to status-ingest.ts (statusBatchFingerprint) and its test. The fix escapes lone surrogates before UTF-8 hashing, closing a real idempotency hole where distinct malformed requests collapsed to U+FFFD and collided. Reviewer verified fingerprint stability for well-formed input, collision-safety against JCS escapes/doubled backslashes, and replay-vs-conflict assertions. Changeset present.
No critical/high/medium findings.
Decision walk:
- Row 1 (critical/high): none → skip.
- Row 2 (gated_paths): false → skip (review_decision REVIEW_REQUIRED is irrelevant since no gate applies).
- Row 3–5 (high_risk): false → skip.
- Row 6 (sticky escalate): prior decision was approve → skip.
- Row 7 (no-auto-approve team): no match → skip.
- Row 8 (≥3 medium): zero medium → skip.
- Row 9: approve.
Consistent with the prior approve on the earlier head; no regressions introduced.
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean delta pass, no blocking findings.
This is a subsequent review (prior decision: approve, no findings). The current run examined a self-contained refactor extracting canonicalJsonSha256PreservingLoneSurrogates into jcs.ts and routing both reporting-status fingerprinting and the idempotency store's hashPayload through it. The reviewer verified the output is byte-identical to the prior hash for well-formed input (no key migration), fail-closed for malformed UTF-16, with added test coverage at both layers.
Decision-table walk:
- Row 1 (critical/high): no findings — skip.
- Row 2 (gated_paths + not APPROVED): gated_paths is false — skip.
- Row 3 (high-risk deleted): high_risk false — skip.
- Row 4/5 (medium data-loss/schema/infra or high-risk modified + medium): no medium findings — skip.
- Row 6 (sticky escalate): prior decision was approve — skip.
- Row 7 (no-auto-approve team): no team match — skip.
- Row 8 (≥3 medium): zero medium findings — skip.
- Row 9: approve.
Note: review_decision is REVIEW_REQUIRED, but that only forces escalate when gated_paths is true (row 2), which it is not here. No hard gate applies.
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — subsequent pass, no blocking or medium findings.
The developer pushed new commits since the prior approve decision. This run examined the two delta files:
package.json:589— narrowly excludes the typelesscompliance-fixtures/reporting-consumer-status-v1.jsonJSON entrypoint from arethetypeswrong. Correct, since that subpath export has no.d.tsto grade.reporting-consumer-status-fixtures.test.js:30— new test assertion exercises the published subpath export via Node self-referencing and deepEquals against the fixture, making a broken export fail-loud.
Both changes are sound. No critical/high/medium findings surfaced.
Gate checks: no no-auto-approve team match; gated_paths is false; high_risk is false. Row 2 does not apply (gated_paths false) despite review_decision: REVIEW_REQUIRED. No decision-table trigger fires, so the outcome falls through to row 9 → approve.
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean subsequent pass, no findings.
This is a follow-up to a prior approve decision. The delta is two files: src/lib/reporting/ledger/instant.ts:43-48 replaces the quadratic-backtracking /0+$/ trim with an O(trailing-zeros) charCodeAt/slice scan (behavior identical), plus a new test asserting linear-time trimming against a 100k-zero adversarial input. The reviewer surfaced no critical, high, or medium findings.
Checked against the decision table:
- No critical/high/medium findings (rows 1, 4, 5, 8 N/A).
gated_paths: false— row 2 N/A despitereview_decision: REVIEW_REQUIRED.high_risk: false— rows 3, 5 N/A.- No no-auto-approve team match — row 7 N/A.
- Prior decision was
approve, notescalate— row 6 N/A.
Changeset present; witness-not-translator and official-transport rules not implicated by this delta. Falls through to row 9 → approve.
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean delta pass, no blocking or medium findings.
The reviewer confirmed a functionally-identical refactor in formatDecimal (producer.ts:9-15): swapping a /0+$/ regex for a manual charCodeAt(0x30) trailing-zero trim, with the all-zeros→empty-fraction case preserved. The test at reporting-ledger.test.js:874 now feeds string spend '1.2500' (vs numeric 1.25), exercising the parseDecimal string path plus the trim. Changesets are present and appropriate for the wire/SDK impact.
Decision-table trace: no critical/high findings (row 1 n/a); gated_paths is false (row 2 n/a); high_risk is false, no deleted/modified high-risk triggers (rows 3-5 n/a); prior decision was approve, so sticky escalation does not apply (row 6 n/a); no no-auto-approve team match (row 7 n/a); zero medium findings (row 8 n/a). Falls through to row 9 → approve. Note review_decision is REVIEW_REQUIRED, but the gated-paths gate only applies when gated_paths is true, which it is not.
|
Final qualification on exact head
Ready for human merge. The changesets advance the SDK prerelease from 14.0.0-rc.35 to the 14.0.0-rc.36 pin recorded in the agentic-api shim plan. |
|
Follow-up on the published All three valid controls pass, and all five previously divergent negatives now reject through the package's public schema exports: missing received evidence, caller-supplied The packaged declarations also expose the narrow consumer-status store port, and the packaged guide contains the calendar-period configuration recipe. Those address the adoption concerns raised here; I inspected the guide rather than rerunning its calendar/lifecycle suite. We are preparing our existing SDK upgrade against this released artifact, preserving application-specific compatibility patches and validating affected consumers. This confirms the bounded adoption fixes above; it does not claim our full application upgrade or production reporting integration is qualified yet. |
Summary
sync_reporting_statusandreporting-consumer-statusschemasVerification
34814973278npm run build:lib,npm run typecheck,npm run format:check, andnpm run check:package59a6edd4abde344ba882117e51c25069bd54a04e34d89f7189d2eddce5e919178e7f168d8fca2fea59ac880447f88adec470112e;npm run review:codex -- --all --base mainfound no blocking regressionThe protocol schema and compliance bundle are pinned to 3.2.0-rc.2. No signature bypass is used. Buyer reconciliation deliberately remains non-definitive without Managed Delivery evidence; Core consumption is independently proven through exact-read binding verification and
sync_reporting_status.Open workspace in Conductor