5.0 KiB
Phase 2 analysis: Windows Codex handover
Use the existing shared branch codex/word-companion-native-phase1-20261104. Fetch and fast-forward only with a clean worktree; stop on divergence. Baseline Windows fixes at 726a3d5 (author-tested package 1.0.0.3) must remain ancestors. Do not create a branch or deploy server changes.
Read Docs/WordCompanion/2026-11-04-phase2-document-analysis.md and the existing Windows validation README. Build the managed solution and run the native harness, then build the VSTO host with the existing Office-equipped MSBuild/developer-signing procedure. The Linux managed build excludes VSTO. Do not treat the Linux syntax check as a Windows build. Qualify a new controlled developer build with the author-approved installation procedure; do not overwrite the tested installation without authorization. Record the new package/developer build identifier, exact Git SHA, Office/toolchain details and signing method. No version 1.0.0.4 or other package number is asserted by Atlas.
The old agent may already be running. For an authorized developer trial, stop the test agent and launch the newly built adjacent agent; verify it advertises structure-review-v1. A new add-in talking to an old agent should show an updated-agent-required message, not pretend analysis succeeded. No native website sign-in or authenticated Context/Intent flow is part of this phase.
Functional acceptance
- Blank unsaved Word document: Analyse Document opens a small modeless review, reaches an explicit no-words result, reports no fabricated boundaries. Confirm the Phase 1 missing-custom-property registration fix still works.
- Prepare a synthetic manuscript with Heading 1 chapters, Heading 2 scenes, unformatted “Chapter One” / “Chapter 2”, ordinary prose and
***/#separators. Analyse; confirm paragraph positions, counts and evidence/confidence. Do not expect local IDs to authorize server operations. Test nativePD_CHAPTER_/PD_SCENE_fixtures as well. - Ambiguity: standalone numeric paragraphs, a prose sentence beginning “Chapter One…”, decorative separators and Heading 2 subdivisions. Results must remain review suggestions. Ordinary prose must not be rewritten. Check file content/control/bookmark counts before/after (account for normal Word save behavior separately).
- Produce more than 40 candidates; verify previous/next paging, first/last page and rapid navigation. Reopen the review: reuse valid results with no new extraction. Analyse again explicitly refreshes. Confirm current results cannot be replaced by an obsolete analysis/page.
- Cancel while waiting for typing to pause, while extracting and near completion. Late replies must not resurrect cancelled results. Repeat must work. Closing the review window alone may leave work running; ribbon Cancel Analysis must still work.
- Open Discovery, Reckoning and Redemption as separate documents; analyse each, switch rapidly and check the session suffix/results track the active document. Test in one and multiple Word processes. Close an analyzed document, cancel a close, save while analysis is running, close all Word documents and reopen one. No abandoned/foreign results should appear. Save/close must not wait for synchronization.
- Terminate the agent during analysis and after completion. Word stays usable; review shows interruption and stale paging is invalidated. Restart/reconnect; Analyse Document/Analyse again must succeed with new snapshot state. Exercise busy Word dialogs/COM failures and unsupported ranges; show an actionable stopped state, never an endless spinner.
- Run with an old Phase 1 agent and the new add-in, then with the new agent and old add-in in controlled test profiles. No incompatible operation should be silently interpreted as a completed analysis. Existing Office.js/browser behavior remains independent.
Responsiveness measurements
Use the existing fixture generator and process measurement script. First validate fixtures open without repair. Compare add-in-disabled and enabled trials on 190k, 250k, many-short/repeated-paragraph and 250k single-paragraph fixtures. Include continuous typing, scrolling, rapid selection movement, saving, closing and three concurrent analyses. Record COM-call/batch duration distributions, UI tick delay and external typing/scroll/save/close latency; agent CPU/private memory, FIFO/coalesced queue depth, total extraction/analysis time and recovery time. Note that continuous input intentionally postpones low-priority extraction; progress may pause without Word being frozen.
Do not use the agent-only synthetic analysis timing as Word responsiveness evidence. Investigate any noticeable typing, scrolling or save regression before declaring acceptance. Inspect modeless window sizing, DPI, keyboard/focus behavior and Word activation: it must allow continuing to edit Word and clearly follow the active document.
Commit Windows-specific fixes and qualification evidence to the same shared branch, push, and report the exact tested SHA/build. Do not start another migration phase, install an updater or deploy Production.