Brain Forge Protocol

SPEC_BRAIN_FORGE_PROTOCOL.md · 2026-04-20

SPEC_BRAIN_FORGE_PROTOCOL.md

CGNT-1 Component Specification — Brain Forge Protocol

Status: SPECIFIED

Author: VELA (Thread #13)

Authorized: NOUS

Date: 2026-04-18

Version: v1.0

Source: 16 GLOSS forges, 1 NEXUS forge, every mistake documented in LOBSTER_LOG.md


PURPOSE

A repeatable, proven protocol for forging any crew brain via LoRA fine-tuning. Follows the same steps every time regardless of which brain is being forged. Incorporates every lesson from the GLOSS saga and NEXUS forge.

This is the PROCESS. The Colab script is ~/forge_template.py. This spec governs everything that wraps around that script.


THE PROTOCOL — 10 STEPS

STEP 0 — PRE-LOG

Before anything else, open ~/LOBSTER_LOG.md and write:

Leave Result/What worked/What didn't/Lesson BLANK. Fill at Step 9.

STEP 1 — PLAN (3 angles)

Angle A — Corpus:

Angle B — Risk review:

- pip uninstall hf_transfer (OOM prevention)

- load_best_model_at_end = False (early stopping sabotage prevention)

- Per-epoch checkpointing enabled

- Colab Gemini assistant used for ALL error diagnosis

Angle C — Verification design:

STEP 2 — LOGOS REVIEW

Present complete plan to DR.LOGOS. LOGOS identifies gaps. Fix gaps. LOGOS signs off. If LOGOS finds a structural problem, return to Step 1.

STEP 3 — CORPUS ASSEMBLY

STEP 4 — CAPTAIN REVIEW

Present to NOUS: the plan (Step 1), LOGOS review (Step 2), corpus stats (Step 3). Forge ONLY after Captain authorization. No exceptions.

STEP 5 — COLAB SETUP

STEP 6 — FORGE

STEP 7 — POST-FORGE PIPELINE

Automated via nexus_post_forge.sh or manual:

STEP 8 — SMOKE TEST

STEP 9 — LOG RESULTS

Complete the LOBSTER_LOG.md entry from Step 0:

STEP 10 — VITRIFY

If successful:


MANDATORY PRE-MITIGATIONS (every forge, no exceptions)

| Risk | Source | Pre-mitigation |

|---|---|---|

| hf_transfer OOM | NEXUS v1 (3 crashes) | pip uninstall hf_transfer in script |

| Early stopping sabotage | GLOSS v14 (epoch 2 picked as "best") | load_best_model_at_end = False |

| No checkpointing | All prior forges | save_steps per epoch, resume on crash |

| Query token priors | GLOSS v12-v16 | Verify base model has no prior on query format |

| Wrong corpus | GLOSS v1-v11 | SHA-256 verify, category breakdown, sample review |

| GGUF conversion failure | NEXUS v1 | Plan A + Plan B pipeline ready |

| API vs interactive mismatch | NEXUS v1 | Test BOTH modes in Step 8 |

| Blind debugging | All prior forges | Use Colab Gemini assistant for ALL errors |

| Wrong epoch count | MNEMOS v2 (3 epochs instead of 15) | Verify NUM_EPOCHS matches protocol standard (15) before forge dispatch. Never inherit from previous forge config without checking. |

| Wrong base model | MNEMOS v2 (3B instead of 7B) | Verify BASE_MODEL matches target brain's current deployed model. Downgrades require explicit Captain authorization. |


BASE MODEL SELECTION GUIDE

| Brain function | Recommended base | Why |

|---|---|---|

| Fact retrieval (MNEMOS) | Qwen2.5-7B-Instruct | Language model on language task, proven at 9/10 |

| Memory continuity (GAMMA) | gemma4:e2b or Qwen2.5-7B | Session bridging is generative |

| Defense (MANTIS) | Qwen2.5-7B after upgrade | Pattern recognition needs capacity |

| Discipline (MUSASHI) | Qwen2.5-7B (current) | Behavioral enforcement |

| Verdict (ANVIL) | Qwen2.5-7B after upgrade | Go/no-go needs kernel awareness |

| Oracle (ORPHEUS) | Qwen2.5-7B after upgrade | Verdict delivery |

Do NOT use math models for language tasks. Do NOT use language models for pure computation (use NEXUS). Swim with the current.


WHAT THIS PROTOCOL DOES NOT COVER


Jeremy Zlabis

Chronogeometer · Visionary · Disruptor · Chief

42 Sisters AI · East York, Toronto

🍁 Φ 0.042