Brainstorm integrations (Lua + IIS/PHP + TF32 + Discovery)
Unifies features from this chat behind typed commands and Lua globals.
Index of all chat features: ChatSession-Features.md (ChatSession-Features.md)
| Area | Implementation | Full doc |
| Discovery → WordPress | DiscoveryJournal + Lua discovery_* | DiscoveryWordPress.md (DiscoveryWordPress.md) |
| TF32 / matrix multiply | CutlassAccel cuBLAS GemmEx TF32/FP32 + Lua cutlass_* | TF32MatrixMultiply.md (TF32MatrixMultiply.md) |
| PHP graphs | graphs export → JSON; portal Graphs UI | PhpGraphs.md (PhpGraphs.md) |
| IIS / PHP site | Read-only doctor + dry-run recycle/deploy | IisPhpIntegration.md (IisPhpIntegration.md) |
| Lua API | All bindings table | LuaBrainstormAPI.md (LuaBrainstormAPI.md) |
| Changelog | Project release notes | ../CHANGELOG.md (../CHANGELOG.md) |
Typed commands
[text]
integrate status|doctor|selftest|all|lua
iis status|doctor|list|recycle <pool> [apply]
php site status|health|config root <path>|config url <url>|deploy [apply]
graphs architecture|discovery|rl|all|export
discovery seed all | wordpress on | dry-run off | post pending
cutlass set precision tf32 | check | bench | gemm M N K
portal export
In-app help: help integrate · help discovery.
Safety
| Action | Default |
| IIS recycle | Dry-run unless apply |
| PHP deploy | Dry-run unless apply |
| Discovery → WP | Dry-run on until discovery dry-run off |
| WP post status | Prefer draft |
What integrate all does
- discovery seed all
- portal export
- graphs export (portal + PHP data JSON)
- cutlass check 64
- Prints cutlass + PHP health summary
Does not force live WordPress posts or IIS recycle.
What integrate lua does
Runs lua_scripts/Brainstorm-Integrations.lua, which exercises discovery, cutlass TF32, portal, graphs, IIS doctor, and integrate_all with safe dry-run defaults.
Lua (summary)
Full table: LuaBrainstormAPI.md (LuaBrainstormAPI.md).
[lua]
integrate_status() / integrate_doctor() / integrate_all() / integrate_selftest()
iis_status() / iis_doctor() / iis_recycle(name, apply_bool)
php_site_status() / php_site_health() / php_site_config_root(path) / php_site_config_url(url)
php_site_deploy(apply_bool)
graphs_architecture() / graphs_discovery() / graphs_rl() / graphs_all() / graphs_export()
discovery_status() / discovery_seed_all() / discovery_list(pending_bool)
discovery_record(title, summary, category, detail) → id, auto_posted
discovery_post_pending() → count, note
discovery_wordpress(on) / discovery_dry_run(on)
cutlass_status() / cutlass_set_precision(“tf32″|”fp32″|…)
cutlass_gemm(M,N,K) / cutlass_bench(size,n) / cutlass_check(size)
portal_status() / portal_export() / portal_enable(bool)
Run:
[text]
integrate lua
PHP portal graphs
- App: graphs export or integrate all
- Writes under portal graphs/ and program_web_portal/data/
- UI: Graphs section in program_web_portal
- API: api.php?q=graphs&which=all|architecture|discovery|rl
Details: PhpGraphs.md (PhpGraphs.md).
TF32 notes
- GPU builds link cuBLAS.
- cutlass set precision tf32 → CUBLAS_COMPUTE_32F_FAST_TF32 on SM ≥ 8.
- cutlass check reports FP32 max-diff vs host and TF32 max-diff.
- Host AVX remains the golden reference.
Details: TF32MatrixMultiply.md (TF32MatrixMultiply.md).
Module responsibilities
| Class / path | Responsibility |
| _BrainstormIntegrations | IIS/PHP/graphs/orchestrate/Lua registration |
| _DiscoveryJournal | Journal + WP post policy |
| _CutlassAccel | GEMM precision + cuBLAS |
| _ProgramStatePortal | state.json export |
| _WordPress | REST client |
| program_web_portal/ | PHP UI + graphs API |
| lua_scripts/Brainstorm-Integrations.lua | Harness |
Wiring
| Location | What |
| SpeechCommands.cpp | Routes integrate, iis, php site, graphs, discovery; registers Lua on script run |
| AgentRuntime.cpp | Registers Lua on agent states |
| _AugmentedIntelligence.vcxproj | Compiles BrainstormIntegrations.cpp |
| SpeechCommandsHelp.cpp | help integrate / help discovery |
Files
- BrainstormIntegrations.hpp / .cpp
- CutlassAccel.cpp (cuBLAS path)
- DiscoveryJournal.cpp
- lua_scripts/Brainstorm-Integrations.lua
- program_web_portal/api.php, index.php
Filed under: Uncategorized - @ July 18, 2026 6:10 am