Security and trust
Facets enable arbitrary text injection into AI assistant contexts and arbitrary code execution via MCP servers. Implementors MUST address:- Composition integrity — composed text MUST be assembled server-side from trusted sources.
- Content verification — hashes MUST be verified at install time and on every cache hit. A lockfile entry MUST NOT be created without registry confirmation.
- Server execution safety — the CLI MUST control exactly what executes. Servers MUST stop when the session ends.
- User consent — consumers SHOULD understand what a facet contains before installing it.
Sections
Terminology
Canonical terms and definitions.
Integrity Model
Content hashing, cache audit, OCI digests, API surface hashing.
Install & Resolve
How facets are installed and server references resolved.
Install Pipeline
Plan/commit pipeline, integrity chain, receipt, tri-write.
Publish Flow
How facets are built and published to the registry.
Architecture
Actors, artifact types, distribution model, design principles.
Manifest Schema
The
facet.json format — fields, types, constraints.MCP Server Assets
Source-mode and ref-mode server publication and execution.