diff --git a/Docs/WordCompanion/2026-11-08-writing-context-workspace.md b/Docs/WordCompanion/2026-11-08-writing-context-workspace.md index dea9abbe..540a4553 100644 --- a/Docs/WordCompanion/2026-11-08-writing-context-workspace.md +++ b/Docs/WordCompanion/2026-11-08-writing-context-workspace.md @@ -65,6 +65,38 @@ Final portable verification: ## Deployment and remaining qualification -Deployment is pending the normal Development guard and completion of existing analysis. On inspection, analysis was genuinely progressing (pending runs fell from 22 to 18 with two running); it has not been interrupted, restarted or reset. Migration 244 creates a read-only procedure; no tables, author rows or identity mappings change. It has been applied after a verified copy-only Development backup; application deployment is still waiting for active work to finish. Release identity and actual running-application checks will be recorded after safe deployment. +Deployed application commit **`e0525f4`** (foundation/migration commit `9568e7e`) to Development at **2026-11-09 00:12 UTC**: + +- Release: `/srv/apps/plotdirector-dev/releases/e0525f4-20261109T001229Z`; prior physical installation preserved at `current-before-e0525f4-20261109T001229Z`. +- Published and running `PlotLine.dll` SHA-256: `3a944e70231d82f3d80ccc2c2017b58928766032b14f5818b9019786854dba3c`. +- Service active; public TLS-validated HTTPS GET and local GET both returned 200. No startup warnings/errors. +- Existing analysis genuinely progressed to completion before deployment. The normal guard checked queued/running Story Intelligence, synthesis, enrichment, imports and marker work immediately before stopping the service and passed. No author job was interrupted, restarted, reset or invalidated. +- Migration **244 applied** after a verified copy-only Development backup: `/var/opt/mssql/backup/pwa-desktop-20261108T231952-79895d73262c466e8e65f4cbfe851003.bak` (`RESTORE VERIFYONLY WITH CHECKSUM` passed). One authorised read-only procedure; no table/data/identity migration. Production untouched. +- Initial publishing exhausted the user's temporary-file quota; the incomplete generated output was moved out of `/tmp` and publishing succeeded on the normal `/srv` filesystem before any service change. No source/build defect was hidden by this retry. + +### Actual deployed workflow verification + +`node PlotLine.Tests/Browser/writing-context-development.cjs ` passed against **https://dev.plotdirector.com**, through normal login and browser-approved persistent installation authorisation. A disposable synthetic account/book with two chapters/scenes and an existing six-paragraph snapshot was used; no author project, manuscript, import or AI job was used as a fixture. + +Verified: native bearer registration and exact cursor-to-scene resolution; legacy URL redirects to the direct dedicated Context document without iframe/ribbon; explicit cross-chapter scene selection queues one existing revision-bound `navigate` command at the exact saved paragraph position; simulated cursor acknowledgement follows without issuing another command; workspace root and People tab retained; stale Word revision refused with HTTP 409; actual recorded metrics and empty plot-line state; disconnected manual browsing; reconnect restores Word's actual cursor scene; anonymous/antiforgery rejection; installation revocation invalidates the bearer credential. + +The paragraph snapshot's SHA-256, revision and all six position rows were exactly unchanged before/after. The synthetic installation was revoked and fixture account/project/book/snapshot removed. The existing normal account-delete workflow has a `UserOnboardingState` foreign-key cleanup omission: normal project deletion succeeded, then a guarded deletion of only the orphaned synthetic user's onboarding state allowed normal account deletion to finish. No unrelated account cleanup code was changed. + +This test is a **real deployed protocol-client/browser test**, not Word COM execution. It neither uploads prose nor claims physical monitor/native visual qualification. + +### Browser reference images + +Actual compiled Razor with synthetic story data, captured in Chromium (not Windows desktop screenshots): + +- [Plot Lines](Screenshots/2026-11-08-writing-context/plots-warm-dark.png) +- [Recorded metrics](Screenshots/2026-11-08-writing-context/metrics-warm-dark.png) +- [Scene Maps](Screenshots/2026-11-08-writing-context/maps-warm-dark.png) + +### Where to use it + +Open Context/Intent from the existing Writer/workspace actions; existing native workspace bookmarks redirect automatically. Click the top-right **Word connected/disconnected** indicator for document selection and diagnostics. In Context, use **Jump to scene** or **Previous/Next** beside the scene title. **Plot Lines**, **Metrics**, **Maps** and **Floor Plans** are tabs in that same workspace; scrubbing is exploratory, and only **Go to scene** requests navigation. Display positioning remains in the existing Writer display preferences/Detect Screen controls. After rollout, refresh/reopen Context so a previously loaded legacy document uses the new direct workspace. Windows acceptance should check explicit Jump/Previous/Next into Word, cross-chapter positioning, ordinary cursor following without focus theft or loops, stale-map refusal, document selection, Word's unchanged saved/dirty state, and independent Context/Intent windows. Existing Companion 1.0.0.21 remains installed and untouched. + + +Remaining limitations: reference Maps/Floor Plans deliberately reuse read-only projections rather than reproduce full editing workspaces. The original historical Timeline embedding request was not available as a network capture; the confirmed iframe/navigation/state-loss path was removed, and regression tests explicitly reject complete Timeline/application pages. Browser popup/screen-placement permissions and physical monitor positioning still require the user's Windows environment. No native source, IPC contract, installer, manuscript extraction or author decision changes were needed. diff --git a/Docs/WordCompanion/Screenshots/2026-11-08-writing-context/maps-warm-dark.png b/Docs/WordCompanion/Screenshots/2026-11-08-writing-context/maps-warm-dark.png new file mode 100644 index 00000000..1d5633fc Binary files /dev/null and b/Docs/WordCompanion/Screenshots/2026-11-08-writing-context/maps-warm-dark.png differ diff --git a/Docs/WordCompanion/Screenshots/2026-11-08-writing-context/metrics-warm-dark.png b/Docs/WordCompanion/Screenshots/2026-11-08-writing-context/metrics-warm-dark.png new file mode 100644 index 00000000..f27dc6f7 Binary files /dev/null and b/Docs/WordCompanion/Screenshots/2026-11-08-writing-context/metrics-warm-dark.png differ diff --git a/Docs/WordCompanion/Screenshots/2026-11-08-writing-context/plots-warm-dark.png b/Docs/WordCompanion/Screenshots/2026-11-08-writing-context/plots-warm-dark.png new file mode 100644 index 00000000..199411f2 Binary files /dev/null and b/Docs/WordCompanion/Screenshots/2026-11-08-writing-context/plots-warm-dark.png differ