diff --git a/Docs/WordCompanion/WindowsHandover/2026-11-11-v1.0.0.30-windows-qualification.md b/Docs/WordCompanion/WindowsHandover/2026-11-11-v1.0.0.30-windows-qualification.md index 29eaeaab..ea84c86a 100644 --- a/Docs/WordCompanion/WindowsHandover/2026-11-11-v1.0.0.30-windows-qualification.md +++ b/Docs/WordCompanion/WindowsHandover/2026-11-11-v1.0.0.30-windows-qualification.md @@ -35,7 +35,7 @@ The lightweight reader handled 47 chapters and the retained XML path handled one 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. +3. **Serial submission.** `ProcessChapter` matches the chapter by native heading identity. An explicit repair can fall back to content hash and paragraph count for a chapter without a saved native heading ID. It then 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`.