Skip to main content

Module sync

Module sync 

Source
Expand description

oxibrain sync <DIR> [--space s] — vault sync.

Scans DIR recursively for .md files (oxibrain-connectors), classifies each against the ledger’s live note episodes for the space (oxibrain_core::classify_sync), and ingests new/modified files with occurred_at = file mtime so episode ids are stable across re-syncs. Unchanged files are skipped — re-syncing an unchanged tree is a no-op.

Modified paths append a new episode; the previous episode remains (append-only ledger, P1). Its assertions stay live until retracted — check oxibrain contradictions after syncing edits.

Structs§

SyncReport
Per-run outcome, returned for programmatic use and printed by the CLI.

Functions§

run
sync
Scan, classify, ingest. The store path convention is the file’s path relative to the sync root (forward slashes), so syncs are stable across working directories and machines.