LisaOS Docs
Memory

Psychic Cache

The operational memory layer: a Zod-validated type system with a closed tag taxonomy.

The psychic cache is the operational memory layer — fast, structured, and queryable. Every entry is validated at the gateway against a discriminated union keyed on context_type.

Type system

TypeWriterPurposeKey fields
decisionLISAResolved choicesdecision_rationale, decision_alternatives[]
directiveLISATask briefs and updatesdirective_target, directive_priority
intelLISA / AgentFindings, factsintel_source, intel_confidence
state_changeLISAStatus transitionsstate_from, state_to, state_trigger
outputAgentDeliverable linksagent_name, output_url, output_summary
reportLISAPost-dispatch meta-observationsreport_dispatch_id, report_outcome
escalationAgentRe-routing signalsescalation_target, escalation_reason
shadow_cloneAgentClone requestssubtasks[], clone_count
thread_checkpointHook scriptPre-compaction statesession_id, turn_count, working_state_prose

A missing required field fails the write with a legible error. Extra unknown fields are rejected. The structured field — not free text stuffed into content — is what makes an entry queryable and auditable.

Tag taxonomy (closed set)

  • Domain tags (8)security, verification, engineering, planning, creative, vault, legal, data.
  • Topic tags (7)pricing, branding, stakeholder, timeline, risk, scope, deliverable.

Every entry carries at least one domain tag and up to two topic tags. Inside a dispatch, every write also carries the dispatch_id so the cache is attributable to the work that produced it.

The raw-write path

Structured writes go through a raw payload path — a single JSON string field validated server-side — so that mid-session schema evolution never breaks a client whose tool schema was cached at startup. See Raw twin discipline.

On this page