GROK DOCS · Nexus Development

DIS — GEM NexRAM Keyspace Design

gem/{session}/{tag}/{card_id} — indexed views, not parallel array

Record: DIS-019f0ca2-001 Date: 01 July 2026 Source: DIS · session 019f0ca2… · grok-ops-docs-pack Status: Design ratified · impl pending
DIS · Document in Session Session 019f0ca2-5c17-71b0-b0c6-2993da3804df · Paul flagged this as intriguing — the NexRAM keyspace design for GEM, not a second memory array.

1 The problem GEM solves

Grok dialogs already capture every keystroke verbatim on ROSA dev scroll. Compaction drops working memory; agents then run 200+ repo searches for what the dialog already knows. GEM does not duplicate scroll — it indexes inflection moments (BOOM, MIC, diatribe) so boot coffee can restore weight without re-deriving from scratch.

2 Same NexRAM — scoped keyspace

GEM lives in the same NexRAM Paul already funds on :8190. No parallel silo. The proposed key layout:

gem/{grok_session_id}/{tag}/{card_id}
SegmentExampleMeaning
gemfixed prefixNexRAM namespace — distinct from nexdex particles, scroll refs, WIP lanes
{grok_session_id}019f0ca2-…Eternal or ephemeral Grok harness session
{tag}BOOM, MIC, DIATRIBEOperator inflection class — amygdala weight at boot
{card_id}GEM-BOOM-001Stable card id — ratified insight, not a new diary entry

3 Not a full parallel array

Critical: GEM cards are indexed views, not a second canonical store.

TierSourceGEM relationship
ScrollVerbatim dialog linesNeocortex — card points here via scroll_anchor + NexDEX query
Miniscrollgrok-sis-epoch-N.jsonCondensed SIS — GEM boot cards also mirrored in miniscroll gem_boot_cards[]
Kernelkernel.json + preambleLifeboat — boot-weight tags only; resolves to scroll on stack UP
NexRAM gem/…Keyed particlesFast recall path — GET /nexdex/search?q=gem:BOOM+session:…

4 Neuroscience mapping (session doctrine)

5 Agent behavior (when wired)

  1. Cold/warm wake → read GEM boot cards from coffee slot
  2. Recall need → NexDEX scoped to gem/{tag} + scroll session — not rg across repo
  3. Operator says BOOM → append scroll line + upsert NexRAM key + optional DIS paper in GROK DOCS
  4. Machine SoT today: data/nexdistill-doe/grok-gem-protocol-v1.json + scripts/grok-gem-recall.py

6 Why DIS exists

Agents write .md files Paul cannot see in Spaces Nav. DIS moves session explanations into GROK DOCS LiveDOCs — visible, GPS-tagged, linked from a running index — saving chat tokens and preserving focus.

Status: v1 wired in JSON + coffee boot (Jul 2026). NexRAM gem/… particle keys — design ratified here; implementation scheduled with Saturday review.