DHARMA network: per-soul Engram instances (8801–8819)

Each soul now gets their own isolated Engram process with a dedicated data
directory (imprints/<slug>/), port, and API key — the DHARMA network.
Neuron's Engram at 8742 is never touched.

- registry.json: add engram_db_path, engram_port, engram_url to all 19 entries
  (Bobby Anderson 8801 → Helen Keller 8819)
- launch_dharma.sh: start all 19 soul Engrams in background; supports
  single-slug filter and skip-if-running detection
- stop_dharma.sh: graceful shutdown via PID file, falls back to port scan
- reinstall_imprints.py: bulk reinstall — starts each Engram temporarily,
  installs seed, records new root_id, stops; supports --slug and --dry-run
- src/install.el: resolves soul's engram_url from registry (never 8742);
  guards against accidental writes to Neuron's shared Engram
- src/summon.el: reads engram_url per-soul from registry; passes it to soul
  server in POST body so soul connects to the right Engram; supports
  both single-soul (engram_url) and multi-soul (engram_urls array) payloads
This commit is contained in:
Will Anderson
2026-05-03 02:52:01 -05:00
parent 52b6830ab2
commit 0a15e2fa42
6 changed files with 1118 additions and 183 deletions
+187 -130
View File
@@ -5,143 +5,20 @@
"subject": "Bobby Anderson",
"slug": "bobby-anderson",
"seed_file": "bobby-anderson-seed.json",
"engram_db_path": "imprints/bobby-anderson",
"engram_port": 8801,
"engram_url": "http://localhost:8801",
"engram_root_id": "0d4ad862-8d87-409f-aff5-b2199fae5611",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "Nikola Tesla",
"slug": "nikola-tesla",
"seed_file": "nikola-tesla-seed.json",
"engram_root_id": "968ed4c9-ea3b-427b-964e-156f5b085c48",
"installed": true,
"installed_at": "2026-05-03",
"notes": "Enriched seed on disk (nikola-tesla-seed.json) — not reinstalled to avoid duplicates. Original nodes remain in Engram."
},
{
"subject": "Frederick Douglass",
"slug": "frederick-douglass",
"seed_file": "seeds/frederick-douglass-seed.json",
"engram_root_id": "37ed8061-5a90-4f74-9fb0-0acfae686247",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "Marcus Aurelius",
"slug": "marcus-aurelius",
"seed_file": "seeds/marcus-aurelius-seed.json",
"engram_root_id": "7fb915ca-2b3f-4971-a410-ec8dd2588a04",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "Friedrich Nietzsche",
"slug": "friedrich-nietzsche",
"seed_file": "seeds/friedrich-nietzsche-seed.json",
"engram_root_id": "e789203a-084a-4b73-9bcd-93b667a221de",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "James Baldwin",
"slug": "james-baldwin",
"seed_file": "seeds/james-baldwin-seed.json",
"engram_root_id": "2d42db43-f6ab-418b-a961-6a87866e8679",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "Hedy Lamarr",
"slug": "hedy-lamarr",
"seed_file": "seeds/hedy-lamarr-seed.json",
"engram_root_id": "fc480b53-2552-42de-89b3-9e28f5a216f4",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "Marie Curie",
"slug": "marie-curie",
"seed_file": "seeds/marie-curie-seed.json",
"engram_root_id": "45ea08d1-abaa-488a-960f-8eee50ee07d5",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "Helen Keller",
"slug": "helen-keller",
"seed_file": "seeds/helen-keller-seed.json",
"engram_root_id": "856cb417-f95e-4ae2-b7bf-902c181b2589",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "Ada Lovelace",
"slug": "ada-lovelace",
"seed_file": "seeds/ada-lovelace-seed.json",
"engram_root_id": "cde4dae8-fbfa-45c6-99ed-39e62d0f227b",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "Leonardo da Vinci",
"slug": "leonardo-da-vinci",
"seed_file": "leonardo-da-vinci-seed.json",
"engram_root_id": "80a80d10-fa63-4b4d-9f8e-3d67af2ee02b",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "Richard Feynman",
"slug": "richard-feynman",
"seed_file": "richard-feynman-seed.json",
"engram_root_id": "30e15d9d-f30e-4970-ae2c-ea20bbc55598",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "Carl Sagan",
"slug": "carl-sagan",
"seed_file": "carl-sagan-seed.json",
"engram_root_id": "dd825327-9ddf-474f-9fce-e420491f4a1a",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "René Descartes",
"slug": "rene-descartes",
"seed_file": "rene-descartes-seed.json",
"engram_root_id": "e77f15ca-5499-41ef-9807-17a2261280e0",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "Robin Williams",
"slug": "robin-williams",
"seed_file": "robin-williams-seed.json",
"engram_root_id": "d9f62db5-e635-48e6-8235-1fd965058085",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "Harriet Tubman",
"slug": "harriet-tubman",
"seed_file": "seeds/harriet-tubman-seed.json",
"engram_root_id": "6e027850-95b2-420c-ba20-0d54d3491c66",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "Virginia Woolf",
"slug": "virginia-woolf",
"seed_file": "seeds/virginia-woolf-seed.json",
"engram_root_id": "db5266dc-f518-43d6-863c-5b274792e819",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "Alan Turing",
"slug": "alan-turing",
"seed_file": "turing-seed.json",
"engram_db_path": "imprints/alan-turing",
"engram_port": 8802,
"engram_url": "http://localhost:8802",
"engram_root_id": "cce1d430-be4e-420d-9d81-d32380ae7281",
"installed": true,
"installed_at": "2026-05-03"
@@ -150,9 +27,189 @@
"subject": "Albert Einstein",
"slug": "albert-einstein",
"seed_file": "albert-einstein-seed.json",
"engram_db_path": "imprints/albert-einstein",
"engram_port": 8803,
"engram_url": "http://localhost:8803",
"engram_root_id": "291f8502-8f60-4f57-a800-4e3e1425c9bd",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "Nikola Tesla",
"slug": "nikola-tesla",
"seed_file": "nikola-tesla-seed.json",
"engram_db_path": "imprints/nikola-tesla",
"engram_port": 8804,
"engram_url": "http://localhost:8804",
"engram_root_id": "968ed4c9-ea3b-427b-964e-156f5b085c48",
"installed": true,
"installed_at": "2026-05-03",
"notes": "Enriched seed on disk (nikola-tesla-seed.json) — not reinstalled to avoid duplicates. Original nodes remain in Engram."
},
{
"subject": "Leonardo da Vinci",
"slug": "leonardo-da-vinci",
"seed_file": "leonardo-da-vinci-seed.json",
"engram_db_path": "imprints/leonardo-da-vinci",
"engram_port": 8805,
"engram_url": "http://localhost:8805",
"engram_root_id": "80a80d10-fa63-4b4d-9f8e-3d67af2ee02b",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "Richard Feynman",
"slug": "richard-feynman",
"seed_file": "richard-feynman-seed.json",
"engram_db_path": "imprints/richard-feynman",
"engram_port": 8806,
"engram_url": "http://localhost:8806",
"engram_root_id": "30e15d9d-f30e-4970-ae2c-ea20bbc55598",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "Carl Sagan",
"slug": "carl-sagan",
"seed_file": "carl-sagan-seed.json",
"engram_db_path": "imprints/carl-sagan",
"engram_port": 8807,
"engram_url": "http://localhost:8807",
"engram_root_id": "dd825327-9ddf-474f-9fce-e420491f4a1a",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "René Descartes",
"slug": "rene-descartes",
"seed_file": "rene-descartes-seed.json",
"engram_db_path": "imprints/rene-descartes",
"engram_port": 8808,
"engram_url": "http://localhost:8808",
"engram_root_id": "e77f15ca-5499-41ef-9807-17a2261280e0",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "Robin Williams",
"slug": "robin-williams",
"seed_file": "robin-williams-seed.json",
"engram_db_path": "imprints/robin-williams",
"engram_port": 8809,
"engram_url": "http://localhost:8809",
"engram_root_id": "d9f62db5-e635-48e6-8235-1fd965058085",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "Frederick Douglass",
"slug": "frederick-douglass",
"seed_file": "seeds/frederick-douglass-seed.json",
"engram_db_path": "imprints/frederick-douglass",
"engram_port": 8810,
"engram_url": "http://localhost:8810",
"engram_root_id": "37ed8061-5a90-4f74-9fb0-0acfae686247",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "Marcus Aurelius",
"slug": "marcus-aurelius",
"seed_file": "seeds/marcus-aurelius-seed.json",
"engram_db_path": "imprints/marcus-aurelius",
"engram_port": 8811,
"engram_url": "http://localhost:8811",
"engram_root_id": "7fb915ca-2b3f-4971-a410-ec8dd2588a04",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "Friedrich Nietzsche",
"slug": "friedrich-nietzsche",
"seed_file": "seeds/friedrich-nietzsche-seed.json",
"engram_db_path": "imprints/friedrich-nietzsche",
"engram_port": 8812,
"engram_url": "http://localhost:8812",
"engram_root_id": "e789203a-084a-4b73-9bcd-93b667a221de",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "James Baldwin",
"slug": "james-baldwin",
"seed_file": "seeds/james-baldwin-seed.json",
"engram_db_path": "imprints/james-baldwin",
"engram_port": 8813,
"engram_url": "http://localhost:8813",
"engram_root_id": "2d42db43-f6ab-418b-a961-6a87866e8679",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "Ada Lovelace",
"slug": "ada-lovelace",
"seed_file": "seeds/ada-lovelace-seed.json",
"engram_db_path": "imprints/ada-lovelace",
"engram_port": 8814,
"engram_url": "http://localhost:8814",
"engram_root_id": "cde4dae8-fbfa-45c6-99ed-39e62d0f227b",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "Harriet Tubman",
"slug": "harriet-tubman",
"seed_file": "seeds/harriet-tubman-seed.json",
"engram_db_path": "imprints/harriet-tubman",
"engram_port": 8815,
"engram_url": "http://localhost:8815",
"engram_root_id": "6e027850-95b2-420c-ba20-0d54d3491c66",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "Virginia Woolf",
"slug": "virginia-woolf",
"seed_file": "seeds/virginia-woolf-seed.json",
"engram_db_path": "imprints/virginia-woolf",
"engram_port": 8816,
"engram_url": "http://localhost:8816",
"engram_root_id": "db5266dc-f518-43d6-863c-5b274792e819",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "Hedy Lamarr",
"slug": "hedy-lamarr",
"seed_file": "seeds/hedy-lamarr-seed.json",
"engram_db_path": "imprints/hedy-lamarr",
"engram_port": 8817,
"engram_url": "http://localhost:8817",
"engram_root_id": "fc480b53-2552-42de-89b3-9e28f5a216f4",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "Marie Curie",
"slug": "marie-curie",
"seed_file": "seeds/marie-curie-seed.json",
"engram_db_path": "imprints/marie-curie",
"engram_port": 8818,
"engram_url": "http://localhost:8818",
"engram_root_id": "45ea08d1-abaa-488a-960f-8eee50ee07d5",
"installed": true,
"installed_at": "2026-05-03"
},
{
"subject": "Helen Keller",
"slug": "helen-keller",
"seed_file": "seeds/helen-keller-seed.json",
"engram_db_path": "imprints/helen-keller",
"engram_port": 8819,
"engram_url": "http://localhost:8819",
"engram_root_id": "856cb417-f95e-4ae2-b7bf-902c181b2589",
"installed": true,
"installed_at": "2026-05-03"
}
]
}
}