Record live Word paragraph import and Development completion blocker

This commit is contained in:
nick 2026-11-07 23:01:01 +00:00
parent 06a4ba04c6
commit 1048e193fd

View File

@ -0,0 +1,23 @@
# Windows live paragraph qualification — 7 November 2026
Development deployment 5021586c9f6a7b3ef9c8f130e3138ca96440ea7b. Windows checkout fast-forwarded to 06a4ba04c6363e9783b6313aaaac70e2a850c38d. Installed tray and VSTO 1.0.0.18 were used as-is. No native build or installer was needed.
Disposable Development project 8173, book 10151 (The Signal and the Crossing — QA), and a Word-authored fixture under C:\Temp\PlotDirectorLiveQualification-5a4d1a5b\Paragraph Sync Qualification.docx. The author signed in to the existing Development account. This created a fresh test project and book through the import wizard. Reckoning, the existing Story Intelligence job and Production were outside the test.
## Actual Word and capture
- Word 16.0.20527 loaded the installed VSTO, with COMAddIns connection true. Its installed agent logged real document/session selection traffic, then a successful snapshot-begin, nine fragments and snapshot-end. The Development wizard accepted the capture and showed two chapters, 51 words. Scene detection and core import completed with two scenes and nine saved paragraphs in order.
- Direct Word COM inspection read paragraph ranges and UTF-8 SHA-256 fingerprints of Range.Text. The saved DOCX had eight distinct w14:paraId values initially. Editing one paragraph and inserting one between existing paragraphs preserved all eight saved IDs, changed only the edited paragraph's old fingerprint and created one new ID. Identical repeated prose had identical fingerprints and separate saved IDs. Reopen preserved all nine saved IDs and hashes.
- On this Word build, both one-character and full-paragraph Range.WordOpenXML omitted paraId. The production parser yielded empty hints even after save/reopen. The DOCX package contained the IDs. This qualifies actual positional/text capture with unavailable native hints, not extraction of the package's IDs by VSTO. Nine external COM calls averaged 72 ms (68–84 ms, about 62k XML characters each). This is not in-process VSTO scheduler timing or a large-manuscript estimate.
- The import's approved document identity write marked the document unsaved. Normal Word Save persisted PlotDirector.Native.DocumentGuid in the test DOCX. A later prose edit changed one fingerprint, preserved the saved paragraph IDs and saved successfully in Word. Server-side occurrence identity across that second revision remains unverified.
## Development blocker and reproduction
1. Fresh native Word import into the test book. Complete scene detection, character review and **Complete core import**. The page says **Core import is complete**.
2. Click **Not now** for optional Story Intelligence. The test book's manuscript workspace shows nine paragraphs in two scenes and **After Word saves or reconnects** mode.
3. Save the metadata or a prose edit in Word, then click **Synchronise from Word**. The workspace responds: “The existing book import is still active. Synchronisation is paused to protect it.” The saved snapshot remains unchanged. Context and Intent both withhold a live scene on the unsynchronised revision even when the cursor is moved into the body of each chapter.
4. Under paragraph 4, choose **Start a scene here**. The server responds “Active import or analysis protected; synchronisation paused.” The workspace retains two scenes and Undo remains disabled.
Source trace for Atlas: core completion stores CoreImportComplete in OnboardingService, while the Not now link in BuildComplete.cshtml only navigates to the project. The 241 ParagraphManuscript status/save guard still treats a book-scoped UserOnboardingState row with null OnboardingCompletedUtc as an active import. The normal core-complete/skip-optional-analysis path needs to close or distinguish that import state for the exact book while preserving the separate protection for genuinely active imports and Story Intelligence jobs. Add a regression that goes through real wizard completion and skips optional analysis, then verifies status and save. Any procedure correction must be forward-only. Also review the stale “Next: import scenes and update Word” toast in the native path.
Successful cursor-to-scene following, revised paragraph synchronisation and split/boundary/merge/undo are pending until the guard is corrected. No bypass, optional analysis run, deployment, application change or reinstall was attempted. The test book and saved fixture remain available for retest. The native hint observation is separate from the server guard and warrants a build-specific follow-up only if contextual identity fallback fails after sync is unblocked.