Why FACET Removes Forbidden Tools Before Model Inference
A model should not be asked to ignore a tool it was never allowed to use. The stronger design is to remove that tool from the model's action vocabulary before inference begins.
FACET v2.1.3 makes this boundary explicit. In Hypervisor mode, policy filtering for tool_expose happens before the runtime emits canonical.tools. A denied tool is omitted from the canonical request, while the denial is recorded separately as a GuardDecision.
I call the resulting tool list a capability projection: the contract may define a larger interface, but each run exposes only the subset authorized by its effective policy and execution inputs.
One interface, three different objects
Tool systems often collapse three questions into one list:
- Which operations exist in the application?
- Which operations may this run expose to the model?
- Which exposed operation may execute after the model selects it?
FACET keeps those questions separate.
| Object | Purpose | Typical contents |
|---|---|---|
| Contract interface | Defines the available operation types | names, argument schemas, return types |
| Capability projection | Defines the model-visible action vocabulary for this run | only policy-approved tool schemas |
| Runtime guard decision | Authorizes or denies a concrete attempted operation | operation, rule, evidence, decision |
This separation matters because visibility is already a form of authority. If a payment contract defines Payments.quote, Payments.charge, and Payments.refund, a support workflow may need only quote. Sending all three schemas and adding “never call charge or refund” to the system prompt does not create a hard boundary. It gives the model a larger grammar and asks probabilistic text to enforce policy.
A capability projection compiles that grammar down:
contract tools:
Payments.quote
Payments.charge
Payments.refund
policy for support/read-only:
expose Payments.quote
deny Payments.charge
deny Payments.refund
canonical.tools:
Payments.quote
The model cannot select a function that is absent from the request schema. This does not make the remaining tool safe by itself, but it removes two impossible actions before sampling.
Omission is stronger than a denied marker
A tempting alternative is to send every tool with metadata such as allowed: false. That preserves information for a human inspector, but provider tool schemas do not share one portable enforcement rule for custom authorization markers. A provider may ignore the marker because it is descriptive data, not part of its tool-selection semantics.
FACET therefore places audit information outside the model-facing list. The canonical request contains the projection. The Execution Artifact contains the decision trail.
Conceptually:
{
"canonical": {
"tools": ["Payments.quote"]
},
"execution": {
"events": [
{"op_kind": "tool_expose", "name": "Payments.charge", "decision": "denied"},
{"op_kind": "tool_expose", "name": "Payments.refund", "decision": "denied"}
]
}
}
The exact normative artifact has more fields and a hash chain; this abbreviated example shows the architectural split. The model sees only what it may propose. The auditor can still see what policy removed.
This is a narrower mechanism than the distinction I described in Why an AI Tool’s Effect Class Is Not a Permission. Effect classes classify risk; rules grant authority. Capability projection applies that authority to the tool vocabulary before inference.
Projection must be reproducible
Removing tools dynamically is useful only if another engineer can explain why the resulting list changed.
The projection should be derived from explicit inputs:
projection = project(
contract_interface,
effective_policy,
policy_version,
host_profile,
execution_mode,
declared runtime inputs
)
FACET binds policy_version and policy_hash into canonical metadata because identical-looking rules can acquire different meaning if evaluation semantics change. The host profile matters for the same reason: host-defined capabilities and enforcement behavior cannot remain ambient.
For a practical implementation, I would also expose a deterministic inspection command:
$ fct inspect support.facet --profile support-readonly
VISIBLE Payments.quote
DENIED Payments.charge rule=support-no-write
DENIED Payments.refund rule=support-no-write
That output is not a second policy engine. It is a readable view of the same projection and guard decisions used to build the request. If inspection and execution compute different lists, the architecture has already failed.
This connects naturally to debugging FACET compiler artifacts before execution: the model-visible tool surface should be reviewable before any provider call consumes it.
Pre-inference filtering does not replace the runtime guard
Capability projection and runtime authorization protect different moments.
Projection answers: may the model see and propose this operation?
The runtime guard answers: may this concrete operation begin now, with these arguments and this state?
An exposed tool may still be denied at dispatch because the amount exceeds a bound, the resource identity changed, a required input is missing, or policy evaluation becomes undecidable. FACET requires the guard decision before external initiation for guarded operations. A model-visible schema is not an execution permit.
The two-stage design closes two different gaps:
contract interface
|
v
capability projection -- removes forbidden proposals
|
v
model selection
|
v
runtime guard -- authorizes the concrete attempt
|
v
external effect
Using only the runtime guard allows the model to waste tokens proposing impossible calls and may leak names or schemas that the run never needed. Using only projection cannot evaluate dynamic arguments or current state. Both boundaries are necessary.
That is also why pre-execution authorization remains the final effect boundary. Projection reduces the action space; the guard controls the actual transition.
What the mechanism does not prove
A minimal tool list does not prove that the model will choose correctly. It does not prove that an exposed read operation cannot leak data. It does not secure a tool implementation that accepts alternate unguarded entry points. It also does not replace provider-side and host-side schema validation.
The claim is precise: policy-denied tools do not belong in the canonical model-facing tool list, and their omission should be derived and auditable.
The public FACET specification defines this ordering and the compiler repository implements the relevant canonical rendering and execution-artifact machinery. I am not presenting an independent security benchmark, and I am not claiming that vocabulary reduction alone measures lower incident rates.
Compile authority into the vocabulary
Prompts are useful for intent. They are a poor place to hide authorization.
When the model receives a tool schema, the system has already expanded what the model can express. FACET treats that expansion as a governed operation. The interface defines the universe, policy projects the permitted vocabulary, and the runtime guard authorizes the concrete effect.
I prefer this order because it makes the boundary visible in artifacts rather than implied by instructions. Do not tell the model that a forbidden action exists and hope it behaves. Compile that action out of the run.