Repository navigation
feat(training-agent): declare and honour property_list targeting - #8078
Merged
bokelley merged 1 commit intoOct 9, 2026
Merged
Conversation
…t_exclude targeting The training agent now fetches buyer property lists from the referenced list agent (SSRF-guarded, Bearer only when a token is supplied, cached per session until cache_valid_until), applies include/exclude to the product's properties on create and update, and rejects the whole request when a list cannot be fetched or leaves no eligible inventory. Declares both capability flags and Product.overlay_support, and resolves the acme-outdoor test-kit lists so the inventory_list_* storyboards run. Refs #7911 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — server-only training-agent reference seller for buyer property-list targeting; no blocking findings.
What I checked
- Scope: server-only (
server/src/training-agent/**+ tests). Nostatic/schemas/source/**,docs/reference/**,dist/**, or migrations touched — so no changeset is required (a changeset here would be out of scope). - Wire fidelity:
get_property_listrequest (list_id/resolve/pagination.max_results/cursor) and response reading (identifiers/pagination.has_more/resolved_at/cache_valid_until) match the schemas;identifierMatcheshonors documented domain semantics (base+www+m,*.= subdomains only). - Safety: SSRF guard fails closed before any fetch (private/loopback/userinfo/query/fragment rejected); cache-expiry clamp bounds to a 1h snapshot with unparseable values falling to epoch; resolution bounded (5s/page, 15s wall-clock, 5k identifiers, 5 pages); timeouts/cancellation present on the MCP fetch path; update resolves before mutating a detached copy (atomic reject on bad list); account scoped to caller — no cross-account read.
Medium findings (1 — non-blocking)
server/src/training-agent/property-list-targeting.ts:334— Buyerauth_tokennow live and persisted unencrypted in session state at rest (stripped on the wire). Worth vaulting as a follow-up.
Decision: 1 medium finding, no critical/high, no gated paths, high_risk false, no team gate. Rows 1–8 do not fire (row 8 requires ≥3 medium); falls through to row 9 → approve.
Medium findings
- server/src/training-agent/property-list-targeting.ts:334 — Buyer auth_token now live-but persisted in session state at rest
bokelley
deleted the
conductor/33-pull-7911-training-test-agent-declare-and-hon
branch
October 9, 2026 08:22
bokelley
added a commit
that referenced
this pull request
Oct 9, 2026
Add impressions-optional delivery rows (#8108) to the versioning exceptions and migration guide, expected_confirmation_at on refine_proposals (#8104), SDK implementation metadata (#8079), unsupported-targeting-dimension details (#8052), experimental trust.json schemas (#8067), the Reliable Reporting compaction notice and REVISION_UNREADABLE (#8100, #8099), the sales-broadcast-tv 1.1.0 tightening (#8046), new signing and canonicalization vectors (#8068, #8076), and training-agent fixtures (#8106, #8078, #8012). Regenerate the In-review table from the 56 open 3.3.0 milestone issues. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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.
Refs #7911
What
The training agent becomes a reference seller for buyer property-list targeting: it declares the capability, fetches the buyer's list, and applies it, so a buyer can test a
PropertyListReferenceend to end.media_buy.execution.targeting.property_listandproperty_list_excludearetrue(current and 3.2 surfaces; not on the frozen 3.0-compat response, whose schema predates the flags).Product.overlay_support.property_list_excludeis set on every catalog product.overlay_support.property_listplusproperty_targeting_allowed: trueis set only on Meridian's multi-property products, so inclusion is offered only where a buyer can subdivide the inventory.validateListRefrejects a private, loopback or internalagent_url, userinfo, query and fragment for property lists, before any fetch. This deployment's own governance tenant is allowed and is read in process, with no network call.get_property_listthrough the existingsafeFetchpattern (no redirects, DNS-pinned).auth_tokenis sent as Bearer only when present, and is never logged or echoed (targetingForWirestill strips it). Snapshots are cached per session, keyed(agent_url, list_id, credential fingerprint), untilcache_valid_until(clamped to 1h). The fingerprint is an addition to the brief's key, so a credentialed fetch is never served to an anonymous caller. Page, identifier-count, identifier-length and wall-clock bounds apply.new_packages).property_targeting_allowed: falserejects include and still applies exclude.inventory-list-application-shaped receipt per list are on the package asext.training_agent.{effective_properties,list_applications}. ThePackageschema has no first-class field for either, andtargeting_resolutionrequiresdemographics, soextwas the schema-fitting home.PRODUCT_UNAVAILABLE. Include on a product that doesn't allow it, or exclude on one that doesn't declare it →UNSUPPORTED_FEATURE. List not found or denied →REFERENCE_NOT_FOUND. List agent unreachable, failing or malformed →SERVICE_UNAVAILABLE(transient). Private URL →VALIDATION_ERROR. The spec assigns no list-fetch-specific code; these follow the existingUNSUPPORTED_FEATURE/PRODUCT_UNAVAILABLE/REFERENCE_NOT_FOUNDconventions.Storyboards now running against
/salesDeclaring the capability turns on
media_buy_seller/inventory_list_targetingandinventory_list_no_match, which reference lists on a fictionalgovernance.pinnacle-agency.exampleagent ("the seller's test engine resolves them"). So:property-list-fixtures.tsresolves exactly the threeacme_outdoor_*property lists from the test kit in process; a unit test pins them toinventory_targetsinacme-outdoor.yaml.inventory_list_no_match(budget $10k) fails the minimum-spend check before reaching the list. This also changes Meridian'sprimaryPricing.Tests
training-agent-property-list-targeting.test.ts(29): SSRF reject with zero fetches, a real MCP list-agent stub (Bearer present/absent, cache hit, expiry refetch), include intersection, exclude, exclude emptying the package, overlap,property_targeting_allowed: false, fetch failure rejecting create and update (buy untouched), the in-process governance tenant, fixture/test-kit parity.training-agent.test.tssentproperty_listto a product that doesn't allow it; they now usecollection_list.npm run typecheckclean;npm run test:server-unit12,296 pass. The precommit hook ran green./salesran as all 8 isolated shards at 168/168 clean, 1,162 passed steps (floor 646).inventory_list_targeting6/6,inventory_list_no_match4/4,targeting_aware_discovery34/34.ADCP_SKIP_STORYBOARD_MATRIX=1(documented in.husky/pre-push, CI authoritative). It was clean through/signalsand was on/saleswhen I stopped it. The 3.0-compat surface does not see the new flags, so CI should grade it unchanged.Reviews
Security and code review agents ran. Fixed: cache and size bounds, cache-key ambiguity, URL logging, SSRF scoped to dialed (property) lists, seeded products that declare support but have non-enumerable inventory,
extmerge consistency. Not done: per-request memoisation of uncached lists, restricting list-agent ports, strippingauth_tokenfrom persisted package state.Follow-ups (not this PR)
Storyboard "seller fetches and applies a buyer property list";
get_productsproperty-list application andlist_applicationsreceipts.🤖 Generated with Claude Code
Open workspace in Conductor