Files
stoneheart_at_home/docs/agent-workflow/tasks/M01-V10.md
T

6.2 KiB
Raw Blame History

Audit the live LAN owner bridge and interactive session integration

Task ID: M01-V10 Role: astra_reviewer Status: READY

1. Context and baseline

S16-02 in isolated /home/faumaray/Projects/stoneheart_at_home-worktrees/s16 based 8c4c1fe. Contracts S16-02 and M01-F5 closed peer+epoch issues. S18-01 in sibling s18 has reviewed S15 a063894 merged, viewer in progress; LAN candidate will enter its checkout after review. One independent review per product path.

2. Objective and deliverables

Review actual S16 adapter now for branch integration. Later when root supplies final S18 commit/diff and evidence review normal Win32 entry for events, snapshots, async files and lifecycle, with separate verdicts.

3. Scope and non-goals

Only S16 compatibility host/guest integration and S18 normal client wiring. Legacy protocol remains 11. No public additional transport or deployment.

4. Files to inspect

Inspect s16 tracked diffs app/lan_session.hpp/.cpp, tests/lan_tests.cpp, docs S16, frozen runtime header and actual command/snapshot logic. S18 later inspect actual all new viewer_session code/tests and viewer_win32.cpp, CMake, S15 CheckpointFiles and normal entry + smoke. Read M01-F4/F5 and the assignments.

5. Write ownership and coordination

Write scope: none No mutations/builds/remote writes/branch ops/children/project switches. Other workers own code. Use direct source for isolated worktrees. Ignore their summaries until checked.

6. Implementation or investigation approach

S16 validate default-only authenticated legacy slot, session replacement, coalesced/wrong/rejected old sequence vs modern next_requests, pending future capacity/incarnation/peer tags, reconnect with in-flight owner mutation, truthful Wire11 receipt and first snapshots, consumer of take_result accept/reject vs prior take_rejection, correct future lifetime and no blocking poll on game work. Cross-verify old/no default rules or disconnect and correct generation in actual state transitions.

7. Interfaces and data contracts

S18 later validate consistent immutable world on paint/menu including nested window callbacks, pumped title/modal completions, no per-reset UI join, one file service check latest ticket + dimensions/supported rules, healthy save capture max, correct current epoch after commands, reject and retain draft, receipt routing and bounded local IDs, short locks and cleanup, actual normal new/continue/title load and LAN. No live mutable world assignment through UI.

8. Dependencies and integration

Root merges S16 into S18 to actually build/test full client after S16 review. S18 source is incomplete initially; do not approve unseen future work. Public test port uses loopback only. Native acceptance separate.

9. Edge cases security and performance

Check state across TCP rebind and network packets/receipts allowed on aborted session. Saturation/old guest fixed sequence, authoritative exceptions. UI must handle busy/faulted futures, avoid stale changes after failed newer load, process-level save ordering and bounded memory. Compare baseline behavior only within approved compatibility.

10. Acceptance criteria

  1. Separate READY/CHANGES_REQUIRED per phase with concrete sources and triggers. 2. First confirm real 5/5 lan-owner, 92/92 core, 9/9 LAN and original/new binary interop in both directions. 3. S18 after actual signoff + build/smoke logs; name any missing evidence for end-to-end status.

11. Verification commands and evidence

git -C s16 diff --check; inspect /tmp/stoneheart-milestones.xprJ2SVp/lan-owner-final-{build,ctest,tag}.log and lan-owner-interop.{cpp,py,log}. For S18 compare named parents once available and logs client-* in shared temp dir. Read-only inspection only.

12. Constraints and stop conditions

Return S16 review early. If blocked by outstanding S18 dependency, confirm stage A and await final evidence without premature approval. Inform root immediately of a verified actionable defect.

13. Authorization and decisions

User authorizes complete plan and system/milestone commits/MRs accumulating on roadmap. Root owns external actions/normal integration.

14. Return format

Return M01-V10 separate S16/S18 findings with actual tests, changed paths and limitations. No children.

The S16 adapter has been integrated at aa4e271 (parents 60154bd and 09545bf). Recheck the transport, legacy codec and test blobs against the reviewed branch, confirm the absence of merge edits to the owner or file adapter, and inspect m01-lan-{build,ctest}.log before publication. This additional check is read-only. The combined suite passed 106 core and 9 LAN tests.

Stage A passed the integrated review at aa4e271. For stage B inspect the actual tracked and new S18 files in the s18 worktree based at eef69ca, including viewer_session, the Win32 entry point, CMake and the viewer suite. Inspect client-{build,ctest,ui-smoke}.log and client_ui_smoke.cpp under the temporary evidence directory above. The smoke used three real viewer processes with isolated save data. Check title, modal navigation, successful and failed load, guest transitions and truthful pending-blueprint outcomes. The contract still distinguishes the initial compiled default profile from the separately scheduled S19 selection. Return a defect report or READY for S18 without changes to the checkout.

Stage B initially required three corrections. Recheck the finished fixes for identity after modal demolition, rejected guest rejoin preserving the retained replica, and ticking acknowledgements across fault recovery. Inspect the updated committed-quantity and request-path checks in client_{handlers,regression}_smoke.cpp, the corresponding client-{handlers,regression}-smoke.log, the final viewer build, the three-process smoke and client-ctest.log (99 core, 9 LAN, 10 viewer). Separate integrated audit follows when root supplies the merged ref.

Stage B fixes passed review and were committed as b7f18c0. Integrated commit db0a872 has parents 5354241 and b7f18c0. Confirm that the resident panel uses approved resource/storage/production IDs while the view remains pinned, both UI and core suites register, and the merged application’s three-process smoke passed. Check m01-viewer-{build,ctest,ui-smoke}.log under the temporary evidence directory.