Skip to content

Commit 6fd8147

Browse files
committed
fixup! docs(audit): what a Cortex backup must contain (#731, slice 1)
1 parent 58a78d3 commit 6fd8147

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎docs/audits/owned-resources-backup-2026-11-05.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ not need it). Class **X** = not Cortex's to back up.
4343
| Backend marker (which store this install uses) | `<root>/methodology/backend.json` | A | `mcp_server/infrastructure/backend_marker.py:48` |
4444
| Wiki pages on disk | `<root>/methodology/wiki/` | A | `mcp_server/infrastructure/config.py:42`; `mcp_server/handlers/ingest_findings_writers.py:173` |
4545
| Raw-output artifacts | `<root>/methodology/artifacts/` | A | `mcp_server/infrastructure/artifact_store.py:19` |
46-
| Cognitive profiles | `<root>/methodology/domains/<id>.json`, `index.json`; legacy `profiles.json`, `profiles.json.v1_backup` | D (rebuilt from transcripts by `rebuild_profiles`) | `mcp_server/infrastructure/profile_store.py:20-22`, `:49`; `mcp_server/infrastructure/config.py:38` |
47-
| Session log | `<root>/methodology/session-log.json` | D | `mcp_server/infrastructure/config.py:39` |
46+
| Cognitive profiles | `<root>/methodology/domains/<id>.json`, `index.json`; legacy `profiles.json`, `profiles.json.v1_backup` | A (`record_session_end` accumulates each session into them; once Claude Code has deleted a transcript, `rebuild_profiles` cannot restore its share, and it keeps the stored profile for that reason) | `mcp_server/infrastructure/profile_store.py:20-22`, `:49`; `mcp_server/infrastructure/config.py:38`; `mcp_server/handlers/record_session_end.py:265-287`; `mcp_server/core/profile_rebuild_policy.py:1-15` |
47+
| Session log | `<root>/methodology/session-log.json` | A (one entry appended per ended session, not rebuilt from transcripts) | `mcp_server/infrastructure/config.py:39`; `mcp_server/handlers/record_session_end.py:257`, `:322`; `mcp_server/hooks/session_lifecycle.py:254`, `:356` |
4848
| MCP connection list | `<root>/methodology/mcp-connections.json` | A | `mcp_server/infrastructure/config.py:41` |
4949
| Brain index | `<root>/brain-index.json` | D | `mcp_server/infrastructure/config.py:40` |
5050
| Capture spool (transcripts queued, not yet ingested) | `<root>/.capture-worker/spool` | A while non-empty | `mcp_server/infrastructure/capture_spool.py:62-65`, `:73-79` |
@@ -63,8 +63,9 @@ not need it). Class **X** = not Cortex's to back up.
6363

6464
- **SQLite install.** The class A set is `memory.db` (taken as one consistent
6565
copy with its `-wal`, not three separate file copies; the method is a later
66-
slice), `backend.json`, `wiki/`, `artifacts/`, `mcp-connections.json`, and the
67-
capture spool when it is not empty.
66+
slice), `backend.json`, `wiki/`, `artifacts/`, `mcp-connections.json`, the cognitive
67+
profiles (`domains/`, `index.json` and any legacy `profiles.json*`),
68+
`session-log.json`, and the capture spool when it is not empty.
6869
- **Managed PostgreSQL install.** Same set, with the cluster in place of
6970
`memory.db`. A copy of `managed-pg/cluster` taken while the server runs is not
7071
a consistent backup (*inferred* from PostgreSQL's file-level backup rules,

0 commit comments

Comments
 (0)