Program State Portal (PHP / HTML / CSS)
Unified web UI for as much live program + RL state as possible.
Chat features (graphs, IIS/PHP, discovery): ChatSession-Features.md (ChatSession-Features.md) · PhpGraphs.md (PhpGraphs.md) · BrainstormIntegrations.md (BrainstormIntegrations.md)
Pieces
| Piece | Role |
| ProgramStatePortal.cpp | Aggregates all GetStatus() / dashboards into JSON |
| C:/_AugmentedIntelligence/web_portal/state.json | Snapshot file (default) |
| program_web_portal/ | PHP + CSS + Chart.js UI |
| Optional HTTP :8790 | Native mini file server for the same JSON |
Start the app exporter
[text]
portal enable
portal export
portal http on 8790 # optional
portal status
On startup (defaults):
- program_state_portal_enabled=true
- program_state_portal_export_on_startup=true
- writes C:/_AugmentedIntelligence/web_portal/state.json
Start the PHP UI
[powershell]
cd program_web_portal
# edit config.php if needed ($state_file, $mysql, $remote)
php -S 0.0.0.0:8090
Open http://localhost:8090/.
config.php
[php]
$state_file = ‘C:/_AugmentedIntelligence/web_portal/state.json’;
$remote = ”; // or ‘http://127.0.0.1:8790’
$mysql = [ ‘host’=>’127.0.0.1’, ‘user’=>’root’, ‘pass’=>”, ‘db’=>’rl_checkpoints’ ];
Env overrides: AI_PORTAL_STATE, AI_PORTAL_REMOTE, AI_MYSQL_*, AI_PORTAL_POLL_MS.
What the portal shows
Overview — host, LAN IP, MySQL, LLM model, feature flags, enablement chart
RL — status strings for:
- Gaming, Driving, Knowledge, Computer, Minecraft DQN
- Strategy, Life, Political, Parenting
- RL features, curriculum, deployment, distributed, real, language bridge, MathNN agent net
- Checkpoint MySQL flags + _RLCheckpointMySQL summary
MySQL Checkpoints — row counts per *_rl_checkpoints table
System — executive, perception bus, memory knowledge, LLM orchestration, computer bot, agents, thought graph, automation, safety, classifiers, hardware, generative, …
Network & AD — networking, auto-config, AD access, password store, remote commands
Minecraft — bridge + texture vision + DQN status (full graphs in minecraft_web_dashboard/)
Raw JSON — full state.json
Graphs — architecture nodes + discovery category bars / posted-vs-pending pie
from graphs export → graphs/graphs_all.json or program_web_portal/data/.
API: api.php?q=graphs. See docs/BrainstormIntegrations.md.
Security
- Bind portal HTTP only on trusted LAN.
- Do not expose MySQL credentials publicly.
- Portal is read-only.
Filed under: Uncategorized - @ July 18, 2026 6:48 am