13 KiB
Phase3D.1 — Guided Investigation foundation and continuous Review
17 November2026. Development only, shared branch codex/word-companion-native-phase1-20261104. Main implementation 78a84df; subsequent presentation integration keeps the investigation inside Explore's ribbon/book context. Final application 62fa292f818073ca2cded067ed286c93a4663e48 deployed as 62fa292-20261117T145908Z. Reporting/evidence is committed separately after deployment.
Fetched/reconciled before editing and rechecked before publication; no force push. Windows/native source version1.0.0.40 and the restored Phase3B functionality remain unchanged (last native-source commit ae06dca). No native binary installation, Production deployment, production question generation or Phase4 work occurred. The unrelated canonical-manuscript investigation file remains untouched.
Delivered mechanism
The generic engine and writing catalogue are separate. InvestigationEngine consumes structured concerns, hypotheses, questions/options, evidence dimensions/groups, conditions and capability availability. No writing wording, classifications or destination URLs are embedded in scoring. It has no HTTP, external inference, AI, manuscript or COM dependency.
Positive and negative weights aggregate through strongest-sign-per-dimension/group and±3 dimension caps. Priors guide selection but cannot establish corroboration. Completion requires distinct dimensions/groups, sufficient net evidence, an examined competitor, a substantive relevant challenge, no unresolved material same-aspect conflict and an eligible destination. Dynamic selection prioritises leading-hypothesis discrimination, unseen dimensions, challenge/corroboration gaps and clarification, with ordinal ID tie-breaking. Uncertain and different-aspect answers are distinct from genuine contradictory evidence. Revisions replace current evidence and invalidate dependent answers, retaining historical events. Scores are not probabilities.
Outcomes include supported recommendation, two plausible explanations, more information needed and no suitable destination. Authored explanations cite actual answers and retain uncertainty. Further/disagree preserves answers; bounds prevent endless questioning, and disagreement can return to earlier answers at the limit. Missing destination prerequisites do not modify the diagnosis or evidence.
Catalogue, destinations and private persistence
Migration 273_WriterInvestigations.sql adds immutable catalogue versions, author/book-scoped investigation aggregates and append-only reproducible event snapshots. Dapper/stored procedures enforce live project/book access, author ownership, optimistic versions and immutable catalogue binding. Book/account deletion cascades remove private history. Shared project JSON exports do not expose these records; database backup covers them.
The validated Development example has 4 concerns,5 hypotheses,28 questions,6 evidence dimensions and5 capability adapters. It deliberately exercises corroboration, redundancy, ambiguity/conflict, challenge, unexpected destinations and revision. It is visibly synthetic and cannot be enabled on Production even by setting the preview flag true. Runtime capability switches may independently disable a destination. No question/answer contains a URL. Trusted authenticated adapters cover Characters, chapter/scene Write, Plot Lines/threads, Timeline and Relationships, with authorised project/book scope rechecked before opening.
AdminOnly Development tooling validates/imports/exports immutable catalogue JSON, inspects evidence/coverage/question ranks/destination eligibility, and replays private author-owned event snapshots. Developers select/revise answers through the normal test investigation UI. Administrators cannot use this interface to read another author's private investigations. The machine-readable simulation report is committed with evidence.
Public Problem Solver graph, traversal, solutions, cases, controllers, content and SEO remain unchanged. Reused patterns: stable editorial IDs, strict JSON validation, immutable publication, authenticated adapters and deterministic replay. The new engine deliberately does not use its fixed-route tree model. The investigation ribbon links to its authenticated investigation, not a public Solver page.
Author experience and Help
Writer → Explore offers a calm invitation, one primary question, radio answers, optional explanation, earlier-answer navigation, Continue and Save for later. Unfinished explanations can be saved without contributing evidence. Multiple investigations persist independently; changing the starting concern creates another record. Technical scores/diagnostics remain outside ordinary author pages. Tool actions preserve the investigation in its original tab. Theme, Writer ribbon, Explore context and selected book remain.
New Markdown Help key writer3.investigations covers the flow, drafts/revision, independent private/book state, uncertainty, tool return and Development/no-AI limits. writer3.reviewing explains the continuous reading correction. Existing tooltip/quick popup/More drawer/full article mechanisms are reused and browser-qualified.
Separate continuous Review correction
Normal integrated Review uses natural document scrolling, comfortable existing canonical Reader typography/width and paragraph formatting. The manuscript pane has no fixed/max height or internal scroll. Its companion remains sticky on desktop and accessible as a narrow overlay, without constraining prose height. Reader anchor restoration uses window scrolling in normal Review and retains the existing Focused Reading scrollport.
Chapter navigation, selection, anchored observations/decisions, accepted-update policy, Audio Review/session DOM and verified acknowledged Word handoff remain authoritative. No Reader persistence or manuscript architecture was rewritten. Real Development acceptance used101 accepted synthetic paragraphs, deep-page reading, an anchored observation save without moving the reading position, original-reference revisit, Focused Reading and narrow overlay. A scroll assertion was corrected to wait for the browser's existing smooth-scroll completion; no source/Reader rewrite was needed.
Qualification
| Check | Result |
|---|---|
| Normal solution build | Zero warnings/errors; fresh Release publish |
| Full application harness | 601 PASS records, exit0, including existing public Solver regressions |
| Native preservation | 292 checks pass; native source/binaries unchanged |
| Simulation | 228 deterministic representative paths,2560 answers; all5 hypotheses/destinations reachable;0 loops, repeats, premature recommendations, invalid destinations or non-deterministic replays |
| Focused engine | Priors, negative/redundant evidence, corroboration/challenge, eligibility/tie-breaking, conflicts/clarification/revision, competing/insufficient conclusions, unavailable destinations, version validation and Production gate; availability leaves diagnostic evidence unchanged |
| SQL | Atomic state/history and resume, stale rollback, cross-book and private cross-member denial, immutable publication; all test writes rolled back |
| Investigation browser/simulated PWA | Real Razor/controllers with isolated repository: dynamic unexpected destination, draft/resume, actual-answer summary, scoped tool route, CSRF400, stale409 retained text, revision, cross-user/book404, AdminOnly import/export/replay/version pinning, narrow keyboard/radio/overflow, Help; no iframe/AI calls |
| Existing Writer browser | 200 workspace/theme/viewport/browser/PWA cases and168 navigation cases pass; continuous Review expectations intentionally replace the previous fixed-panel assertion |
| Integrated Review preservation | Existing anchored CRUD/resolve/reopen, selection-only no writes, stale/network guards, acknowledged paragraph-vs-explicit-chapter handoff, AudioReview DOM/target/note preservation, focused Previous/Next and Help pass; native/media telemetry simulated |
| Continuous Review browser | Long canonical prose at1440/1024/390 in browser/simulated PWA; document scroll, no nested manuscript scroll, anchor restoration, sticky companion, focus and passage overlay pass |
| Authenticated Development | Real investigation workflows pass in browser/simulated PWA; real continuous Review acceptance passes; changed authenticated routes verified |
Simulation is representative, not exhaustive enumeration or calibrated editorial evidence. Keyboard/semantic checks are not a physical screen-reader audit. Physical Word/media, installed PWA, Windows multi-monitor/foreground and large-manuscript responsiveness remain manual. No new native release is required.
Development rollout and data preservation
Verified copy-only checksum backup before schema/fixtures: /var/opt/mssql/backup/writer3-phase3d1-before-273-20261117.bak. Required objects and Development catalogue verified after migration. Pre-stop queue checks found only completed import/synthesis/pipeline/enrichment work and no active Story Intelligence jobs. Deployment preserves existing configuration, keys, uploads and logs. Final archive /srv/apps/plotdirector-dev/releases/62fa292-20261117T145908Z; rollback /srv/apps/plotdirector-dev/current-before-62fa292-20261117T145908Z. Service active, local GET200 and TLS-validated public GET200, rechecked after cleanup. No warning/error journal entries since the final deployment. Published/deployed PlotLine.dll SHA256 both e0e29cb3a844c82e5a20d9075d84e5a3a704f6980fc13c6aae2c3c2cbdb7aba3; informational version 1.0.0+62fa292f818073ca2cded067ed286c93a4663e48. The earlier78a84df Development release was superseded by the ribbon integration correction.
Eight existing-author data hashes matched before rollout and after authenticated acceptance/cleanup: books, chapters, scenes, accepted manuscripts, chapter goals, working objectives, review observations and sessions, excluding only the disposable fixture. Eight fixture hashes also matched across five-destination reads, investigation resume and reload: investigations/events, observations, objectives, sessions, accepted source, chapters and goals. Final fixture invariants:4 investigations with matching atomic event/version counts and original catalogue; accepted source revision1 with101 paragraphs; goals0; active sessions0. Existing guarded project/account deletion returned0 remaining synthetic accounts, investigations, events and review observations, qualifying cascades. Private fixture credentials were then removed. The shared synthetic catalogue remains available for Development content work. No author prose, objectives or status was modified by investigation navigation.
Screenshots and artifacts
Disposable author/manuscript only; no real author prose or credentials are committed.
Narrow question · continuous Review at chapter start · deep reading with companion · narrow observation · machine-readable coverage
Additional dependency graph/readiness requirements acknowledged
The in-progress clarification was incorporated without restarting, discarding work or undertaking a schema redesign. Existing extension points: stable capability IDs, separate registry/resolver, typed author/book context, explicit eligibility/prerequisite boundary, independent availability and immutable version/replay records. A regression explicitly proves missing/unavailable capabilities do not alter support, opposition, score, coverage, challenge or diagnostic support.
Needed later: complete implemented-capability inventory; typed Feature Dependency Graph; book-specific readiness evaluator; multi-step preparation lifecycle; missing-prerequisite preparation questions; shared dependency model and visual Feature Family Tree. Current5-adapter registry is a test subset. Flat answer conditions are not a complete dependency model. Capability definitions embedded in immutable catalogue versions and compiled route adapters need a compatibility boundary before a shared graph replaces their operational role.
Safe sequence: inventory and verify actual permissions/data requirements → define stable shared registry/typed dependency edges and cycle rules → implement read-only book readiness with provenance → persist resumable preparation journeys/questions → connect preparation guidance to investigation results without rescoring evidence → render the Feature Family Tree from the same model. Use additive migrations and schema1 adapters, retain old aliases and immutable catalogue/event records; do not rewrite migration273 or repoint historical investigations. Further decisions and migration implications are in Architecture.
Develop the real production taxonomy, wording, explanations and literal/adversarial acceptance witnesses separately. Validate evidence independence, ambiguity and destination suitability before any Production activation. No production matrix or expanded readiness system was generated in this phase. Phase4 has not started.

