Document direct synchronisation control and final Development qualification

This commit is contained in:
Nick Beckley 2026-11-09 09:48:02 +00:00
parent 1ca921c827
commit 8ddc142577

View File

@ -77,13 +77,20 @@ The current selected document's exact instance/session is validated by the exist
The original full manuscript workspace still provides mode preferences and explicit cancellation/review. Its normal author form remains supported. Native diagnostics also count selection events versus read observations so Windows can distinguish event storms, ordinary polling and actual navigation executions.
The final follow-up deployment/protocol result is recorded below.
Final follow-up application/source commit **`1ca921c827f51a6d23e46b213f0770e92d7a0fcc`** (includes `3754ff5` for the direct control) deployed at **09:41 UTC**. Release `/srv/apps/plotdirector-dev/releases/1ca921c-20261109T094137Z`; previous installation preserved in its matching `current-before-…` directory. Published/deployed DLL SHA-256: `a17b1f49ebf97f849ec414ee6dc3a268f7a1d873260e5340c088e3d0d3f9dec7`. Both local/public GET 200, service active, no startup warnings/errors, normal idle-work guard passed. No author import or analysis was interrupted.
The extended shell browser test passed in normal/dedicated/PWA layouts: actual compiled button, exact book/session/antiforgery submission, in-flight disabling, meaningful backend failure, and **no false success from an unrelated snapshot revision**. Success requires the same accepted transfer identity and a current persisted snapshot. All existing eight browser suites passed again. The updated managed build passed with zero warnings/errors; executable gates passed **455 application**, **30 focused navigation**, **53 paragraph-manuscript** and **7 capture-lifetime** assertions. The earlier **271 portable native** checks also passed; these do not compile the Windows VSTO project.
The real Development protocol/browser test was rerun against the final deployment and passed all earlier following/navigation/reconnect checks plus the **direct Synchronise from Word control**. A normally created, disposable manual test book avoided any active import. A stale exact session returned 409; the actual button reached the existing service and delivered one `paragraph-snapshot` command to the selected synthetic native session. This test deliberately cancelled that synthetic transfer before uploading new text: the dialog correctly reported **ended without an accepted snapshot**, rather than success. Its original six paragraphs, snapshot hash and revision stayed identical. Actual native extraction and a successful refreshed Word snapshot still require Windows testing; this test proves control/authorisation/routing/failure handling, not Word execution. Normal account cleanup removed this second fixture without any special SQL cleanup, and its private credentials were deleted.
**Use now:** refresh Context once → click the top-right **Word connected / Companion connected** indicator → **Synchronise from Word**. Open and save the intended manuscript and select the right document if the control explains that it is unavailable. Existing mode/cancellation/review controls remain under **Manuscript structure and evidence** (`/manuscript/paragraphs?bookId=…`). No new Windows installer is needed merely to expose this web control; the **native caret/ribbon change** still needs the 1.0.0.22 Windows build.
## Windows qualification / handover
Use the same shared branch `codex/word-companion-native-phase1-20261104`; inspect/preserve the worktree, discover its tracking remote, fetch and fast-forward safely. Do not use desktop automation, launch Word or install unattended while the user is working.
1. Check `7ce96acd94cb5a9b09b0b7604a5a67239bf66b55` is an ancestor of HEAD. Build through the existing `PlotDirector.NativeCompanion/WindowsValidation/Update-WordCompanion.ps1`; it prepares the managed/VSTO package and does not install. Use the existing signing certificate. No IDE/installer repair, private profile or alternate installation mechanism.
1. Check `1ca921c827f51a6d23e46b213f0770e92d7a0fcc` is an ancestor of HEAD. Build through the existing `PlotDirector.NativeCompanion/WindowsValidation/Update-WordCompanion.ps1`; it prepares the managed/VSTO package and does not install. Use the existing signing certificate. No IDE/installer repair, private profile or alternate installation mechanism.
2. Build the existing unified installer with `PlotDirector.NativeCompanion/WindowsValidation/Setup/Build-Setup.ps1 -PackagePath <exact verified package directory printed by Update> -CertificateThumbprint <existing certificate> -ExpectedSourceCommit <full current commit SHA>`. Do not guess an output path or install switch. Verify application **1.0.0.22**, MSI **1.0.22**, payload/signatures and upgrade from the user's actual installed 1.0.0.21 in the normal Windows user environment. Preserve pairing, server settings and associations. Installation remains a separately scheduled user action using that unified installer.
3. In an author-owned disposable Word/test book, save and use the existing **Synchronise from Word** if the UI reports a reopened/changed position map. This verifies current positions through the established workflow; do not manually rewrite IDs, adopt an arbitrary session or rerun a real manuscript import.
4. With Context closed, leave Word idle for 60 seconds, scroll, select text and type continuously. Record whether flashing remains. Troubleshooting's navigation execution count must remain unchanged, and the server must show observations with **no** queued/delivered `navigate`. This tests the ribbon-invalidation candidate; do not declare the cause proven before this comparison.