# Preflight independent renderer frames and deterministic completion replay Task ID: M01-F9 Role: astra_reviewer Status: READY ## 1. Context and baseline Root M01 66af7c5 includes client b7f18c0, current14, S06 atomic pickup. M01-P6 planner inspected current Win32/worker paths. Actual WM_TIMER pumps every 60 ms, scene packets borrow spans and camera-only paint rebuilds flat D3D mesh, while 20 Hz runtime is independent. Replay covers serial/2/6/12 and last berry but lacks proof of opposing real computation completion and semantic divergence diagnostics. ## 2. Objective and deliverables Preflight M01-P6 proposals for S17-W01 and S21-W01 before assigning separate implementation worktrees. Return separate corrections and concrete signoff conditions. ## 3. Scope and non-goals S17 independent presentation with one retained prepared flat mesh and 16ms dirty-only visible UI timer; S21 success observer for real worker callables plus deterministic arbitration/barrier/replay reporting. No M02 voxel geometry, native 60fps claim or GPU/backend replacement. ## 4. Files to inspect Read root app/viewer_win32.cpp, app/d3d_scene_win32.hpp/.cpp, viewer_session, app timer/lifecycle, tests/replay_tests.cpp/executor_tests.cpp/runtime_tests.cpp, engine/include/settlement/core/worker_pool.hpp, engine/src/world.cpp actual stage spans and quota; docs S17/S21/M01, M01-P6 and pinned FuturePool/Testing. Inspect temporary actual client handler smoke. ## 5. Write ownership and coordination Write scope: none No mutations/builds/remote posts/other agents or Serena switch. Root assigns separate S17/S21 branches, and S18 owns ongoing title changes. ## 6. Implementation or investigation approach S17 verify packet owns world/camera/selection/overlay and prepared GUI inputs, UI-thread resource ownership, post-replacement pairing after pump consumes event, immutable pin across nested UI; D3D reuses existing flat GPU/CPU mesh for camera-only changes, avoid per-timer reallocation/hot spinning, hidden/title/minimized and zero-size restoration. Real actual handler test needs camera and render changes while owner/file blocked, safe destruction; respect existing WARP/offscreen/hardware capabilities and fallback HUD only. ## 7. Interfaces and data contracts S21 optional after_execute(index) on success after real callable returns, before future satisfaction; return void/value/references/move-only, same-callable exceptions including observer errors, no throwing destructor, no hook when absent. Existing Void #15 registered. Two gates for two known competitors, controlled opposing completions asserted; tests 2/6/12 + capacity1 fallback without deadlock; real generic job contest parallel, berry claim serial with parallel movement separately. Report object/field/owner/request for first divergence using public World and canonical current serializer as authority; gated old world vs queued same-world reload with fresh session and unchanged old snapshots. ## 8. Dependencies and integration S17 rendering work in new branch separate from S18 title/profile; avoid altering normal client command pumps. S21 production edit restricted to optional worker hook and tests/docs, no world mutation/codec changes. Future body15 normalize version selector after integration. ## 9. Edge cases security and performance Check exception lifetimes, reference dangling/extra move, re-entrance or UI init/failure, force order while caller coordinator blocked, guarantee test oracle actually observes completion, full terminal effects after faults/cancel. Potential thread-lifetime hang on assertion; GPU device generation invalidates cached upload after reset. Check path/store version key for camera-only frames and active overlay state. ## 10. Acceptance criteria 1. Separate READY/CHANGES_REQUIRED per component. 2. Concrete prescreen decisions, testable postconditions and residual limitations. 3. Meaningful assignment in each isolated subsystem without changing the product contract. ## 11. Verification commands and evidence Use source read and graph search/trace/coverage plus direct ranges; inspect actual m01-viewer-{build,ctest,ui-smoke}.log and client_handlers_smoke.cpp. No builds. ## 12. Constraints and stop conditions Send prescreen first safe scope early. No apparent missing generic capability needs a duplicate issue; root filed Void/Library #15, immutable publication uses #5. Do not review unseen code or demand native-only validation for feasible Wine work. ## 13. Authorization and decisions User authorizes complete roadmap branches and tests; root accepts dirty-only 16ms timer, one retained flat mesh generation, optional success observation and semantic diagnostics subordinate to canonical bytes, subject to technical preflight. ## 14. Return format Return M01-F9 PREFLIGHT stage-specific verdict, corrections, exact test cases/source, bounded risks and practical blockers.