Repository navigation
feat(training-agent): add a second ad-server inventory tenant with its own season - #9352
Open
yvassiliadis wants to merge 3 commits into
Conversation
…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>
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
This branch has not been deployed
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.
What
Adds a third inventory tenant,
/adserver-us: an ad server of the same kind as/inventory-adserver, with its own shipped season./inventory-adserver. Its market andseason_fingerprintare its own per credential; the sandbox clock stays shared per credential across tenants.ENGINE_VERSIONare 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_FILEreplaces 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.tenants/signing.tstakes 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/mcpadded to the post-deploy smoke list, since inventory tenants register as optional and a failed registration is otherwise silent.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
inventory.ts,router.ts,engine/index.ts). It is its own PR, not stacked, and will be rebased after whichever lands first. feat(training-agent): add a GB region to the hosted ad server season #9313 changes how region shares are read, so the season's sizing is re-checked after that rebase.🤖 Generated with Claude Code