$ fssg build --deterministic --validate |

Why an AI Tool’s Effect Class Is Not a Permission

FACET

A tool schema answers what can be called. An effect class answers what kind of boundary the call may cross. Neither answers whether this call is allowed now.

That distinction looks small. It is one of the differences between an agent that has tools and an execution system that has authority control.

In FACET v2.1.3, I deliberately keep three objects separate:

  1. the interface describes the callable operation;
  2. the effect class classifies its consequence;
  3. the policy decision grants or denies one attempted operation.

Collapsing these objects creates ambient authority. Preserving them creates a boundary the runtime can actually enforce.

Classification is not authorization

Consider two interface functions:

@interface Documents
  fn get(id: string) -> string (effect="read")
  fn replace(id: string, body: string) -> bool (effect="write")

The declarations tell the compiler and runtime that Documents.get is observational and Documents.replace mutates persistent state. This is useful: the runtime no longer has to infer risk from a function name or from natural-language documentation.

But effect="read" is not an allow rule. It does not say which document may be read, for which task, under which inputs, or in which execution mode. In the FACET specification, tool calls are guarded operations. The default is deny unless a deterministic policy explicitly permits a supported subset.

That gives us an important invariant:

Risk classification may influence policy, but it cannot manufacture authority.

A tool marked read can still expose confidential data. A tool marked network can still contact an untrusted destination. A tool marked payment must not become ordinary write merely because both mutate state. FACET therefore defines effect classes as semantically distinct rather than as points on a loose severity scale.

The three-stage authority path

I find it useful to model tool authority as a pipeline:

Stage Question FACET artifact
Exposure May the model even see this tool? tool_expose guard decision
Invocation May this exact operation cross the boundary? tool_call guard decision
Evidence What decision was made over which input? GuardDecision in the Execution Artifact

The first stage matters because tool exposure is already a capability surface. If a denied tool remains in canonical.tools, the model can plan around authority it does not have, leak its schema into generated output, or repeatedly attempt a forbidden path. FACET Hypervisor implementations must filter denied tools before emitting the canonical tool list and must record the denial.

The second stage matters because visibility is not execution permission. A tool may be visible for one branch of a workflow while a particular call is denied by effect, mode, condition, or default policy. The guard must decide before external initiation—not after the network request has started and not after a side effect has been attempted.

The third stage matters because “the guard checked it” is not evidence. A FACET GuardDecision binds the operation name, effect class, mode, result, matching policy rule, and a canonical hash of the attempted input. Allowed and denied attempts become inspectable events rather than success-only logs.

This complements the FACET policy-as-executable-authorization model. The narrower point here is that classification, exposure, invocation, and evidence are separate contracts.

Why one permission bit fails

A boolean such as tool.enabled = true merges too many meanings:

registered
  ≠ visible to the model
  ≠ allowed for this task
  ≠ allowed with these arguments
  ≠ actually executed

Once these meanings collapse, review becomes guesswork. Did the agent possess the tool because a plugin was installed? Because a user approved it? Because the current task required it? Does the approval survive a changed input? There is no stable answer.

FACET does not solve every authorization problem. Its policy conditions are intentionally deterministic and constrained; they are not a remote identity system, a consent protocol, or a general-purpose distributed authorization service. Resource-level entitlements still belong to the host system. Task delegation across agents may require portable credentials outside FACET.

That boundary is important. An emerging IETF Internet-Draft on Attenuating Authorization Tokens proposes signed, task-scoped credentials that can be delegated only with equal or narrower authority. It addresses portable authority across agent boundaries. FACET addresses a different layer: deterministic declaration, local guard enforcement, canonical request identity, and execution evidence around a compiled AI contract.

These layers can compose:

portable task credential
        ↓
host validates identity and scope
        ↓
FACET materializes deterministic policy inputs
        ↓
runtime guard decides tool_expose / tool_call
        ↓
Execution Artifact records the decision

The draft is work in progress, not proof of adoption or production performance. Its value here is architectural: it makes task-scoped, attenuating authority explicit instead of treating a session token as a universal permission. That direction converges with FACET’s insistence that authority be carried by enforceable artifacts, not implied by a prompt.

The failure cases become testable

This separation gives a conformance suite precise negative cases:

  • a write operation without an allow rule must be denied;
  • a tool denied at tool_expose must not appear in canonical.tools;
  • a visible tool must still be denied when its invocation rule does not match;
  • a missing or invalid effect class must fail closed, not degrade to read;
  • a deterministic policy denial must be distinguishable from an undecidable guard failure;
  • denied attempts must still emit decision evidence.

That is a much stronger reader outcome than “use least privilege.” It tells an implementer which transitions to test and which artifacts must exist after each transition. It also aligns with FACET compliance levels: compatibility claims should name the enforcement surface they actually cover.

Authority should be a derived result

I do not want an AI runtime to ask, “Does this agent have the tool?” That question is too coarse.

I want it to derive a narrower result:

Given this compiled contract,
this effective policy,
this operation descriptor,
this canonical input,
and this execution mode:
ALLOW or DENY before initiation.

The tool schema contributes shape. The effect class contributes consequence. The policy contributes authority. The guard contributes timing. The Execution Artifact contributes evidence.

None of them can safely impersonate the others.

That is the real role of a contract layer around probabilistic intelligence: not to make the model certain, but to make authority explicit enough that the runtime can refuse ambiguity.

Sources

FACET AI CLI Terminal
facet@ai:~$