Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

docs: name the cross-process runtime recording backup gap

[._.]/ Adam Eivy2702d6f1b742
diff --git a/docs/BACKUP.md b/docs/BACKUP.md
index 79ceadb979..93997f62fc 100644
--- a/docs/BACKUP.md
+++ b/docs/BACKUP.md
@@ -109,6 +109,7 @@ Admission inventory (`withBackupAssetPublication`):
| CoS raw recording compression and purge (`cosAgentStorage.js`) | Covered (#9982 partial): verified gzip publication, storage manifest and plain-file removal share a lease; purge intent and unlinks also share a lease because the manifest is file-primary |
| CoS agent archive/index publication (`cosAgentLifecycle.js`, `cosAgentArchive.js`, `cosAgentIndex.js`) | Covered (#9982 partial): completion, zombie/stale archival, deletion and legacy layout migration lease directory changes through state and index publication; state-locked workflows acquire admission first |
| Game compiled manifests (`games/compile.js`) | Covered (#9982 partial): versioned manifest and game compiled/history pointers hold one lease before the per-game queue |
+| Active runtime transcript/metadata pairs (`runner.js`, `tuiPromptRunner.js`, `agentTuiSpawning/outputSpooler.js`, `sessionController.js`) | Outstanding (#9982): output replacement and completion metadata, parsed output/state batches and raw-spool truncation flags span writes and may execute in the separate runner process. The server-local lease cannot establish a cross-process recording cut; requires a coordinated barrier before claiming global consistency |
| Durable replacement/deletion owners not yet classified | Outstanding (#9982) |
| Snapshot consistency claim (`backupAssetOwners.js`, see below) | Covered (#9982 partial) |
| Database restore execution and backend-cutover acceptance (`backup.js`, `databasePreflight.js`) | Covered (#9983) |
diff --git a/server/lib/backupAssetOwners.js b/server/lib/backupAssetOwners.js
index 1eae6ccbce..34695531df 100644
--- a/server/lib/backupAssetOwners.js
+++ b/server/lib/backupAssetOwners.js
@@ -429,6 +429,20 @@ export const BACKUP_ASSET_OWNERS = Object.freeze([
status: 'admitted',
modules: ['services/games/compile.js'],
},
+ {
+ // Active run transcripts and their file-primary completion metadata are
+ // mutated by server and separate CoS/TUI runner processes. Final output
+ // replacement precedes metadata; spool batches append output/state in
+ // parallel and raw truncation flags are separate writes. A server-local
+ // lease cannot drain the other process; requires a cross-process barrier.
+ id: 'runtime-recording-publication-across-processes',
+ status: 'outstanding',
+ modules: [
+ 'services/runner.js', 'lib/tuiPromptRunner.js',
+ 'services/agentTuiSpawning/outputSpooler.js',
+ 'services/agentTuiSpawning/sessionController.js',
+ ],
+ },
// Anything the sweep did not reach. A new asset owner lands here until it is
// classified; the claim cannot become `global` while this entry exists.
{ id: 'unclassified-durable-owners', status: 'outstanding', modules: [] },