94 lines
14 KiB
Markdown
94 lines
14 KiB
Markdown
# Writer 3.0 Phase 2C completion report
|
||
|
||
16 November 2026. Implemented, pushed and Development-qualified. Deployed to **Development only**. Phase3 has not begun.
|
||
|
||
Application commit: `e9402d0c1673d3dc8afcca26bb344b82fa11caf0` on `codex/word-companion-native-phase1-20261104`. Baseline source01c1197 / Phase2B application10bf9db. A subsequent documentation/test-only commit records screenshots, final qualification and stronger test readiness; it does not change the deployed application binary.
|
||
|
||
## Inspection and bounded corrections
|
||
|
||
Before modifying the layout, authenticated Development captures covered Home and all five destinations at1440×900,1024×900 and390×844, plus collapsed Write/Explore and narrow companion overlays. All18 baseline normal-state captures had zero horizontal overflow. The five destinations and desktop Home fit vertically; narrow Home intentionally stacks the three cards and scrolls336px, unchanged before/after. Existing mockup direction was retained: clear task hierarchy, compact panels, existing PlotDirector chrome/themes and restrained accents. [Issue register](Phase2C-Issues.md).
|
||
|
||
| Observed issue | Correction / evidence |
|
||
|---|---|
|
||
| Explore01 wraps onto two lines at1024px | Fixed-width non-shrinking two-character marker; neighbouring prose still wraps. [Before](Evidence/Phase2C/before/Explore-1024.png) / [after](Evidence/Phase2C/after/Explore-1024.png) |
|
||
| Collapsed Write session explanations/rules span an excessive reading width | Cap main content width at80ch while retaining full workspace width and independent scrolling. [Before](Evidence/Phase2C/before/Write-1440-collapsed.png) / [after](Evidence/Phase2C/after/Write-1440-collapsed.png) |
|
||
| Anonymous destination and layout question marks compete beside the title | Keep destination Help at heading; move existing layout tooltip/popup beside labelled layout controls. Existing full drawer remains. [Before](Evidence/Phase2C/before/Write-1440.png) / [after](Evidence/Phase2C/after/Write-1440.png) |
|
||
| Session controls lack a clear group; objective and session selectors duplicate activity/chapter in edit state | Label existing active controls and implement the user's additional single-focus workflow below. [Unified editor](Evidence/Phase2C/after/Write-unified-editor.png) |
|
||
| Divider consumes Alt+Left and other modified arrows | Preserve Ctrl/Alt/Meta shortcuts; reserve ordinary/Shift resize keys. Baseline diagnostic recorded browserHistoryShortcutPrevented=true; targeted browser check now verifies false |
|
||
| Regrouped Help tooltip could intercept an adjacent layout button | Scope non-interactive styling to that existing tooltip; popup/article links remain interactive |
|
||
| Unified Save inherits white-on-gold text | Scoped existing theme tokens give readable Save text; four-theme contrast≥4.5 assertion added |
|
||
|
||
Home was already balanced and aligned, with three dominant choices and no desktop overflow; no speculative redesign or extra panels were added. Plan, Review and Reflect retain their own content and primary actions, receiving the shared utility/readability corrections. No ribbon controls/routes were retired or duplicated. Existing selected destination, icons/groups, project/book scope, reload/deep links/history and browser/PWA behavior remain covered by the navigation matrix.
|
||
|
||
## Additional authorised Current Work unification
|
||
|
||
The user’s amendment was incorporated into the same Phase2C implementation before deployment, on the same shared branch. This bounded workflow correction does not begin full Phase3 integration.
|
||
|
||
One editor chooses **What am I doing?**, **Which chapter?**, and **Which scene?**. Chapter changes clear incompatible scenes; scene options are restricted to that chapter. Three separate actions reuse that selection:
|
||
|
||
- **Save working focus:** existing antiforgery-protected SaveObjective POST; does not record a session. Repeat submission is guarded and canonical SQL still performs a scoped upsert.
|
||
- **Record this session:** explicit existing WriterWork Start through its established client, busy guard and retry UUID; does not save an objective. Recording remains optional and independent.
|
||
- **Plan writing time:** optional GET to existing book-scoped ScheduleSetup, with a validated selected activity-derived draft/revision goal category; does not save or record. Existing planner chooses chapter/scene allocations later. No scene scheduling engine or new planning store is implied.
|
||
|
||
A saved objective returns as prominent read-only current work, including chapter identity where applicable, with Change working focus and genuine resume links. The lower toolbar has no second visible activity/chapter selector or redundant Start form. Existing active timing, notes, end, Audio Review and native-bound playback controls remain in the same client-owned DOM, with actual recording activity/chapter. An explicit message identifies a session that differs from the saved focus; editing/saving focus never silently retargets it. [Active recording](Evidence/Phase2C/after/Write-active-session.png) / [different focus/session targets](Evidence/Phase2C/after/Write-different-session-target.png).
|
||
|
||
Inspected authoritative types:
|
||
|
||
| Objective activity | Recording behavior |
|
||
|---|---|
|
||
| Drafting | Existing Writing session type |
|
||
| Revising / Editing | Existing Editing type |
|
||
| Researching | Existing Planning type |
|
||
| Proofreading | No guessed mapping; explicitly choose Editing or Reading review |
|
||
| Planning / Reading / AudioReview | Recording-only choices; cannot be saved as objective activities; AudioReview requires a chapter |
|
||
|
||
`WriterFocusActivities` supplies mapping metadata to the Razor controls. `writer-focus.js` coordinates presentation with the existing session client through scoped events. `_WriterFocusForm` is used only by the new Write destination; original `_ObjectiveForm`, legacy desk and independent Reader/session entry points remain. The shared `WriterWorkToolbar` adds an opt-in Unified parameter; other callers retain their existing behavior. ScheduleSetup accepts only known objective activity hints. No database consolidation, migration, new story authority or native protocol change.
|
||
|
||
## Help and accessibility
|
||
|
||
Existing Markdown Help/tag-helper infrastructure is retained. `writer3.write` now explains the single selector set, separate save/record/plan actions, actual activity mappings, explicit proofreading choice, session-only activities and active-target separation. Layout Help explains modified browser keys, new Help placement and PWA Page Help when the ribbon is collapsed. All five destination articles and [Help coverage](Help-Coverage.md) are updated. Tooltip, quick popup, full drawer/article remain usable; no second Help implementation.
|
||
|
||
Keyboard divider semantics/focus/limits, overlay Escape and Tab exit, per-destination preferences and reduced-motion context remain qualified. Targeted tests scroll active audio controls inside the main panel while document scroll stays zero, retaining unsaved notes and the same session DOM. Home/action contrast coverage is retained and the new Save action is explicitly checked in four themes.
|
||
|
||
## Qualification results
|
||
|
||
| Gate | Result |
|
||
|---|---|
|
||
| `dotnet build PlotLine.slnx` | Passed; zero warnings/errors |
|
||
| `dotnet run --project PlotLine.Tests/PlotLine.Tests.csproj` | Passed;587 PASS records, exit0; build/harness serial |
|
||
| Existing navigation matrix | Passed168 destination/theme/width/browser/simulated-PWA cases |
|
||
| Existing isolated workspace matrix | Passed200 cases, five destinations/four themes/five viewport sizes/browser/simulated PWA, plus pointer/touch/keyboard limits, cancellation, independent preferences, invalid/stale/blocked storage, narrow overlays, ribbon, headless fullscreen and200% text scale |
|
||
| Targeted refinement browser test | Passed Help placement/popup, marker wrapping, reading width, modified shortcuts, reduced-motion context, overlay Tab exit and retained active AudioReview DOM/notes/media controls/independent scrolling |
|
||
| Unified work browser/PWA test | Passed save-only, repeat Save/Record guards, explicit recording, actual mappings, active/mismatched targets, proofreading choice, AudioReview chapter rule, dependent scenes, optional planning and book switch clearing |
|
||
| Preservation suites | Passed standalone launch/reuse/pinning/display-permission fallback, native-follow race/recovery simulations, Reader at three widths/four themes/browser/PWA, Intent assessment/cancel/scope, periodic audio refresh/commands/seeks/stale recovery, intelligent desk and48-case legacy Overview |
|
||
| Real authenticated Development workflow | Passed actual objective save/change, explicit Writing start, active ID/chapter isolation while changing objective, note/end, invalid scene pairing and unsupported objective rejection, antiforgery400, scoped revision planning; browser/simulated PWA |
|
||
| Authenticated refinement/navigation | Passed populated and empty books, all destinations/Home actions, scope/history/reload/deep links, legacy routes,404 and Help; rendered refinement checks passed |
|
||
| Authenticated workspace matrix | Passed all200 rendered cases and interaction checks after explicit font/shell readiness |
|
||
| Author-data invariant / cleanup | Both read-only before/after comparisons matched all ten fields; dedicated projects/account removed, RemainingSyntheticAccounts=0; private identity removed |
|
||
|
||
The real workflow test intentionally changes only disposable fixture objective/session records. It restores the fixture's saved focus and ends recordings; these explicit writes are separate from read-only qualification. Initial inspection hashes matched before/after predeployment navigation. A fresh ten-field baseline after explicit workflow tests is compared with all final opening/resizing/navigation operations. Fields cover Books, Chapters, Scenes, Goals, Workflow, checklist, notes, objectives, plans and sessions. Login/presence and explicit appearance settings are operational data outside that comparison.
|
||
|
||
A live matrix iteration encountered an unavailable theme function and another captured a transient pre-settled narrow geometry; the precise transient cause was not independently proven. Test diagnostics now assert HTTP200 and application-shell presence, wait for the theme function, fonts and layout-observer frames before measuring. Direct narrow Reflect diagnostics showed stable viewport fit in both modes; no application code was changed during the release. The final full200-case rerun passed. Logs and snapshots are retained in [Evidence/Phase2C](Evidence/Phase2C).
|
||
|
||
## Development deployment
|
||
|
||
Release `e9402d0-20261116T171812Z`. Archive `/srv/apps/plotdirector-dev/releases/e9402d0-20261116T171812Z`; rollback `/srv/apps/plotdirector-dev/current-before-e9402d0-20261116T171812Z`.
|
||
|
||
Fresh Release publish installed with deployed configuration, data protection, uploads and logs preserved. Pre-stop check found no queued/processing import, Story Intelligence, synthesis, pipeline or enrichment work. Service active; local GET and TLS-validated public GET200. DLL informational version contains `1.0.0+e9402d0c1673d3dc8afcca26bb344b82fa11caf0`; published/deployed SHA256 both `052cc7b2d77a836b4336d7eb68e9dbd1ccd944235f43c97c370661ee7133f594`. No Production deployment or SQL migration. Warning/error journal is checked from the actual deployment timestamp through final acceptance.
|
||
|
||
Verified copy-only checksum backup before fixture creation: `/var/opt/mssql/backup/writer3-phase2c-before-fixtures-20261116.bak`. Fixture setup and guarded cleanup use existing stored procedures. No real author data, production configuration or unrelated investigation work was changed.
|
||
|
||
## Phase 2 completion and remaining acceptance
|
||
|
||
The Phase2 software foundation now provides Home, five destinations, contextual existing ribbon, viewport panels, reliable resize/collapse/restore, per-author/destination device preferences and real existing tool entry points. No new companion tabs exist, so selected-section persistence is not applicable; local DOM values remain during collapse. Preferences are device-local. Very short/heavily scaled windows intentionally use document flow. Current companions contain honest links/summaries; full integrated Context/Intent, guided exploration, new planning and process insights remain future phases. Planner setup is book/goal scoped; selecting chapter/scene allocations remains its existing later step.
|
||
|
||
Physical Windows, actual installed PWA, browser-chrome zoom/high-DPI, assistive-technology announcements, Word/media playback and multiple-monitor placement are not proven by headless Chromium or simulated PWA/native telemetry. Specific manual checks:
|
||
|
||
1. In Windows browser and installed Development PWA, exercise Home/all destinations, ribbon expanded/collapsed, DPI/zoom/text scaling/fullscreen, keyboard resize and narrow overlay Escape/Tab/focus.
|
||
2. Create/change focus, Save without recording, explicitly Record from that selection, choose Proofreading’s recording type, and use optional planning. During a real active session save a different focus; verify actual ID/chapter/timing/note remain and the difference is clear.
|
||
3. With supported Windows media and Companion, check active AudioReview pause/seek/note/end and preserved binding while resizing/collapsing. Starting a record does not start external playback automatically.
|
||
4. Launch/reuse standalone Context and Intent on available monitors. Check display placement/permission denial, pinned/manual exploration and verified Word following. Layout/focus edits must not navigate Word or change Reader/reference selection.
|
||
5. Check owner/collaborator privacy and permission differences with real accounts and Help tooltip/popup/PWA drawer/full article; test storage blocked and device preferences on another browser.
|
||
|
||
Recommended first Phase3 batch: bounded inline chapter-goal and scene-purpose editing for the authorised saved working focus, reusing existing canonical services/forms, validations and round-trip tests. Preserve the new single selection, active-session isolation and separate Reader/native/pinned authorities. Begin with one proven authoring round trip before adding notes/checklists/attachments or integrated reference editing. **Do not begin Phase3 without explicit authorisation.**
|