# Maintain knowledge and add sources

Source: https://usecns.dev/engram-guide-maintain-knowledge-and-add-sources/

[Start here](https://usecns.dev/manual-engram/)
[CLI commands](https://usecns.dev/commands-engram/)
[Configuration & integration](https://usecns.dev/engram-topics/)

Run `engram sleep` at a controlled lifecycle boundary after reviewing `status`. Consolidation mutates evidence and active guidance through pruning, graduation checks, drift handling, nominations and distillation. Add `--archive-mission` only when the M3 mission should be archived.

Use `engram probe` to check changed code anchors; it can demote invalid guidance even without `--reanchor`. Review the source and guidance before rebinding: updating a hash does not establish that the advice still applies. Replace changed guidance with linked memory. The [maintenance procedure](https://usecns.dev/engram-topic-upgrade-and-troubleshoot/) covers backups and migrations.

Retrieval works locally by default using deterministic feature hashing plus lexical/graph search. Optional remote embeddings and reranking send query/document material to the configured service; authorize that transfer before enabling them or backfilling embeddings. Fail-open retrieval preserves availability, not equivalent relevance. Review warnings and [retrieval configuration](https://usecns.dev/engram-topic-configure-local-and-remote-retrieval/).

For reviewed documentation, [compile Markdown](https://usecns.dev/engram-topic-compile-curated-markdown/) before importing, or [hydrate selected pages](https://usecns.dev/engram-topic-hydrate-directories-and-hubs/). All M2 compartments share the loading agent's one M2 ring; compartments are not tenant isolation. Hydration can partially apply pages and does not retire missing keys automatically. Review permissions and intended retirements before loading a shared corpus.

[Fact synchronization and conformance](https://usecns.dev/engram-topic-replicate-facts-and-check-conformance/) cover exchange with authorized stores and hubs. Transcript import is a separate deliberate operation that mines selected episodes; envelope stripping is not privacy sanitization. Use the [command reference](https://usecns.dev/commands-engram/) for exact options, defaults and exits.