18 KiB
Phase 3D.1B — Production Guided Investigation v0.1
Shared branch: codex/word-companion-native-phase1-20261104. Baseline e56e300 / prior deployed application 283f6fd. Application implementation commit a988982df32b312f18e0a54494e68b05fc38d976, pushed and deployed to Development. Final acceptance receipts are in the subsequent reporting commit identified in the handoff. This phase authors the first editorial catalogue and integrates it on Development; it does not activate Production or implement Phase 3D.2B.
Implementation and editorial identity
guided-investigation-production-v0.1 contains 19 questions, 88 exact answer labels, six opening routes, 17 diagnostic areas, 17 area-specific result templates, seven conclusion-state templates and six verified capability adapters. The questionnaire reproduces the supplied text verbatim, including Q01 help. Frozen text: questionnaire, source fixture. Publication export: production catalogue. Full per-answer interpretations, signed weights, groups, follow-ups, limitations and result wording: evidence matrix.
The engine remains generic, deterministic and independent of writing wording/destinations. Schema 2 / engine policy 3 adds data-driven route/relevance candidates, mixed-purpose challenge metadata, explicit qualified-only content limits, and authored state/area results. Question selection ranks actual eligible candidates from the opening route, selected-answer relevance links and leading substantive explanations; it is not a fixed next pointer or sequential nineteen-question script. Ordinal IDs break ties. Healthy and uncertain answers normally stay within their present area. Q17–Q19 share a single dimension and independence group; the strongest related contribution is +1 once, not three independent confirmations. Q01 is routing only, represented by the persisted concern letter plus immutable opening-question metadata, and does not count towards confidence length.
Confidence is unchanged: net evidence ≥4, ≥2 positive dimensions, ≥2 corroboration groups, a non-uncertain genuine disconfirming opportunity, an examined competitor, no unresolved material conflict, and ≥8 substantive answers. The existing 12-answer upper bound remains. Challenge opportunities are explicitly declared only where an answer actually challenges the named hypothesis. A question may examine the problem and its counterexample; for example Q05 offers clear motives as an alternative to unclear motives. Uncertainty itself has no positive evidence. Strongest-sign/group and ±3 dimension caps are unchanged. A short healthy/uncertain/qualified investigation may finish before eight when relevant candidates are exhausted; that does not bypass supported-recommendation thresholds.
Every result contains an answer-based heading/explanation, actual supporting observations, a concrete writing action, an explicit questionnaire-vs-manuscript qualification, and revision/save/further controls as applicable. Tool actions appear only for supported findings with eligible adapters. Tentative results offer exercises without presenting unsupported tools as confidently recommended. Opposing reports about different aspects are retained and can produce an ambiguous interpretation rather than being forced into a healthy conclusion or automatically labelled an error. Result wording and its applicable conclusion states are versioned catalogue data, not AI-generated prose.
Synthetic isolation and historical compatibility
The ordinary author catalogue is explicitly pinned by WriterInvestigations:AuthorCatalogue (default this production version), independent of the most recently published developer catalogue. A later synthetic publication cannot replace it. Synthetic creation/viewing/answering/opening is restricted to Development AdminOnly users and remains author-owned/book-authorised; ordinary saved lists exclude synthetic records and ordinary synthetic URLs/explicit version overrides return404. Admin catalogue selection retains the original synthetic test workflow. This is deliberate archival isolation, not deletion: old JSON, IDs, answers, events and original engine0/2 policies are retained. Existing production investigations remain bound to their original catalogue and saved-list labels are resolved from that original version. No answer is reinterpreted using another version's IDs.
The existing 633-state legacy replay qualification and 228-path synthetic simulator remain green. Private persistence, optimistic versions, resumability and answer replacement use the established Dapper/stored procedures. Production and synthetic records coexist without schema/data rewrites. The feature remains Development-gated; a production-content catalogue identity is not Production activation.
Capability safeguards and scope
Trusted authenticated adapters: Characters.Index, PlotLineWorkspace.Index, Timeline.Index, RelationshipMap.Index, Writer.Write and Writer.Review. The first five are the qualified existing adapters; Review is a new trusted adapter to the implemented canonical reading/observations workspace. The evidence matrix records source evidence and scope. Project-wide cast remains project-wide while retaining the selected book. Timeline guidance means a manual cross-check of recorded scenes/context, not automatic knowledge or continuity analysis. No planned/partial capability, public Solver URL, Floor Plans occupant authoring or manuscript analysis is claimed.
A necessary multi-tool safeguard was added: Open now checks the specific adapter's current availability, as well as the finding's recommendation and trusted resolver. A runtime-disabled tool cannot be forged through a finding whose alternative tool is still eligible. Eligibility/configuration changes do not modify numeric diagnostic evidence. No readiness data or preparation planner is introduced.
Automated qualification
- Normal solution build: zero warnings/errors.
- Full executable regression harness: exit0 / 605 PASS records, including public Writing Problem Solver, existing Writer/Word and legacy investigation cases.
- Production simulation: 127 deterministic completed paths, including all six openings, targeted strong/moderate/healthy/uncertain/mixed patterns, six requested cross-route examples and a contrasting-accounts case. No forced question presentation or fabricated evidence; every answer uses the evaluator's actual next question and a real A–F option.
- Every opening has a demonstrated supported result and a qualified/ambiguous result. All 10 confidence-eligible findings are actually reachable; all 17 area templates are exercised, including the uncertain fallback. Seven areas are deliberately qualified/context-only where these questions cannot meet independence/challenge requirements.
- Validation covers exact editorial wording, IDs/counts, version/schema, reference integrity, weights, actual challenge alternatives, related-probe grouping, orphaned questions/results, allowed result states and trusted capability mappings. Invalid catalogues are rejected, never silently repaired.
- Regression checks cover answer revision, private save/resume, cross-user/book isolation, deterministic replay, unavailable capabilities without rescoring, unavailable individual adapters within a multi-tool finding, early safe endings and preserved legacy catalogue semantics.
- Migration274 publication smoke: editorial format accepted, immutable duplicate rejected, test publication completely rolled back. No author investigation was changed by the smoke.
Machine answer sequences and evaluation states: simulation. This is bounded representative coverage, not exhaustive enumeration or statistically calibrated literary diagnosis. Case names are policy descriptions, not diagnoses: an “uncertain” simulation uses a real neutral/healthy alternative where the supplied item has no unsure choice; it never invents an answer.
Representative editorial results
The selected supported witnesses cover plot connections/cause and effect from Plot, motives from Characters, scene purpose from Pacing, conflict from Tension, continuity from Consistency, and a cross-route character finding from the unsure opening. A supported result remains distinguishable from competing possible explanations, a qualified observation, genuine uncertainty, no clear problem identified and an unavailable tool.
The named examples exercise passive choices/disconnected events, motivation/development, slow middle/dialogue without change, weak pressure/stakes, earlier changes/chronology, and unsure-to-character reasoning. Some correctly remain qualified or competing rather than forcing confidence. Exact paths, contributions and result text are in the machine export and final receipts.
Selected answer-path witnesses
Q01 is the route letter shown below; subsequent entries are actual selected question/answer IDs. All supported witnesses meet the unchanged confidence requirements.
| Opening | Supported answer path | Finding(s) | Qualified-policy result |
|---|---|---|---|
| A | Q02=B → Q03=C → Q17=F → Q19=F → Q04=A → Q14=D → Q15=A → Q16=E |
disconnected, causality | ambiguous: There is more than one way to understand these answers |
| B | Q07=A → Q05=C → Q17=B → Q06=A → Q03=A → Q02=A → Q13=A → Q11=A |
motivation | tentative: Some decisions may need clearer reasons |
| C | Q09=B → Q08=A → Q17=C → Q10=A → Q02=A → Q03=A → Q11=A → Q12=A |
slow | tentative: Some scenes may need a clearer purpose |
| D | Q11=B → Q12=D → Q17=A → Q09=B → Q13=A → Q08=E → Q02=A → Q03=A |
conflict | tentative: Obstacles may need to put more pressure on choices |
| E | Q14=D → Q15=B → Q16=A → Q17=E → Q07=D → Q02=A → Q03=A → Q10=A |
continuity | tentative: The sequence and timing of events may need checking |
| F | Q17=B → Q07=A → Q05=C → Q03=A → Q02=A → Q13=A → Q11=A → Q12=A |
motivation | tentative: Some decisions may need clearer reasons |
Necessary content limitations
The supplied nineteen items cannot legitimately support high confidence for protagonist agency, character development, relationships, chronology, whereabouts, character knowledge or the unresolved fallback under the unchanged requirements: they lack either independent positive dimensions or a real disconfirming question. Their specific exercises and observations remain available. Ten other areas have witnessed supported paths. This limitation is not hidden by relabelling correlations or weakening thresholds.
Q14 requires identifying a consistency difficulty and offers neither a no-difficulty nor an unsure option. Q07/Q15 also lack an unsure answer; Q08/Q09 frame a reported pacing concern. In particular, a Continuity author who answers Q14 has necessarily reported a difficulty. The safe healthy/uncertain test policy therefore yields a qualified continuity/chronology observation, not a manufactured clean no-problem/wholly-uncertain result. Actual alternatives and this acceptance boundary are explicitly recorded. Other routes demonstrate healthy or genuinely uncertain outcomes where their supplied answers permit them. Editorial approval of neutral/healthy choices and additional independent challenge/corroboration questions would be needed to close this gap; no supplied text was altered to hide it.
The nineteen items do not provide a literal same-aspect contradictory question pair plus a separate clarification question. Apparent opposing reports are therefore qualified as mixed/ambiguous, while the original engine’s formal conflict mechanism remains regression-qualified with the retained synthetic catalogue. The seventh conflict-state frame is defensive infrastructure; no current production answer path is claimed to reach that formal state. All17 actual area-result templates have witnessed uses.
Strong independent questions need further editorial validation; weights are not probabilities. Descriptive scenes, reactive protagonists or unchanged characters may be intentional. “Timing or location” has only weak subtype evidence because the answer is an OR; general continuity receives the stronger contribution. Free text is stored but never interpreted. Investigation exercise wording does not claim to assess manuscript content. Physical installed PWA, Windows/Office and a screen-reader audit remain outside headless desktop/responsive simulated PWA qualification.
Browser/PWA, rollout and data preservation
The final isolated real-MVC browser qualification passed 36 author cases plus AdminOnly synthetic isolation, with Review explicitly disabled and Write available. Hidden-adapter forged requests are rejected with400. The normal-availability isolated run also passed. It verifies that ordinary users cannot choose or view synthetic catalogues, and that a later synthetic publication cannot replace the pinned author catalogue. Diagnostics remain private and owner/book-scoped.
Actual authenticated Development acceptance passed 36 runs: six routes × supported/qualified/uncertain policies × desktop and responsive simulated PWA. Each rendered question and every available answer label is checked against the exact editorial data. Every completed run has answer-specific guidance, practical action, actual observations and the manuscript-analysis qualification. Draft save, selected-answer save/resume, earlier-answer revision/reload, scoped redirects, cross-book404, narrow overflow, script errors and inference-provider requests were checked. Every offered adapter in supported runs was followed to its authenticated tool GET200, including the new Review adapter. Cross-user ownership is also checked in the isolated HTTP host and private repository tests. This is responsive simulated PWA acceptance, not a physical installed-PWA/Windows test.
Release a988982-20261117T214937Z is archived at /srv/apps/plotdirector-dev/releases/a988982-20261117T214937Z with prior installation preserved at /srv/apps/plotdirector-dev/current-before-a988982-20261117T214937Z. The fresh Release publish and deployed PlotLine.dll SHA256 both equal b0d4906c3df004eff7327c141ca8106079bda46be2849d39556b969d2c8a14bb; informational version is 1.0.0+a988982df32b312f18e0a54494e68b05fc38d976. Service active; local GET200 and TLS-validated public GET200; no warning/error journal entries since rollout, rechecked after cleanup. Configuration, data-protection keys, uploads and logs were preserved. Pre-stop statuses were completed only; no queued/running import, synthesis, pipeline, enrichment or Story Intelligence jobs were interrupted.
The validated publication payload matched the qualified export exactly and was published through the existing procedure only after compatible code was running: guided-investigation-production-v0.1 at 17 November2026,21:49:51 UTC. Both synthetic catalogue byte hashes are unchanged. No Production publication/deployment or Companion binary installation occurred.
Guarded fixture deletion returned zero remaining disposable accounts, investigations, events and review observations. The disposable project/book data was removed through established hard-delete procedures. All ten existing-data aggregate hashes match before/after: Projects, Books, Chapters, Scenes, BookParagraphManuscripts, WriterInvestigations, WriterInvestigationEvents, WriterWorkingObjectives, WriterReviewObservations and WriterWorkSessions. Existing history and manuscript bytes remain unchanged; only the deliberate editorial catalogue row was added. Disposable credentials were removed.
Receipts: qualification, Development browser log, isolated disabled-adapter browser. Disposable screenshots cover all18 desktop route/policy results; supported examples: Plot, Characters, Pacing, Tension, Continuity, Unsure. Qualified Continuity and genuine uncertainty demonstrate useful outcomes without forcing confidence.
Migration 274_WriterEditorialCatalogues.sql changes only the immutable catalogue publication procedure to permit validated schema2 editorial JSON alongside schema1 synthetic JSON. It does not rewrite numbered273, add entity tables, change existing catalogue payloads, or migrate answers. A copy-only/checksum backup at /var/opt/mssql/backup/writer3-phase3d1b-before-274-20261117T211832Z.bak and RESTORE VERIFYONLY were completed before writes; verification used the existing privileged container helper because the normal application principal lacks VERIFY permission. No permissions were broadened and no restore/reset occurred.
Rollback must retain a build understanding schema2 / engine3 and the bound catalogue, or disable the investigation feature; restoring an older binary alone cannot parse the new catalogue. The production-content record was published only after the compatible Development application was running. Configuration, uploads, keys and logs were preserved.
Review checkpoint
Review the exact questionnaire, evidence matrix and qualified-only/no-neutral-choice boundaries before wider rollout or further editorial additions. Dependency registry/readiness/preparation work remains the separately approved Phase3D.2B; no such implementation was started. Public Solver content/routes/SEO, Word Companion binaries and Phase3D.2A exports are preserved. Stop for review.