Record Word Companion 1.0.0.30 Windows reopening qualification

This commit is contained in:
nick 2026-11-11 20:34:26 +00:00
parent 8b3321e69f
commit 21fbd821f3

View File

@ -0,0 +1,80 @@
# Word Companion 1.0.0.30 Windows qualification
Windows qualification ran on 11 November 2026 against the existing saved `The Alpha Flame Discovery - Amazon Version.docx`, Development book **10152**. This handover continues [Atlas’s fast-reopening report](2026-11-11-fast-reopening.md). The implementation is `1cc8c0e10ae1cf1093723bd84ea3977c90e52d1d`. The installed signed package was built from `8b3321e69f4d5d0b58bbbd48aed35a63d80e57a6`, which corrects the VSTO assembly and file versions. The shared branch is `codex/word-companion-native-phase1-20261104`.
Both installed components reported **1.0.0.30** and their binaries matched the signed payload. MSI **1.0.30** installed the Complete feature locally (state 3), and Windows Installer and VSTO both returned 0. The existing signing configuration and UpgradeCode were preserved. The Release solution and signed VSTO builds passed with zero warnings or errors. The payload, MSI/CAB and upgrade gates passed 42, 97 and 34 checks. The focused native and application suites on the implementation commit passed 211 and 66 checks, including the synthetic floating-picture geometry cases.
- Setup SHA-256 `E0EAE226A2958B8AF797FAAE4FAF8E00191234A69C26DDA513AAD5F0CEE017C8`
- MSI SHA-256 `EB8D0EC53F78092BBE2C944DCCD9B94F7C8AC8B0D62A3C27EC5CABF8DBB21068`
## Real Word result
| Measurement | Result |
| --- | --- |
| Accepted chapter mappings | 48 of 48 for the reopened session |
| Reopening to reported completion | 241,181.3 ms (4 min 1.2 s) from document registration |
| Agent document recognition | 299.9 ms |
| Manifest | 355.5 ms |
| Fingerprints | 81.7 ms |
| Reported server phase | 198,778.3 ms |
| Context readiness | Unobserved (-1.0) |
| Chapter reads | 47 live-text, 1 XML |
| Chapter range-text reads | 48, totalling 58.4 ms |
| Live-text processing | 23,630.2 ms |
| XML processing | 875.1 ms |
| UI batching | 11,185.0 ms |
| Server submissions | 48 |
| COM busy/errors | 0 |
| Final diagnostic state | `awaiting-structure` |
The lightweight reader handled 47 chapters and the retained XML path handled one. Every chapter still went through server acceptance. The reported server phase is the sum of client-side elapsed intervals around chapter validation requests. It includes round-trip and response handling time and cannot establish actual server CPU time or SQL execution time. The Word recognition metric is separately measured in the add-in. These counters cover different intervals and may overlap.
**Why does reopening an unchanged manuscript require 48 server submissions after its fingerprints have been verified?** The present path re-establishes live Word positions for the new session and revision one chapter at a time. The four-minute result misses the reopening target. The diagnostic shows acceptance of all 48 chapter mappings and one structural XML read. It does not provide an independent post-anchor Writing Context observation or an authorised disposable-copy selective-edit result. Those live checks remain open.
## Atlas investigation entry points
1. **Word registration and reads.** `PlotDirector.NativeCompanion/Vsto/WordAdapter.cs` recognises the saved document and restores its association. `Vsto/WordChapterRead.cs` chooses live-text or the structural XML/native-position path and emits read counters. `Client/WordAccessScheduler.cs` batches chapter continuation steps on Word’s UI thread. `Protocol/Manuscript/ChapterFingerprint.cs` decodes the live evidence and supplies the existing content and identity hashes.
2. **Manifest and reuse.** `Agent/TrayCoordinator.Chapters.cs`, `LoadChapterManifest`, seeds `work.Checked` from manifest entries marked `Synchronised`. The GET in `PlotLine/Controllers/NativeChapterSyncController.cs` calls `ChapterSyncService.Manifest`. Trace the accepted source checkpoint and the separate live-validation lookup for the current session and Word revision. The manifest compares chapter, content, identity and mapping hashes against live rows. A durable checkpoint can survive the close while its old absolute positions cannot establish fresh session trust.
3. **Serial submission.** `ProcessChapter` matches the chapter by native identity with a content-hash fallback, computes the proof, and calls `CloudGateway.ValidateChapter` even for a local match. The first request sends hashes, measured positions and paragraph metadata. A second request with prose occurs only when the reply is `Changed` with `AllowText`. Follow `AdvanceChapter` after the reply and `CompleteChapters` at the end. Inspect whether fresh-session evidence can be accepted with fewer round trips while retaining saved-state, revision, geometry and authorisation guarantees.
4. **Server cost.** Follow POST `/api/native-companion/books/{book}/chapter-sync/validate` into `ChapterSyncService.Accept`. Inspect the per-request access and status reads, presence lease checks, manuscript snapshot load, checkpoint building, `ChapterCheckpointEngine.Validate`, persistence, and progress refresh. Only the changed and authorised path runs chapter reconciliation. `PlotLine/Data/ChapterSyncRepository.cs` calls `dbo.BookChapterSync` for `accept`, `list` and `position`. Verify the effective Development procedure before attributing cost. Correlate the controller’s observation-received event and the service’s validation-completed and checkpoint-persisted events by book, session, chapter and request ID. Compare those elapsed stages with HTTP request duration and database telemetry to locate the time.
5. **Context and local structure.** `Agent/SessionManager.cs`, `Resolve`, emits `awaiting-structure` when no local structural boundary is available at the cursor. Separately, `TrayCoordinator.cs` posts presence and `NativePresenceController` queries current-session chapter positions for eligible saved documents. `ObserveChapterPresence` sets `ContextMs` only when a presence reply includes a scene title. Follow the cursor and session through those paths and check whether a scene was resolved. The -1 value records a missing timing observation and does not establish browser readiness. Investigate this separately from the 48 submissions.
6. **Diagnostics.** `Agent/TrayApplication.cs` assembles Troubleshooting from the selected Word document, its status and `ChapterDiagnostics`. The Windows session below also appears in the agent IPC log with Word instance `02845f24-00b9-4fbc-8d26-aa41ad3dfac8`. A final sample at `2026-11-11T20:32:59.1384429Z` records `operation=selection status=awaiting-structure`, correlation `8e7fe592-5857-48d4-89c3-e0ef86ac4737`.
Windows stopped after collecting this evidence. No repeat reopening, checkpoint reset, Discovery data change, synchronisation code change or further installation was performed for the handover.
## Raw Companion Troubleshooting output
```text
Server: https://dev.plotdirector.com/
Account: Nick Beckley
Document heartbeat verified by PlotDirector.
The Alpha Flame Discovery - Amazon Version.docx · session e6be8273-718d-42cc-a4ea-66b2b32e345e · book 10152
PlotDirector 1.0.0.30
Agent: connected
Selection events / observations: 0 / 950
Word navigation executions: 0 · last command: 00000000-0000-0000-0000-000000000000
Open sessions: 1
IPC queued: 0
Word work queued: 1
Agent startup: Not requested
Main document words: not read / stale
Last UI batch ms: 0.37
Max recorded COM call ms: 0.17
Chapter reads live / XML (process): 47 / 1
chapter-document-recognition: count=1, total ms=308.2, max ms=308.2
chapter-ui-step: count=9179, total ms=11100.1, max ms=151.7
chapter-ui-batch: count=656, total ms=11185.0, max ms=162.8
chapter-paragraph-id: count=8461, total ms=93.6, max ms=0.4
chapter-range-text: count=48, total ms=58.4, max ms=3.4
chapter-live-text-complete: count=47, total ms=23630.2, max ms=1060.9
chapter-range-xml: count=1, total ms=151.6, max ms=151.6
chapter-native-paragraph-text: count=62, total ms=1.6, max ms=0.2
chapter-picture-anchors: count=2, total ms=8.5, max ms=8.3
chapter-position-segment: count=1, total ms=0.1, max ms=0.1
chapter-xml-complete: count=1, total ms=875.1, max ms=875.1
COM busy/errors: 0
awaiting-structure
All 48 chapter mappings are accepted for this Word session.
Chapter timings since document registration (ms): recognition=299.9, manifest=355.5, fingerprints=81.7, server=198778.3, Context=-1.0, complete=241181.3. Reads live/XML=47/1, submissions=48. Negative timing means not observed.
```