Files
Cortex-Inara/home/scott/persona/inara
Scott Idem c01ef663f5 fix: per-persona session/file isolation + onboarding route order
- session_store: store sessions under home/{user}/persona/{name}/session_data/
  instead of the shared cortex/data/sessions/ bucket
- chat endpoints: add user/persona query params to /sessions, /history/*,
  /sessions/*, /note so they resolve the correct persona context
- files router: add user/persona query params to /files and /files/{name}
  so the file browser loads the right persona's files
- app.js: pass user/persona on all session, history, and file fetches;
  move _fileParams to top-level scope so it is available everywhere
- onboarding: fix FastAPI route ordering — register /persona before /{token}
  so the literal path wins and does not get captured as a token value
- ui.py: read Emoji field from IDENTITY.md and inject into CORTEX_CONFIG
  so the header icon reflects each persona's chosen emoji
- .gitignore: exclude home/**/session_data/ (runtime state)
- migrate scott/inara sessions from cortex/data/sessions/ to session_data/

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-22 00:01:07 -04:00
..

Inara — Identity & Memory Layer

This directory is Inara's home. It contains everything needed to instantiate her as a consistent, persistent agent across any model or runtime.

Files

File Tier Purpose
SOUL.md Always Core identity, traits, how she behaves
IDENTITY.md Always Name, vibe, emoji — the short card
USER.md T1+ Scott's profile — who she's helping
MEMORY.md T2+ Curated long-term memory (keep under 4k tokens)
PROTOCOLS.md T2+ Fleet rules, safety, delegation, memory management
CONTEXT_TIERS.md Dispatcher Which files to load per model context size
sessions/ T3+ Daily session logs (raw), format: YYYY-MM-DD.md

Loading Order

Always load in this order to establish context before adding detail:

  1. SOUL.md
  2. IDENTITY.md
  3. USER.md
  4. MEMORY.md
  5. PROTOCOLS.md
  6. Session files (most recent first)

See CONTEXT_TIERS.md for the full dispatcher spec.

Secrets

Credentials, API keys, and tokens live in .env only — never in these files.