Skip to content

fix(reporting): cap status issues at the schema limit - #2020

Merged
rachitm022 merged 1 commit into
nextfrom
claude/issue-27115-cap-reporting-issues-next
Dec 6, 2026
Merged

rachitm022 merged 1 commit into
nextfrom
claude/issue-27115-cap-reporting-issues-next

Conversation

@rachitm022

Copy link
Copy Markdown
Collaborator

Summary

  • cap every externally emitted get_reporting_status.issues array at the AdCP schema limit of 100
  • retain action_required issues before delayed and info, preserving deterministic order within each severity
  • keep full-scope obligation counts, pagination totals, and canonical ledger projections unchanged
  • cover summary, periods, nested period, and frozen-feed response paths with schema-valid >100-issue regressions

This is the primary fix for the 10.x line used by ESA 1.117.1 (adcp==10.0.0). The same affected code path on the 9.x main line is covered by backport #2018.

Staging evidence

Sentry AGENTIC-API-47Y recorded approximately 9.5k events in 12 hours (20.9k total) from the agentic-api RR consumer reading the managed ESA. Responses failed validation with:

get_reporting_status response failed schema validation at /issues: maxItems constraint failed (bound=100)

Verification

  • make lint
  • make typecheck-all
  • affected reporting suites: 135 passed, 30 skipped
  • full make test: 23,453 passed, 3,327 skipped; the remaining local interop failures require Linux /etc/os-release and /proc and are unavailable on macOS
  • independent code review: no findings

Linear: AI-27115

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rachitm022
rachitm022 merged commit de62e5e into next Dec 6, 2026
39 checks passed
@rachitm022
rachitm022 deleted the claude/issue-27115-cap-reporting-issues-next branch December 6, 2026 04:02
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