Skip to content

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

Open
rachitm022 wants to merge 1 commit into
mainfrom
claude/issue-27115-cap-reporting-issues
Open

rachitm022 wants to merge 1 commit into
mainfrom
claude/issue-27115-cap-reporting-issues

Conversation

@rachitm022

Copy link
Copy Markdown
Collaborator

Why

Staging Sentry issue AGENTIC-API-47Y recorded about 9.5k events in 12 hours and 20.9k total from the agentic-api Reliable Reporting consumer. The managed ESA response failed validation because get_reporting_status.issues exceeded the AdCP schema's maxItems: 100 constraint when more than 100 obligations were overdue.

The canonical AdCP schema defines the 100-item bound without issue pagination or an omitted-count field. The task documentation defines health priority as action_required, then delayed, then healthy/informational status.

What changed

  • cap every external reporting-status issue projection at 100, including summary, live periods, nested periods, and frozen-feed periods
  • retain action_required issues before delayed and informational issues while preserving deterministic issue-ID order within each severity
  • leave obligation and pagination counts based on the complete selected scope
  • add schema-valid regression coverage for more than 100 overdue obligations and document the upgrade requirement

Verification

  • make lint — passed
  • make typecheck-all — passed
  • affected reporting suites — 112 passed, 30 PostgreSQL-only variants skipped
  • make test — invoked; 19,033 passed and 2,874 skipped locally. The remaining 9 failures and 5 setup errors were isolated to unchanged macOS/Linux-only or transient infrastructure tests: /proc and /etc/os-release interop assumptions, Darwin process-group cleanup, transient DNS, and non-reproducible packaging setup. Linux CI is the release gate.
  • two independent code reviews completed; the final review found no actionable findings

Rollout

After this reaches a published 10.x SDK patch, scope3data/embedded-sales-agent should bump its exact adcp==10.0.0 pin to that patch and regenerate uv.lock. No ESA files are changed here.

Linear: AI-27115

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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