Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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

PillarWhat it ownsWhere
Resources & exact statesEvery durable object is a resource with a monotone history of exact states; state advancement is CAS under an expected headcrates/formafs/src/service.rs (create_resource, advance_state)
Owner bindingsEach resource carries an OwnerBinding mirroring the caller’s object — correspondence, never identitycrates/formafs-core/src/capability.rs
Namespaces & designatorsVersioned name→resource maps; binding/rename never change identity; resolve_at resolves under an exact historical revisioncrates/formafs-core/src/namespace.rs
RepresentationsRole-tagged renderings attached to one exact state (7 roles); integrity digests are metadata, not identitycrates/formafs-core/src/representation.rs
Changes feedEvery mutation is a typed event readable by cursorcrates/formafs-core/src/change.rs
Storage portProvider-neutral storage with durability profiles, CAS, idempotency and receipts; the durable provider is the Forma-NeuG native enginecrates/storage, crates/storage-forma-native

Crate map

CrateRole
crates/formafsThe kernel service FormaFs (22 public operations) + the FSheet adapter example
crates/formafs-coreZero-dependency carriers: identities, capability refs, namespaces, representations, changes, errors, canonical encoding
crates/storageProvider-neutral storage plane (port, registration, commit/CAS, receipts, requirements, limits, history, backup, …)
crates/storage-forma-nativeThe 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

DocumentContents
DEFINITIONS.mdThe kernel vocabulary: every term with its implemented meaning, code anchor, and the != laws
GETTING-STARTED.mdProvider registration/binding and your first resource, with a live transcript
TUTORIAL.mdA small but complete service on the kernel: versioning, contention, representations, namespaces, restart
API-REFERENCE.mdThe 22 kernel operations and the 16 typed errors
STORAGE.mdThe storage plane: providers, durability profiles, requirements, how to implement a provider
ADAPTERS.mdHow a capability embeds on the kernel (the FSheet adapter pattern)
OPERATIONS.mdPersistence, restart/recovery, idempotency, containment, known boundaries
exampleskernel_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.