Skip to main content

Module sync_state

Module sync_state 

Source
Expand description

Sync state tracking for incremental subconscious retrieval.

Tracks the last-processed position per session so retrieval hooks only surface new information. Persisted as JSON in .nexus/sessions/{id}/sync_state.json.

Structs§

SyncState
Incremental sync position for a single session.

Functions§

hot_cache_hash
Compute a quick hash of hot cache entry IDs for change detection. Uses an FxHash-style approach similar to soul_content_hash.
soul_content_hash
Compute a quick hash of soul.md content for change detection. Uses a simple rolling hash (FxHash-style) instead of pulling in a full crypto hash — we only need to detect change, not verify integrity.