Pre-Flight — WP-131 — 2026-11-30

Filled-in copy of docs/reference/pre-flight for WP-131. Verdict at the bottom.

Drafted and executed by one session, the one that did WP-130, after Jeff said “Execute WP-131” (2026-11-30). Checked at claim time: no wp-131 branch in either repository, and no PR naming WP-131 but the drafting PR #324 (merged). The claim branches were pushed before anything else.


Dependency check

Prereq Status in WORK_INDEX Notes
WP-130 ✅ Done The operations the panel calls, and the hit overlay. Fork PR #55 merged (bcefc97cf4).

Rule check: every prereq is ✅ Done.

Repo + disc state

The build

What the code has (read at bcefc97cf4)

Scope lock

This repo: docs/work-packets/WP-131-imgui-debug-panel.md, this file, WORK_INDEX.md.

Fork, engines/terraglyph/: debug_panel.{h,cpp} (new); configure.engine; module.mk; debug_tools.cpp (the dispatcher and the queue); clues.cpp (getSuspects()); terraglyph.{h,cpp} (the callbacks in run(), the queue in the loop, the script driver on the dispatcher, getters). Staged by name.

Risk review

Risk Likelihood Impact Mitigation
The panel writing state from inside the render callback. med high Every control queues a command; a search of debug_panel.cpp for setter calls.
The script verbs changing behaviour on the move to the dispatcher. med med Re-run WP-130’s live script on this build and compare its Debug: lines and refusals.
ImGui compiled in changing the game with the channel off. low high The self-test with the channel off, against the WP-130 run.
The live check needs clicks a script can’t send. high med ImGui reads SDL’s events, not the engine’s, so test_script can’t drive it. The clicks need desktop control or Jeff.

Verdict

Prepared by: Claude (WP-131 session, drafting + execution in one) Date: 2026-11-30