101 lines
15 KiB
Markdown
101 lines
15 KiB
Markdown
# Writer 3.0 Phase3C report
|
||
|
||
16 November 2026. Implemented on `codex/word-companion-native-phase1-20261104` and deployed to Development only. Main implementation `b4a1d44`; deployed application `78865cf9b61a0ecc984e86c2eaadb1a175048bee` includes a trailing-whitespace correction. Phase4 has not begun.
|
||
|
||
## Baseline and preservation
|
||
|
||
Fetched and fast-forwarded the shared branch from81b57a5 to55bdce3 before editing. This includes the Windows ribbon/playback icons, typed authenticated Return to Writer fix and independent recording controls. Native source/version remains **1.0.0.40**, with its Windows package qualification recorded from73f66b2. The user confirmed the restored integration; Atlas did not independently test physical Word. No native source, protocol, installer or Windows installation was changed in Phase3C. Existing Companion installations supporting acknowledged navigation use the same range-selection command; this phase requires no new native release.
|
||
|
||
## Integrated Reader and independent contexts
|
||
|
||
Review now embeds the existing canonical Manuscript Reader through shared `_Reader` and `_Paragraphs` partials. It keeps the same accepted-text service, chapter endpoints, selectable/escaped text, paragraph IDs, Previous/Next, Focused Reading, pause/refresh rules, selection deferral, paragraph-anchor scroll recovery and session toolbar. There is no second manuscript renderer, iframe, editor or audio player. Requests sent to the browser remain chapter-scoped.
|
||
|
||
Review URLs retain the selected chapter and Focused Reading mode. Companion interaction and observation saves do not replace the Reader or session DOM. Normal Review scrolls its main pane; Focused Reading retains the existing single reading scrollport. Metadata-only acceptance updates the Reader revision without replacing unchanged prose. Reader fingerprints include manuscript identity and accepted scene assignment, so replacement/remapping is not mistaken for unchanged context. Private manuscript responses retain no-store/noindex headers and read-only authorisation.
|
||
|
||
Working objective, actual session, Reader chapter/passage, verified Word position, pinned Context, standalone Intent and exploration remain separate. The Word widget uses an unpersisted review-target presentation model; it does not save an objective or offer adoption from Word. An acknowledged handoff leaves Review open for returning to the same reading position.
|
||
|
||
## Intentions, observations and persistence
|
||
|
||
The companion reuses Phase3A's pure `IWriterAuthoringService` to inspect chapter purpose/summary/goals, scene intention/outcome, outstanding notes/reminders and workflow. Scene context requires a current accepted paragraph assignment; mixed, missing, stale or unavailable mappings retain chapter context. Full intention editing opens the existing canonical chapter/scene editor separately rather than duplicating Write. Optional assessment tools remain distinct from author observations.
|
||
|
||
Storage audit found no suitable existing anchored author-review record. SceneNotes are scene-scoped without accepted-version/range identity; session return notes require a real session and have a different lifecycle; native/Story Intelligence findings carry machine provenance and approval semantics. Migration272 therefore adds an author-private `WriterReviewObservations` store and scoped Dapper/stored-procedure access.
|
||
|
||
| Persisted information | Contract |
|
||
|---|---|
|
||
| Book/chapter/author | Authorised book/chapter graph; observations visible/editable only to their author |
|
||
| Accepted reference | Original manuscript ID, chapter content fingerprint and snapshot revision; immutable after creation |
|
||
| Optional passage | Stable first/last paragraph IDs, UTF-16 selection offsets and paragraph-content hash; no automatically copied quote |
|
||
| Optional scene | Only an explicit accepted assignment common to the referenced passage; retained as historical context |
|
||
| Author text/decision | Independent observation and optional requested change, bounded to10,000 characters each |
|
||
| Lifecycle | Needs attention/Open, Working on it/Working, Resolved; explicit saves only, independent of canonical scene revision |
|
||
| Concurrency/time | Client-generated idempotency ID, optimistic integer version, original creation and modification timestamps |
|
||
|
||
Create validates the displayed fingerprint and exact range, then locks/rechecks the canonical revision in the save transaction. Update cannot replace the original references. Repeated requests cannot create another record under the same ID. Stale or unconfirmed saves retain text; controls prevent duplicate submission or edits being lost during an in-flight save. Cancel writes nothing. Unsaved navigation is guarded; Help remains usable. Dirty observation editing temporarily pauses accepted-content replacement and restores the previous pause preference on Save/Cancel.
|
||
|
||
Lists are paginated, and selection-context requests are coalesced/cancelled rather than adding a polling loop. Reads do not create goals, workflow, checklists or observations. Chapter/account cascades and the book foreign key support existing deletion paths. Private observations are not added to shared project JSON exports; database backups include the new table. No existing numbered migration was edited.
|
||
|
||
## Version changes and Word handoff
|
||
|
||
Observations keep their original version and paragraph IDs when accepted content changes. Changed or missing references are labelled; similar text elsewhere never becomes a replacement anchor. Revisiting can locate the same current paragraph identity or explain its absence. No accepted update, ended recording, checklist action or observation resolution changes another lifecycle automatically.
|
||
|
||
The existing Phase3B verified/acknowledged navigation service now also accepts an optional paragraph ID and expected accepted revision. A pure lookup reuses current manuscript/session/revision/checkpoint hash joins before the existing position recheck and exact-document expiring command. It navigates to the **paragraph start**, not an assumed character range. Unverified/missing references fail safely; the separate chapter action remains explicit. No forced save, import, document replacement, session start/end or objective change occurs. Queued is not completed; native acknowledgement remains required. No new Word markers or protocol fields were introduced.
|
||
|
||
## Audio Review and findings
|
||
|
||
The shared Reader's Reading & Audio Review disclosure uses existing session, playback/pause, native source binding, pause-on-edit and return-note controls. Observation saves leave that DOM, session ID/target, notes and playback state intact. Audio time is never treated as a paragraph anchor. Existing Intent evidence, standalone Context and book analysis/review tools remain optional separate routes; opening Review starts no AI request, analysis job or candidate generation. New observations are not mixed with automated findings or canonical intentions.
|
||
|
||
## Shared layout and bounded Explore correction
|
||
|
||
Before/after geometry covers Write, Explore, Plan, Review and Reflect at1440,1024 and390px. Ordinary baseline captures already filled the viewport to within9.6px, so a large empty-bottom defect was not claimed from those samples. The header nevertheless consumed substantial height. Shared compact header/cover/purpose and utility spacing reclaim work area, and height measurement now uses the rendered top rather than adding document scroll again. A controlled scrolled-shell regression verifies that coordinate correction across all five destinations. Long manuscript content retains necessary scrolling; short/scaled-window flow and companion resize/collapse/overlay remain.
|
||
|
||
At1440px, header height fell from92.53 to68.78px and workspace height increased from527.28 to580.64px (53.36px gained); remaining bottom space fell from9.59 to4.80px. All15 after-captures have zero document overflow; overflowing main content keeps its pane scroll. At1024px, workspace height rose from536.63 to580.64px; at390px, from427.63 to471.78px. Exact measurements are included in the geometry JSON artifacts.
|
||
|
||
Explore's public Solver questionnaire/browse links were corrected separately: Develop a chapter or scene opens scoped Write; Develop your plot and threads opens the authenticated plot workspace (or project chooser); story shape opens scoped Timeline. Labels describe actual tools. No public Solver redirect, iframe or premature Phase5 guided engine remains in these choices.
|
||
|
||
## Qualification
|
||
|
||
| Gate | Result |
|
||
|---|---|
|
||
| Build | `dotnet build PlotLine.slnx`, zero warnings/errors; fresh Release publish |
|
||
| Full application harness |600 PASS records, exit0; anchor/range validation, immutable reference, missing/changed/replaced manuscript, lifecycle separation, remapping fingerprint and paragraph navigation guards |
|
||
| Native preservation |292 foundation checks, exit0; native source unchanged from Windows baseline |
|
||
| SQL transactions | Idempotent creation, edit/resolve/reopen, immutable context, stale rollback, actor/book/chapter denial, current paragraph proof and stale checkpoint rejection; fixture changes rolled back |
|
||
| Integrated browser/simulated PWA | Canonical reading, accepted scene context, selection-only no writes, anchored CRUD/resolution, repeated submit, multi-window stale retention, navigation/network guards, paragraph versus explicit chapter handoff/ack, retained Audio Review DOM/target/note, focused Previous/Next, Help and narrow overlay |
|
||
| Reader preservation | Existing escaped text/privacy,3 widths×4 themes×browser/PWA and live accepted-update/selection/pause/listening/offline/hidden/anchor/stale-response suites |
|
||
| Writer preservation | Existing authoring and unified focus suites;200 rendered workspace cases;168 navigation cases; standalone Context/Intent/follow recovery |
|
||
| Layout/Explore | Five-destination available-height/scrolled-shell checks and three distinct scoped authenticated tool routes; no iframe |
|
||
| Authenticated Development | Passed against real authenticated Development: anchored create/edit/Working/Resolved/Open, real AudioReview ID/chapter/unsaved return-note and toolbar preservation, explicit End; concurrent-window and accepted-version conflicts retain drafts; paused replacement then Changed/Missing references after fixture-only accepted revisions2/3; scope404, CSRF400, unverified Word409; Help, focused Next/Previous, narrow editor and simulated PWA chapter observation without accepted prose. The private driver resumed after a selector ambiguity at the completed second source change; no accepted mutation was repeated. |
|
||
|
||
Physical Word, supported-player playback, installed PWA, assistive technology and multiple monitors were not tested on Atlas. Native/ack/media browser telemetry is explicitly simulated. Existing portable fixtures and browser timings do not establish Windows190,000–250,000-word responsiveness. No new routine COM work, document traversal or reconciliation engine was added.
|
||
|
||
## Development release and data preservation
|
||
|
||
Release `78865cf-20261116T230802Z`; archive `/srv/apps/plotdirector-dev/releases/78865cf-20261116T230802Z`; rollback `/srv/apps/plotdirector-dev/current-before-78865cf-20261116T230802Z`. Fresh publish preserved deployed configuration, keys, uploads and logs. Pre-stop checks found no queued/processing import, Story Intelligence, synthesis, pipeline or enrichment work. Service active; local GET200 and TLS-validated public GET200, rechecked after fixture cleanup. No warning/error journal entries since deployment. Informational version `1.0.0+78865cf9b61a0ecc984e86c2eaadb1a175048bee`; published/deployed DLL SHA256 both `015f44519d03758a554517259f93488f9986a40054572debc4ab545d5fb2e612`.
|
||
|
||
Verified copy-only checksum Development backup before migration/fixtures: `/var/opt/mssql/backup/writer3-phase3c-before-272-20261116.bak`. Migration272 is additive; application rollback preserves its records and does not reverse SQL. No Production actions or native installation occurred.
|
||
|
||
After explicit fixture writes,16 scoped data hashes matched before/after15 read-only destination/width visits, including canonical manuscript, chapter/scene/intention/workflow/checklist/notes, saved objective, sessions and observations. Accepted fixture revision3 retained all4 anchored observations at original revision1 with original paragraph ID and Open status; active fixture sessions0. The unsynchronised secondary book had0 snapshots and0 chapter goals. Guarded existing project/account deletion then returned RemainingSyntheticAccounts=0 and RemainingReviewObservations=0, validating cleanup cascades. Private fixture credentials were removed after cleanup. These checks demonstrate scoped read purity and fixture isolation; they are not a global before/after hash of all author records. Existing author manuscripts were never targets of fixture SQL or saves.
|
||
|
||
## Screenshots and evidence
|
||
|
||
Synthetic manuscripts/accounts only. The fixture image's native/media connection is simulated.
|
||
|
||

|
||
|
||

|
||
|
||
[Narrow observation editor](Evidence/Phase3C/Review-narrow-editor.png) · [Simulated native/audio review](Evidence/Phase3C/Review-fixture.png) · [Explore before](Evidence/Phase3C/Explore-before.png) / [after](Evidence/Phase3C/Explore-after.png) · [qualification artifacts](Evidence/Phase3C)
|
||
|
||
## Outstanding physical acceptance and Phase4 recommendation
|
||
|
||
Use a disposable/backed-up manuscript and the existing working Windows Companion; no new native installation is required by this web change.
|
||
|
||
1. Review a chapter different from Word, the saved working focus and an active recording. Select/copy text, inspect intentions and save observations; confirm all targets and notes remain independent.
|
||
2. Explicitly hand off a verified paragraph and chapter in the correct document, checking acknowledgement and foreground behaviour. Test unsaved Word edits, expired/unverified mappings, timeout, agent restart and multiple same-title documents. A failed paragraph request must not silently navigate elsewhere or save Word.
|
||
3. Edit/save in Word and return to the still-open Review window. Test selected text, dirty observations and paused updates. Apply accepted changes, then remove/change an anchored paragraph: original references and decisions must remain until explicitly edited/resolved.
|
||
4. Use real Audio Review playback while recording/editing an observation. Check source binding, timing, pause-on-edit, return notes and explicit End without unintended play/pause or retargeting.
|
||
5. Keep standalone Context pinned and Intent following on separate monitors while Reader/Word/focus differ. Verify named-window reuse, placement/permission fallback and reconnect.
|
||
6. Exercise installed PWA, back/forward/cached return, large chapters, high-DPI/zoom, short windows, keyboard focus/errors and screen-reader announcements. Confirm panes use available space and only genuinely overflowing content scrolls.
|
||
|
||
Recommend Phase4 compose integrated Context/Intent and display arrangements around these independent contexts, with physical multi-monitor/native acceptance and original provenance preserved. Full editorial guidance, a second manuscript renderer, revision automation and broader guided exploration remain outside this phase. Phase4 has not begun automatically.
|