Skip to content

feat(training-agent): add a second ad-server inventory tenant with its own season - #9352

Open
yvassiliadis wants to merge 3 commits into
adcontextprotocol:mainfrom
yvassiliadis:yvassiliadis/feat-training-agent-second-adserver-tenant
Open

yvassiliadis wants to merge 3 commits into
adcontextprotocol:mainfrom
yvassiliadis:yvassiliadis/feat-training-agent-second-adserver-tenant

Conversation

@yvassiliadis

Copy link
Copy Markdown
Collaborator

What

Adds a third inventory tenant, /adserver-us: an ad server of the same kind as /inventory-adserver, with its own shipped season.

  • Three properties, one per publisher (Northstar, Meridian, Harbor), one product each: Northstar in an open first-price auction (floor 2), Meridian and Harbor guaranteed at 5 and 6 CPM. Run of site 300x250 display, US regions only, USD. Profiles, traffic shape and forecast error are as in the existing ad server season.
  • Same tools and the same controller scenarios as /inventory-adserver. Its market and season_fingerprint are its own per credential; the sandbox clock stays shared per credential across tenants.
  • Existing tenants are untouched: their season objects, fingerprints and ENGINE_VERSION are unchanged (the tests pin the season objects by identity). Hosted seasons are per deployment, so a second world is a second tenant rather than a change to the shared season.

How

  • tenants/inventory.ts: one table of inventory tenants (id, kind, season file env var, shipped season, label). TRAINING_AGENT_INVENTORY_ADSERVER_US_SEASON_FILE replaces the new tenant's season, as for the others.
  • tenants/router.ts: the geo-places route, the advertised geo places and the capabilities projection serve every ad-server-kind tenant, each naming its own resolver URL; protocol claims for inventory tenants derive from the tenant list.
  • The new tenant has its own MCP server name and signing key id (tenants/signing.ts takes an optional key id prefix, and refuses a different prefix for an already-created key). Other tenants' output is unchanged. It shares the ad server's place system.
  • deploy.yml: /adserver-us/mcp added to the post-deploy smoke list, since inventory tenants register as optional and a failed registration is otherwise silent.
  • Not added to the storyboard CI matrix, so no required check changes.
  • No docs page change.

Tests

New training-agent-inventory-adserver-us.test.ts (season passes the strict loader, products and rates, tenant listed and served, capabilities and resolver name the right tenant, booking and delivery, controller scenarios, separate market per tenant, reset and clock start across tenants, wording scan of the surfaces the tenant authors). The existing inventory, season-file, targeting, tenant and lifecycle suites pass.

Notes

🤖 Generated with Claude Code

yvassiliadis and others added 3 commits December 4, 2026 13:47
…s own season

adds /adserver-us: three US publishers (an open auction and two guaranteed
products at 5 and 6 CPM, USD), its own market and season fingerprint per
principal, and the same tools and controller scenarios as /inventory-adserver.

- tenants/inventory.ts: one table of inventory tenants with a kind, season
  file env var, shipped season and label
- router: the geo-places route, advertised places and capabilities serve every
  ad-server-kind tenant, each naming its own resolver url
- per-tenant server name, signing key id and place system for the new tenant;
  existing tenants' output is unchanged
- deploy smoke list includes the new route

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ins and place system as placeholders

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…sher domains for the new tenant

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

mintlify Bot commented Dec 4, 2026

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 039a20c.

Approve preview

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