Reorg step 1: consolidate repo under core/, drop the mafiabot label

Mechanical structure-only pass (no document/guide content edits):

- Move src/ichor, src/endocrine, and docs/ into core/; the old top-level
  mafiabot_core/ becomes core/. Everything now lives under a single core/ root.
- Drop the "mafiabot" label from the Ada/Alire crate: core.gpr (project Core),
  alire.toml name = "core"; the generated *_config.* regenerate as core_config.*.
- Repoint build-critical wiring only:
  - .claude/skills/run-sica-fondt/smoke.sh (ponyc + Ada + COBOL paths)
  - core/src/endocrine R source()/runner paths and the test glob
  - .github/workflows/ci.yml (working-directory + gpr name)

Verified green: smoke ALL GREEN (Pony Ichor, Ada core crate + tests, COBOL E1
vault); R endocrine 14/0; Octave ETR 26/0/1.

Deferred (reserved for a less-ephemeral doc/guide pass): docmap.yaml, the guide
files and nested AGENTS.md/README prose + now-stale relative links, SOUL.md, and
the deeper ring/storage restructure.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015hmgREHNsxYCuim33yUF2c
This commit is contained in:
Claude
2026-06-23 07:46:47 +00:00
parent 0fa00648bc
commit b6bcab794f
90 changed files with 30 additions and 30 deletions
+87
View File
@@ -0,0 +1,87 @@
# Gen.03 — concentric bus topology *(DRAFT — captured live, correct freely)*
Two rings around a membrane. Outer organs ride Ichor up to Ada; Ada is the
gate and routes the inner bus; behind it the inner organs (Hermes among them).
The world is outside; nothing reaches the inner ring without crossing Ada.
```
External (world: user / network)
│
▼ outer bus — ICHOR (Pony)
┌─────────────────────────────────────────────────────────┐
│ OUTER ORGANS │
│ • stomach / economy organ (small-model operated; │
│ digests external input → context) │
│ • microagents │
│ • SAE (sparse autoencoder) │
│ • MoRAG = GoDAGRAG │
│ (Graph of Directed Acyclic Graphs of RAGs) │
└─────────────────────────────────────────────────────────┘
│
▼ ADA (D1) — the membrane / border (screens, provenance, rate)
┌─────────────────────────────────────────────────────────┐
│ INNER ORGANS inner-brain bus = ADA-routed │
│ • soul (B2) │
│ • metacog (C2) │
│ • Hermes (the OpenHermes agent — a peer here) │
│ • drive-box (A1) │
│ • mini-rag (MUSCLE MEMORY — tool-shape recall, D3) │
│ • COBOL invariant laws (E1 — the law vault) │
└─────────────────────────────────────────────────────────┘
```
## Three different "memories" — do NOT conflate
- **MoRAG = GoDAGRAG** — OUTER. Reads the **world** (the graph of DAGs of RAGs).
- **mini-rag** — INNER. **Muscle memory.** Pre-motor: before an action reaches
the actual hands (the real tools / effectors), mini-rag recalls the **right
shape** for it — the tool schema (D3). HD associative recall of the learned
form, like a hand pre-shaping its grip. It is **tool lookup**, not
world-retrieval and not self-knowledge.
- **E1 invariant laws** — INNER. The immutable laws the system must obey, held
in COBOL vaults (the constitution). Not "ontology" — that was a bad paraphrase.
## The deck (B1) — integers + a table
- **Shuffle kernel:** 169 × 2 = **338 integers**, shuffled + randomized → pure
RNG/permutation → **Fortran** (native to the Ada inner bus).
- **Lookup table:** card meaning keyed by integer → **COBOL** indexed records.
## Language map
Two **distinct Fortran scripts** and (at least) two **distinct COBOL stores** —
not shared modules.
| Component | Language | Status |
|---|---|---|
| Ichor (outer bus) | Pony | built |
| Ada (membrane + inner-bus router) | Ada/SPARK | decided |
| deck shuffle — *Fortran script #1* | Fortran | decided |
| mini-rag (muscle memory / tool-shape recall) — *Fortran script #2* | Fortran | decided |
| deck lookup table — *COBOL store #1* | COBOL | decided |
| tool-schema store (mini-rag reads this) — *COBOL store #2* | COBOL | decided |
| COBOL invariant laws / E1 (the law vault, separate) | COBOL | given |
| drive-box (A1) | R | existing |
| MoRAG / GoDAGRAG (outer) | Haskell or Crystal | open |
| Hermes | OpenHermes agent (external model) | given |
## Corrections baked in (vs earlier wrong models)
- Hermes is an inner organ on the inner bus — not external, not a separate core.
- Ichor is the OUTER bus (organs → Ada), not the brain bus.
- Inner bus is **Ada-routed**, not Pony.
- **mini-rag = muscle memory / tool-shape recall (D3)** — it reads the
**tool-schema** COBOL store, NOT the ontology, and is NOT the MoRAG.
- MoRAG/GoDAGRAG (outer) ≠ mini-rag (inner).
- The deck is integers + a table; no fancy ADT language needed.
## Inner-bus Ada — Jorvik
The inner-bus Ada runs the **Jorvik** profile (same `gnat.adc` hardening as the
border: `No_Exceptions`, `SPARK_Mode`, `No_Implicit_Dynamic_Code`). Shape:
**protected object = mailbox/sync** (short, non-blocking — Jorvik forbids
blocking in a protected action), **tasks = workers** that call into the organs
(Fortran/COBOL/R/model via native interop) and may block.
## Open / to place
- **COBOL inventory:** two lookup stores (deck table + tool-schema). Is the **E1
invariant-law vault** a third COBOL store, or a different kind of COBOL
structure that isn't a lookup "store"?
- **MoRAG / GoDAGRAG language** (Haskell vs Crystal vs other).
- Each outer organ's hand-off shape to Ada.
- The stomach/economy organ's exact placement + which small model runs it.