Operations
Data and Recall Model
- Default recall reads from
memoriesonly. - Raw imported transcripts are separated from default recall flow.
- Optional raw tools return snippets only.
Raw Import Pipeline
POST /v1/imports(multipart upload)POST /v1/imports/:id/parsePOST /v1/imports/:id/extractPOST /v1/imports/:id/commit
Data path:
imports->raw_sessions/raw_messages->staged_memories->memories
Supported parser behavior:
source=codex: Codex JSONL parsersource=claude: Claude JSON export parser (role normalization:human -> user,assistant -> assistant)- fallback: generic text chunk parser
Project Resolution
Default order:
github_remoterepo_root_slugmanual
Configured at workspace level:
resolution_orderauto_create_project- key prefixes
project_mappings
Auto Switch Flow
ensureContext() runs before remember, recall, and search_raw.
Defaults:
auto_switch_repo=trueauto_switch_subproject=falseenable_monorepo_resolution=falsemonorepo_detection_level=2
CI Failure/Success Audit
- Endpoint:
POST /v1/ci-events - Action emitted:
- success ->
ci.success - failure ->
ci.failure
- success ->
- Slack forwarding:
- include
ci.in Slackaction_prefixes status=failureis automatically treated as high severity
- include
- GitHub Actions example:
.github/workflows/claustrum-ci-events.yml- set repository secrets:
MEMORY_CORE_URLMEMORY_CORE_API_KEYMEMORY_CORE_WORKSPACE_KEY- optional
MEMORY_CORE_PROJECT_KEY
Admin UI Checklist
- Manage workspace/project/member
- Manage resolution settings and mappings
- Send CI success/failure events from the CI Events panel
- Run imports and commit staged memories
- Execute raw snippet search
- Review audit logs (
ci.failure,ci.success,raw.search,raw.view)
Useful Commands
pnpm install
pnpm db:migrate
pnpm db:seed
pnpm dev
pnpm test:workspace
Versioning Policy
- Keep
major.minorfixed unless there is an explicit release decision. - Normal maintenance releases must bump patch only (
x.y.Z). - Use
pnpm version:patchto bump root version safely.
Validation Guardrails
- HTTP route ingress in memory-core is validated with Zod before data reaches service handlers.
- CI/local lint runs
scripts/check-route-zod-boundary.mjsto preventreq.body/query/paramsfrom being passed to service inputs without a route-level Zod parse. - Service-layer validation remains in place as a second safety boundary for domain invariants.
Backup/Recovery Baseline
- Back up Postgres regularly.
- Keep migration SQL in version control.
- Verify restore by replaying:
- migrate
- seed (safe to run multiple times)
- smoke tests