17 KiB
Writer Phase 3B.2 / 3B.3 completion
Executive summary
The existing Writer journey is retained. Two reliability defects were reproduced before correction: cached Word UI observations surviving transport heartbeats (R1), and an explicit document choice silently changing to the remaining copy (R2). Both have targeted source corrections and permanent regression coverage. No objective, focus, manuscript, synchronisation or session architecture was replaced. No database migration was required.
The web correction is qualified for Development. The R1 native correction prepares matched agent/add-in 1.0.0.41 source; it has portable managed qualification, not a signed Windows package or physical Word acceptance. Existing installed .40 agents do not acquire the R1 safeguard from a web deployment. Phase 3B.4 was not started. Production and real author manuscripts were untouched.
Evidence reviewed and verification matrix
Reviewed the Phase 3B audit, Phase 3B.1 completion report, Writer3 Phase 3B/3C reports, Global Focus synchronisation correction, native range synchronisation and .33 post-edit Windows handover. Subsequent paragraph/chapter synchronisation and the current three-column Review supersede older placeholder/resizable-panel expectations.
| Workflow / boundary | Qualification and result |
|---|---|
| Writer Home | Real rendered navigation into Write/Explore/Dashboard, authorised project/book choices, keyboard, refresh/back/forward; 168 destination/theme/width/browser-context combinations pass. |
| Write / saved objectives | Authenticated disposable Development journey creates a Revising objective with chapter, scene and intention. Global Focus moves to an unmapped scene without changing the saved objective; session end/reload and subsequent workspace navigation retain it. |
| Sessions | Explicit Editing start/end persists the original chapter and note. Unsaved return note survives disconnected Word status and cached-return events. Planning/investigation actions do not implicitly record a session. Session measurements remain separate from accepted manuscript revisions. |
| Explore | Concern selection, inline deterministic questions/results and reload/resume work with Word absent. The production catalogue/engine qualifies diagnosis/result contracts; the current inline browser flow and persisted resume pass authenticated acceptance. |
| Guided Investigations | Existing catalogue/engine, lifecycle isolation and authenticated persisted resume are reused. No new AI service or Word dependency. |
| Plan | Authenticated activity creation with explicit scene target, notes/date, list/board/schedule navigation; no implicit session, accepted-content mutation or objective retargeting. |
| Review | Current Phase21 annotation suite covers chapter/scene/passage creation, edit/resolution, classification, themes/widths and Focus Reading. Phase3B.1 suite passes mapped/chapter-only/unmapped/removed mappings, dirty note/annotation deferral, late response, refresh/cached return and explicit reselection; no accidental writes/commands. Both notes columns and accepted Reader also verified against Development. |
| Reflect | Authenticated calendar/session-history switch shows the explicitly ended session and saved note. No Word requirement or claim to observe unsaved prose. |
| Writing Dashboard | Real rendered destination/theme/width checks plus authenticated navigation after recording a session. Existing application regression covers session/accepted-progress projection. |
| Global Focus / actual Word position | Existing focus and Word browser suites verify independence, explicit origin adoption, immediate updated targets, stale response rejection, missing-map fallback and cross-book refusal. Presence/chooser/focus events issue no automatic Word navigation. |
| Explicit navigation / feedback | Chapter/scene/paragraph resolver and acknowledgement tests retain exact instance/session/manuscript/revision fences. HTTP 202 remains requested; matching native execution result confirms completion; failures, expiry, cancellation and late results remain distinct. Browser native responses are simulated. |
| Synchronisation / accepted manuscript | Existing portable native chapter suite covers saved/unsaved gating, geometry, bounded handoff, reopen, stable identities and retained accepted chapters. Application Reader/review tests cover canonical provenance. Reader metadata notifications retain selected prose/Focus Reading. Actual SQL fixture accepted payload (including paragraph/scene/checkpoint identities) remains byte-for-byte unchanged by the authenticated journey and disconnection. Physical Word → server → Reader remains Phase 3B.4 qualification. |
R1: confirmed cached-observation defect
Trace: Word STA CaptureSelection reads actual selection and saved state; AgentLink can ping independently while COM is blocked. TrayCoordinator cached cursor/WordSaved and renewed server presence without a distinct UI-observation age. Server lease liveness alone did not expose that cached proof had stopped changing. Existing acknowledgements already required a correlated adapter result rather than a heartbeat or HTTP 202.
Before correction, a controlled-clock test advanced 46 seconds without a new selection, sent ping/metrics, and observed a continuing heartbeat with WordSaved=True and CursorStart=10. This establishes the software defect without claiming physical blocked-COM reproduction.
Correction:
- Track an observation timestamp independently of transport
Observed. Matched .41 selection frames carry a timestamp taken before COM reads, so a stalled read or delayed queued frame cannot receive a new capture time merely when delivered. Future timestamps are rejected. Legacy frames without this optional field fall back to receipt time for compatibility; the strongest delayed-frame guarantee requires matched .41 components. - Reuse the existing 45-second presence window for UI evidence age. Ping, metrics and reconciliation never renew it. Revision change/restart discards UI proof.
- Continue document transport presence and identity while publishing no saved-state/cursor/chapter/scene proof after expiry. Accepted manuscript data remains untouched. The existing position text explains the need for a fresh observation; no extra poller or badge.
- Reject precise navigation both when queued and when handed to the adapter if observation proof has expired. Existing command identity, expiry, result correlation and cancellation remain unchanged. A previously executed, correctly correlated acknowledgement is still execution evidence; it does not fabricate a fresh selection observation.
After correction, controlled-clock/actual IPC-codec tests pass fresh, stale-with-live-heartbeat, delayed captured frame, recovery, restart/reconcile, navigation during stale evidence, matched acknowledgement and expired acknowledgement. Server tests separately prove unknown saved-state denies precise navigation while connected, and transport expiry still occurs when heartbeats stop.
The 45-second bound is a conservative age policy, not a measured Word responsiveness SLA. An inactive document can remain listed but lose precise-navigation eligibility until Word supplies another real observation (activate/check the intended document). Actual inactive-document/blocked-COM behaviour and usability require physical qualification. No Windows performance or COM responsiveness result is claimed.
R2: confirmed explicit-choice substitution defect
Before correction, the rendered browser regression explicitly chose document A while A and B had identical names/manuscript properties. Removing A changed the chooser to B and violated the assertion preserving A.
Correction: retain only the explicit instance/session key and display title in account/book-scoped tab sessionStorage, with an in-memory fallback when storage is unavailable. When that exact session disappears, show a disabled disconnected choice, retain the chooser and disable navigation until another document is deliberately chosen. Initial unambiguous single-document selection remains convenient. Exact live server validation is unchanged. A reopened document with a new session must be selected again. Active Word window is independent of this choice. No prose, credential or manuscript snapshot is stored.
Permanent Chromium and simulated-PWA tests cover initial one/two documents, explicit choice, selected/unselected close, same-session recovery, new-session reopen, identical title/properties, active-window switching, refresh, agent reconnect and cached return, with zero automatic Word navigation.
Changes and test infrastructure
Production changes are limited to writer-word.js, native observation tracking/selection timestamp and .41 version metadata. Permanent regressions extend the existing managed foundation/server harness and add one focused real-rendered chooser browser script. The older Writer3 navigation suite's removed inline Help popover assertion now checks the existing shared Help drawer in both contexts. No UI redesign was made to satisfy historical tests.
Existing Phase21 Review/Word, Phase3B.1 Review fallback, Focus synchronisation, Manuscript Reader/freshness, Writer3 navigation/Word and investigation infrastructure were reused. Historical Writer3 Review dialog/focus-wizard/resizable-workspace assertions describe superseded UI and are not claimed as current acceptance; current suites above cover their relevant contracts.
Qualification results
- Application build: pass, zero warnings/errors.
- Full executable application regression harness: 633 PASS checks, exit 0 (
dotnet run --project PlotLine.Tests/PlotLine.Tests.csproj); nodotnet testsubstitution. - Native foundation: 304 checks, exit 0, including new observation regression and real portable IPC encoding.
- Native chapter synchronisation: 453 PASS checks, exit 0.
- Real MVC/Razor Chromium and simulated PWA: chooser regression, F1 Review fallback, current annotation/Word, Reader/freshness, navigation/feedback and broad responsive navigation pass. Focus synchronisation passes in Chromium.
- Investigation engine: 127 deterministic completed paths; the historical
writer3-production-investigations.cjsbrowser suite stops at its removed standalone “Explore a concern” link. It is not claimed as passing or silently rewritten; current inline questions/results/reload-resume pass authenticated acceptance. - Authenticated Development: disposable account/project/book/chapter, mapped/unmapped scene and accepted three-paragraph fixture; normal login, no real author content. Home/Write/objective/session/Explore/investigation resume/Plan/Review/Reflect/Dashboard pass in Chromium and simulated PWA. SQL review source roundtrip and accepted payload preservation pass. Credentials remain private outside the repository.
Simulated standalone contexts and cached-return events are not physical installed-PWA acceptance. Managed native HTTP/Word fixtures do not qualify real Office COM, Windows IPC ACLs, signing or installation.
Development deployment
Qualified source 80f7cb516b52bcf1a0d42493700f0bde85ac776c was committed and pushed on the existing shared branch. Development release /srv/apps/plotdirector-dev/releases/80f7cb5-20261120T224543Z was installed on 2026-11-20; the prior physical current is retained at /srv/apps/plotdirector-dev/current-before-80f7cb5-20261120T224543Z. Effective database verified as PlotDirector_Development; eight import/Story Intelligence/synthesis/enrichment/build status checks were zero immediately before stopping the service.
plotdirector-dev is active. Local GET and public TLS-validated GET both return 200. Deployed assembly informational version is 1.0.0+80f7cb516b52bcf1a0d42493700f0bde85ac776c. Published/deployed DLL SHA-256 matches: 5d7f9b4db127f89a7fb866a932b2c14af5d5b7b96cae4b1bd25fc43e10d3c16d. Qualified/deployed writer-word.js matches: 58123f11f50145323db3c086768c0dd77e3442d16fe8b1d9d8720c7f9b130d54.
Authenticated postdeployment workflow acceptance passes in Chromium and simulated PWA. The permanent document-choice regression was also reused against the authenticated deployed pages, adapted only for fixture identifiers/login and simulated native transport; all scenarios pass with zero automatic navigation. It does not assert a real connected Windows agent.
Configuration, uploads and application data were preserved. No SQL migration or production operation. Postdeployment service-log review found no error/failure entries; warning categories were HTTPS redirection port discovery and antiforgery cache-header overrides. No new runtime failure was identified.
A copy-only/checksum Development backup preceded fixture provisioning. The normal account hard-delete workflow removed the owned project/book/accepted snapshot and private credential file after acceptance; SQL cleanup verification confirms zero remaining synthetic records, including activities, investigations/guidance, planned activities, objectives and work sessions. The accepted payload had remained unchanged and zero annotations were inadvertently written before deletion.
Retained evidence is in Evidence/Phase3B2-3B3, including baseline failures, focused corrected regressions, full application/native outputs, current browser results, the explicitly obsolete investigation-test failure, authenticated before/after acceptance, deployment hashes/status and cleanup. qualification.json records the qualification identity. Operational helpers consumed credentials privately outside the repository; no credential or real manuscript data is included.
Native package implications and remaining acceptance
Version metadata prepares 1.0.0.41 / MSI 1.0.41 with a new product code and the existing upgrade code. There is no signed/released MSI, installer execution or installed-version assertion from this task. The optional IPC field is compatible with older clients, but matched .41 agent/add-in is required for capture-time freshness protection; the web fix alone cannot repair an older running agent.
| Outstanding item | Classification | Disposition |
|---|---|---|
| R1 on machines still running the old agent | Confirmed defect in older runtime | Source corrected here; deploy a qualified matched .41 native package after Windows build/acceptance. |
| Blocked Word COM/UI while agent remains healthy; inactive document observation recovery | Physical qualification requirement | Controlled software path established; real Word behaviour and conservative age-policy usability must be checked in 3B.4. |
| .41 classic VSTO build, signing, upgrade, ACLs, actual installed versions | Physical qualification requirement | Linux qualification cannot build/qualify the Office host or signed package. |
| Actual Word → saved synchronisation → accepted Reader/Review and physical installed PWA return | Physical qualification requirement | Portable/server/browser components qualified separately; actual Windows end-to-end execution deferred. |
| Standalone Context/Intent acknowledgement improvement I1 | Optional improvement | Remains outside scope; no demonstrated workflow failure requiring it. |
No additional unresolved confirmed Writer defect was reproduced. This is bounded contract/workflow verification, not exhaustive proof for all manuscripts or Windows configurations.
Recommended Phase 3B.4 checklist
- Build/sign matched .41 package on the authorised Windows host; verify assembly/package/installed versions and upgrade preservation before testing. Use a disposable manuscript only.
- Verify fresh selection, saved/unsaved changes, actual chapter/scene/paragraph navigation and exact document association. Only the matching native execution result may report completed.
- Block/stall the Word UI while the agent remains responsive. After the age bound, transport stays listed, live position/saved proof disappears and precise navigation cannot execute. Accepted text/annotations/objective/unsaved Writer note remain intact. Resume Word and verify fresh proof/recovery without reimport.
- Exercise inactive documents for longer than 45 seconds, then activate the intended document. Evaluate the conservative expiry policy against actual Word observation scheduling without weakening exact-session proof.
- Delay selection delivery and navigation acknowledgements; change revision, reconnect/restart, close/reopen/copy documents and expire server presence. Reject stale proof/results; never acknowledge queued work as completed.
- Choose A among identically named/property-copied documents, close A, leave B, refresh and return through an actually installed PWA. Keep A disconnected until explicit reselection; active-window switching alone must not change the Writer choice.
- Verify saved Word synchronisation and accepted revisions/stable paragraph identities through Reader/three-column Review. Recheck F1 chapter-only/unmapped/dirty-editor cases and F2 historical review guards, selections and notes after refresh/return.
- Recheck large-manuscript typing/scrolling/cancellation and existing native responsiveness measures. Record physical observations separately from the portable qualification reported here.
Stop here: Phase 3B.4 has not been initiated.