Source reference: services/fleetd/docs/storage.md at 41af2124

A controller root holds its descriptor, explicit fleet registry, desired intent, resume selections, operation files, diagnostics and private fleetd.sock. Registered fleets may live elsewhere. Private state is retained with its owning directory; a workarea does not move when native cwd changes.

Startup accepts UUID operation files in operations/ and daily diagnostic partitions in logs/. Profiles and listener state use only immutable instance keys, never a display-name lookup or automatic relocation. Readers validate their current format; they do not inspect superseded filenames.

The OS-user authentication file is outside individual controller roots, at the native configuration location ending in ctlflow/fleetd.json. fleet and fleetd read that same private file. Back it up with the roots and native histories; moving a root does not move or regenerate its key.

Native registries#

RuntimeRegistry
Codex.codex/crossfire-context-registry.json
Pi.pi/crossfire-contexts.json

The registry maps shared, control and room contexts to native sessions. Pi additionally binds exact native files/instruction digests. Native conversation stores remain runtime-owned; registries do not copy or merge them. The same adapter creates and resumes shared and per-room sessions.

Established histories cannot be silently replaced. First initialization, an authorized new room/mode context and explicit confirmed reset are the only creation cases. Corrupt registry, receipt, decision or observation state is retained for diagnosis, not treated as permission for a fresh context.

Private locks#

Lock files have no application tables. C# and Rust use the same exclusive SQLite transaction and in-memory rollback-journal protocol. A live/suspended owner retains exclusion; process exit releases it. Do not delete the inode, use guessed PIDs or break another writer’s lock.

The native-writer gate is outside guest exports at the OS-user configuration directory’s ctlflow/native-ownership/<sha256-of-state-path>. Its host-only execution.json fences a surviving execution group until that group is empty. Exported filesystem locks do not provide cross-kernel exclusion.

For selected VM execution , exact .codex/.pi histories, workspace and approved data remain on host storage. Sockets and controls use $XDG_RUNTIME_DIR/cfvm-<execution-id>. Disposable overlays, seed and helper data use $XDG_CACHE_HOME/ctlflow/vm/<execution-id> and are removed after confirmed closure. vm-receipt.json remains in the host ownership directory. Controller credentials, ownership gates and peer state cannot be guest exports.

Native contexts#

Codex and Pi each read one current context registry. Resume retains the exact saved session identity. There is no historical metadata converter. Credentials and native conversation files remain owned by the native runtime.

Other retained state#

Pending real input, native confirmations and unacknowledged operation outcomes remain recovery state. Historical task reminders have no retained checkpoint owner. Completed diagnostics/operation history use the logging age policy. Each reader accepts one current format. Null fields represent facts that were not observed, not accommodation of historical records.