Releases: hrabanazviking/MindSpark_ThoughtForge
Release list
MindSpark: ThoughtForge v1.2.0 — Production-Grade
MindSpark: ThoughtForge v1.2.0 — Production-Grade
Phase 8: Robustness, Self-Healing, and Production Hardening
This is the final planned milestone. ThoughtForge is now production-grade — every failure is caught, diagnosed, and either self-healed or surfaced with a clear fix hint.
What's new
forge_doctor.py — System Diagnostics CLI
python forge_doctor.py # run all checks
python forge_doctor.py --fix # check + self-heal
python forge_doctor.py --json # machine-readable output
python forge_doctor.py --verbose # show all checks
Self-Healing
- Missing or corrupt
user_config.yaml→ restored from template - Corrupt JSONL memory files → bad lines quarantined to
corrupt_backup_<ts>.jsonl, good lines kept - Corrupt SQLite DB → renamed to
.corrupt_<ts>.db, empty schema rebuilt - All file writes now use atomic write-then-rename (no partial writes)
Health Checker
Checks: config validity, backend reachability, DB integrity + WAL + FTS5, memory store files, disk space (≥500 MB), required Python packages.
Performance Tracker
Ring-buffer (1000 events) recording latency for every pipeline step. p50/p95/p99 stats. bottleneck_report() ASCII table. Accessible via get_perf_tracker().
DB Integrity Checker
PRAGMA integrity_check, WAL enforcement, FTS5 shadow-table validation, VACUUM, 24-hour result cache.
Input Sanitisation
sanitise_query() applied on every think() entry — strips null bytes, control characters, normalises unicode, truncates at 4096 chars.
Typed Error Hierarchy
All errors carry message, context, recoverable, suggested_fix. run_thoughtforge.py catches ThoughtForgeError at main() and prints a clean message instead of a traceback.
Test suite
620 tests passing (+90 in Phase 8)
All phases complete
| Phase | Name | Status |
|---|---|---|
| 0 | Repo Foundation | ✅ |
| 1 | Memory Forge + Sovereign RAG | ✅ |
| 2 | TurboQuant Universal Inference | ✅ |
| 3 | Cognition Scaffolds + Orchestration | ✅ |
| 4 | Fragment Salvage + Refinement | ✅ |
| 5 | Edge + Cross-Platform Deployment | ✅ |
| 6 | Testing, Benchmarking, Release | ✅ |
| 7 | Setup Wizard + Multi-Backend + Chat | ✅ |
| 8 | Robustness, Self-Healing, Production | ✅ |
🤖 Built with Claude Code
MindSpark: ThoughtForge v1.0.1
v1.0.1 — CLI Hotfix
Fixes two bugs in run_thoughtforge.py:
setup_logging()was called withlevel="WARNING"(wrong signature) — now passes correct config dict- Unicode box-drawing characters (
═) causedUnicodeEncodeErroron Windows cp1252 terminals — stdout now reconfigured to UTF-8 at startup
No changes to core library, tests, or benchmarks. All 447 tests still passing.
Full release notes: see v1.0.0
MindSpark: ThoughtForge v1.0.0
MindSpark: ThoughtForge v1.0.0
Universal cognitive enhancement layer — offline-first sovereign RAG, TurboQuant inference, and memory-enforced cognition for any model size (1B phone → 70B server).
What Is This?
ThoughtForge is not a model. It is a cognitive layer you wrap around any local GGUF model to give it:
- Sovereign RAG — offline knowledge retrieval from Wikidata, DBpedia, ConceptNet, GeoNames, and 100+ built-in reference files
- TurboQuant Inference — multi-draft generation with strict token budget enforcement, auto-detects CUDA/ROCm/Vulkan/Metal/CPU
- Cognition Scaffolds — intent routing, tone detection, goal-aligned prompt assembly
- Fragment Salvage — sentence-level scoring + multi-pass refinement to extract the best content from every draft
- Memory-Enforced Loop — citation integrity, genericness detection, quality gating with repair passes
- Edge Deployment — Dockerfile, docker-compose, install scripts for Linux/Mac/Windows/Termux/Pi
Hardware Tiers Supported
| Profile | Target | RAM |
|---|---|---|
phone_low |
Android (Termux) | ≤ 2 GB |
pi_zero |
Raspberry Pi Zero | ≤ 512 MB |
pi_5 |
Raspberry Pi 5 | ≤ 4 GB |
desktop_cpu |
Laptop / desktop CPU | ≤ 16 GB |
desktop_gpu |
Gaming GPU (CUDA/Vulkan) | ≤ 16 GB VRAM |
server_gpu |
Multi-GPU server | 24 GB+ VRAM |
Quick Start
git clone https://github.com/hrabanazviking/MindSpark_ThoughtForge
cd MindSpark_ThoughtForge
pip install -e .
python run_thoughtforge.py "What is Yggdrasil?"Note:
queryis a positional argument — no--queryflag. Omit it entirely for interactive REPL mode.
Test Suite
447 tests passing across 6 phases
python -m pytest tests/ -q
Phases Completed
| Phase | Name |
|---|---|
| 0 | Repo Foundation + Structure |
| 1 | Memory Forge + Sovereign RAG |
| 2 | TurboQuant Universal Inference Engine |
| 3 | Cognition Scaffolds + Orchestration |
| 4 | Fragment Salvage + Refinement |
| 5 | Edge + Cross-Platform Deployment |
| 6 | Testing, Benchmarking, Personality Layer + Release |
Benchmarking
from benchmarks.benchmark_profiles import ProfileBenchmark
result = ProfileBenchmark().run("desktop_cpu")
print(result.summary())Targets: citation accuracy ≥ 85%, enforcement pass rate ≥ 90%.
Persona Consistency Scoring
from benchmarks.persona_consistency import PersonaConsistencyScorer
scorer = PersonaConsistencyScorer()
result = scorer.score(my_response_list)
print(result.summary()) # score ≥ 0.75 = PASSBuilt with sovereignty, honor, and a keen edge. ᚠᚢᚦᚨᚱᚲ