FormaFS Kernel v0.1
Status: RELEASE_CANDIDATE (campaign FORMAFS-KERNEL-v0.1, closed; audit remediation F1–F6 and FormaLake landing repairs FL-FIN-01..05 applied)
Contract: crates/formafs-core (FORMAFS_KERNEL_CONTRACT_REVISION = ("formafs-kernel-contract-v0.1", 1)); architecture authority: docs/FORMAFS-KERNEL-v0.1-CAMPAIGN-PACKAGE/CAMPAIGN/04-FORMAFS-ARCHITECTURE-DECISION.md and 05-FORMAFS-KERNEL-CONTRACT.md
Evidence: docs/formafs/FORMAFS-KERNEL-v0.1-CLOSURE.md; release gates W1–W5 in crates/formafs/tests/witnesses.rs
This documentation set: generated by CAMPAIGN-FORMA-DOCS-QUAD-v0.1 from the implemented code. Documentation is not semantic authority.
What it is
FormaFS is the persistent-resource kernel of the FormaSL platform: a durable existence layer that other capabilities (FormaLake, FSheet, FDoc, ApplicationState, Scenario, Agents) build on to persist resources, advance their exact states, name them through versioned namespaces, attach representations, and observe every mutation through a changes feed.
The conceptual stack it implements (crate doc, crates/formafs/src/lib.rs):
FormaSL = meaning
FormaFS = durable existence + exact cross-capability resolution
Storage = physical realization (pluggable provider)
Runtime = execution
The pillars
| Pillar | What it owns | Where |
|---|---|---|
| Resources & exact states | Every durable object is a resource with a monotone history of exact states; state advancement is CAS under an expected head | crates/formafs/src/service.rs (create_resource, advance_state) |
| Owner bindings | Each resource carries an OwnerBinding mirroring the caller’s object — correspondence, never identity | crates/formafs-core/src/capability.rs |
| Namespaces & designators | Versioned name→resource maps; binding/rename never change identity; resolve_at resolves under an exact historical revision | crates/formafs-core/src/namespace.rs |
| Representations | Role-tagged renderings attached to one exact state (7 roles); integrity digests are metadata, not identity | crates/formafs-core/src/representation.rs |
| Changes feed | Every mutation is a typed event readable by cursor | crates/formafs-core/src/change.rs |
| Storage port | Provider-neutral storage with durability profiles, CAS, idempotency and receipts; the durable provider is the Forma-NeuG native engine | crates/storage, crates/storage-forma-native |
Crate map
| Crate | Role |
|---|---|
crates/formafs | The kernel service FormaFs (22 public operations) + the FSheet adapter example |
crates/formafs-core | Zero-dependency carriers: identities, capability refs, namespaces, representations, changes, errors, canonical encoding |
crates/storage | Provider-neutral storage plane (port, registration, commit/CAS, receipts, requirements, limits, history, backup, …) |
crates/storage-forma-native | The durable provider (Forma-NeuG Rust engine), conformance-tested against the storage port |
No binary ships in this set — FormaFS is a library substrate. Higher layers (FormaLake, FSheet app, FDoc workbench) provide the user-facing executables.
Documentation map
| Document | Contents |
|---|---|
| DEFINITIONS.md | The kernel vocabulary: every term with its implemented meaning, code anchor, and the != laws |
| GETTING-STARTED.md | Provider registration/binding and your first resource, with a live transcript |
| TUTORIAL.md | A small but complete service on the kernel: versioning, contention, representations, namespaces, restart |
| API-REFERENCE.md | The 22 kernel operations and the 16 typed errors |
| STORAGE.md | The storage plane: providers, durability profiles, requirements, how to implement a provider |
| ADAPTERS.md | How a capability embeds on the kernel (the FSheet adapter pattern) |
| OPERATIONS.md | Persistence, restart/recovery, idempotency, containment, known boundaries |
| examples | kernel_walkthrough.rs — the executable source of the transcripts |
Reading order: DEFINITIONS → GETTING-STARTED → the doc matching the task (embedding = TUTORIAL/ADAPTERS; ops = API-REFERENCE; infra = STORAGE/OPERATIONS).
What v0.1 is not (explicit scope)
FormaFS != semantic authority (meaning stays in FormaSL; "storage
never becomes semantic authority")
FormaFS != a directory tree / POSIX FS (namespaces are versioned relations;
no paths, no traversal, no files)
FormaFS != a query engine (observation lives in capabilities)
FormaFS != content-addressed storage (SameBytes -/-> SameResource)
FormaFS != a universal revision clock (No UniversalRevision)
The historical proposal docs/FORMAFS-KERNEL-v0.1-CAMPAIGN-PACKAGE/EVIDENCE/HIST-ARCH-01-FORMAFS-FORMALAKE.md
described a metagraph/POSIX-projection architecture that was not the
implemented design; see its obsolescence banner.