16 KiB
Writer context matrix
Audit date: 16 November 2026. Source baseline: fad26c3. Development: https://dev.plotdirector.com/.
Evidence and limits
Browser verified means an observed Development result in this audit. Source verified means a traced implementation, not an executed action. Both verified means the particular behavior was observed and traced. Not verified means the stated condition or outcome was not exercised. Live database metadata is identified explicitly alongside source evidence; repository SQL is not assumed to be deployed.
This is an investigation, not a certification that every state works. Counts describe the documented scope, not all possible runtime instances. See coverage and gaps. No application code, schema, configuration or deployment was changed. Only a synthetic author’s disposable records were used for writes.
Source of truth
There is no single current-book/current-chapter/current-scene record that controls the whole experience.
ApplicationNavigation.BuildAsyncbuilds request-scoped shell context from the rendered model, selected plan, and query IDs, then reauthorises the project/book. It explicitly avoids remembered/unverified project context. The shell Book menu navigates to a new Writer Index request for Writer pages. It is not a universal mutation of every open window/session.WriterController.Indexresolves a supplied book to its project when project is absent. Without a project it selects the first accessible project; within a project and without a book it selects the first nonarchived book. An explicit unavailable/archived book returns NotFound. The selected book filters dashboard queues after project retrieval. No chapter/scene dashboard selection is inferred from the current Word cursor.WriterWorkingObjectivesis a saved(BookID,UserID)return target and Activity. Its chapter/scene may be null. SQL read suppresses a target whose chapter or scene is archived/unavailable. The UI then shows Start Here. It is not ChapterGoals or the active work session.WriterWorkSessionsbinds an explicitly started kind and optional chapter to a user/book. Audio Review requires a chapter. Start chooses an exact native lease only if unambiguous (one lease, or one active lease). That binding is fixed for the review; starting before a suitable native lease may require ending/restarting later. It does not follow arbitrary new Word context.- Word’s native document context is an instance/document-session/grant/manuscript/revision/cursor tuple.
WritingController.NativeTargetrequires a live Word-available, saved document, valid accepted paragraph/chapter revision and matching persisted chapter-position mapping. It checks the target again after display construction to avoid racing cursor changes. An incomplete instance/session pair is BadRequest; pending mapping becomes waiting/manual fallback, not guessed scene data. - Saved Context/Intent snapshots (
pinned=true) use saved entity IDs and manual browsing. Live views consume follow events within their allowed scope. Tab selection is browser-local; lazy component exploration and map viewports can be preserved independently. Plot/metric exploration is a separate cursor until an explicit Go to scene action. - Reader has a chapter in its own URL/rendered model and accepted text/version. Changing it does not rewrite the saved objective or retarget an existing book session.
Context matrix
“Book follows” below means the explicit request/selection controls that feature, not all windows. “Word follows” means the active native document can update that view through verified follow, not that all saved author state changes. All rows Source verified; observed exceptions are marked in the coverage register.
| Feature | Actual scope / selector | Book follows? | Chapter/scene and Word follows? | Saved / independent state | Visible context and change method | Propagation / unavailable behavior |
|---|---|---|---|---|---|---|
| Writer shell | Request project/book from model/query | Yes per navigation | No automatic Word chapter/scene | Request-scoped, not remembered global selection | Project/book application bar | Navigates Writer Index; open windows/session not uniformly retargeted |
| Overview/Workspaces | Controller-selected project/book | Yes | No native cursor targeting | Default first accessible project/book if omitted | Book title; workspace tab | Explicit invalid book404; no book Start Here |
| Four scene queues | Project query, then book filtering | Yes after query | Saved scene IDs in each row; no Word following | Queue parameter; upstream TOP40 | Counts/cards and queue links | D01 live query names incompatible; TOP40 before book filter can truncate a selected book's eligible scenes |
| Story Health reminders | WriterBook_Reminders(user,book) |
Yes | Chapter missing goal / scene note target | Canonical authored fields | Category/title and links | Missing records produce no reminder; absence not proof of good story |
| Working objective | User+book+optional chapter/scene | Yes, one objective/book | Manually saved; no Word following | SQL persisted independently | Activity and target card; Change objective | Used by focus suggestion, toolbar defaults and scheduling default; invalid target omitted |
| Help Me | Rendered dashboard model | Yes inherited | Target choices from objective/first rows | No dismissal history | Observation text and action label | Recomputed GET; same suggestions after dismissal; no ongoing learning |
| Next Planned Session | First reviewed allocation, else today/future legacy task | Book filtered | Target is allocation/task, not objective | Independent plan IDs and dates | Date, work kind/title | May be overdue reviewed allocation; opening does not start work |
| Manuscript word/progress card | Book accepted event or catalogue count | Yes | Whole-book evidence, not selected chapter | Retained accepted observations | Source-labelled words and 30-day changes | No reconstruction of earlier writing; hidden for private evidence |
| Recent Activity | Book+last28 receipt dates UTC | Yes | Not current Word scene | Retained calendar/activity | Date cells/aria descriptions | Navigation to day does not select manuscript scene |
| Journey month/year | Book+requested year/month | Yes | No Word following | URL calendar state | Month/year title; previous/next/year cells | Selected year limited; no evidence neutral; not “no work” |
| Journey day/history/export | User/book+optional UTC day | Yes | Each session keeps its chapter; interval edits can be whole-book | Retention-limited history/notes | Explicit day and chapter labels | Deleted chapter labelled unavailable; display20/export50; no session-caused-edit assertion |
| Explicit work session | User/book/kind/optional chapter | Book captured at start | Dropdown independently seeded from objective | Current session per book, not dashboard form state | Activity/chapter form, session label; active nonaudio label does not prominently show chapter | Start/end heartbeat persist; older than12h suppressed by State; browsing away does not end |
| Audio Review | Session+chapter+exact native lease/media key | Start-bound book | Does not follow arbitrary new Word chapter/source | Fixed native instance/document/grant; source change rejected | Audio chapter/status/capability controls | Stale telemetry>45s disables; new lease may need restart; expiry10s command |
| Today's planned tasks | Personal active legacy plans, filtered selected book | Yes tasks | Individual scene | WritingScheduleItems status | Date/title/estimated minutes | Completion/skip updates task, not session or scene revision |
| Writing Plans list | User with optional project/book filter | Supplied filter only | No Word following | All Books plans intentionally included | Project/book columns; all-projects link | Activation/deletion redirects unfiltered, losing list scope |
| Schedule Setup | Independently chosen project and optional book | Initially seeded, user can change | No Word following | New plan persists on Review activities | Explicit Project, Book/All Books, dates | Plan scope validated on POST; changing shell alone is not a saved plan edit |
| Reviewed candidate allocation | Explicit personal writingPlanId | Uses plan scope | Candidate chapter/scene; no Word following | Minutes/kind and dates on saved allocations | Scope heading, candidate titles, confirmation | Blocked/manual-task exclusions; completed allocation requires new plan |
| Schedule Preview | Any user's selected plan ID; default first personal plan | Does not inherently follow shell book | No Word following | URL selectedPlan independent | Full plan dropdown/project/book | Scope-free preview links may open another book/project's plan |
| Edit Plan | Explicit personal plan ID | Fixed original book or All Books | No Word following | Scope/goal/start immutable in view | Read-only Project/Book/Goal/Start | Availability edit does not move reviewed allocations; separate review required |
| Chapter workflow/goals | ChapterID → owning book/project | Entity-derived | Explicit chapter; not Word cursor | ChapterGoals saved author plan | Chapter number/title and breadcrumb | Used by Intent/assessment/reminders/briefs, not automatic prose edit |
| Scene Writer drawers | Explicit SceneID → chapter/book/project | Entity-derived | Manual editor target | Notes/checklist/workflow/attachments | Scene title/drawer; edit inputs | Refresh summaries; no automatic session/context movement |
| Scene Revision Status | Canonical scene RevisionStatusID | Entity-derived | Manual main scene metadata | Queue membership source | Status label/main scene editor | Separate legacy Workflow.DraftStatus can disagree in Intent Checklist |
| Context scene | IDs or verified native follow | Scoped book | Verified Word follows in live mode; saved first-scene fallback outside native launch | Manual navigation / pinned snapshot independent | Project/book/chapter/scene header and follow status | No scene empty shell; stale native target conflict/waiting; explicit navigation may fail while saved scene remains |
| Context People/relationships/Story | Current saved scene + canonical at-point references | Current view scope | Follows loaded scene, not raw manuscript inference | Canonical accepted records | Scene header, source links, author-reference qualifiers | Unmaterialised review candidates absent; no data explanatory empty states |
| Context Maps | Project maps + book/scene projection | Scoped book story projection | Scene marker follows; user map/lens/viewport separate | Browser component state | Map/lens, saved-location text | No map/no reliable placement; pan/zoom does not select scene |
| Context Floor Plans | Scene's linked floorplan/floor | Scene-derived | Follows saved scene associations | Browser zoom/pan | Location/floor labels | No link/floor/occupancy messages; no automatic inference from prose |
| Context Plot Lines | Book sequence + author plot overview | Yes view scope | Explored scene separate from current; explicit Word jump | Category filters, scrubber and explored position | Current/explored marker; author-not-POV qualifier | Includes future planned developments; not viewpoint knowledge |
| Context Metrics | Book scene sequence and saved metric values | Yes view scope | Current marker versus explored scene | Selected metric/scroll/scrubber | Metric scale/current marker/not-recorded gaps | Missing values not0; refresh reads storage without analysis |
| Intent Plan/Must Include/Notes/Threads/Checklist | Scene and/or chapter saved data | Scoped | Follows current Intent fragment; manual/snapshot independent | Saved author decisions separate from evidence | Chapter/scene title; per-card empty messages | Chapter fallback when scene lacks plan; no propagation to working objective |
| Intent Evidence | Actor+SceneID+prose/objectives fingerprint | Scene-derived | Saved prose, not unsaved active Word text | Result/decisions per input hash | Objective text, quote/status/model/date/stale indication | Changed inputs stale; decisions reject409; no automatic checklist completion |
| Reader | URL book/chapter + accepted content version | Explicit URL | User navigates chapters; not current Word cursor | Focus/refresh pause presentation state | Book/chapter, sync/snapshot times, Read only | No accepted text instructs sync; does not read local unsynchronised Word |
| Display Setup | Launcher book/project+window/native presence | Bound fallback book; cross-book presence guarded | Does not select saved objective | Browser screen placement/local preferences and named windows | Runtime book/status/layout | Permission/popup failure gives fallback; Word window movement owned by Windows |
| Reports privacy/evidence | Book owner | Explicit book | Whole book / record chapter provenance | SQL capture enabled/retention | Book title and settings | Nonowner404; erase also removes session notes; sync remains separate |
| Native Word ribbon | Active Word instance/document session | Linked active Word book | Verified current chapter/scene | Native document/grant/revision mapping | Read-only Book/Chapter/Scene editBoxes | Typing restored; unverified chapter/scene labels; book gating |
| Office.js Companion | Office document plus authenticated hosted taskpane | Linked/import-selected book | Anchor/document mapping | Separate legacy/add-in surface | Taskpane connection/import state | Not tested in Office host here; cannot assume identical native behavior |
| Problem Solver | Protected questionnaire answers | No manuscript book input in journey | No chapter/scene/Word following | Protected versioned history2h | Questions/results and workspace chooser | Expired graph/state restarts; guidance not current-book analysis |
| Solver workspace destination | Chosen project and sometimes character | No universal book carry | Character selector only for configured routes | Independent chooser | Explicit choice | Invalid entity404; tool route determines downstream scope |
Specific inconsistencies and consequences
- C01 — queue limit before scope filter:
WriterDashboard_Scenesreturns TOP40 per project/queue beforeWriterControllerfilters selected book. Even with D01 repaired, a book can show an incomplete/empty queue when other books occupy the cap. This is source verified, not load-tested with >40 fixtures. - C02 — independent plan selector: WritingPlans and ScheduleSetup expose scope-free Schedule Preview links. Preview selects from all personal plans and defaults to the first. Activation/deletion also discard prior list filters.
- C03 — independent objective/session/native chapter: a saved revision objective for chapter A can coexist with a manually started session for chapter B and a Word-following Context window on C. The toolbar defaults help, but do not establish propagation.
- C04 — two status sources: repository RevisionStatuses controls queues; Intent Checklist renders Workflow.DraftStatus. Browser fixture: scene header Outlined, Intent Workflow Status Planned.
- C05 — two time bases: calendar/activity uses UTC receipt dates; scheduling uses DateTime.Today; elapsed time, engaged seconds, playback seconds, unique coverage, planned minutes and accepted changes are different quantities.
- C06 — projected versus verified context: author plot overview may include future developments, while POV knowledge is bounded through the scene; the UI does include qualifiers. Treat them as distinct scopes, not interchangeable truth.
- C07 — waiting copy: Context opened with a valid book but no scenes reported that it did not receive project/book from Word Companion. The route did have bookId. Empty navigation offers no loaded scene selector in that state. Both verified on the synthetic empty book.
Implementation references: ApplicationNavigation, WriterController, WriterObjective SQL, WritingController, follow state, launcher, WriterWorkController.