Skip to content

fix(reporting): skip zero-buy source acquisition - #2019

Merged
rachitm022 merged 1 commit into
nextfrom
claude/issue-2017-skip-zero-buy-acquisition
Dec 6, 2026
Merged

rachitm022 merged 1 commit into
nextfrom
claude/issue-2017-skip-zero-buy-acquisition

Conversation

@rachitm022

Copy link
Copy Markdown
Collaborator

Why

Staging Sentry issue EMBEDDED-SALES-AGENT-BH recorded 333 events (94 in the last 24 hours at investigation time) from ESA 1.117.1 / adcp==10.0.0. An official reporting obligation with a complete empty media-buy scope reached _build_slice, raised EMPTY_DENOMINATOR, and aborted the configuration's worker turn before later obligations could progress.

Fixes #2017.

What changed

  • Recognize a complete zero-buy obligation independently of requested finality before source acquisition.
  • Preserve the existing zero-row snapshot revision for snapshot obligations.
  • Treat official zero-buy obligations as platform-owned source-free no-ops without fabricating an official revision or finality evidence.
  • Cover direct acquisition and a mixed turn where a zero-buy obligation precedes a normal obligation.

Main-line impact

The same semantic routing issue exists on main: a zero-buy obligation reaches _build_slice and is recorded as a failed/escalated slice. Main catches EMPTY_DENOMINATOR and retires the work item, so it does not have the exact v10/next whole-turn abort. This PR targets next; no second PR is included.

Verification

  • make lint
  • make typecheck-all
  • make test — 23,452 passed, 3,327 skipped; six Linux-only interop acceptance tests fail on macOS because they require /proc and /etc/os-release. The pushed Linux CI run is authoritative for those six cases.

ESA pickup

Release this fix from next, then update ESA's exact adcp==10.0.0 pin to the resulting patch release and refresh its lockfile in a separate ESA change.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rachitm022
rachitm022 merged commit 69aac10 into next Dec 6, 2026
39 checks passed
@rachitm022
rachitm022 deleted the claude/issue-2017-skip-zero-buy-acquisition branch December 6, 2026 04:01
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