Clearance-Tiered Inference¶
Learning objectives
By the end of this module you should be able to:
- Explain why the choice of which model handles a request is an authorization question before it is a quality question.
- Describe the tier-alias indirection and what it decouples.
- Recognize a hardcoded model name as evidence of a question that was skipped.
The question underneath "which model"¶
Most discussions of model selection are about capability and cost: use the strong model for hard tasks, the cheap model for easy ones. That framing is fine for an open-cloud application. In a sovereign system it is incomplete, because it skips a prior question:
Is this request even allowed to reach that model?
A "model" in a sovereign deployment is not just a set of weights with a quality level. It is an endpoint with a location and a reachability. Some models run fully in-boundary, inside the enclave, touching nothing external. Others are served by a commercial cloud provider outside the boundary. Sending a request to the second kind means data leaving the enclave. For a request carrying controlled technical data, that is not a cost-versus-quality trade — it is the exact event the whole system exists to govern.
So the first thing model selection must respect is not "how hard is this task" but "what is this request cleared for, and which models are therefore reachable at all." Clearance gates the set of admissible models; capability and cost choose within that set. Reverse the order and you have built a system where a routine performance optimization can route controlled data across the boundary.
That ladder includes an explicit commercial posture for ordinary commercial or synthetic work (asserted, never the silent default), unclassified work that is still carefully gated, and restricted postures designed never to reach a cloud model. See Data Classification as Architecture for the label-as-architecture argument.
Tiers, not vendors¶
The mechanism is an indirection. Application and agent code never name a model. They ask for a capability tier — an abstract level of capability with a defined clearance requirement — and a routing layer resolves that tier to a concrete model endpoint at runtime, according to the deployment's configuration and the request's clearance.
Concretely, the reasoning loop says "synthesize this at the frontier tier," not "call this specific model from this specific vendor." The tier is a contract about capability and admissibility; the binding from tier to endpoint lives in configuration, at the boundary, where it can be governed.
This indirection decouples three things that hardcoding fuses together:
- Capability from vendor. The frontier tier can be served by different endpoints in different deployments — a commercial API in a cloud posture, an in-boundary model in a sovereign one — without changing a line of application code.
- Routing from clearance. Because the tier carries a clearance requirement, a request that is not cleared for an out-of-boundary endpoint simply cannot be routed there; the routing layer will only bind the tier to an endpoint the request is authorized to reach.
- The business decision from the infrastructure. Which vendor, which model, which region — these are configuration choices a deployment makes, not facts baked into the codebase. The in-boundary cutover of a tier is a config change, not a rewrite.
Why a hardcoded model name is a smell¶
Here is the module's sharpest claim. A codebase that contains a literal model
name — call('some-specific-model') — has usually done two things wrong at once,
and the visible one is the lesser.
The visible problem is coupling: the code now depends on a specific vendor's specific product, and swapping it is a code change. Annoying, but survivable.
The deeper problem is what the hardcoded name reveals about the design process. If the model was chosen and wired in directly, then the question "which requests are allowed to reach this endpoint, given where it runs" was probably never asked at that layer — because the layer that should ask it is the one the indirection would have created. A hardcoded model name is, more often than not, the fossil of a skipped authorization question. The system will happily send whatever the agent produces to that endpoint, because nothing in the code path was ever built to decide whether it should.
This is why "never hardcode a model name" functions as more than a style rule in a sovereign platform. It is a forcing function: it makes you build the layer that asks the admissibility question, because you cannot name the endpoint directly even if you wanted to. The rule and the security property are the same thing seen from two sides.
Key takeaways¶
- Model selection in a sovereign system is an authorization question first: clearance decides the admissible set of models; capability and cost choose within it. Reversing that order lets an optimization leak data.
- The tier-alias indirection decouples capability from vendor, routing from clearance, and the business decision from the infrastructure — so an in-boundary cutover is a configuration change.
- A hardcoded model name couples code to a vendor and, more importantly, usually marks a place where the admissibility question was never asked.
For further study¶
- Design the resolution logic that binds a tier to an endpoint. What inputs does it need beyond the tier name itself, and where must each come from for the binding to be trustworthy? (Consider the signed context from Zero-Trust for AI.)
- A fallback is tempting: if the in-boundary frontier model is overloaded, route to a commercial one to preserve availability. Explain precisely why this fallback is safe for some tiers and a sovereignty breach for others, and how the routing layer should encode the difference.
- The module argues the "no hardcoded model" rule is a forcing function for building the admissibility layer. Is there any legitimate case for naming a concrete model in code? If you find one, characterize exactly what makes it an exception rather than a hole.
Next: Glass-Box AI — making the system's reasoning inspectable, so that an answer informing a real decision can be traced to what produced it.