FACET v2.1.3: The Production Standard for Deterministic AI
For the past year, my work has focused on a single core problem in modern AI systems: the absence of enforceable contracts.
LLM systems repeatedly fail for the same reasons: tools are declared, not enforced; schemas are suggested, not guaranteed; state mutations happen ad hoc. Most engineering stacks attempt to solve this with prompt hacks, retries, and post-hoc validators that fire only after the model has already produced an invalid state.
FACET v2.1.3 flips the order of operations. We validate and constrain before generation, not after.
I am announcing the release of FACET v2.1.3 (REC-PROD). This release isn't just a minor update; it formalizes the security layer, introducing a robust Policy/Authorization Model, capability classes, and fail-closed runtime enforcement. It cements FACET as a compiler and execution model for AI behavior.
What is FACET?
If you are new to this ecosystem, FACET is a Neural Architecture Description Language (NADL) and contract system. Instead of relying on probabilistic improvisation, FACET treats AI behavior as compiled software:
- Parses a
.facetdocument into a strict AST - Performs compile-time checks via a strict Facet Type System (FTS)
- Executes variables through a deterministic Reactive DAG (R-DAG)
- Packs context via a deterministic Token Box Model
- Renders provider-specific payloads from a canonical JSON IR
This is not a "better prompt template". It is an architecture designed to outlive any single vendor, model, or SDK. The broader FACET ecosystem — compilers, agents, orchestrators — exists to prove the standard in practice. Implementations may evolve; the contract remains.
You can read the full specification in the official facet-standard repository.
What's New in v2.1.3
The primary focus of v2.1.3 is closing formal gaps in authorization, security boundaries, and determinism.
1. The Policy / Authorization Model & Runtime Guard
We have introduced a declarative @policy facet to control tool exposure, tool calls, and lens executions. This comes with a mandatory Runtime Guard for Hypervisor-profile implementations:
@policy
deny:
- op: "tool_call"
effect: "payment"
unless: { all: ["$user.is_auth", "$request.is_verified"] }
- Fail-Closed Semantics: Any guarded operation without a deterministic ALLOW is rejected.
- We draw a sharp line between a deterministic policy deny (
F454) and an undecidable evaluation (F455).F455is emitted when missing runtime data prevents a strict decision, enforcing a pure fail-closed paradigm. - Guard decisions must be evaluated before any external initiation begins.
2. Capability and Effect Classes
All tools and stateful lenses must now declare a formal effect class (read, write, payment, external, filesystem, network).
readis strictly observational.paymentis treated as the highest-sensitivity class and is distinct fromwrite.- Operations lacking a declared effect are treated as side-effecting (
null) and are heavily guarded by default.
3. Provenance and Hash-Chaining
Reproducibility demands auditable proof. Implementations can now emit an Execution Artifact—a json object capturing a stable hash-chain of all GuardDecision events alongside the document hash and policy hash (metadata.policy_hash wraps { policy_version, policy: EffectivePolicyObject }). This artifact serves as undeniable provenance that your workflow ran according to its contracts securely.
4. Deterministic R-DAG Tie-Breaks
To ensure identical execution paths, independent nodes in the Reactive DAG now resolve topological tie-breaks strictly based on the merged ordered-map insertion order. Overriding a variable does not alter its position in the queue.
The FACET Ecosystem
FACET is not a prompt template, and it's not a generic wrapping library. It is a vertically integrated, contract-first architecture.
If you want to adopt the standard or see it in action, explore the ecosystem:
- 📜 FACET Standard: The formal normative definition and rationale.
- 🦀 FACET Compiler: The reference Rust implementation enforcing strict FTS and creating R-DAGs.
- 🤖 FACET Agents Ecosystem: Conformance demonstrations. 15+ agents validating reproducibility and tool-calling correctness.
- ⚡ FACET MCP Server: An execution host and protocol adapter.
- 📄 FSSG (FACET Static Site Generator): Demonstrates how Canonical JSON enables deterministic downstream publication.
- 🧠 FACET Orchestrator (RMCP): The sub-10ms distributed coordination layer that applies FACET contracts at scale.
Conclusion
When we talk about an OS for AI, we're really talking about moving from "best-effort" to strictly engineered systems. Determinism is a property of the system, not the model.
By enforcing rigorous token box algorithms, pipeline type-safety, and now fail-closed capability guarding, FACET v2.1.3 sets the baseline expectation for any production-grade architecture moving forward.
AI systems should be engineered, not improvised.
By Emil Rokossovskiy — AI & Platform Engineer, Creator of FACET.