PlotDirector/Docs/Investigations/Writer2Audit/02-Requirements-Traceability.md

18 KiB
Raw Blame History

Requirements Traceability Matrix

Baseline: Writer2_Spec.md. IDs below are audit IDs, grouped by specification section; they do not change requirements. R = reuse, M = modify/extend, N = new capability, U = unverified acceptance/design input. Evidence aliases refer to exact repository paths/classes in inventory: W WriterController/WriterWorkspaceService/views; P WritingScheduleService/repository/SQL 056 and 088; S ApplicationNavigation/ApplicationRibbon/shared shell/themes/PWA; D WritingController/writing-workspace.js/presence; C native capture, paragraph and chapter services/protocol/SQL; H ProjectActivity/captures/recovery; A access/collaboration/subscription; V Reader/Analytics/Timeline. Each row identifies the dependency or principal risk and proposed approach. Phases G1–G6 refer to implementation plan.

Product, navigation and dashboard (§1–3)

ID / requirement Existing and disposition Gap, dependency/risk and approach
1.1 Writing first; show achievement and next work; no duplicate records R W queues, P tasks M Overview should project current work + opportunities + evidence. G1 coverage before activity indicators.
1.2 No chatty AI, artificial praise or guilt; UK English R non-chat Writer; M copy Remove “control room”/setup-heavy emphasis; factual labels, no streak penalties. No external AI dependency. G2.
1.3 Drafting, deletion, revision, research, editorial and publication all count R scene states/notes; N event categories Distinguish observed edits from declared non-document work; never translate research minutes into invented words. G1/G4/G5.
1.4 Author schedule control, accessible theme/ribbon R S; M P All proposals preview/approve/dismiss; accessible controls and non-colour meaning. G2/G3.
2.1 Full-width Writer with contextual ribbon R S; M W/ApplicationRibbon Add Overview/Journey/Plan/Focus Sessions/Workspaces/Reports destinations; preserve shell/maximise. G2.
2.2 Remove duplicate Write/Writer destinations; preserve deep links/redirects R direct Writer nav; M route review No separate WriteController was found in the audited path. Inventory legacy URLs before redirecting; Context/Intent remain independent desks. Preserve query scope. G2.
2.3 Five workspace tabs R four W queues + reminders; M Map to Write Next/In Progress/Revision/Final Pass/Story Health; keep status semantics and completed work reachable. G2.
2.4 Chapter/scene/issues navigate; common shell book/project selection R V scene links/S selection; M W Current dashboard ignores bookId and shows local project selector. Add authorised book scope; link issue targets explicitly. G2.
2.5 Companion/Display Setup contextual actions R D discovery/status; M Compact menu; hide irrelevant document actions when no linked document. Installation state requires evidence, not heartbeat absence. G2.
3.1 First viewport: selected book/current work/next opportunity/compact state/indicators R W/P/D; M Remove permanent workstation panel and long tables from first viewport; small data-backed cards. G2.
3.2 Activity days relative to chosen opportunities R planned dates P; N observed projection Need G1 capture and local-day/coverage semantics; unscheduled days neutral, flexible mode has no invented missed days. G2/G3.
3.3 Gross added/deleted/net manuscript change R C current text/counts; N versioned differencing/history Counts between accepted states only; moves/format-only changes separated. No summing current word counts as output. G1/G2.
3.4 Pass/milestone progress; optional compact journey R P Done and W revision status; N parallel passes/milestones Author declarations labelled; edits never imply complete. G4; placeholder withheld before data.
3.5 Progressive disclosure; charts/cards drillable R V chart links/raw fallback; M W Bounded aggregates → dates/events/scene/reader destinations. Keyboard/table equivalents. G2/G4.
3.6 Green observed/amber risk/red blocker/grey unscheduled; provenance labels R S tokens; M visual semantics Labels/icons/patterns accompany colour. Risk is a forecast, pass completion may be declared, not green observed output by implication. G2.

Rhythm wizard and focus (§4–5)

ID / requirement Existing and disposition Gap, dependency/risk and approach
4.1 Visual conversational/skippable/resumable setup; four lifestyle choices R onboarding patterns; N Writer setup state No chatbot persona or full-/part-time identities. Save optional wizard draft without forcing a plan. G3.
4.2 Paint weekly time slots/protected time/session types/rough milestones R P day capacity; N intervals/exceptions Add timezone-aware intervals + protected/excluded periods; touch/keyboard alternative to painting. G3.
4.3 Write whenever possible; no fixed weekdays or mandatory daily targets R nullable target words P; M validation/model Current controller/service require a day. Separate flexible availability from zero opportunity; no fabricated daily obligations. G3.
4.4 Detect manuscript/progress and reliably prefill R C accepted state/W revision states Use coverage-labelled current baseline and declared state; never infer historic effort or phase completion. G1/G3.
4.5 Proposed plan preview before saving R P rebalance preview; M create flow Existing setup saves then generates. Introduce side-effect-free proposal before durable plan activation; revision token on approval. G3.
4.6 Changes/holidays/exceptions, suggestions approved/ignored/dismissed R P preview/apply; N exceptions/dismissals Preserve past plan versions, no silent auto-rebalance; handle DST/travel. G3.
5.1 Start sessions from dashboard/timeline/Word/future Editor R D/C channels; N session contract/entry points Shared session ID with source-neutral events, capability-gated native commands. G4.
5.2 20/30/45/60/custom durations; six objective types R P estimated minutes only; N session settings Do not reuse planned schedule item as actual timer. Draft/revise/plan/editorial/publication/promotion selectable. G4.
5.3 Optional five-minute recharge/reflection and next note R W note conventions; N session breaks/note Private-by-default note; break duration separate; no mandatory interruption. G4.
5.4 Focus mode with discreet timer/pause/extend/finish; no mid-sentence modal R PWA maximise patterns; N lifecycle UI Monotonic duration accounting, browser sleep/reload recovery, non-modal expiry. G4.
5.5 Focus/open linked Word and navigate chapter when permitted R C validated navigate; N opening/OS focus contract Current range selection is not a general safe open/focus/placement API. Author intent, identity and capability checks; Windows acceptance. G4.
5.6 Notifications respect browser/OS/consent N permission-aware delivery Progressive enhancement; silent timer remains usable if denied/unsupported. G4.
5.7 Planned/elapsed/observed activity/interruptions recorded separately; no attention claim R ephemeral presence; N durable session transitions Manual interruptions vs inferred inactivity distinct. Timer running ≠ continuous concentration. G1/G4.

Journey and manuscript integration (§6–7)

ID / requirement Existing and disposition Gap, dependency/risk and approach
6.1 Full-width zoomable history-left/Today/future-right, day/week/month/book R V interaction patterns; N real-time calendar Narrative Timeline data is unsuitable as author time. Bounded date-range projections and accessible list view. G4.
6.2 Interactive days/milestones/chapter/scene drill-down R V routes; N activity/milestone aggregation Drill to coverage-qualified events and accepted manuscript version where retained; no unsupported past Reader reconstruction. G4.
6.3 Editable future targets/dependency preview/optional reforecast R P preview/apply; N dependency planning Preview changes against plan version; approval before application. G3/G4.
6.4 Parallel tracks: draft/structural/line/proof/editorial/publish/marketing/custom R single revision status; N independent ManuscriptPass Multiple passes can touch same chapter; statuses explicit and separate from scene workflow. G4.
6.5 Chapter-pass matrix four states with provenance; iterative and sequential authors N pass state/history model No inference of reviewed/complete from edits; maintain declaration actor/time/source. G4.
7.1 One ingestion contract for Companion and future Editor R C stable IDs/reconciliation; N ledger adapter Server appends accepted transitions; future Editor calls same acceptance boundary. Preserve existing wire contracts. G1.
7.2 Audit GUIDs/Reader/checkpoints/reconciliation before alteration R completed in this audit Maintain canonical source and conservative structural review. No replacement import or second manuscript store. G0/G1.
7.3 Idempotent events with session/document/chapter/scene/actor/source/times/counts/snapshot refs R C request/revision/session IDs; N durable event receipts Latest request check is not permanent idempotency. Unique scoped event key + payload hash, transactional acceptance; server stamps actor/receipt. G1.
7.4 Offline queue/retries/clock skew/repeated sync R C retry guards; queue class unused; N production outbox Persist protected bounded observations before send; exact retries; preserve capture time uncertainty and interval gaps. G1.
7.5 Switching/renames/moves/conflicts R C manuscript/session IDs/native hints/move detection M immutable old/new associations; don't attribute a moved paragraph as new writing; copied IDs/multiple devices must conflict safely. G1.
7.6 Immediate baseline, no fabricated history; preserve native compatibility R C current accepted source; M baseline onboarding Snapshot present-day state; historic imports separate evidence class. Server-only acceptance capture can benefit legacy clients first. G1.
7.7 Compact seven states and relevant actions R S/D presence/details; M state reducer Not installed / disconnected / connected-unlinked / syncing / ready / stale / error, with explicit capability/installation uncertainty. G2.

Displays, insights and collaboration (§8–10)

ID / requirement Existing and disposition Gap, dependency/risk and approach
8.1 Prominent permission-aware Detect Displays R D getScreenLayout; M placement Promote to Display Setup; user gesture requests permission; no automatic prompt on page open. G2.
8.2 Visual geometry and Word/PlotDirector/reference/spare roles; 1–4+ R screen enumeration and bounds; M chooseLayout Replace >=3 “three-screen” policy with arbitrary role mapping; geometry display and manual editor. G2.
8.3 Saved laptop/docked profiles/topology changes/manual fallback R one local preference object; N profiles/lifecycle Device-local profile keys, match/check topology, repair vanished targets; do not assume screen index stable. G2.
8.4 Explain permissions/window restrictions; no irrelevant actions without document R browser fallback/error handling; M UI Never claim browser positions Word; separate browser window placement from native capabilities. G2/G4.
9.1 Conventional statistics; independent schedule/session/workflow/mix/time dimensions R current statistics; N historical projections Availability vs preference distinct; explicit objective vs inferred edit pattern distinct. No AI narration. G5.
9.2 Enough-quality data, sample size/uncertainty/factual wording N qualification rules Versioned eligibility, gaps, minimum sample window; suppress unsupported averages. G1/G5.
9.3 Optional descriptors, no diagnoses/identities N profile controls Author can disable; no fixed labels based on availability. G5.
9.4 Infrequent explainable/dismissible suggestions; no automatic schedule change R P preview; N insight state/dismissal Persist dismissal/cooldown and data basis; no unrequested plan mutation. G5.
10.1 Author-owned contributor assignments, overlapping phases/status/milestones R A invitations; N scoped assignments Chapter/book/pass grants and external-contact records; do not grant project-wide collaborator as shortcut. G5.
10.2 Manual reports distinct from captured edits R P Done declarations; N actor/provenance model Attribute imports/system/author/collaborator separately; an authenticated account does not prove who typed in Word. G1/G5.
10.3 External milestones/feedback import first; integrated edit attribution later R attachments/notes; N editorial import workflow Preview/import with source, effective/receipt dates and idempotency; no collaborator adoption requirement. G5.
10.4 No unrelated books/private notes/research access R A project isolation; N granular authorisation Endpoint/procedure/SignalR/export tests for chapter/book restrictions; default deny. G5.

Reporting, architecture and acceptance (§11–16)

ID / requirement Existing and disposition Gap, dependency/risk and approach
11.1 Date/chapter/pass/contributor report filters R export infrastructure; N activity reporting Same authorised bounded projections as dashboard; link reproducible query/version basis. G5.
11.2 Days/qualified durations/gross/net/version growth/chapter/milestone/editorial/coverage R current state and sparse H; N historical report Separate planned/observed/inferred/declared/imported sections and incomparable scopes. G1/G5.
11.3 Concise overview/detailed evidence report R export patterns; N report composition Redactable preview, explicit exclusions, evidence references and coverage warnings. G5.
11.4 Future sealed PDF: ID/time/scope/quality/cryptographic signature/optional QR N report registry/signing/verification Separate security review, key custody/rotation/revocation and privacy-preserving verification. Not a logo/hash-only substitute. G6.
11.5 Integrity ≠ human-only authorship; no AI-free certification N evidence/report language controls Enforce in templates/tests; imports/declarations visibly separate. G5/G6.
11.6 Redaction/privacy/retention/export/deletion before production capture R account/export patterns; N activity policy Decide data minimisation, snapshot retention, report verification disclosure and erasure handling before G1 production use.
12.1 Append-only versioned records + rebuildable derived read models R SQL/Dapper; N event/projection store Transactional append at acceptance; replay/versioned aggregation; do not mutate source events to fix statistics. G1.
12.2 Candidate entities and stable keys/source/actors/UTC/local metadata/correlation/version R IDs in C; N schema additions Proposed schema in architecture; no migrations created/executed. G1/G3–G6.
12.3 Minimal text, policy-governed diffs/snapshots R current accepted manuscript; N optional immutable history Counts-only cannot reconstruct prose; minimise duplicate text and disclose coverage lost after expiry. G1.
12.4 Efficient bounded queries/aggregation/audit/repair R procedures; N projection/checkpoint/repair controls Book+time index, cursor paging, revision hashes, rebuild comparison; no whole-book JSON per dashboard card. G1/G2.
13.A New author journey R onboarding/plan forms; M Skip/setup draft/proposal approval → usable dashboard → session. G2–G4.
13.B Existing author journey R accepted source/native/Reader; M/N session Current baseline with coverage note → start → Word best effort → finish → event-backed summary. G1/G2/G4.
13.C Irregular author journey N flexible plan mode No fixed weekday validation or empty-week failure display. G3.
13.D Iterative author journey N parallel passes Independent Chapter 35 drafting and Chapter 8 revision with no status collision. G4.
13.E Editor journey R A only project-wide; N scoped editorial Assignment/report first, integrated edits later; no private-note access. G5.
13.F Provenance journey N report scope/preview/export Accurate evidence levels first; signed export only G6.
13.G Display journey R D detection; M Detect/grant/assign/save/fallback across arbitrary monitor counts. G2.
14.1 Ribbon/theme/responsive/PWA/routes/no-document controls R S/D; M W Browser acceptance matrix in G2; preserve legacy and Context/Intent URLs.
14.2 No daily targets/available opportunities only R nullable targets; M validation/P Flexible and regular plans tested including holidays and no availability. G3.
14.3 30-minute session pause/extend/complete, honest time N lifecycle Fake monotonic-clock and real browser recovery tests; non-modal expiration. G4.
14.4 Parallel passes/no edit-induced completion N pass transitions Assert independent status and explicit actor/source. G4.
14.5 Offline/duplicate no inflation; gross/deletion/net fixtures/format-only R conservative C; N durable ledger/outbox Retry across restart, old-key replay, conflict, moves, split/merge and tokenisation fixtures. G1.
14.6 Coverage/source/navigation/display 1–4+/denied permission R routes/discovery; M/N history Cross-device coverage and permission-denied/browser unavailable tests. G1/G2.
14.7 Insight thresholds/dismissal; no AI-free claim N Deterministic qualification/dismissal/report tests. G5/G6.
14.8 Existing Word/Writer regressions R existing harness/browser/native suites Serial build/harness plus bounded feature and Windows acceptance at each affected gate.
15 Gates 0–6 and per-gate testing/rollback/Development approval R repository operational procedures Phase plan below follows baseline sequence; no production authorisation and no gate automatically deploys.
16 Historical capture, maps, permissions, displays, retention, components, milestones/imports R this investigation Findings in inventory/activity/UX; genuine product questions isolated in decisions document. Unknowns are not invented features.

The proposed architecture remains provisional as required by the baseline. Existing implemented functions are reusable foundations, not blanket acceptance of their unchanged UI, evidence meaning or access model.