21 KiB
Writer 3.0 Phase3B report
16 November 2026. Phase3B only, shared branch codex/word-companion-native-phase1-20261104. Main implementation and native source commit: 9969c9b47be8ee0bc036687e516031c6c1e6e3bc. Development release verification is recorded below. No Production changes or Windows installation.
Authoritative audit and delivered capabilities
The current chapter-range implementation supersedes older prototype README limitations. The VSTO add-in observes document identity, saved state and cursor, while the existing agent performs bounded chapter checks and server reconciliation. Exact instance/session/manuscript/revision and current checkpoint hashes govern positions. Unsaved observations are deliberately not accepted prose or verified navigation positions. Existing three-second debounce, periodic range checks, chapter reuse, cancellation and restart recovery are retained.
Before Phase3B, Context already validated scene navigation but reported requested, and VSTO returned adapter-result only locally. Writer lacked a composed verified status/handoff surface. Reader already preserved Focused Reading through Previous/Next and had accepted-version, selected-text, pause and paragraph-anchor refresh policies; those were reused.
| Surface | Delivered behaviour |
|---|---|
| Write companion | Bound manuscript identity, server-verified chapter/scene where available, honest pending/checking/review/failed state, accepted chapter/snapshot timestamp. No optimistic assertion that every later edit is current |
| Working focus | Remains independent of Word, active session, exploration, Reader, pinned Context and standalone Intent |
| Open this chapter in Word | Explicit authorised exact-document request, verified live chapter start plus current hash/position recheck; no title/order approximation |
| Open this scene in Word | Uses the existing exact accepted scene paragraph anchor and live verification. Missing/unresolved anchors reject safely; no artificial scene markers |
| Confirmation | Requested differs from completed. Only correlated authenticated native adapter acknowledgement reports Word confirmed navigation |
| Check saved manuscript | Calls the existing bounded saved-manuscript check endpoint without fullSnapshot, forced save, import or broad acceptance |
| Return to Writer | Native Companion button and existing web workspace link use the authenticated launcher. Exact live origin is a hint only; explicit SaveObjective adopts the verified Word chapter |
| Reader | Existing safe replacement/selection/pause/anchor policy retained. Accepted-metadata timestamps update without replacing unchanged prose; native revision invalidation uses existing stream, and cached return keeps reading position |
| Recovery | Expiring commands, stale-document/revision rejection, exact manuscript choice for multiple documents, bounded timeout feedback, status-stream resume on cached return |
Word status sits in the existing resizable companion beside current work, preserving primary intentions and active session controls. Less frequent connection/check controls are under optional details. Standalone Context/Intent launchers remain prominent and independent. The shared status stream also works when the title-bar presence preference is hidden.
Reused and new contracts
Reuse: NativePresenceStore, cookie-authenticated native presence hub, existing status loop/debounced SignalR invalidation, NativePresenceController's authorised position resolution, IWordCompanionRepository structure, ParagraphManuscript and ChapterSync repositories, current scene-start/position/checkpoint joins, existing bounded snapshot/check endpoint, VSTO range selection and adapter-result, existing authenticated PWA/browser launcher, SaveObjective and Reader service/client.
New additive capability acknowledged-navigation-v1 is advertised by the matched client and recognised by the agent before CanAcknowledgeNavigation is reported. Protocol version remains1. Commands add manuscript identity and UTC expiry; native presence adds correlated acknowledgement ID/result. Writer's receipt is author/book/document/grant/revision scoped, bounded and ephemeral. Old add-ins/agents keep existing APIs; they cannot enable the new confirmed-navigation controls. Updating only the web application does not update Windows software.
Server delivery rejects changed revision/book/manuscript and expired commands. Agent routes only the exact current document; native UI-thread execution rechecks session/revision/manuscript/expiry/saved state immediately before Range.Select. No document open/close/save, manuscript mutation or explicit application activation was added. Word's own range-selection foreground behaviour remains a physical acceptance item. A command lost to a busy queue or missing acknowledgement remains unconfirmed. Concurrent windows cannot replace another pending confirmed navigation. Same command ID is not replayed as a second selection.
WriterWordService composes these existing authorities; native and web responsibilities are not merged. Optional Writer metadata/verified-position fields extend the existing status request, preserving the legacy array response for callers that do not request them. No second background status loop is introduced. Only an explicit handoff performs a bounded receipt check, at most30 one-second attempts. Existing15-second presence fallback and SignalR invalidation remain. The saved-manuscript check tracks its own returned operation ID before enabling another request.
Migration271 adds only WriterWord_Status, a scoped pure metadata read of the existing accepted manuscript/checkpoints. No new storage, inline application SQL, manuscript editor, prose acceptance engine, scene mapping or global selection. Backup before migration/fixtures: /var/opt/mssql/backup/writer3-phase3b-before-271-20261116.bak, copy-only/checksum, verified nonempty. Previous numbered migrations remain unchanged. Application rollback does not undo this compatible additive procedure.
Qualification and performance
| Gate | Evidence |
|---|---|
| Build | dotnet build PlotLine.slnx, zero warnings/errors |
| Web executable harness | 599 PASS records, exit0; authorised chapter/scene resolution, current live checkpoint versus stale list, capability, correlated/foreign/stale ack, timeout, expiry, revision/document/author/book isolation |
| Native executable harness | 288 PASS records, exit0; real coordinator adapter-result propagation, wrong-document/stale ack rejection and native execution gate |
| Native chapter-sync specialist | 453 PASS records, exit0; bounded reconciliation, unchanged reuse, unsaved observations, document switching, restart/pipe recovery and stale response guards |
| Writer browser/simulated PWA | Connected/uncertain/old/unsaved/disconnected/cross-book state, exact request and acknowledgement distinction, timeout/repeated action, bounded check, multi-document selection, cached return, retained session DOM/return note, origin/adopt, Help and narrow overlay |
| Reader browser | Metadata notifications preserve prose DOM, selected text and Focused Reading; existing live-update, pause/listening, offline/hidden recovery, anchor, stale response and Next/Previous/selector suites |
| Preservation | Existing authoring, unified focus,200-case workspace matrix and standalone Context/Intent/follow recovery suites |
| SQL | Empty reads do not seed a snapshot; actor/chapter rejection; distinct snapshot and chapter-acceptance timestamps verified through a rolled-back synthetic insert |
| Authenticated Development | Passed real browser/simulated PWA: disconnected/empty canonical state, actor/chapter scope404, missing-CSRF400, unverified navigation409, absent receipt404, Help popup/drawer/article, focused Reader and narrow companion. Native connection/ack events remain simulated in fixture tests; no physical Word available. |
Measured portable gates:10,000 native navigation fences took0.58ms total. Existing48-chapter range fingerprint fixture processed1,530,278 preallocated UTF-16 units in30.5ms; synthetic250,000-word analysis100ms. Existing Linux named-pipe handoff measured82.5ms/2 polls. These are managed/in-memory/Linux measurements, not Word extraction, Windows IPC, network or typing latency. The new routine status transfers metadata only and adds no COM calls or manuscript traversal; explicit navigation adds a small identity/expiry fence before the existing single range selection. Physical190,000–250,000-word responsiveness is not claimed. The explicit native handoff adds one saved-state COM read immediately before selection; its actual Word cost must be measured on Windows.
Authenticated public HTTPS status checks without an open Word document or accepted snapshot measured10 samples per mode: browser p50=11.8ms/p95=52.2ms; simulated PWA p50=10.0ms/p95=11.4ms. These include public transport and the new SQL metadata projection, and are not an incremental old-versus-new benchmark or a large-manuscript/Word performance claim.
Screenshots
Synthetic fixtures only. The connected illustration uses simulated native events; it is not evidence of physical Word acceptance.
Simulated verified connection with independent active Audio Review · Narrow companion
Development release and data invariants
Release 9969c9b-20261116T210203Z; archive /srv/apps/plotdirector-dev/releases/9969c9b-20261116T210203Z; rollback /srv/apps/plotdirector-dev/current-before-9969c9b-20261116T210203Z. Fresh Release publish preserved appsettings/environment, data protection, uploads and logs. Pre-stop queue checks found no active import, Story Intelligence, pipeline, synthesis or enrichment. Service active, local GET200 and TLS-validated public GET200. Deployed informational version 1.0.0+9969c9b47be8ee0bc036687e516031c6c1e6e3bc; published/deployed DLL SHA256 both 26aabdca47bf9dbcf86981f316c9f0571f091ae8e11ea303b135020f0f163486. The warning/error journal from deployment through acceptance has no entries.
All14 scoped author/manuscript-data hashes matched before/after real read-only acceptance, including canonical manuscript and live validation tables. The disposable project/account were removed through guarded existing deletion procedures, RemainingSyntheticAccounts=0, and the private identity was deleted. Explicit fixture setup and rolled-back SQL timestamp tests are separate from read-only checks; no real author manuscript was used. The unrelated investigation file remains untouched. A subsequent documentation/evidence-only commit does not alter deployed binaries.
Qualification evidence, including before/after hashes, successful logs and screenshots.
Native build and precise outstanding Windows acceptance
Native developer version 1.0.0.37, source commit 9969c9b47be8ee0bc036687e516031c6c1e6e3bc. Managed protocol/client/agent builds passed, including the Windows-targeted agent compilation. The classic VSTO project needs Visual Studio Office tools on Windows and was not compiled or loaded here. No installable signed Windows package was produced on Linux, and no author's add-in/agent was replaced.
After separate authorisation to install, use the existing Windows checkout and preserve any local native edits before synchronising this shared branch. Build/test without installation:
.\PlotDirector.NativeCompanion\WindowsValidation\Update-WordCompanion.ps1
The script safely fetches/fast-forwards the shared branch, uses the existing signing certificate and prints the verified package path under Downloads\PlotDirectorWordCompanion\1.0.0.37-. If several certificates exist, pass -CertificateThumbprint <existing-thumbprint>; do not create/distribute secrets. The native implementation was introduced at9969c9b; the final report/evidence commit changes no native source. The build script records the exact shared HEAD it packages, so its eight-character suffix can differ from the implementation commit. Record that generated commit, verify its native diff from9969c9b is empty or separately reviewed, and inspect the package's version/commit before installation. Only after installation is authorised, close Word normally and use the exact generated package path:
.\PlotDirector.NativeCompanion\WindowsValidation\Install-WordCompanion.ps1 -PackagePath '<verified-package-path>' -StopAgent
Do not install only an agent DLL or mix add-in/protocol/client/agent versions. Retain the existing rollback package; the existing installer supports -Rollback. Web rollback is separate.
Use disposable or backed-up manuscripts against Development. Record OS/Word build/bitness, package SHA, document identities and timings:
- Bind the correct book/document; check Writer name, verified chapter/scene and accepted times. Open another book and multiple documents, including same-title documents. Ambiguity must require choice, and uncertain identity must disable handoff.
- Save a working focus different from Word's verified chapter. Start a session for another chapter with an unsaved return note. Explicitly navigate chapter and verified scene; verify a single range selection only after that click, acknowledgement, no forced save/document reopening, unchanged objective/session/note/Reader/pinned targets and expected Windows foreground behaviour.
- Type unsaved changes, including same-length changes and Undo. Confirm pending/uncertain status; navigation must not force a save. Save normally, wait for bounded reconciliation/acceptance and verify status/Reader timestamps. Select Reader text or pause updates; later content must follow the existing deliberate update policy with Focused Reading and anchors retained.
- Stop/restart the agent; close/reopen, rename, Save As and replace documents; disconnect network/server during handoff and synchronisation. Wait beyond command expiry before reconnecting. Old commands/acks must not select another document or claim completion. Retry only after current verification.
- Return to Writer through Companion; verify existing browser/PWA launcher behaviour and current focus. Origin selection never silently saves an objective; adopt only explicitly. Test two Writer windows and back/forward/cached return.
- Keep Context pinned on one monitor and Intent following on another while moving Word and changing Writer focus. Verify named-window reuse, display-permission fallback, independent selection and reconnect.
- Preserve actual Audio Review playback, timing, source binding and note through Word movement/disconnect/reconnect; no automatic session start/end/retarget.
- With190,000- and250,000-word fixtures, record before/after keystroke, cursor/scroll/ribbon response, UI tick/COM p50/p95/max, CPU/memory, bounded queues and reconciliation payloads. Repeated status and handoff must not initiate full-document traversal. Use existing WindowsValidation measurement scripts; managed CPU numbers do not replace this step.
- Check installed PWA, narrow companion overlay, four themes, high-DPI/zoom, keyboard and screen-reader status/error announcements.
Deferred scope
Real Windows compilation/loading, signed packaging/installation and physical Word/media/multi-monitor/performance acceptance remain outstanding. No guessed scene navigation, forced unsaved acceptance, native synchronisation redesign or full integrated Context/Intent was added. Scene handoff is conditional on verified existing anchors.
Recommend Phase3C focus on deliberate review/return and revision handoff around accepted Reader evidence and existing author decisions, after the physical Phase3B gate and separately agreed scope. Phase3C and Phase4 have not begun automatically.
Windows 1.0.0.39 build and qualification
Windows merged shared report tip 81b57a5f1b6a10dd2d2522da4ab2ad6755ffa500 into local ribbon tip 7f21f2a27c36f82635ac31e1941a5f855c72cae4, producing package source 984aa508973955207752be536f984bba7c83041d. Both Audio Review ribbon commits and Phase 3B implementation 9969c9b are ancestors. The sole conflict was DeveloperVersion.props. Windows aligned it, Vsto/Properties/AssemblyInfo.cs and WindowsValidation/Setup/Release.json to 1.0.0.39 (MSI 1.0.39). The agent still imports the shared version property. The wire protocol version and upgrade family were kept.
Release solution and signed VSTO builds completed with zero warnings or errors. Native foundation reported 287 checks. Focused native chapter synchronisation passed 453 checks and the application chapter suite passed 71. The signed developer pipeline's HTTP/workflow gates and the Audio Review refresh regression passed. Source review confirmed the full-sized playback buttons and custom icon callbacks survived alongside the acknowledged navigation and exact-document checks. The Writer Word verified navigation and acknowledgement test also passed in the broader application harness. The full harness did not pass on Windows. It first stopped at an existing LF-only Core Import source assertion. A temporary normalization let the rerun reach 377 PASS lines before it stopped at another LF-only Story Intelligence source assertion. The temporary test adjustment was removed. These are build and automated results. No physical Word run was performed.
Package: Downloads/PlotDirectorCompanion-1.0.0.39-984aa508/PlotDirectorCompanionSetup.exe. Setup, add-in and agent report 1.0.0.39. The payload, MSI/CAB and upgrade gates passed 42, 103 and 34 assertions, and the MSI upgrade range includes 1.0.0.38. The original developer signer was retained. Windows Authenticode reports the existing untrusted-root chain status for the EXE and MSI; the signed VSTO package verification passed and no trust store was changed.
- Setup SHA-256
70C88BF9AE170F7FE071CE73C85C911F8F894C85B7CBE9ED6126C5C0965BCA02 - MSI SHA-256
94459EC1A90E166380C260C7813D8F4AFA3CE134EB920AB6EEAAE1C68DBD5036
The installed add-in and agent remain 1.0.0.38. Its installer remains at Downloads/PlotDirectorCompanion-1.0.0.38-7f21f2a2/PlotDirectorCompanionSetup.exe, SHA-256 607AAE0FD12540163E84504B1D9971B8C8C3DAF3E11B4D69EEFBD5685F33E983. No installation, Word closure, agent restart, configuration change, database change or deployment was performed. Interactive installation and physical acceptance require separate approval.
Windows Return to Writer and recording controls
The Windows tray button called TrayCoordinator.OpenPage with writer, producing a /Writer/Write path with the selected book, instance and document session. CloudGateway.OpenCompanionPage applied its /native-companion/ route guard and threw System.IO.InvalidDataException before URI construction or browser invocation. The call chain was CompanionWindow button → Safe → TrayCoordinator.OpenPage → CloudGateway.OpenCompanionPage. Safe did not catch InvalidDataException. No matching physical exception record was available in the local Application event log. The native fixture reproduced the exact route rejection and verifies the fixed handoff, same-origin launch, foreign-path rejection and refusal for a stale document.
The writer action now constructs a fixed route from typed IDs and uses the existing authenticated launcher and same-origin check. Invalid link data is surfaced as a controlled error. No tokens are added to browser URLs. A physical browser/PWA launch from the installed Companion remains to be verified after approval.
The unified focus selector previously included recording-only activities on the objective form. JavaScript disabled Save for those values, and the server already rejected an unsupported objective or mismatched chapter and scene. The reported warning was triggered by the Audio Review activity, independently of chapter/scene membership. The objective form now offers only objective activities. The Work sessions & Audio Review section exposes independent recording activity and chapter fields. Existing saved objectives, session targets and recording controls use their existing models and endpoints.
The Release and signed VSTO builds passed. The native foundation passed 291 checks, including four Return to Writer regressions. The Writer focus and navigation browser tests passed in browser and simulated PWA modes, and the Audio Review playback refresh test passed. Packaging passed 42 payload, 103 MSI/CAB and 34 upgrade checks. The signed 1.0.0.40 package was built from 73f66b2f76.
- Installer: Downloads/PlotDirectorCompanion-1.0.0.40-73f66b2f/PlotDirectorCompanionSetup.exe
- Setup SHA-256: D09B4679DBEC248290A0B127DE7DEF7674D6A163CF6587D6F81E9F0DA588B570
- MSI SHA-256: 6FB8D70F4F3B22B8DA9F4FD2CD5BE0C9D21D2AF603E84614295A748E09BBD931
Atlas can deploy the web presentation changes to Development from the shared branch. Windows did not perform a web deployment, install the package, or change configuration, schema or stored procedures.

