13 KiB
PlotDirector Writer 2.0 — Functional & Technical Specification
Status: Product requirements baseline for Codex audit; technical implementation provisional. Date: 14 November 2026 Scope: PlotDirector PWA Writer, Word Companion, future Editor, planning, activity tracking, reporting and provenance. Primary user outcome: “I can see what I have achieved with the writing time available to me, and I know what to do next.”
1. Purpose and product principles
Writer 2.0 is the author-facing planning, focus, progress and creative-history workspace within PlotDirector. Its primary purpose is to help authors use their available writing time and see meaningful progress without maintaining duplicate records. Manuscript provenance is a downstream reporting capability, not the primary interface. Requirements: writing comes first; show rather than praise; no chatty AI persona; progress includes drafting, deletion, revision, research, editorial and publication work; no guilt for unavailable days; author controls schedule; accessible and consistent with existing PlotDirector PWA ribbon/theme; UK English.
2. Information architecture and navigation
Replace the legacy Writer landing experience with a full-width dashboard and contextual Writer ribbon consistent with other PlotDirector workspaces. Remove duplicate Writer/Write navigation routes while preserving deep links and backwards-compatible redirects. Ribbon destinations: Overview, Writing Journey, Writing Plan, Focus Sessions, Workspaces, Reports; Word Companion status and Display Setup are contextual actions. Keep project/book selection in the common shell, not floating in the page. Workspaces have five tabs: Write Next, In Progress, Revision, Final Pass, Story Health. All displayed chapter, scene and issue references should navigate to the corresponding destination where supported. In PWA mode preserve ribbon and maximise behaviour.
3. Dashboard visual contract
First viewport: selected book, current meaningful work, next writing opportunity, compact Word Companion state and a small set of useful indicators. Show activity days relative to chosen opportunities, manuscript change (gross additions, deletions, net), pass progress, milestone progress and an optional compact writing journey. Use progressive disclosure; no wall of text or permanent setup wizard. Make every relevant chart/card drillable. Green = observed progress; amber = potential schedule risk; red = actionable blocker; grey = not scheduled/not started. Never imply a missed session is a moral failure. Distinguish planned, observed, inferred and author-declared figures. Provide accessible non-colour equivalents.
4. Writing Rhythm setup wizard
Conversational, visual, skippable and resumable wizard. Ask how writing fits into life: around other commitments, regular dedicated periods, flexible availability, or still exploring. Do not label users full-time/part-time. Let authors paint available time slots on a weekly grid, optionally protect personal time, select preferred session types and rough milestones. Support “write whenever I can” with no fixed weekdays. Detect existing manuscript and progress to prefill where reliable. Preview a proposed plan before saving. Offer change/holiday/exception handling without penalising author. Never require daily word targets. Scheduling suggestions require approval and can be ignored or dismissed.
5. Focus Sessions and sprints
Start from dashboard, timeline, Word Companion and eventually native Editor. Presets such as 20/30/45/60 minutes and custom; objectives for drafting, revision, planning, editorial, publication or promotion. Optional 5-minute recharge or reflection break. Focus mode hides nonessential UI and offers a discreet timer, pause, extend, finish and optional next-session note. Do not interrupt mid-sentence with modal alerts. Word Companion may focus/open linked Word document and navigate to chapter where permitted; notification controls must respect OS/browser capabilities and user consent. Never claim a timer proves continuous concentration. Record planned duration, elapsed time, observed document activity and interruptions separately.
6. Writing Journey and timeline
Dedicated full-width, zoomable timeline with actual past activity to the left of Today and planned future work to the right. Support day/week/month/book scales, interactive days, milestones, chapter and scene drill-down, editable future targets, dependency previews and optional reforecasting. Multiple parallel tracks and passes: drafting, structural revision, line editing, proofing, editorial, publishing, marketing and user-defined phases. Allow iterative authors to edit early chapters while drafting later ones; allow phase-by-phase workflows equally. A chapter-pass matrix shows not started/in progress/reviewed/complete with explicit state provenance. Avoid deriving “complete” merely from document edits.
7. Word Companion and future Editor integration
One source-neutral activity ingestion contract shared by Word Companion and future PlotDirector Editor. Audit existing paragraph GUIDs, manuscript reader, checkpoints, sync reconciliation, timestamps and change detection before altering. Record idempotent change events, session linkage, document identity, chapter/scene association, actor/source, observed timestamp, receipt timestamp, additions/deletions and snapshot references when available. Handle offline queue, retries, clock skew, repeated sync, document switching, renames, paragraph moves and conflicts. Capture baseline immediately; never fabricate past history. Preserve current Word Companion functionality and compatibility. Compact status states: not installed, disconnected, connected/no linked document, syncing, ready, stale/error; show only relevant actions.
8. Display discovery and layouts
Make Detect Displays a prominent, permission-aware setup action. When supported, display discovered monitor geometry visually and permit role assignment for Word, PlotDirector, reference/research and spare displays. Support one, two, three, four or more monitors, saved profiles (e.g. laptop/docked), changing topology and manual fallback. Explain browser permission and window placement limitations. Never hard-code a three-monitor arrangement or show irrelevant layout actions when no linked document is active.
9. Writing insights and profiles
Use conventional statistics first, not generative AI narration. Track dimensions separately: regular/flexible schedule, short/long sessions, iterative/phase-oriented work, drafting/revision mix, and time-of-day patterns. Do not infer natural preference solely from observed availability. Only display insights with enough quality data; show sample size, uncertainty and plain factual phrasing. Examples: “14 of 18 sessions began after 7pm”; “Your recent drafting sessions average 38 minutes.” Profiles are optional internal descriptors, never fixed identities or diagnoses. Suggestions are infrequent, explainable, dismissible and never auto-change schedules.
10. Collaboration and editorial work
Support author-owned assignments to editors, proofreaders and other contributors, with overlapping phases, status and milestone dates. Separate manually reported progress from directly captured edits. First release may support external milestones and feedback imports without requiring collaborators to adopt PlotDirector. Later integrated editor work may record attributed changes. Role-scoped permissions: no default access to unrelated books, private notes or research. Activity history must distinguish author, collaborator, import and system actors.
11. Reporting and manuscript provenance
Reports cover selected dates, chapters, passes and collaborators. Include writing days, session durations (qualified), additions, deletions, net count, version growth, chapter changes, milestones, editorial contributions and evidence coverage. Offer concise overview and detailed evidence report. Future PlotDirector-sealed PDF: report ID, generation time, scope, evidence quality/coverage, cryptographic document signature and optional privacy-preserving verification endpoint/QR. Signing proves issued report integrity, not human-only authorship; do not market as proof that AI was never used. Separate observed evidence, imported history and author declarations. Allow redaction/privacy controls. Define retention, export and deletion policy before production capture.
12. Proposed data architecture (subject to audit)
Prefer append-only, versioned activity records and derived read models. Candidate entities: WritingActivityEvent, WritingSession, ManuscriptSnapshot, ManuscriptPass, ChapterPassStatus, WritingAvailability, ScheduleException, WritingMilestone, CollaboratorAssignment, WritingInsight, ProvenanceReport. Events require stable idempotency keys, source/actor IDs, UTC times and local-time display metadata, provenance class, correlation IDs and schema version. Store minimal necessary text; retain detailed diffs/snapshots only under explicit retention and privacy rules. Rebuild dashboard projections from events. Provide efficient bounded querying, aggregation, audit and repair tools. Actual schema and migration choices follow repository audit.
13. Key user journeys
A. New author: open Writer → choose book → wizard or skip → optional availability → proposed plan → dashboard and first session. B. Existing author: open Writer → see detected manuscript baseline and coverage note → current work → start sprint → Word opens/focuses where possible → work → finish → activity summary and timeline update. C. Irregular author: no fixed sessions → flexible weekly opportunities → observed activity visible without empty-week guilt. D. Iterative author: draft Chapter 35 and revise Chapter 8 concurrently → separate tracks and accurate per-pass status. E. Editor: assigned chapters → report or integrated updates → author sees editorial progress with permission boundaries. F. Provenance: select period and evidence level → preview → export verifiable report with explicit limitations. G. Display setup: grant permission → detect screens → assign roles → save profile → graceful single-screen fallback.
14. Acceptance criteria
Dashboard uses existing PlotDirector ribbon, theme and responsive/PWA conventions; duplicate Write/Writer paths resolve consistently. No linked Word document means no irrelevant controls. Plans can be created without daily targets and show only available writing opportunities by default. A 30-minute sprint can be paused/extended/completed without modal interruption; recorded time is not misrepresented as continuous focus. Multiple passes may overlap on the same chapter; edits alone never mark a pass complete. Duplicate/offline Word sync never inflates words or sessions. Gross added/deleted and net counts reconcile with known fixtures; formatting-only changes do not masquerade as word growth. Activity records indicate coverage and source. Charts and chapter issues navigate meaningfully. Display setup handles 1–4+ screens and denied permission. Insights require sample-size thresholds and can be dismissed. Provenance export never asserts AI-free certification. Existing Word Companion and Writer functions pass regression tests.
15. Delivery and audit gates
Gate 0 — read-only audit: inventory routes/views/ribbon, Writer data, scheduling, Word Companion native and agent components, paragraph/snapshot history, author permissions, tests, deployment flow. Produce reuse/gap/risk matrix and proposed schema; no implementation or deployment. Gate 1 — capture foundation: event contract, deduplication, baseline, retention and integration tests; deploy to Development only after approval. Gate 2 — navigation/dashboard/workspaces: accessible UI, compact Companion states, interactive charts. Gate 3 — rhythm wizard and plan engine: availability, protected time, exceptions and milestone forecast. Gate 4 — focus sessions and journey timeline: sprints, breaks, overlapping passes and drill-down. Gate 5 — insights, collaboration and reports: confidence, permissions, evidence and privacy. Gate 6 — signed provenance PDF and verification: separate security review and explicit sign-off. For every gate: build, regression, PWA/browser verification, native Word tests where applicable, migration rollback and documented Development acceptance. No production changes without explicit approval.
16. Open design questions for audit
What historical activity is truly retained versus only latest manuscript state? Which Word events are reliably observed versus inferred? What are the current Writer schedule tables and permissions? How are chapters/scenes and paragraph IDs mapped across reorganisations? Which browser APIs and agent capabilities are available for multi-display and focus behaviour? What retention and privacy defaults are acceptable? Which existing UI components can be reused? Which milestones are explicit versus inferred? How should publication and external editor progress be entered or imported? These are investigation items, not permission to invent functionality.