Skip to content

fix(reporting): use the standard revision-reference error in docs and training seller - #8085

Merged
bokelley merged 5 commits into
mainfrom
claude/issue-8083-fix-reporting-revision-not-found-error-code
Oct 9, 2026
Merged

bokelley merged 5 commits into
mainfrom
claude/issue-8083-fix-reporting-revision-not-found-error-code

Conversation

@bokelley

@bokelley bokelley commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Unavailable exact reporting revisions used the phantom REPORTING_REVISION_NOT_FOUND code in the task reference and training seller. Use the existing standard REFERENCE_NOT_FOUND code 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:

  • All 23 existing reporting regressions pass. Restoring only the old implementation code makes four negative tests fail against the unchanged corrected expectations. All seven expected-code comparisons remain strict.
  • Full normal source commit checks pass: 1,106 root tests; 12,396 server passes and 31 existing skips across 741 files; all guards and both typechecks.
  • Page JSON-schema/snippet checks, schema-link lint and all 49 navigation checks pass. Normal push passes; the documented local advisory storyboard skip defers complete matrices to authoritative CI.
  • Actual Sonnet 5.5 implementation and Haiku 5.5 read-only review; no blocker found.

Final source: 4223d53fbc13245d373ccd4694874fd78b33873e. Fresh remote CI and approval remain merge gates.

…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
@bokelley bokelley added the claude-triaged Issue has been triaged by the Claude Code triage routine. Remove to re-triage. label Oct 9, 2026
@bokelley bokelley added this to the 3.2.0 milestone Oct 9, 2026
claude and others added 4 commits October 9, 2026 09:25
…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
@bokelley bokelley changed the title fix(docs): replace phantom REPORTING_REVISION_NOT_FOUND with REFERENCE_NOT_FOUND in get_media_buy_delivery fix(reporting): use the standard revision-reference error in docs and training seller Oct 9, 2026
@bokelley
bokelley marked this pull request as ready for review October 9, 2026 10:29

@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 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.

@bokelley
bokelley merged commit c97c4ae into main Oct 9, 2026
60 checks passed
@bokelley
bokelley deleted the claude/issue-8083-fix-reporting-revision-not-found-error-code branch October 9, 2026 11:00
bokelley added a commit to adcontextprotocol/adcp-client-python that referenced this pull request Oct 11, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude-triaged Issue has been triaged by the Claude Code triage routine. Remove to re-triage.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

get_media_buy_delivery names REPORTING_REVISION_NOT_FOUND, which the error-code enum forbids

2 participants