Remove inference_geo from the Agent model contract - #182
Merged
Conversation
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.
Problem
Mango exposed
model.inference_geobecause it appeared in a Claude Managed Agents SDK contract delta, not because Mango had selected a portable user or operator workflow for per-Agent provider placement.That field crosses the wrong boundary for Mango:
Operators already select and govern Mango's configured model endpoint outside the Agent contract.
Solution
inference_geofrom Mango's/v1Agent and Session model configuration, resolved snapshots, OpenAPI schema, and documentation.inference_geofrom the Messages adapter and remove the dedicated request-usage database column.docs/provenance.md.Acceptance criteria
model.inference_georeturns the normal 400 unknown-field error./v1contract.Non-goals
/v1field.API and migration impact
This is an intentional breaking development-API change:
model.inference_geois removed in place from/v1and now returns 400 as an unknown field.The unused
inference_geocolumn is removed from the pre-release00031_model_request_usagebaseline migration and regenerated database model. Development databases may be rebuilt under the repository policy. An already-applied development schema may retain the unused defaulted column without affecting new inserts.Durability and security
No Session lifecycle, retry, or recovery semantics change. Older serialized payloads may contain an ignored JSON field, while new Workflows and model requests no longer carry it. Provider credentials and sandbox boundaries are unchanged. Routing and residency enforcement remain the responsibility of the operator-selected model endpoint rather than an unenforceable Agent declaration.
Validation
make verifymake docs-checkmake test-service