← all documents · raw markdown · 7 KB

HOTFIX NOTES — for the dispatch (Antigravity)

Ryan is away. Code edits were made to the KAI ecosystem and need to be applied to the running server. This note tells you exactly what changed, how to apply it, and how to handle failures. Expect the apply to take a few minutes (engine rebuild + boot).

---

1. ONE COMMAND APPLIES EVERYTHING

powershell -ExecutionPolicy Bypass -File C:\KAI\apply-hotfix.ps1

apply-hotfix.ps1 auto-detects whether the Rust engine needs a rebuild (only if src\*.rs / Cargo.toml is newer than target\release\kai.exe), kills kai.exe first so the binary can't be access-denied, rebuilds, then restarts the fleet via Start-KAI.ps1. If a build fails, it restarts on the old binary so the server stays up and logs the error to C:\KAI\scratch\apply-hotfix.log.

After it runs: hard-refresh the dashboard (Ctrl+Shift+R) for oracle.html changes.

---

2. WHAT CHANGED (so you can verify)

| File | Change | Needs |
|------|--------|-------|
| src\main.rs | sleep→world-model learning import fix (crate::kai::) | cargo rebuild + engine restart |
| overnight_pipeline.py | training window gate fix — all 5 gate sites now use bounded overnight_window_open() so training only runs 03:00–08:30, never on a daytime boot | restart (Python; the keeper relaunches it) |
| tools\oracle-discord\command-center-server.mjs | /api/vitals now also reads /api/session (so KAI Vitals show data instead of "engine down"); per-user passwords; dotenv path fix | restart Command Center |
| oracle.html | Phoenix-healed KAIVERSE functions (nsPaintHUD, nsOpenNodePanel, nsAdvanceGrowth, nsGrowVal, closeNsEdgePanel); map moved up; live clock; touchpad controls; dashboard metrics (10/9 count, radar, leaderboard) | hard refresh only (served statically) |
| oracle.html (v9.10.1, Jun 23) | Mobile drawer fix — on phones the opened nav/channels drawer was dimmed & dead to touch (every tap hit the scrim and closed it). Stacking-context trap: .shell{position:relative;z-index:1} confined the fixed drawers (.col-left/.col-right, z-index:100) BELOW the body-level .m-backdrop (z-index:90). Fix = added .shell{z-index:auto} inside the @media(max-width:900px) block (next to .rail{display:none}). Small targeted edit, no rewrite. | hard refresh only (served statically) |

---

3. IF SOMETHING FAILS

---

4. VERIFY AFTER APPLYING

1. Engine ticking: curl http://127.0.0.1:3334/api/sessiontick advancing.

2. Command Center gated: curl -s -o NUL -w "%{http_code}" http://localhost:3001/api/channels401.

3. Pipeline idle during the day (not training): check it's not pegging CPU; it should only run 03:00–08:30.

4. Dashboard (hard-refresh): KAI Vitals show real numbers (not "engine down"); agents count is X/9 not 10/9.

---

*Generated for the dispatch. The single source of truth is apply-hotfix.ps1 — when in doubt, run it and read scratch\apply-hotfix.log.*

---

DISPATCH UPDATE — 2026-06-22 (from Claude/Cowork session, for the coworker)

Summary of work done this session. Nothing here was force-pushed to the live server; most items are pending the fleet rebuild/restart.

1. Kai vitals (frozen/idle, not dying)

2. Command Center dashboard login

3. Leo voice stutter/chopping (NOT internet — confirmed)

4. Hotfix script