Docs  /  Brainstorm Stack (session integration)

Brainstorm Stack (session integration)

One hub for every brainstorm feature wired in this chat into _AugmentedIntelligence.

Hub: _BrainstormIntegrations · Entry: integrate stack
Related: BrainstormIntegrations.md · ChatSession-Features.md


One-command surface

integrate stack              # InitBrainstormStack + integrate all + stack selftest
integrate stack-status       # One-screen status of all stack modules
integrate stack-test         # Smoke tests (ethics, legal, math, PDE, kernel, location, typing, trees)
integrate init-stack         # Idempotent init only
integrate all                # Discovery + portal + graphs + cutlass + stack init
integrate status|doctor|lua

Lua:

integrate_init_stack()
integrate_stack_status()
integrate_stack_test()
integrate_stack()            -- full IntegrateBrainstormStack
ai_kernel_status()
ai_npu_status()

Script: lua_scripts/Brainstorm-Integrations.lua (also runs stack status/test when bindings exist).


Module map

Area Module Typed commands Doc
Ethics “Be Good” EthicsGood ethics good … EthicsGood.md
Legal shield LegalShield legal … LegalShield.md
Simple text / verbs SimpleTextBank simpletext … · verbs from … SimpleTextHeuristics.md
Thought / decision trees ThoughtDecisionTrees · DecisionTree tree … ThoughtDecisionTrees.md
MathNN fields MathNNMathFields nn math fields … MathNNFields.md
Multi-D PDE MathPDE via de / math stack MathDE.md
Windows location WindowsLocation location … · geo … WindowsLocation.md
Typing inject Typing typing … · dry-run default for safety Typing.md
NPU runtime NpuRuntime npu status\|doctor\|bench\|set ep … this page + RemoteCUDA notes
Kernel hub KernelHub kernel status\|catalog\|gemm\|set precision tf32 TF32MatrixMultiply.md
Game mod bridges GameModBridge gaming mod bridge … GameModBridges.md
TF32 / GEMM CutlassAccel cutlass … TF32MatrixMultiply.md · Cutlass.md
Discovery → WP DiscoveryJournal discovery … DiscoveryWordPress.md
PHP / IIS / graphs hub php site … · iis … · graphs … IisPhpIntegration.md · PhpGraphs.md
MySQL AI / corpus / semantic MySQLAI · Corpus · SemanticVectors ai … · corpus … · semantic … MySQLAIFeatures.md · SemanticVectors.md
Semantic multi-*2vec → full AI train result in semantic_knowledge semantic load-docs · rrf · ai rag law:… · graphs semantic SemanticEmbeddingsAIBrainstorm.md (Phase B ✅)
Grok (xAI) integration settings already have grok_api_* proposed: provider route + grok rag + agents GrokIntegrationBrainstorm.md
Github REST + skills GithubRestAPI · SkillLibrary github … · github skills install · simple skill … GithubRestAPI.md
External APIs hub ExternalApis · ApiHttpClient api … · short aliases · integrate apis ExternalApis.md · ApiIntegrationsBrainstorm.md
VBulletin (MyBB future) VBulletin (MyBB still default) vbulletin … · forum backend VBulletin.md
Minecraft client bridge Fabric mod + multi-peer TCP minecraft bridge start · client mod MinecraftClientBridge.md
Gaming ethics NN gate GamingEthicsGate + MathNN gaming ethics train\|export all GamingEthicsGate.md
Auto-update (ask + runtime check) design only question-before + background check AutoUpdateBrainstorm.md
Matrix / RealityConstruct lore (MC+games) design only persona + lore vectors + reveal MatrixRealityLoreBrainstorm.md
MathNN coach+safety train MathNNCoachTrain nn coach train … MathNNCoachTrain.md
Domain LLM DomainLLMBridge domain llm …
Bridge recorder BridgeCommandRecorder bridge record … BridgeCommandRecorder.md

Architecture graph nodes for the stack are emitted by graphs architecture / graphs export (includes ethics, legal, kernel, npu, math fields, PDE, trees, simpletext, location, typing, game mods).


Init order (InitBrainstormStack)

Idempotent. Called by integrate all, integrate stack, and stack status/test:

  1. EthicsGood · LegalShield · SimpleTextBank
  2. ThoughtDecisionTrees · MathNNMathFields · WindowsLocation · Typing
  3. NpuRuntime · KernelHub
  4. MathDEFeatures · GameModBridge
  5. MySQLAIFeatures · CorpusFeatures · SemanticVectors
  6. DomainLLMBridge · BridgeCommandRecorder · CutlassAccel

Stack selftest checks

integrate stack-test (and the end of integrate stack) asserts roughly:

Check Intent
ethics_good_enabled / positive text / block harm Be Good on + scoring
legal_shield_block / allow Illegal vs benign prompts
simpletext_bank_units / verbs Offline bank + verb extract
math_fields_catalog / algebra ≥50 fields + named field
math_pde_heat2d Multi-D heat PDE sample
kernel_gemm_cpu KernelHub CPU GEMM
location_haversine Geo math
typing_dry_run Inject stays dry-run
decision_tree_safety_eval Safety tree path records

NPU + Kernel façades

NPU (npu)

  • Probe via AI_NPU_ENABLE, AI_NPU_EP=directml|openvino|qnn, AI_REMOTE_NPU_HOST.
  • MatMul always correct today via host AVX GEMM until ORT/DML/OpenVINO is linked.
  • Remote host config is reserved for a future tools/remote_npu_worker.py worker.

KernelHub (kernel)

  • Routes GEMM: CPU (MatrixAcceleration) · GPU/TF32 (CutlassAccel) · NPU → NpuRuntime fallback.
  • kernel set precision tf32 mirrors cutlass TF32.
  • kernel catalog lists live + planned ops (attention, layernorm, PDE stencils, …).
npu doctor
kernel catalog
kernel gemm cpu 128
kernel set precision tf32
cutlass check 64

Game mods (Skyrim / Fallout / Civ)

UDP adapters under GameModBridge + packages in game_mods/ (see GameModBridges.md).
Stack init calls _GameModBridge::Init(); no live game process required for status.


Safety defaults

Surface Default
Typing inject Prefer dry-run until you opt in
LegalShield / EthicsGood Gate harmful / illegal requests
IIS recycle / PHP deploy / WP post Dry-run unless apply / dry-run off
NPU remote Config-only until worker exists

Quick verification

integrate init-stack
integrate stack-status
integrate stack-test
integrate stack
kernel status
npu status
ethics good creed
legal status
tree selftest
nn math fields
graphs architecture

Expect stack_selftest pass=… fail=0 on a healthy build.

Generated from the project markdown docs on 2026-07-24. This is a static, self-contained site.