Repository navigation
fix(reporting): use the standard revision-reference error in docs and training seller - #8085
Conversation
…E_NOT_FOUND in get_media_buy_delivery The task reference doc named REPORTING_REVISION_NOT_FOUND as the error code for unknown/inaccessible reporting_revision_id reads. That code does not exist in the error-code enum; the enum's own MUST rule requires REFERENCE_NOT_FOUND for typed parameters without a dedicated standard code. Also adds REFERENCE_NOT_FOUND to the Error Handling table (pre-existing omission, now surfaced by the prose fix). Fixes #8083. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Claude-Session: https://claude.ai/code/session_019YVwwJHNCoXYXqDtPJ4bb3
…CI policy The changeset-scope check only recognises docs/reference/ as protocol-scoped; docs/media-buy/task-reference/ is outside that boundary, so a changeset for `adcontextprotocol` is a policy violation here. No semantic change. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Claude-Session: https://claude.ai/code/session_019YVwwJHNCoXYXqDtPJ4bb3
Replace adcp: pseudo-link with the canonical compliance catalog anchor. The link-compliance-symbols script rewrites adcp:error-code/* pseudo-links to their computed targets on build; applying the rewrite in source keeps the file in sync with the build:compliance --check gate. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Claude-Session: https://claude.ai/code/session_019YVwwJHNCoXYXqDtPJ4bb3
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean spec-drift repair with no blocking or medium findings.
This PR replaces the phantom REPORTING_REVISION_NOT_FOUND error code with the standard REFERENCE_NOT_FOUND across three files: the training seller handler (task-handlers.ts), the get_media_buy_delivery task-reference doc, and the regression test suite. This aligns with the normative rule at error-handling.mdx:219 (typed params without a dedicated code MUST use REFERENCE_NOT_FOUND rather than minting a new *_NOT_FOUND).
Checks performed:
- Rename is complete (7/7 tests, 1/1 handler return, doc prose + new table row).
- Doc anchor resolves; REFERENCE_NOT_FOUND already exists in the error-code enum.
- Immutable dist snapshots untouched.
- No protocol changeset required — docs/media-buy/task-reference is not a protocol-scoped path.
Decision rule trace: no critical/high findings (row 1 n/a); gated_paths false (row 2 n/a); high_risk false, no deletions/modified-sensitive triggers (rows 3-5 n/a); no prior decision (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.
…NAVAILABLE (#1471) * fix(reporting): answer unreadable exact revision reads with SERVICE_UNAVAILABLE Aligns exact revision reads with adcontextprotocol/adcp#8085 and #8099. - An unknown, unauthorized or retired revision answers the standard, nondisclosing REFERENCE_NOT_FOUND instead of LOOKUP_UNAVAILABLE or REVISION_NOT_FOUND, in the status revision view, the exact projection and the exact delivery read. - A retained revision whose rows are missing or fail their binding, or that is marked unreadable, answers SERVICE_UNAVAILABLE. It is never not-found and never returns rows that fail the binding. Row store operator codes are collapsed so a buyer cannot probe whether an object exists. Emitting the REVISION_UNREADABLE status issue waits for the Python schemas to include it. Part of #1457. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * test(reporting): drive the exact delivery handler with unreadable revisions Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --------- Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Unavailable exact reporting revisions used the phantom
REPORTING_REVISION_NOT_FOUNDcode in the task reference and training seller. Use the existing standardREFERENCE_NOT_FOUNDcode in both, preserving the same nondisclosing message, field, authorization checks and cursor guards. Add the standard error to the task page’s Error Handling table.Closes #8083. Completes the training-agent follow-up in this existing triage PR. The enum already requires this fallback for typed parameters in released 3.2.1, 3.2.2 and 3.2.3. No schema or vocabulary additions, GCS backend changes or 3.3 fields are included; immutable snapshots are preserved. The existing scope policy requires no protocol package changeset for these app/task-page paths.
Validation:
Final source:
4223d53fbc13245d373ccd4694874fd78b33873e. Fresh remote CI and approval remain merge gates.