Repository navigation
fix(training-agent): a seeded inventory product reports its fixture's reporting_capabilities - #9164
Merged
Merged
Conversation
… reporting_capabilities A seeded product's wire shape always carried the tenant's default reporting_capabilities, so a fixture declaring, say, the viewability container still showed the tenant's metric list. Merge the fixture's reporting_capabilities over the defaults, which keep the fields the schema requires. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean app-scope fix in training-agent inventory-sim with no blocking or medium findings.
What I checked:
platform.ts:411merges a seeded fixture'sreporting_capabilitiesover tenant defaults: defaults first, fixture keys win, schema-required fields filled. Spread-last ordering +structuredClonematch the existingwireOverridespattern; the falsy short-circuit spreads{}so season/unseeded callers are unchanged.- Change is out of changeset scope — no
static/schemas/source/**, docs, dist, or package.json touched. No governance gate, no oneOf/discriminator surface, no worker/IO path. Changeset-scope and schema↔docs coherence rules do not apply. - Test asserts the override, the default-fill, and canonical output, and fails without the fix.
- The declared-vs-delivered metric gap is explicitly deferred to a follow-up in the PR body.
Gate check: gated_paths: false (row 2 inert). high_risk: false. No no-auto-approve team match. No critical/high/medium findings → rows 1–8 do not fire; falls through to row 9. review_decision: REVIEW_REQUIRED does not block approval absent a gate.
bokelley
enabled auto-merge (squash)
November 21, 2026 17:43
KonstantinMirin
added a commit
to KonstantinMirin/adcp
that referenced
this pull request
Nov 21, 2026
…tocol#9163, adcontextprotocol#9164) Brings in adcontextprotocol#9163 (a second cancel through inventory update_media_buy answers NOT_CANCELLABLE) and adcontextprotocol#9164 (a seeded inventory product reports its fixture's reporting_capabilities). Resolution ledger: - mechanical: none. - semantic: none. git merged server/tests/unit/training-agent-inventory-tenants.test.ts, which both sides changed, with no conflicts: main adds two tests beside this branch's changes. server/src/training-agent/inventory-sim/platform.ts changed only on main. Checks on the merge result: - npm run typecheck: pass. - server/tests/unit/training-agent-inventory-tenants.test.ts: 35 passed. - node scripts/precommit-server-unit.cjs --full: 867 files, 14,716 passed, 31 skipped. Before the merge: 14,714; main adds two tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
On the inventory tenants, a product seeded with
seed_productalways carried the tenant's defaultreporting_capabilities. A fixture declaring its own metrics, such as theviewabilitycontainer, didn't show them.The fixture's
reporting_capabilitiesnow merge over the defaults. The fixture's keys win (available_metrics, for example), and the defaults fill the fields the schema requires (available_reporting_frequencies,expected_delay_minutes,timezone, …). Season products and unseeded callers are unchanged.This is one of the gaps #9150's seeded storyboard run exposed.
Partial storyboard effect.
media_buy_seller/metric_container_subsumptiongets past the step that failed in CI: it was 4 passed / 1 failed, and locally it's now 5 passed / 1 failed. A later step still fails. It needsget_productsto applyfilters.required_metrics, using superset evaluation where a declared container satisfies its leaf metrics, and the inventory tenants don't apply that filter yet. That filter, andget_media_buy_deliveryhonouringrequested_metrics, are left for later, like the other filter gaps in #9150's list.Test plan
available_metrics: [impressions, spend, clicks, viewability]reports exactly those, and still carriesavailable_reporting_frequencies: ['daily']. The response stays canonical. It fails without the fix.metric_container_subsumptionlocally on/inventory-adserver: 5P / 1F, up from 4P / 1F. The remaining failure is the required_metrics filter.🤖 Generated with Claude Code