Skip to content

fix(reporting): align rc.4 timing and discovery - #2972

Merged
bokelley merged 1 commit into
mainfrom
codex/fix-rc4-reporting-semantics
Sep 20, 2026
Merged

bokelley merged 1 commit into
mainfrom
codex/fix-rc4-reporting-semantics

Conversation

@bokelley

@bokelley bokelley commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • align Reliable Reporting runtime timing with signed AdCP 3.2.0-rc.4: complete summaries forecast the nearest future active period start strictly after ledger_as_of, while open summaries and obligations use period.end + delivery_sla
  • keep private official/finality cutoffs out of the public obligation due time, and keep next_expected_at absent from complete periods responses without weakening complete-scope guards
  • bind reporting tool discovery to the mounted protocol pin and make canonical schema loading retain the selected bundled document when modular and bundled schemas share an authored $id

PR #2971 synchronized the rc.4 artifacts. This follow-up corrects the runtime semantics and discovery behavior needed to use those artifacts truthfully. It references #2970; publication and cross-language qualification remain separate gates.

Regression coverage

  • deterministic complete-summary start-vs-due boundary, equality, activation/supersession, account/filter, and multiple-generation cases
  • open-summary and producer obligation due-time coverage, including buyer reconciliation and status ingest
  • complete-summary positive validation plus false scope_closed / coverage_complete negatives
  • complete-periods rejection/omission coverage
  • mounted exact-pin reporting discovery and live lifecycle ownership
  • bundled-schema identity collision coverage, including the selected _bundled document and $defs

Local verification

Exact head: 9b55020d8c79cc4b16e59d376552b1eaf49ecc05

  • npm run ci:quick — exit 0; log SHA-256 25b5c0c5ffe76f82739b16cde81487e3e05cdd034a91b50a82aaab755001f77a
  • npm run ci:schema-check — exit 0
  • npm run ci:codegen-strict — exit 0
  • npm run ci:docs-check — exit 0
  • npm run ci:doc-links — exit 0
  • workflow lint, package verification, and package-size checks — exit 0
  • PostgreSQL 16.14 test/lib/reporting-status-ingest-pg.test.js — 19 passed, 0 failed; log SHA-256 4efe54795a30b95f9b3cdb19dce6dd50a86aecde54749e54373f53b007c470e1

The first local PG invocation used the generic DATABASE_URL rather than this suite's REPORTING_LEDGER_PG_URL; it skipped cleanly and is retained as an invocation diagnostic. The corrected complete file passed on the unchanged head. Protected PostgreSQL CI remains mandatory.

Remote verification

  • all 38 present exact-head checks are successful, including the four current protected-main required contexts
  • the first Example Adapter Integration Tests attempt had one mock fetch failed in the audio creative-template scenario while the other 62 tests passed; its original log is retained
  • that exact example file then passed locally (6/6, unchanged head), and GitHub's failed-jobs-only attempt 2 passed the complete example job plus aggregate Test & Build
  • exact-head automated review approved with no Critical, High, or Medium findings; the current inventory has zero issue comments, review comments, or review threads

Scope

This PR does not publish a package, qualify a TypeScript/Python interoperability pin, or authorize downstream integration/release.

Refs #2970

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Approve

Approve — Reliable Reporting alignment to AdCP 3.2.0-rc.4.

No Critical/High/Medium findings. Reviewer verified: expected_at uniformly computed as period.end + delivery_sla across finalities; next_expected_at split into open vs complete forecasts reusing established coverage.ts ordinal/ownership logic; reporting tools bound to the mounted protocol pin (prevents leak into older releases); and a bundled/modular $id shadowing fix in the schema loader. Validation changes are symmetric across generated Zod, source generator, and hand-written guards with authoritative cross-checks. The patch changeset is defensible since the entire feature is gated behind rc.4.

Gate checks: no no-auto-approve team match; gated_paths is false (review_decision REVIEW_REQUIRED does not trigger row 2 without gated paths); high_risk is false. No rows 1–8 fire → row 9 approve.

@bokelley
bokelley merged commit 3d8c3df into main Sep 20, 2026
59 of 61 checks passed
@bokelley
bokelley deleted the codex/fix-rc4-reporting-semantics branch September 20, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant