# Configure workspaces and mounted scopes

Source: https://usecns.dev/engram-topic-configure-workspaces-and-mounted-scopes/

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

Select the manifest and database deliberately when automating work. OTE resolution is `--ote`, then nonempty `ENGRAM_OTE_PATH`, then an ancestor `.engram/ote.toml` up to the repository boundary, then the built-in general seat. JSON reports and injected blocks identify the selected OTE. Explicit unreadable or invalid OTE paths fail rather than selecting fallback defaults.

Store resolution is `--db`, `ENGRAM_DB_PATH`, a database beside an explicit/environment OTE, the discovered workspace OTE's database, then workspace `.engram/engram.db`. Initialization instead puts its database beside `--out` unless `--db` is supplied. Even inspection commands can open or initialize stores.

Linked Git worktrees may acquire a copied manifest and SQLite-safe clone from the main worktree on discovery. These are separate stores, not a shared write-through connection. Inspect `engram status --workspace PATH` before federating reads and `engram sync promote --dry-run` before moving eligible M2 evidence back to the main database. Review each workspace's OTE and trust boundary; federation is not tenant isolation.

Generate a known configuration with `engram default-ote`, edit it, then run `engram validate-ote PATH`. OTE declares the seat identity and attention budget, ontology, mounted topology, epistemology, retrieval and optional public-key attestation anchor. Unknown fields are rejected. The [OTE contract](https://usecns.dev/contract-ote/) describes the configuration boundary.

| Ring | Intended scope | Built-in ID | Built-in access / budget share |
| --- | --- | --- | --- |
| M0 | Shared canon | `canon:shared` | read-only / 20% |
| M1 | Role archetype | `archetype:general` | read/nominate / 20% |
| M2 | Repository/domain | `repo:default` | read/write/nominate / 30% |
| M3 | Team or mission working state | `team:default` | read/write / 10% |
| M4 | Individual seat overlay | `seat:default` | owner read/write / 20% |

The default keyspace budget is 2,000 tokens. Mount IDs, not merely ring labels, determine which nodes are visible. A memory's identity includes its ring ID, key, kind and body; changing those produces a different identity. Access is checked against mounts, and declaring a stronger authority does not bypass attested M0-write rules.

Choose allowed memory kinds, canonical entity regexes, query synonyms and explicit glob conventions for the domain. Globs determine relevance to guarded file operations; do not broaden them just to force retrieval. There is no universal body-to-glob convention. Preserve matched entity identifiers verbatim in compressed summaries.