sovereign-router / REFACTOR_PLAN.md
SNAPKITTYWEST's picture
Add sovereign-router source: router-server.mjs, kernel-registry, agent-registry, omega-field, MAGMA verbs
931572e verified
|
Raw
History Blame Contribute Delete
3.02 kB
# SnapKitty Mass Refactor + Wiring Plan
# 2026-07-11
# Status: BEGIN
## Phase 1 β€” Archive (remove noise, keep signal)
Archive these β€” no cherry-pick needed:
- sovereign-addr (standalone, already in registry)
- sovereign-adr (standalone, already in registry)
- sovereign-agt (standalone, already in registry)
- sovereign-compiler (skeleton, already in registry)
- sovereign-llm (scaffold, already in registry)
- sovereign-multiplicity (standalone, already in registry)
- sovereign-pirtm (standalone, already in registry)
- sovereign-prism (OCaml version, prism-skills is Rust canonical)
- S_AUTOCODE (AUTOCODE lineage, historical)
- legacy-apl (APL research complete, math-skills is canonical)
## Phase 2 β€” Cherry-pick into production repos
These get folded into existing repos:
INTO cartographer-agent:
- financial_intel.pl from market-scope β†’ cartographer-agent/prolog/
- sovereign-calculus lean files β†’ cartographer-agent/proofs/
INTO SNAPKITTYWEST (root):
- sovereign-glue.rexx (already done today)
- kernel-registry.json (already done today)
- agent-registry.json (already done today)
- sovereign-router.ts (already done today)
INTO DEVFLOW-FINANCE:
- snaplang β†’ DEVFLOW-FINANCE/snaplang/
- sovereign-context-tools already there
## Phase 3 β€” Wire the router
Connect sovereign-router.ts to:
1. agent-registry.json (route to agents not models)
2. BOB pipeline (shadow-orchestrator/main.ts KERNEL_INTERCEPT phase)
3. ERE verify on every output
4. Vault.ts for key management
## Phase 4 β€” Download center
Build from overview/ β†’ real product catalog
11 repos, 4 categories, GitHub Pages
## Phase 5 β€” Tauri shell
kittybrowse as the desktop shell hinge
sovereign-daemon as the sidecar
## Unified Workflow Model (the real vision)
Every agent and model serves a PURPOSE in the workflow:
| Engine | Role | Use case |
|---|---|---|
| Claude Sonnet 4.6 (Bedrock) | Reasoning Β· Law Β· Trust Β· IP | CARTO analysis, legal strategy, proofs, architecture |
| Mistral Codestral (free) | Code Β· Terminal Β· Git | Fast builds, scaffolding, file ops |
| Nova Pro (Bedrock) | Research Β· Market Β· News | Fast synthesis, crypto, financial data |
| DEVTRIAL (Nova Pro pipeline) | Long-form writing | Research papers, whitepapers, technical docs |
| DeepSeek V3 (Bedrock) | Math Β· Proof Β· Deep code | Formal verification, theorem closing |
| Gemma 3 27B (Bedrock) | Google domain Β· Docs | Structured extraction, multimodal |
| BOB pipeline | Governance Β· Final verdict | All outputs through EVIDENCE or SILENCE gate |
| ERE Verify | Quality gate | 5-pass verification on every output |
| DFA/REXX kernels | Domain logic | Law, trust, ACH, FCRA β€” deterministic |
The router IS the product. Every task flows through it.
Code β†’ Mistral. Law β†’ Claude. Papers β†’ DEVTRIAL. Math β†’ DeepSeek. Market β†’ Nova.
Output β†’ ERE verify. Final β†’ BOB seal.
## Immediate next: Phase 3 wiring β€” connect router to BOB pipeline