Make Writing Solver results evidence-aware with one practical tool recommendation

This commit is contained in:
Nick Beckley 2026-11-01 20:23:35 +00:00
parent e818ca4b08
commit 6b704f6442
31 changed files with 6467 additions and 13 deletions

View File

@ -0,0 +1,44 @@
# Recommendation and article decisions
Every result has one primary capability. Secondary capabilities are deliberately limited to **seven results**; a single article is selected for **14 results**. Every other result shows none. No recommendation changes Stage 1 scoring, gates, diagnosis order, depth or supporting results. Supporting diagnoses are retained in compact expandable sections, rather than repeating a full tool catalogue and multiple H1s.
Primary feature/tool mappings for all 52 diagnoses, actual routes and screenshot requirements are in `ScreenshotRequirementMatrix.md`. Public CTAs target existing `/features` tour sections. Signed-in CTAs use `/writing-problems/workspace/{capability}` to select authorised context before a local redirect to the audited application action.
## Also useful (only these results)
- **D04**: Timeline · story values. Once the thread balance is visible, recorded story values can help you inspect how its prominence changes the reading rhythm.
- **D14**: Locations. Use the place record as a reference when an appearance depends on a recurring location.
- **D29**: Characters. Settle the agreed birthday or age reference in the character record before correcting the dated scenes.
- **D34**: Scenarios. If several positions could work, preserve the current order while trying an alternative.
- **D38**: Locations. Check the place descriptions and location references when judging the possible journey.
- **D46**: Timeline · story values. Compare the individual arc with the wider scene-value pattern when the surrounding story is moving differently.
- **D51**: Project · books and series. Use the project’s ordered books as a reference when a thread spans more than one manuscript.
## Deeper reading (only these results)
These are existing task-oriented Help articles, reviewed by reading their source. They explain the recommended workflow rather than merely sharing scoring metadata. Each result has one scalar article reference; no result can show an article list. Article content, direct solver-advice pages, their metadata and routes remain unchanged.
- **D01**: `plotLines.workspace`.
- **D02**: `plotLines.workspace`.
- **D03**: `plotLines.workspace`.
- **D04**: `plotLines.workspace`.
- **D10**: `characters.sceneAppearances`.
- **D11**: `characters.sceneAppearances`.
- **D12**: `timeline.characterAppearances`.
- **D21**: `characters.knowledge`.
- **D22**: `characters.knowledge`.
- **D23**: `characters.knowledge`.
- **D33**: `timeline.sceneCards`.
- **D34**: `timeline.sceneCards`.
- **D37**: `scenarios.overview`.
- **D49**: `scenarios.overview`.
Editorial basis: the Plot Lines workspace guide explains Focus/Weave, actual shared contributions and dashed gaps (D01–D04). Character appearance guides explain scene-linked presence and viewpoint review (D10–D12). Character Knowledge separates recorded learning/suspicion and its scenes (D21–D23). Scene Cards explains summaries/purposes in manuscript order (D33–D34). Scenarios explains preserving the main order while experimenting (D37/D49). The remaining results do not receive a weaker article simply to fill a slot.
## Owner judgement and limitations
- **Location consistency (D39):** the existing location reference helps settle a description and locate relevant scenes. It does not provide automatic architectural/version comparison. Recommendation and capture explicitly avoid promising one. A dedicated version-history capability would be separate future work.
- **Pace/tension/development (D43–D47):** Timeline Metric Shape and character arc views show recorded values/involvement; they do not automatically judge prose. The recommendation says “with scene values recorded”. Future screenshots need populated fixture data and should demonstrate the real configured values.
- **Series (D50/D51):** D50 starts at the existing project/book overview and shared records. D51 starts at the real Plot Lines Workspace with book scope, a more direct first step than a generic series product pitch. The book overview remains a quiet secondary reference for D51.
- **Knowledge/reveal (D21–D26):** the first tool follows a chosen character’s recorded knowledge. For reader-facing reveals, the author must compare the linked manuscript scenes; the product is not presented as automatically knowing what the reader understands.
- Final screenshot composition and the future application theme remain explicitly deferred. No stock, borrowed or fabricated application screenshot is substituted.

View File

@ -0,0 +1,48 @@
# Writing Problem Solver: diagnosis payoff
Development only. Continues from Stage 1 runtime `983c3a9` and release record `e818ca4`. The Stage 1 graph, engine, gates, thresholds, coefficients and acceptance expectations are unchanged. No final application-theme screenshots or new application theme are created.
## Result structure
A completed diagnostic conversation now renders one primary H1, matched authored evidence, a short diagnosis-specific inference, an optional compact “Worth remembering” principle, and one “Start here” capability. The practical recommendation says what the real view shows, why it is relevant and what to look for. A prominent image component explicitly reserves space for a genuine future application screenshot; missing files also retain that placeholder.
Seven results have one quiet “Also useful” capability; 14 have one reviewed existing Help article below the practical recommendation. Other results have neither. Five useful principles are retained rather than padded across all 52. Supporting diagnoses remain visible in compact expandable evidence summaries instead of repeating full article layouts, H1s and feature catalogues.
The large “A little help, whenever you need it” catalogue is removed from landing, question, diagnostic, reassurance and insufficient-evidence states. No hidden replacement is added. The 52 direct advice URLs, all 15 feature pages, their text and SEO metadata remain unchanged; feature pages still provide relevant internal links. The full advice/help library is not redesigned.
Reassurance uses its existing template. Insufficient evidence honestly says no specific recommendation is established, gives a concrete next step and no longer carries a green diagnosis confirmation.
## Evidence and examples
Presentation is deterministic authored JSON, separate from the immutable Stage 1 publication. Exact accepted node/choice matches select up to three evidence clauses. A materially different answer selects different copy; a stale or unaccepted answer cannot provide a clause. An “unsure” answer does not acquire details from another branch. Actual intention answers are quoted so “deliberate, but difficult to manage” cannot silently become “unwanted creative change”. No runtime AI, signals, scores or diagnosis identifiers appear in the result text.
Representative evidence followed by its authored inference:
- **Storyline balance:** “You described scenes from this storyline expanding and squeezing out work you still want the other threads to do.” / “You want the other threads to carry more of the book than they currently do.” The inference distinguishes an unwanted balance from equal-space rules. The gaps variant instead says supporting threads vanish; an unsure observation does not claim either expansion or gaps.
- **Conflicting timeline:** “Two stated dates or event positions cannot both be true.” The inference says those positions need to fit one consistent sequence. No age/birthday fact is invented.
- **Unearned relationship:** “The behaviour changes, but you cannot find the moments that would earn the change.” The selected intention is included, followed by the distinction between an earned progression and a changed relationship label.
- **Scene volume:** “You can describe the scenes but cannot keep the whole arrangement in view.” The inference identifies the burden of seeing the larger arrangement; the next action is the real chapter/scene overview.
- **Series memory:** “You need established facts from several books before trusting a new passage.” The inference points to keeping earlier material accessible while writing the next book; no particular manuscript fact or missing subplot is asserted.
These are explanatory examples of the actual rules. Complete authored copy, provenance and tool mappings are in `Content/WritingSolver/Presentation/results-v1.json`. Exhaustive presentation tests require a real corroborating answer for every returned diagnosis in every reachable Stage 1 state.
## Tools, images and CTAs
The [Screenshot Requirement Matrix](ScreenshotRequirementMatrix.md) lists all 52 diagnoses, first tool, reason, existing application action/view, proposed image, sharing and capture composition. The library needs **14 shared assets for 15 recommendation contexts across 11 application view templates**. Zero final assets are manufactured here. Timeline chapter/scene overview is shared with character appearances; chronology and recorded metric-shape captures remain separate because they show different work.
Visitors get the relevant existing public `/features#...` tour section without account creation. Signed-in authors get “Open [tool] in my workspace”, then an authenticated project selector. Knowledge timelines and character arcs also require a character selected from that authorised project. A missing project or empty cast gives an explanatory empty state and public tour route. Foreign project/character IDs are rejected; redirects use fixed local route templates. No arbitrary remembered project or guessed book is opened.
[Recommendation decisions](RecommendationDecisions.md) lists the seven secondary recommendations and 14 article mappings. The scalar data model permits at most one of each per primary result. All article context keys and existing application actions are tested.
Owner judgement remains useful for location consistency (a reference/manual check, not architectural version comparison), story-value graphs (recorded values must exist), and reader-facing reveals (the author compares the linked prose; the product does not infer the reader’s understanding). Those limitations are explicit in the copy and matrix.
## Verification
- Before implementation: unchanged full Stage 1 regression harness **387 PASS**, unchanged audit **60/60 cases, 291/291 prefixes, 85,140 states**.
- Normal build passes; no new warnings.
- Full harness after implementation: **390 PASS**, including exhaustive presentation evidence coverage, answer variants/revision, neutral separation, missing visuals, article validation and authorised CTA routing.
- Unchanged Stage 1 audit after implementation: **60/60, 291/291, 85,140 states**, all 152 nodes and 52 diagnoses reachable, all 52 primary-capable. All eight prior semantic exceptions remain resolved. No scoring/graph edits or publication are required by this stage.
- Existing Stage 1 browser suite passes all 67 direct pages and its mobile/desktop, multi-select, revision, Back/Forward and adoption journeys.
- New browser suite passes Plot Lines, timing/continuity, relationship, scene/chapter, series, knowledge and character-development results at **390px and 1440px**, with JavaScript enabled/disabled. It checks a single primary action, relevant/no secondary, one/no article, explicit missing visuals, signed-out tour links, signed-in project/character selection and real redirects, reassurance, insufficient evidence, absence of the catalogue, Back/Forward, Start again, no overflow and public theme/noindex.
Before/after Development captures and final operational verification are recorded in `VisualComparisons.md` and `Deployment.md` when the new runtime is deployed. Those are result-page verification captures, not the deferred application screenshot assets. Production is outside scope.

View File

@ -0,0 +1,79 @@
# Screenshot Requirement Matrix
52 diagnoses; 15 recommendation contexts spanning **11 real application view templates**; **14 shared screenshot assets required**. All final assets are intentionally missing in this stage. The screenshots in `Screenshots/` verify these result pages before/after; they are not application-theme marketing assets and are not used in the result visual component.
Routes below are audited against current controller actions and view source. Every application launch first verifies/selects an authorised project. Character knowledge and development additionally require a selected character belonging to that project. Location references open the location list first, then the author chooses a place; the later capture will use a real location detail. No guessed IDs, arbitrary books, synthetic UI images or new application features are introduced.
A single Timeline scene overview is shared by scene/chapter and character-appearance contexts. Other Timeline captures show chronology or recorded metric shape, because those communicate materially different work. Continuity Story State and Journey need separate captures despite sharing an MVC view. Capture with the future public-colour application theme and fictional fixture data only.
| Diagnosis | Primary tool / feature | Why first | Application route / view | Proposed asset | Shared with | Visible content |
|---|---|---|---|---|---|---|
| D01: There are too many storylines to keep in your head | Plot Lines Workspace (`plot-lines`) | A map of selected lines gives each open thread a visible place in the manuscript. | `/PlotLineWorkspace?projectId={projectId}` → `PlotLineWorkspace/Index` | `plot-lines-weave.webp` — pending | D02, D03, D04, D06, D07, D51 | Two or three selected lines, shared scene junctions, contribution roles and dashed scene/chapter gaps. |
| D02: A storyline disappears for too long | Plot Lines Workspace (`plot-lines`) | The gap markers make the distance between a line’s recorded contributions easier to judge. | `/PlotLineWorkspace?projectId={projectId}` → `PlotLineWorkspace/Index` | `plot-lines-weave.webp` — pending | D01, D03, D04, D06, D07, D51 | Two or three selected lines, shared scene junctions, contribution roles and dashed scene/chapter gaps. |
| D03: Your storylines don't feel connected | Plot Lines Workspace (`plot-lines`) | Weave puts shared contributions and recorded connections beside the separate lines. | `/PlotLineWorkspace?projectId={projectId}` → `PlotLineWorkspace/Index` | `plot-lines-weave.webp` — pending | D01, D02, D04, D06, D07, D51 | Two or three selected lines, shared scene junctions, contribution roles and dashed scene/chapter gaps. |
| D04: One storyline is taking over the book | Plot Lines Workspace (`plot-lines`) | Compare the line carrying most of the book with the supporting work you still want the others to do. | `/PlotLineWorkspace?projectId={projectId}` → `PlotLineWorkspace/Index` | `plot-lines-weave.webp` — pending | D01, D02, D03, D06, D07, D51 | Two or three selected lines, shared scene junctions, contribution roles and dashed scene/chapter gaps. |
| D05: You're not sure what some scenes are contributing | Timeline · scenes and chapters (`scenes-and-chapters`) | Scene summaries and purpose labels let you compare a passage with the scenes that depend on it. | `/Timeline?projectId={projectId}` → `Timeline/Index` | `timeline-scene-overview.webp` — pending | D10, D11, D12, D33, D34, D35, D36 | Chapter bands and several scene cards with summaries, purpose labels, character chips and POV labels. |
| D06: Your setups and payoffs have become disconnected | Plot Lines Workspace (`plot-lines`) | Following the relevant thread can put preparation and payoff in the same review path. | `/PlotLineWorkspace?projectId={projectId}` → `PlotLineWorkspace/Index` | `plot-lines-weave.webp` — pending | D01, D02, D03, D04, D07, D51 | Two or three selected lines, shared scene junctions, contribution roles and dashed scene/chapter gaps. |
| D07: Things happen, but the story doesn't seem to build | Plot Lines Workspace (`plot-lines`) | Follow the relevant line’s contribution roles and stored dependencies to compare cause with response. | `/PlotLineWorkspace?projectId={projectId}` → `PlotLineWorkspace/Index` | `plot-lines-weave.webp` — pending | D01, D02, D03, D04, D06, D51 | Two or three selected lines, shared scene junctions, contribution roles and dashed scene/chapter gaps. |
| D08: There are too many characters to keep straight | Characters (`characters`) | Character records give names, roles and established details a consistent place to return to. | `/Characters?projectId={projectId}` → `Characters/Index` | `character-records.webp` — pending | D09, D13 | A fictional cast with distinguishable records; an example record can be opened during the later capture session. |
| D09: Some characters may be doing the same job in the story | Characters (`characters`) | Compare the two records and their linked appearances before deciding what each uniquely brings. | `/Characters?projectId={projectId}` → `Characters/Index` | `character-records.webp` — pending | D08, D13 | A fictional cast with distinguishable records; an example record can be opened during the later capture session. |
| D10: An important character disappears for a long stretch | Timeline · character appearances (`characters`) | Scene cards make the appearances surrounding a gap easier to compare in manuscript order. | `/Timeline?projectId={projectId}` → `Timeline/Index` | `timeline-scene-overview.webp` — pending | D05, D11, D12, D33, D34, D35, D36 | The same chapter/scene overview used for structure, with readable character chips and POV labels. |
| D11: Your characters aren't appearing in the proportions you expected | Timeline · character appearances (`characters`) | Character labels on scene cards help you compare actual recorded appearances with the role you want. | `/Timeline?projectId={projectId}` → `Timeline/Index` | `timeline-scene-overview.webp` — pending | D05, D10, D12, D33, D34, D35, D36 | The same chapter/scene overview used for structure, with readable character chips and POV labels. |
| D12: Your points of view are becoming difficult to balance | Timeline · character appearances (`characters`) | POV labels let you follow which narrator carries each stretch of the manuscript. | `/Timeline?projectId={projectId}` → `Timeline/Index` | `timeline-scene-overview.webp` — pending | D05, D10, D11, D33, D34, D35, D36 | The same chapter/scene overview used for structure, with readable character chips and POV labels. |
| D13: A character's details don't stay consistent | Characters (`characters`) | The character record gives you a place to settle the intended fact, then revisit linked scenes. | `/Characters?projectId={projectId}` → `Characters/Index` | `character-records.webp` — pending | D08, D09 | A fictional cast with distinguishable records; an example record can be opened during the later capture session. |
| D14: You're losing track of where your characters are | Timeline (`timeline`) | Scene locations and character labels let you compare the relevant appearances side by side. | `/Timeline?projectId={projectId}` → `Timeline/Index` | `timeline-chronology.webp` — pending | D27, D28, D29, D30, D31, D32, D38 | Departure/arrival or cause/reaction scenes with recorded dates, times, duration and location visible. |
| D15: There are too many character relationships to hold in your head | Relationship Map (`relationships`) | A map externalises the connections so you do not have to hold the whole network in memory. | `/RelationshipMap?projectId={projectId}` → `RelationshipMap/Index` | `relationship-map.webp` — pending | D16, D17, D18, D19, D20 | A small readable network at a named story position, with connection state, direction and selected relationship detail. |
| D16: You're not sure where a relationship has reached | Relationship Map (`relationships`) | Compare the recorded relationship at selected story positions instead of relying on a single overall label. | `/RelationshipMap?projectId={projectId}` → `RelationshipMap/Index` | `relationship-map.webp` — pending | D15, D17, D18, D19, D20 | A small readable network at a named story position, with connection state, direction and selected relationship detail. |
| D17: A relationship changes before it feels earned | Relationship Map (`relationships`) | Review the relationship state at points before and after the change, then return to the scenes between them. | `/RelationshipMap?projectId={projectId}` → `RelationshipMap/Index` | `relationship-map.webp` — pending | D15, D16, D18, D19, D20 | A small readable network at a named story position, with connection state, direction and selected relationship detail. |
| D18: A relationship stops moving for too long | Relationship Map (`relationships`) | Comparing story positions gives you specific encounters to review for development. | `/RelationshipMap?projectId={projectId}` → `RelationshipMap/Index` | `relationship-map.webp` — pending | D15, D16, D17, D19, D20 | A small readable network at a named story position, with connection state, direction and selected relationship detail. |
| D19: Your characters see the same relationship differently | Relationship Map (`relationships`) | Directional relationship records let you compare what each side believes at a chosen position. | `/RelationshipMap?projectId={projectId}` → `RelationshipMap/Index` | `relationship-map.webp` — pending | D15, D16, D17, D18, D20 | A small readable network at a named story position, with connection state, direction and selected relationship detail. |
| D20: One event has changed too many relationships to track easily | Relationship Map (`relationships`) | A network view helps you revisit each affected connection instead of following only the most obvious pair. | `/RelationshipMap?projectId={projectId}` → `RelationshipMap/Index` | `relationship-map.webp` — pending | D15, D16, D17, D18, D19 | A small readable network at a named story position, with connection state, direction and selected relationship detail. |
| D21: A character knows something they haven't learned yet | Character knowledge timeline (`knowledge-and-revelations`) | Follow the character’s knowledge events back to the relevant scenes. | `/Dynamics/Knowledge/{characterId}?projectId={projectId}` → `Dynamics/Knowledge` | `character-knowledge.webp` — pending | D22, D23, D24, D25, D26 | One fictional character’s learning events with book/chapter/scene references, information item and knowledge state. |
| D22: You can't remember how a character learned something | Character knowledge timeline (`knowledge-and-revelations`) | The character’s knowledge timeline gives the learning event a scene reference you can return to. | `/Dynamics/Knowledge/{characterId}?projectId={projectId}` → `Dynamics/Knowledge` | `character-knowledge.webp` — pending | D21, D23, D24, D25, D26 | One fictional character’s learning events with book/chapter/scene references, information item and knowledge state. |
| D23: Different POV characters know different pieces of the story | Character knowledge timeline (`knowledge-and-revelations`) | Review one character’s knowledge timeline, then repeat for the other viewpoints involved. | `/Dynamics/Knowledge/{characterId}?projectId={projectId}` → `Dynamics/Knowledge` | `character-knowledge.webp` — pending | D21, D22, D24, D25, D26 | One fictional character’s learning events with book/chapter/scene references, information item and knowledge state. |
| D24: Your revelations have ended up in the wrong order | Character knowledge timeline (`knowledge-and-revelations`) | Linked knowledge events let you trace a reaction back to the scene that should enable it. | `/Dynamics/Knowledge/{characterId}?projectId={projectId}` → `Dynamics/Knowledge` | `character-knowledge.webp` — pending | D21, D22, D23, D25, D26 | One fictional character’s learning events with book/chapter/scene references, information item and knowledge state. |
| D25: There are too many clues and discoveries to keep straight | Character knowledge timeline (`knowledge-and-revelations`) | Follow the recorded knowledge events for the character investigating the trail. | `/Dynamics/Knowledge/{characterId}?projectId={projectId}` → `Dynamics/Knowledge` | `character-knowledge.webp` — pending | D21, D22, D23, D24, D26 | One fictional character’s learning events with book/chapter/scene references, information item and knowledge state. |
| D26: You're not sure whether a reveal comes too early or too late | Character knowledge timeline (`knowledge-and-revelations`) | Use the linked discovery scenes as reference points, then compare what the prose reveals around them. | `/Dynamics/Knowledge/{characterId}?projectId={projectId}` → `Dynamics/Knowledge` | `character-knowledge.webp` — pending | D21, D22, D23, D24, D25 | One fictional character’s learning events with book/chapter/scene references, information item and knowledge state. |
| D27: Your timeline doesn't add up | Timeline (`timeline`) | Dates and scene references make the conflict concrete enough to compare. | `/Timeline?projectId={projectId}` → `Timeline/Index` | `timeline-chronology.webp` — pending | D14, D28, D29, D30, D31, D32, D38 | Departure/arrival or cause/reaction scenes with recorded dates, times, duration and location visible. |
| D28: The amount of time between events doesn't work | Timeline (`timeline`) | Compare the recorded endpoints and the events that must happen between them. | `/Timeline?projectId={projectId}` → `Timeline/Index` | `timeline-chronology.webp` — pending | D14, D27, D29, D30, D31, D32, D38 | Departure/arrival or cause/reaction scenes with recorded dates, times, duration and location visible. |
| D29: A character's age doesn't match the dates | Timeline (`timeline`) | Put the dated scenes in order, then check their ages against the character’s agreed reference. | `/Timeline?projectId={projectId}` → `Timeline/Index` | `timeline-chronology.webp` — pending | D14, D27, D28, D30, D31, D32, D38 | Departure/arrival or cause/reaction scenes with recorded dates, times, duration and location visible. |
| D30: Your reading order and chronological order are different | Timeline (`timeline`) | Keep the manuscript sequence visible while checking the dates attached to its scenes. | `/Timeline?projectId={projectId}` → `Timeline/Index` | `timeline-chronology.webp` — pending | D14, D27, D28, D29, D31, D32, D38 | Departure/arrival or cause/reaction scenes with recorded dates, times, duration and location visible. |
| D31: Too many things are happening at the same time | Timeline (`timeline`) | Compare the scene dates and times across the people or threads involved. | `/Timeline?projectId={projectId}` → `Timeline/Index` | `timeline-chronology.webp` — pending | D14, D27, D28, D29, D30, D32, D38 | Departure/arrival or cause/reaction scenes with recorded dates, times, duration and location visible. |
| D32: Your fictional timeline has to fit around real dates | Timeline (`timeline`) | Record the fixed date alongside the surrounding fictional scenes. | `/Timeline?projectId={projectId}` → `Timeline/Index` | `timeline-chronology.webp` — pending | D14, D27, D28, D29, D30, D31, D38 | Departure/arrival or cause/reaction scenes with recorded dates, times, duration and location visible. |
| D33: There are too many scenes to see the structure clearly | Timeline · scenes and chapters (`scenes-and-chapters`) | Chapter groups and scene summaries give you a manageable overview before you open the prose. | `/Timeline?projectId={projectId}` → `Timeline/Index` | `timeline-scene-overview.webp` — pending | D05, D10, D11, D12, D34, D35, D36 | Chapter bands and several scene cards with summaries, purpose labels, character chips and POV labels. |
| D34: You don't know where a scene belongs | Timeline · scenes and chapters (`scenes-and-chapters`) | Compare its neighbouring scenes and linked story elements in manuscript order. | `/Timeline?projectId={projectId}` → `Timeline/Index` | `timeline-scene-overview.webp` — pending | D05, D10, D11, D12, D33, D35, D36 | Chapter bands and several scene cards with summaries, purpose labels, character chips and POV labels. |
| D35: Your chapter structure feels uneven | Timeline · scenes and chapters (`scenes-and-chapters`) | Chapter bands make the groups visible alongside the scenes each contains. | `/Timeline?projectId={projectId}` → `Timeline/Index` | `timeline-scene-overview.webp` — pending | D05, D10, D11, D12, D33, D34, D36 | Chapter bands and several scene cards with summaries, purpose labels, character chips and POV labels. |
| D36: Several scenes may be doing the same job | Timeline · scenes and chapters (`scenes-and-chapters`) | Compare their summaries, purposes and linked developments before deciding whether both are needed. | `/Timeline?projectId={projectId}` → `Timeline/Index` | `timeline-scene-overview.webp` — pending | D05, D10, D11, D12, D33, D34, D35 | Chapter bands and several scene cards with summaries, purpose labels, character chips and POV labels. |
| D37: You want to rearrange the story without wrecking it | Scenarios (`scenarios`) | A scenario keeps the proposed order separate while you inspect its consequences. | `/Scenarios?projectId={projectId}` → `Scenarios/Compare` | `scenario-alternatives.webp` — pending | D49 | One named fictional scenario compared with the main order, showing the real changed-scene comparison. Reach it from the scenario list; do not fabricate simultaneous timelines. |
| D38: A character's movement between places doesn't make sense | Timeline (`timeline`) | Compare departure and arrival scenes using their location and timing details. | `/Timeline?projectId={projectId}` → `Timeline/Index` | `timeline-chronology.webp` — pending | D14, D27, D28, D29, D30, D31, D32 | Departure/arrival or cause/reaction scenes with recorded dates, times, duration and location visible. |
| D39: A location has changed without you meaning it to | Locations (`locations`) | Use the place’s description and linked scenes as the starting reference for a manual consistency check. | `/Locations?projectId={projectId}` → `Locations/Details` | `location-reference.webp` — pending | Dedicated context | A fictional place’s description and scene references. Do not imply automatic version history or geometry comparison. |
| D40: You've lost track of an important object | Continuity Explorer · object journey (`important-objects`) | Journey mode keeps asset states attached to the scenes where they are recorded. | `/ContinuityExplorer?projectId={projectId}&mode=Journey&EntityTypes=Assets` → `ContinuityExplorer/Index` | `object-journey.webp` — pending | D41, D42 | Journey mode, Assets selected, a named fictional object and its recorded states across several scenes. |
| D41: A character has an object they shouldn't have | Continuity Explorer · object journey (`important-objects`) | Follow the recorded asset states around the relevant scene range. | `/ContinuityExplorer?projectId={projectId}&mode=Journey&EntityTypes=Assets` → `ContinuityExplorer/Index` | `object-journey.webp` — pending | D40, D42 | Journey mode, Assets selected, a named fictional object and its recorded states across several scenes. |
| D42: An object's history contradicts itself | Continuity Explorer · object journey (`important-objects`) | Journey mode gives the conflicting states scene references you can inspect. | `/ContinuityExplorer?projectId={projectId}&mode=Journey&EntityTypes=Assets` → `ContinuityExplorer/Index` | `object-journey.webp` — pending | D40, D41 | Journey mode, Assets selected, a named fictional object and its recorded states across several scenes. |
| D43: The story seems to stop moving | Timeline · story values (`story-flow`) | Recorded scene values give you positions to compare with the underlying events and consequences. | `/Timeline?projectId={projectId}` → `Timeline/Index` | `timeline-story-values.webp` — pending | D44, D45, D47 | Metric Shape enabled with a readable recorded tension/development value, chapter bands and scene positions. |
| D44: Some parts of the story rush while others drag | Timeline · story values (`story-flow`) | Compare the shape of recorded scene values with the chapter and scene sequence. | `/Timeline?projectId={projectId}` → `Timeline/Index` | `timeline-story-values.webp` — pending | D43, D45, D47 | Metric Shape enabled with a readable recorded tension/development value, chapter bands and scene positions. |
| D45: The tension rises and falls in the wrong places | Timeline · story values (`story-flow`) | A recorded tension value makes rises, drops and clusters concrete enough to inspect. | `/Timeline?projectId={projectId}` → `Timeline/Index` | `timeline-story-values.webp` — pending | D43, D44, D47 | Metric Shape enabled with a readable recorded tension/development value, chapter bands and scene positions. |
| D46: A character's development goes flat | Character arc (`character-development`) | Review the character’s recorded arc and linked story involvement at the points you identified. | `/Dynamics/Character/{characterId}?projectId={projectId}` → `Dynamics/Character` | `character-arc.webp` — pending | Dedicated context | One fictional character’s recorded arc with readable scene references and any configured development values. |
| D47: Too much development is packed into the ending | Timeline · story values (`story-flow`) | Use recorded development values and scene positions to inspect the lead-in to the ending. | `/Timeline?projectId={projectId}` → `Timeline/Index` | `timeline-story-values.webp` — pending | D43, D44, D45 | Metric Shape enabled with a readable recorded tension/development value, chapter bands and scene positions. |
| D48: Every change seems to break something else | Continuity Explorer (`continuity`) | Story-state records and scene references give you a starting point for checking the affected details. | `/ContinuityExplorer?projectId={projectId}` → `ContinuityExplorer/Index` | `continuity-story-state.webp` — pending | Dedicated context | Story State mode at a selected scene with a few readable character/asset/location states and provenance labels. |
| D49: You have more than one possible version of the story | Scenarios (`scenarios`) | Named scenarios keep proposed arrangements separate from the established order. | `/Scenarios?projectId={projectId}` → `Scenarios/Compare` | `scenario-alternatives.webp` — pending | D37 | One named fictional scenario compared with the main order, showing the real changed-scene comparison. Reach it from the scenario list; do not fabricate simultaneous timelines. |
| D50: Your series has become too big to remember reliably | Project · books and series (`books-and-series`) | A shared project keeps the book sequence and routes to common story records together. | `/Projects/Details/{projectId}` → `Projects/Details` | `series-project.webp` — pending | Dedicated context | An ordered fictional multi-book project with book cards and navigation to shared characters, story bible and plot lines. |
| D51: A storyline stretches across several books | Plot Lines Workspace (`plot-lines`) | Use the workspace’s book scope to follow the same line across the series or within one book. | `/PlotLineWorkspace?projectId={projectId}` → `PlotLineWorkspace/Index` | `plot-lines-weave.webp` — pending | D01, D02, D03, D04, D06, D07 | Two or three selected lines, shared scene junctions, contribution roles and dashed scene/chapter gaps. |
| D52: Your novel has become too much to hold in your head | Story Bible (`story-organisation`) | A searchable story bible provides one place to find the records you keep reconstructing from separate notes. | `/StoryBible?projectId={projectId}` → `StoryBible/Index` | `story-bible.webp` — pending | Dedicated context | A fictional project’s searchable story bible with a few related records and meaningful links to their source views. |
## Asset library
- `plot-lines-weave.webp`: D01, D02, D03, D04, D06, D07, D51.
- `timeline-scene-overview.webp`: D05, D10, D11, D12, D33, D34, D35, D36.
- `character-records.webp`: D08, D09, D13.
- `timeline-chronology.webp`: D14, D27, D28, D29, D30, D31, D32, D38.
- `relationship-map.webp`: D15, D16, D17, D18, D19, D20.
- `character-knowledge.webp`: D21, D22, D23, D24, D25, D26.
- `scenario-alternatives.webp`: D37, D49.
- `location-reference.webp`: D39.
- `object-journey.webp`: D40, D41, D42.
- `timeline-story-values.webp`: D43, D44, D45, D47.
- `character-arc.webp`: D46.
- `continuity-story-state.webp`: D48.
- `series-project.webp`: D50.
- `story-bible.webp`: D52.

Binary file not shown.

After

Width:  |  Height:  |  Size: 936 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@ -0,0 +1,33 @@
# Development result-page comparisons
Actual anonymous Development journeys at 1440 × 1100. Captures show the top of each result so its initial hierarchy can be compared at the same viewport. These verification screenshots are not marketing assets and are not used in the result screenshot component. The new visual component intentionally reserves a place for a later real application capture.
## Plot Lines — storyline balance (case 3)
Before:
![Before: storyline balance](Screenshots/before-case-3.png)
After:
![After: storyline balance](Screenshots/after-case-3.png)
## Timeline — conflicting dates (case 25)
Before:
![Before: conflicting dates](Screenshots/before-case-25.png)
After:
![After: conflicting dates](Screenshots/after-case-25.png)
## Relationships — unearned change (case 15)
Before:
![Before: unearned change](Screenshots/before-case-15.png)
After:
![After: unearned change](Screenshots/after-case-15.png)

View File

@ -0,0 +1,3 @@
Validation: ; states 85140; nodes 152/152; solutions 52; primary 52
Acceptance 60/60; prefixes 291/291
PASS Stage 1 full traversal, reviewed 60 paths/prefixes, intentional outcomes and revision

View File

@ -0,0 +1,387 @@
PASS Stage 1 preserves all 60 strict conversations, corroboration, intent, reachability and adoption
PASS Stage 1 evidence gates, required follow-ups, bounded multi-select and neutral choices are enforced
PASS Neutral endpoints require explicit valid terminal declarations
PASS Neutral reassurance follows selected concerns without evidence and survives revision
PASS Scene navigation does not invent purpose evidence; genuine D05 witnesses survive
PASS D50 requires actual series evidence and preserves D50/D51 witnesses
PASS Curated V2 preserves 60 literal paths and enforces eight explicit Development review exceptions
PASS Curated V2 exhausts real-engine states and preserves revision/multi-select behaviour
PASS Curated V2 passes normal validation and invalid publication stays guarded
PASS Writing Solver anonymous state is protected, expires and rejects stale versions
PASS Writing Solver scoring, multi-select, revision, fallback and graph routes
PASS Writing Solver import rejects invalid graphs and editorial identities
PASS Ribbon operation identity and semantic icons stay consistent
PASS Subscription entitlement evaluates trials, paid access, overrides and real plan limits
PASS Subscription enforcement is concurrent, audited and admin-authorised
PASS Plot Health stays scene-based with 12,000 contributions
PASS Plot Health preserves Discovery planning and boundary contradictions
PASS Plot Health separates stored status and meaningful-progress clocks
PASS Plot Health explains question, payoff, closure and boundary evidence
PASS Plot Health evaluates explicit targets and scoped line rollups
PASS Plot Health respects scenario coverage and ordered chapter identities
PASS Plot Lines Focus and Weave preserve gaps and shared-scene identity
PASS Plot Lines thread, enrichment and Timeline inspector contracts hold
PASS Plot Lines composition remains bounded with a large generated weave
PASS Exception review uses evidence, identity, consequence and directional conflicts
PASS Exception assessment preserves author decisions and scene history
PASS Character card widths reflect displayed text without changing character data
PASS Relationships workspace large cast, temporal states and canonical edits
PASS Scene relationship proposals preserve direction and validate acceptance
PASS Location and asset merges require confirmation and distinct records
PASS Location persisted analysis preserves contextual bedrooms and setting provenance
PASS Location consequence outranks capped recurrence
PASS Location scene significance is attributed only to actual settings
PASS Location significance preserves hierarchy and independent uncertainty
PASS Character profile age uses canonical reference chronology
PASS Character detail and date-only save retain canonical DOB
PASS Story Point presence, previous appearances and age cross book boundaries
PASS Story Point knowledge stops at selected narrative position
PASS Story Point relationships and independent asset state are historical
PASS Story Point threads and continuity warnings respect future evidence
PASS Story Point ownership, AJAX and bounded batch loading require no AI
PASS Story Point narrative tie breakers match canonical order
PASS Malformed confidence 0. is repaired to 0.0
PASS Markdown fences are stripped
PASS Unescaped backslash in evidence is repaired
PASS Truncated JSON is rejected
PASS Repaired JSON deserialises into SceneIntelligenceScene
PASS Chapter Structure confidence 0. repairs and deserialises
PASS Chapter Structure confidence 0. 8 repairs and deserialises
PASS Chapter Structure confidence 7 .5 repairs when unambiguous
PASS JSON repair leaves decimal-looking prose unchanged
PASS Chapter Structure semantic validation still rejects out-of-range repaired confidence
PASS Structural scene detection parser failure uses friendly diagnostics and retry
PASS Chapter Structure boundary normaliser repairs gaps and overlaps
PASS Chapter Structure boundary normaliser preserves valid coverage
PASS Chapter Structure boundary normaliser handles terminal ghost paragraph
PASS Chapter Structure boundary normaliser discards multiple terminal ghost paragraphs
PASS Chapter Structure boundary normaliser replays full book terminal empty failure
PASS Chapter Structure boundary normaliser keeps meaningful end overflow repair
PASS Chapter Structure boundary normaliser preserves genuine inverted ranges for validation
PASS Structural Word mapping uses paragraph map as authoritative text
PASS Structural Word mapping includes filtered Word paragraphs in source coverage
PASS Structural Word mapping fails precisely when map metadata is incomplete
PASS Structural Word mapping keeps trailing empty normalisation mapped
PASS Shared parser reports raw chapter output on unrecoverable JSON
PASS Character filtering rejects generic groups
PASS Character filtering preserves titled names
PASS Location filtering rejects merged phrases
PASS Location filtering preserves story locations
PASS Location canonical keys merge trivial variants
PASS Location contextual names use POV and structural setting
PASS Location canonical keys merge punctuation and safe plurals
PASS Location candidate consolidation handles generic review variants
PASS Location candidate identity is parent-aware for generic sub-locations
PASS Locations page uses hierarchical sort order
PASS Location review UX supports large candidate sets
PASS Story Intelligence auto resolves exact known locations before review
PASS Story Intelligence location review uses single identity decision
PASS Asset filtering rejects generic objects
PASS Asset filtering preserves story assets
PASS Asset canonical keys merge trivial variants
PASS Asset canonical keys merge contextual vehicle variants
PASS Asset canonical keys keep unrelated owned cars distinct
PASS Asset candidate keys attach unique unowned variants
PASS Asset filtering rejects relationship facts
PASS Asset contextual names resolve POV ownership
PASS Asset structural phrases trim neighbouring nouns
PASS Asset significance is generic and not fixture-specific
PASS Story Intelligence asset review applies current identity rules
PASS Relationship review requires pair evidence and distinguishes social types
PASS Relationship signals map to broad lookup types
PASS Relationship signals infer friendship without romance
PASS Relationship events preserve chronological story order
PASS Relationship progression keeps chronological state
PASS Relationship observations do not create event spam
PASS Relationship review orders by first story appearance
PASS Relationship evidence priority preserves explicit semantics
PASS Relationship evidence handles retained hostile and incidental examples
PASS Knowledge signals map to existing knowledge states
PASS Knowledge recipient resolves narrator through POV
PASS Knowledge identity reveal preserves subjective timing
PASS Knowledge duplicate statements share canonical keys
PASS Knowledge suspicion and certainty remain distinct
PASS Illustration prompt builder separates spec and prompt
PASS Illustration prompt builder uses realistic image direction
PASS Illustration specification validation catches missing typed fields
PASS Illustration category validation rejects unknown values
PASS Illustration status transitions protect approval flow
PASS Illustration status transitions support archive flow
PASS Illustration metadata flags fallback location labels
PASS Illustration location matching rejects vehicle living room reuse
PASS Illustration automatic generation policy blocks vague fallbacks
PASS Story Memory import image generation defaults are safe
PASS Illustration storage codes are normalised safely
PASS Illustration starter batch has required category counts
PASS Illustration starter generation plan skips successful items
PASS Story Intelligence visualisation archive is preserved
PASS Story Intelligence visualisation runtime is removed
PASS Story Intelligence does not retry exhausted billing quota
PASS Illustration bulk retry result reports counts
PASS Illustration bulk retry skips blocking duplicate stable codes
PASS Illustration provider reports missing image model
PASS Illustration provider omits GPT image response format
PASS Illustration matching rejects adult masculine unknown art for Beth
PASS Illustration matching treats Mrs title as hard feminine evidence
PASS Illustration matching infers mother and aunt as mature feminine
PASS Illustration matching rejects duplicate named portrait allocation
PASS Illustration semantic types prevent bathroom office and ambulance car mismatches
PASS Illustration demand archetypes stay broad and use active template
PASS Story Intelligence evidence extraction prevents observed attribute leakage
PASS Story Intelligence scene call uses strict structured output
PASS Story Intelligence scene schema constrains confidence numbers
PASS Story Intelligence scene schema constrains evidence strings
PASS Story Intelligence temporal resolves chapter anchor and afternoon
PASS Story Intelligence temporal rolls over after midnight
PASS Story Intelligence temporal resolves following morning
PASS Story Intelligence temporal resolves exact day offsets
PASS Story Intelligence temporal resolves following weekday
PASS Story Intelligence temporal resolves evening clock time
PASS Story Intelligence temporal rejects unanchored clock time
PASS Story Intelligence temporal preserves yearless calendar date clues
PASS Story Intelligence temporal resolves yearless calendar dates from context
PASS Story Intelligence temporal inherits previous morning when extraction is empty
PASS Story Intelligence temporal inherits previous evening when extraction is empty
PASS Story Intelligence temporal inherits previous night when extraction is empty
PASS Story Intelligence temporal inherits after midnight advancement
PASS Story Intelligence temporal inherits chapter anchor when extraction is empty
PASS Story Intelligence temporal stays unknown without context or extraction
PASS Story Intelligence temporal explicit date overrides previous context
PASS Story Intelligence temporal preserves vague few days
PASS Core import applies structural chronology to canonical scenes
PASS Story Intelligence temporal importer preserves manual chronology
PASS Story Intelligence temporal materialisation saves canonical chronology
PASS Story Intelligence temporal malformed values are discarded
PASS Story Calendar places dated scenes on Monday-first month grid
PASS Story Calendar separates unplaced scenes without guessing
PASS Story Calendar book filter and all books scope work
PASS Story Calendar month navigation uses story dates across years
PASS Story Calendar month dropdown follows displayed month
PASS Story Calendar handles no dated scenes
PASS Story Calendar day details endpoint returns partial
PASS Story Calendar day details endpoint respects book filter
PASS Story Calendar day details endpoint handles empty story date
PASS Story Calendar day details endpoint rejects invalid project
PASS Story Calendar index returns surface partial for AJAX
PASS Story Calendar day selection uses progressive AJAX hooks
PASS Story Intelligence structured metric values validate and import
PASS Story Intelligence structured schema covers complete response model
PASS Story Intelligence structured schema remains fixture agnostic
PASS Illustration assignment repair enforces explicit evidence groups and strict subtypes
PASS Lean import removes replay links while retaining progress
PASS Story Intelligence progress does not prematurely report safe close
PASS Structural import creates scenes before Word sync
PASS Structural import creates first scene without placeholder
PASS Structural import persists paragraph mapping and source text
PASS Structural import persists canonical scene source text
PASS Structural import adds summaries without extra scene AI calls
PASS Core import scan stage defers scenes and characters
PASS Core import basic location detector is conservative
PASS Core import basic location detector consolidates and skips existing matches
PASS Core import basic location detector supports pending parent candidates
PASS Core import character discovery protects accepted locations
PASS Core import gates characters behind basic location review
PASS Core import hides exact existing character names from review
PASS Core import hides exact existing character aliases from review
PASS Core import keeps suspected unknown aliases in review
PASS Core import keeps ambiguous existing character matches in review
PASS Core import keeps new characters in review
PASS Core import auto resolved character evidence is preserved
PASS Core import character evidence is candidate specific
PASS Core import deterministically maps known characters
PASS Core import wizard orders scenes before characters
PASS Core import remaps characters after review
PASS Scan review separates known matches from unresolved names
PASS Story Intelligence uses persisted scene source after restart
PASS Story Intelligence canonical mode bypasses duplicate boundary analysis
PASS Story Intelligence progress uses canonical scene summaries
PASS Story Intelligence downstream imports prefer canonical SceneIDs
PASS Story Intelligence scene prompt no longer asks for duplicate factual summary
PASS Story Intelligence review uses canonical structural summaries and counts
PASS Story Intelligence review centre completion is category scoped
PASS Word sync requires save acknowledgement
PASS Word sync retry resumes existing structure
PASS Story Intelligence enriches existing structural scenes
PASS Core import scene titles ride existing structural AI call
PASS Core import scene title preference is review scoped
PASS Core import scene title preference moved to Detect Scenes
PASS Core import Review Chapters is compact and chapter only
PASS Core import Detect Scenes is compact and owns title option
PASS Book context is canonical import metadata
PASS Names defaults from selected book context
PASS Story Intelligence starts from core import complete
PASS Generated scene titles persist with provenance
PASS Scene title display keeps scene numbers visible
PASS Manuscript text statistics handles pure prose
PASS Manuscript text statistics handles pure dialogue
PASS Manuscript text statistics splits narrative before dialogue
PASS Manuscript text statistics splits dialogue before narrative
PASS Manuscript text statistics handles multiple dialogue passages
PASS Manuscript text statistics supports smart quotes
PASS Manuscript text statistics supports straight quotes
PASS Manuscript text statistics carries multi-paragraph dialogue
PASS Manuscript text statistics returns to prose after continued dialogue
PASS Manuscript text statistics ignores empty paragraphs
PASS Manuscript text statistics reconciles scene totals
PASS Manuscript text statistics aggregates chapter scenes
PASS Manuscript text statistics recalculates existing scene sources
PASS Manuscript text statistics does not invoke AI
PASS Phase 21T repairs durable character understanding
PASS Phase 21U extracts mandatory character appearance fixtures
PASS Character sex hints are conservative and reviewable
PASS Character discovery does not truncate scan review candidates
PASS Character discovery rejects sentence-start words
PASS Character discovery rejects fragments and location names
PASS Manuscript scan preview keeps only auto-selected character candidates
PASS Word Companion scan completion uses chunked transport
PASS Word Companion scan chunks assemble full novel payloads
PASS Word Companion scan chunks reject partial and conflicting payloads
PASS Onboarding wizard keeps character pages inside one main step
PASS Scan review aliases feed Story Intelligence known character context
PASS Name Intelligence package contract is present
PASS Name Intelligence reference data is copied on publish
PASS Name Intelligence repository uses stored procedures
PASS Name Intelligence review warning is wired
PASS Name Intelligence library defaults to all locales
PASS Story Intelligence new-format context uses canonical characters
PASS Story Intelligence character defaults link proposed existing matches
PASS Story Intelligence character defaults ignore generic references
PASS Story Intelligence character defaults keep descriptive identities
PASS Story Intelligence character review uses single identity decision
PASS Story Intelligence auto resolves exact known identities before review
PASS Story Intelligence character matching keeps ambiguous known names visible
PASS Story Intelligence descriptive references consolidate articles
PASS Story Intelligence review omits character metrics dashboard
PASS Story Intelligence resumed chapters use canonical labels
PASS Story Intelligence character review posts selected existing match
PASS Story Intelligence character default changes preserve persisted results
PASS Structural POV rides existing chapter analysis
PASS Structural POV persists through import resolution
PASS Chapter POV derives from canonical scenes
PASS Permanent Analyse My Book starts from saved book
PASS Story Intelligence canonical context carries provenance
PASS Scene prompt protects canonical scene context
PASS Structural setting rides existing chapter analysis
PASS Explicit narrator labels detect deterministic POV
PASS AI POV JSON parses into structural models
PASS Post character review resolves persisted structural POV
PASS Normal scene and chapter saves persist POV
PASS Character merge is a reusable stored procedure workflow
PASS Story Intelligence character review suppresses resolved narrator POV
PASS Story Intelligence character review reuses structured appearance aliases
PASS Entity preferred names are peer aliases
PASS Story Intelligence review evidence includes chapter scene labels
PASS Story Intelligence import enables project metric defaults before save
PASS Project metrics add defaults backfills scene values
PASS Story Intelligence scene prompt uses configured metrics
PASS Story Intelligence scene prompt uses scene characters terminology
PASS Story Intelligence downstream imports support canonical scene results
PASS Story Intelligence runner supplies metrics and Plot Lines
PASS Story Intelligence metric persistence uses configured keys
PASS Story Intelligence stabilisation gate materialises strict and legacy metrics
PASS Story Intelligence modern materialisation owns finalisation boundary
PASS Story Intelligence narrative materialisation reads strict scene results
PASS Story Intelligence stabilisation routes normal users to book
PASS Story Intelligence narrative candidates require review
PASS Story Intelligence discovers Plot Lines without preconfiguration
PASS Story Intelligence matches existing Plot Lines without duplicates
PASS Narrative research prototype fixture builds hierarchy
PASS Narrative sibling hotel fixture generalises hierarchy
PASS Narrative trivial one-scene question is suppressed
PASS Narrative short significant thread survives
PASS Narrative semantic evolution consolidates by continuity
PASS Narrative existing thread matching is supported
PASS Narrative candidate merge and parent fields are persisted
PASS Narrative prompt uses one scene call with compact schema
PASS Narrative production code remains fixture agnostic
PASS Whole-book Plot Intelligence prompt carries full manuscript context
PASS Whole-book Plot Intelligence schema requires timeline event types
PASS Whole-book Plot Intelligence author seed inputs persist safely
PASS Whole-book Plot Intelligence structured author seed match survives
PASS Whole-book Plot Intelligence unmatched seeds become review candidates
PASS Whole-book Plot Intelligence uses dedicated output token headroom
PASS Story Intelligence narrative review displays author seed provenance
PASS Story Intelligence narrative review avoids raw author-facing IDs
PASS Story Intelligence author seed decisions are preserved
PASS Whole-book Plot Intelligence production code remains fixture agnostic
PASS Story Intelligence narrative review creates canonical records via existing procs
PASS Story Intelligence narrative stage follows knowledge
PASS Word Companion replays live current scene to writing panes
PASS Scan review post supports full-book form submissions
PASS StoryPosition rejects incomplete or invalid runtime scene positions
PASS StoryPosition builds canonical runtime scene navigation
PASS StoryPosition derives canonical scene context identity
PASS Writing Context route uses canonical story context service
PASS Writing Context client follows canonical story position events
PASS Writing Context preserves selected tab and avoids event loops
PASS Writing Intent route uses canonical story context and planning data
PASS Writing Intent client uses shared writing follow helper
PASS Obsolete global Word navigation is removed while writing windows remain live
PASS Appearance preferences and ribbon destinations
PASS Toolbar preferences, authorisation and contextual routes
PASS Application navigation resolves authorised project and book context
PASS Writing pair shares canonical follow infrastructure
PASS Writing workspace presence scopes browser windows
PASS Writing workspace client uses session window identity and stable names
PASS Writing workspace launcher uses progressive screen placement
PASS Writing workspace pages register roles without changing follow behavior
PASS Word Companion exposes writing workspace launch actions
PASS Word Companion writing screens receive resolved context identifiers
PASS Word Companion canonical markers drive runtime follow
PASS Word Companion runtime follows multiple imported scene anchors
PASS Word Companion existing project book linking remains available
PASS Word Companion document identity survives reconnect
PASS Word Companion multiscreen launch and follow remain reachable
PASS Word Companion modes remain distinct
PASS Writing pages do not require Story Intelligence
PASS Word Companion host script has valid tab mapping
PASS Writing screens show diagnostic empty states
PASS Word Companion three-screen flow logs connection identifiers
PASS Admin Story Intelligence reset returns to diagnostics with messages
PASS Project hard delete clears Story Intelligence dependencies in transaction
PASS Permanent project delete keeps archive and name safety gates
PASS Word manuscript cleanup classifies PlotDirector markers by tag only
PASS Word manuscript cleanup preserves content controls content
PASS Word manuscript cleanup UI separates unlink from clean unlink
PASS Word manuscript unlink keeps Story Intelligence data untouched
PASS Word manuscript cleanup remains relinkable and idempotent
PASS Story Intelligence Review Centre route replaces linear review resume
PASS Story Intelligence obsolete create scene workflow is removed
PASS Story Intelligence Review Centre counts only needs-attention categories
PASS Story Intelligence Review Centre uses independent tile grid
PASS Story Intelligence Review Centre opens with character gate
PASS Story Intelligence review modules are independent after character gate
PASS Story Intelligence review module completion is durable and independent
PASS Story Intelligence review module pages omit wizard chrome
PASS Story Intelligence downstream review uses completed scene analysis
PASS Story Intelligence review posts do not use success interstitials
PASS Story Intelligence legacy review completion routes are deleted
PASS Story Intelligence review forms share busy submit guard
PASS Story Intelligence heavy review modules offer bounded rendering
PASS Story Intelligence Review Centre adds no AI calls
PASS Story Intelligence Review Centre uses bounded summary query
PASS Story Intelligence character review queues enrichment beside plot synthesis
PASS Story Intelligence character enrichment uses persisted SignalR progress
PASS Story Intelligence character enrichment preserves author fields
PASS Story Intelligence character enrichment batches by prompt size
PASS Story Intelligence character enrichment promotes structured facts
PASS Character detail can queue single-character enrichment
PASS Single-character enrichment is persisted and duplicate safe
PASS Character detail enrichment status uses scoped SignalR
PASS Story Intelligence detailed review GETs use selected module paths
PASS Story Intelligence completed Character review remains inspectable
PASS Story Intelligence Review Centre completed modules use canonical destinations
PASS Story Intelligence detailed reviews read persisted candidate pages
PASS Story Intelligence module completion lifecycle uses persisted candidates
PASS Story Intelligence Job 6 uses bounded concurrent chapter execution
PASS Story Intelligence global progress uses whole run scene totals
PASS Story Intelligence recovered provider failures stay operational
PASS Story Intelligence recovered JSON repair stays operational
PASS Story Intelligence terminal failures remain user visible
PASS Story Intelligence global banner remains visible through finalising gaps
PASS Story Intelligence global banner rejects stale live snapshots
PASS Story Intelligence live global progress publishes authoritative scene aggregates
PASS Story Intelligence global progress survives initial SignalR start races
PASS Story Intelligence scene analysis completion barrier releases review
PASS Story Intelligence active progress only appears in global strip
PASS Story Intelligence book actions do not open review centre while running

View File

@ -0,0 +1 @@
PASS result presentation: Plot Lines, timeline/continuity, relationships, scene/chapter, series, knowledge and character arc; evidence variants; optional secondary/article; explicit missing visuals; no article dump; reassurance/insufficient evidence; no-JS; 390/1440px; Back/Forward/Restart; public theme and noindex; signed-out tour CTA; signed-in authorised project/character selector and real workspace redirects.

View File

@ -0,0 +1,11 @@
Determining projects to restore...
All projects are up-to-date for restore.
PlotLine -> /srv/repos/PlotDirector/PlotLine/bin/Debug/net10.0/PlotLine.dll
WritingSolver -> /srv/repos/PlotDirector/Tools/WritingSolver/bin/Debug/net10.0/WritingSolver.dll
PlotLine.Tests -> /srv/repos/PlotDirector/PlotLine.Tests/bin/Debug/net10.0/PlotLine.Tests.dll
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:03.57

View File

@ -0,0 +1,390 @@
PASS Solver result evidence covers all reachable diagnoses without changing Stage 1 semantics
PASS Solver result copy follows actual answers, intention, variants and revision
PASS Solver workspace CTAs resolve authorised project/character context and real routes
PASS Stage 1 preserves all 60 strict conversations, corroboration, intent, reachability and adoption
PASS Stage 1 evidence gates, required follow-ups, bounded multi-select and neutral choices are enforced
PASS Neutral endpoints require explicit valid terminal declarations
PASS Neutral reassurance follows selected concerns without evidence and survives revision
PASS Scene navigation does not invent purpose evidence; genuine D05 witnesses survive
PASS D50 requires actual series evidence and preserves D50/D51 witnesses
PASS Curated V2 preserves 60 literal paths and enforces eight explicit Development review exceptions
PASS Curated V2 exhausts real-engine states and preserves revision/multi-select behaviour
PASS Curated V2 passes normal validation and invalid publication stays guarded
PASS Writing Solver anonymous state is protected, expires and rejects stale versions
PASS Writing Solver scoring, multi-select, revision, fallback and graph routes
PASS Writing Solver import rejects invalid graphs and editorial identities
PASS Ribbon operation identity and semantic icons stay consistent
PASS Subscription entitlement evaluates trials, paid access, overrides and real plan limits
PASS Subscription enforcement is concurrent, audited and admin-authorised
PASS Plot Health stays scene-based with 12,000 contributions
PASS Plot Health preserves Discovery planning and boundary contradictions
PASS Plot Health separates stored status and meaningful-progress clocks
PASS Plot Health explains question, payoff, closure and boundary evidence
PASS Plot Health evaluates explicit targets and scoped line rollups
PASS Plot Health respects scenario coverage and ordered chapter identities
PASS Plot Lines Focus and Weave preserve gaps and shared-scene identity
PASS Plot Lines thread, enrichment and Timeline inspector contracts hold
PASS Plot Lines composition remains bounded with a large generated weave
PASS Exception review uses evidence, identity, consequence and directional conflicts
PASS Exception assessment preserves author decisions and scene history
PASS Character card widths reflect displayed text without changing character data
PASS Relationships workspace large cast, temporal states and canonical edits
PASS Scene relationship proposals preserve direction and validate acceptance
PASS Location and asset merges require confirmation and distinct records
PASS Location persisted analysis preserves contextual bedrooms and setting provenance
PASS Location consequence outranks capped recurrence
PASS Location scene significance is attributed only to actual settings
PASS Location significance preserves hierarchy and independent uncertainty
PASS Character profile age uses canonical reference chronology
PASS Character detail and date-only save retain canonical DOB
PASS Story Point presence, previous appearances and age cross book boundaries
PASS Story Point knowledge stops at selected narrative position
PASS Story Point relationships and independent asset state are historical
PASS Story Point threads and continuity warnings respect future evidence
PASS Story Point ownership, AJAX and bounded batch loading require no AI
PASS Story Point narrative tie breakers match canonical order
PASS Malformed confidence 0. is repaired to 0.0
PASS Markdown fences are stripped
PASS Unescaped backslash in evidence is repaired
PASS Truncated JSON is rejected
PASS Repaired JSON deserialises into SceneIntelligenceScene
PASS Chapter Structure confidence 0. repairs and deserialises
PASS Chapter Structure confidence 0. 8 repairs and deserialises
PASS Chapter Structure confidence 7 .5 repairs when unambiguous
PASS JSON repair leaves decimal-looking prose unchanged
PASS Chapter Structure semantic validation still rejects out-of-range repaired confidence
PASS Structural scene detection parser failure uses friendly diagnostics and retry
PASS Chapter Structure boundary normaliser repairs gaps and overlaps
PASS Chapter Structure boundary normaliser preserves valid coverage
PASS Chapter Structure boundary normaliser handles terminal ghost paragraph
PASS Chapter Structure boundary normaliser discards multiple terminal ghost paragraphs
PASS Chapter Structure boundary normaliser replays full book terminal empty failure
PASS Chapter Structure boundary normaliser keeps meaningful end overflow repair
PASS Chapter Structure boundary normaliser preserves genuine inverted ranges for validation
PASS Structural Word mapping uses paragraph map as authoritative text
PASS Structural Word mapping includes filtered Word paragraphs in source coverage
PASS Structural Word mapping fails precisely when map metadata is incomplete
PASS Structural Word mapping keeps trailing empty normalisation mapped
PASS Shared parser reports raw chapter output on unrecoverable JSON
PASS Character filtering rejects generic groups
PASS Character filtering preserves titled names
PASS Location filtering rejects merged phrases
PASS Location filtering preserves story locations
PASS Location canonical keys merge trivial variants
PASS Location contextual names use POV and structural setting
PASS Location canonical keys merge punctuation and safe plurals
PASS Location candidate consolidation handles generic review variants
PASS Location candidate identity is parent-aware for generic sub-locations
PASS Locations page uses hierarchical sort order
PASS Location review UX supports large candidate sets
PASS Story Intelligence auto resolves exact known locations before review
PASS Story Intelligence location review uses single identity decision
PASS Asset filtering rejects generic objects
PASS Asset filtering preserves story assets
PASS Asset canonical keys merge trivial variants
PASS Asset canonical keys merge contextual vehicle variants
PASS Asset canonical keys keep unrelated owned cars distinct
PASS Asset candidate keys attach unique unowned variants
PASS Asset filtering rejects relationship facts
PASS Asset contextual names resolve POV ownership
PASS Asset structural phrases trim neighbouring nouns
PASS Asset significance is generic and not fixture-specific
PASS Story Intelligence asset review applies current identity rules
PASS Relationship review requires pair evidence and distinguishes social types
PASS Relationship signals map to broad lookup types
PASS Relationship signals infer friendship without romance
PASS Relationship events preserve chronological story order
PASS Relationship progression keeps chronological state
PASS Relationship observations do not create event spam
PASS Relationship review orders by first story appearance
PASS Relationship evidence priority preserves explicit semantics
PASS Relationship evidence handles retained hostile and incidental examples
PASS Knowledge signals map to existing knowledge states
PASS Knowledge recipient resolves narrator through POV
PASS Knowledge identity reveal preserves subjective timing
PASS Knowledge duplicate statements share canonical keys
PASS Knowledge suspicion and certainty remain distinct
PASS Illustration prompt builder separates spec and prompt
PASS Illustration prompt builder uses realistic image direction
PASS Illustration specification validation catches missing typed fields
PASS Illustration category validation rejects unknown values
PASS Illustration status transitions protect approval flow
PASS Illustration status transitions support archive flow
PASS Illustration metadata flags fallback location labels
PASS Illustration location matching rejects vehicle living room reuse
PASS Illustration automatic generation policy blocks vague fallbacks
PASS Story Memory import image generation defaults are safe
PASS Illustration storage codes are normalised safely
PASS Illustration starter batch has required category counts
PASS Illustration starter generation plan skips successful items
PASS Story Intelligence visualisation archive is preserved
PASS Story Intelligence visualisation runtime is removed
PASS Story Intelligence does not retry exhausted billing quota
PASS Illustration bulk retry result reports counts
PASS Illustration bulk retry skips blocking duplicate stable codes
PASS Illustration provider reports missing image model
PASS Illustration provider omits GPT image response format
PASS Illustration matching rejects adult masculine unknown art for Beth
PASS Illustration matching treats Mrs title as hard feminine evidence
PASS Illustration matching infers mother and aunt as mature feminine
PASS Illustration matching rejects duplicate named portrait allocation
PASS Illustration semantic types prevent bathroom office and ambulance car mismatches
PASS Illustration demand archetypes stay broad and use active template
PASS Story Intelligence evidence extraction prevents observed attribute leakage
PASS Story Intelligence scene call uses strict structured output
PASS Story Intelligence scene schema constrains confidence numbers
PASS Story Intelligence scene schema constrains evidence strings
PASS Story Intelligence temporal resolves chapter anchor and afternoon
PASS Story Intelligence temporal rolls over after midnight
PASS Story Intelligence temporal resolves following morning
PASS Story Intelligence temporal resolves exact day offsets
PASS Story Intelligence temporal resolves following weekday
PASS Story Intelligence temporal resolves evening clock time
PASS Story Intelligence temporal rejects unanchored clock time
PASS Story Intelligence temporal preserves yearless calendar date clues
PASS Story Intelligence temporal resolves yearless calendar dates from context
PASS Story Intelligence temporal inherits previous morning when extraction is empty
PASS Story Intelligence temporal inherits previous evening when extraction is empty
PASS Story Intelligence temporal inherits previous night when extraction is empty
PASS Story Intelligence temporal inherits after midnight advancement
PASS Story Intelligence temporal inherits chapter anchor when extraction is empty
PASS Story Intelligence temporal stays unknown without context or extraction
PASS Story Intelligence temporal explicit date overrides previous context
PASS Story Intelligence temporal preserves vague few days
PASS Core import applies structural chronology to canonical scenes
PASS Story Intelligence temporal importer preserves manual chronology
PASS Story Intelligence temporal materialisation saves canonical chronology
PASS Story Intelligence temporal malformed values are discarded
PASS Story Calendar places dated scenes on Monday-first month grid
PASS Story Calendar separates unplaced scenes without guessing
PASS Story Calendar book filter and all books scope work
PASS Story Calendar month navigation uses story dates across years
PASS Story Calendar month dropdown follows displayed month
PASS Story Calendar handles no dated scenes
PASS Story Calendar day details endpoint returns partial
PASS Story Calendar day details endpoint respects book filter
PASS Story Calendar day details endpoint handles empty story date
PASS Story Calendar day details endpoint rejects invalid project
PASS Story Calendar index returns surface partial for AJAX
PASS Story Calendar day selection uses progressive AJAX hooks
PASS Story Intelligence structured metric values validate and import
PASS Story Intelligence structured schema covers complete response model
PASS Story Intelligence structured schema remains fixture agnostic
PASS Illustration assignment repair enforces explicit evidence groups and strict subtypes
PASS Lean import removes replay links while retaining progress
PASS Story Intelligence progress does not prematurely report safe close
PASS Structural import creates scenes before Word sync
PASS Structural import creates first scene without placeholder
PASS Structural import persists paragraph mapping and source text
PASS Structural import persists canonical scene source text
PASS Structural import adds summaries without extra scene AI calls
PASS Core import scan stage defers scenes and characters
PASS Core import basic location detector is conservative
PASS Core import basic location detector consolidates and skips existing matches
PASS Core import basic location detector supports pending parent candidates
PASS Core import character discovery protects accepted locations
PASS Core import gates characters behind basic location review
PASS Core import hides exact existing character names from review
PASS Core import hides exact existing character aliases from review
PASS Core import keeps suspected unknown aliases in review
PASS Core import keeps ambiguous existing character matches in review
PASS Core import keeps new characters in review
PASS Core import auto resolved character evidence is preserved
PASS Core import character evidence is candidate specific
PASS Core import deterministically maps known characters
PASS Core import wizard orders scenes before characters
PASS Core import remaps characters after review
PASS Scan review separates known matches from unresolved names
PASS Story Intelligence uses persisted scene source after restart
PASS Story Intelligence canonical mode bypasses duplicate boundary analysis
PASS Story Intelligence progress uses canonical scene summaries
PASS Story Intelligence downstream imports prefer canonical SceneIDs
PASS Story Intelligence scene prompt no longer asks for duplicate factual summary
PASS Story Intelligence review uses canonical structural summaries and counts
PASS Story Intelligence review centre completion is category scoped
PASS Word sync requires save acknowledgement
PASS Word sync retry resumes existing structure
PASS Story Intelligence enriches existing structural scenes
PASS Core import scene titles ride existing structural AI call
PASS Core import scene title preference is review scoped
PASS Core import scene title preference moved to Detect Scenes
PASS Core import Review Chapters is compact and chapter only
PASS Core import Detect Scenes is compact and owns title option
PASS Book context is canonical import metadata
PASS Names defaults from selected book context
PASS Story Intelligence starts from core import complete
PASS Generated scene titles persist with provenance
PASS Scene title display keeps scene numbers visible
PASS Manuscript text statistics handles pure prose
PASS Manuscript text statistics handles pure dialogue
PASS Manuscript text statistics splits narrative before dialogue
PASS Manuscript text statistics splits dialogue before narrative
PASS Manuscript text statistics handles multiple dialogue passages
PASS Manuscript text statistics supports smart quotes
PASS Manuscript text statistics supports straight quotes
PASS Manuscript text statistics carries multi-paragraph dialogue
PASS Manuscript text statistics returns to prose after continued dialogue
PASS Manuscript text statistics ignores empty paragraphs
PASS Manuscript text statistics reconciles scene totals
PASS Manuscript text statistics aggregates chapter scenes
PASS Manuscript text statistics recalculates existing scene sources
PASS Manuscript text statistics does not invoke AI
PASS Phase 21T repairs durable character understanding
PASS Phase 21U extracts mandatory character appearance fixtures
PASS Character sex hints are conservative and reviewable
PASS Character discovery does not truncate scan review candidates
PASS Character discovery rejects sentence-start words
PASS Character discovery rejects fragments and location names
PASS Manuscript scan preview keeps only auto-selected character candidates
PASS Word Companion scan completion uses chunked transport
PASS Word Companion scan chunks assemble full novel payloads
PASS Word Companion scan chunks reject partial and conflicting payloads
PASS Onboarding wizard keeps character pages inside one main step
PASS Scan review aliases feed Story Intelligence known character context
PASS Name Intelligence package contract is present
PASS Name Intelligence reference data is copied on publish
PASS Name Intelligence repository uses stored procedures
PASS Name Intelligence review warning is wired
PASS Name Intelligence library defaults to all locales
PASS Story Intelligence new-format context uses canonical characters
PASS Story Intelligence character defaults link proposed existing matches
PASS Story Intelligence character defaults ignore generic references
PASS Story Intelligence character defaults keep descriptive identities
PASS Story Intelligence character review uses single identity decision
PASS Story Intelligence auto resolves exact known identities before review
PASS Story Intelligence character matching keeps ambiguous known names visible
PASS Story Intelligence descriptive references consolidate articles
PASS Story Intelligence review omits character metrics dashboard
PASS Story Intelligence resumed chapters use canonical labels
PASS Story Intelligence character review posts selected existing match
PASS Story Intelligence character default changes preserve persisted results
PASS Structural POV rides existing chapter analysis
PASS Structural POV persists through import resolution
PASS Chapter POV derives from canonical scenes
PASS Permanent Analyse My Book starts from saved book
PASS Story Intelligence canonical context carries provenance
PASS Scene prompt protects canonical scene context
PASS Structural setting rides existing chapter analysis
PASS Explicit narrator labels detect deterministic POV
PASS AI POV JSON parses into structural models
PASS Post character review resolves persisted structural POV
PASS Normal scene and chapter saves persist POV
PASS Character merge is a reusable stored procedure workflow
PASS Story Intelligence character review suppresses resolved narrator POV
PASS Story Intelligence character review reuses structured appearance aliases
PASS Entity preferred names are peer aliases
PASS Story Intelligence review evidence includes chapter scene labels
PASS Story Intelligence import enables project metric defaults before save
PASS Project metrics add defaults backfills scene values
PASS Story Intelligence scene prompt uses configured metrics
PASS Story Intelligence scene prompt uses scene characters terminology
PASS Story Intelligence downstream imports support canonical scene results
PASS Story Intelligence runner supplies metrics and Plot Lines
PASS Story Intelligence metric persistence uses configured keys
PASS Story Intelligence stabilisation gate materialises strict and legacy metrics
PASS Story Intelligence modern materialisation owns finalisation boundary
PASS Story Intelligence narrative materialisation reads strict scene results
PASS Story Intelligence stabilisation routes normal users to book
PASS Story Intelligence narrative candidates require review
PASS Story Intelligence discovers Plot Lines without preconfiguration
PASS Story Intelligence matches existing Plot Lines without duplicates
PASS Narrative research prototype fixture builds hierarchy
PASS Narrative sibling hotel fixture generalises hierarchy
PASS Narrative trivial one-scene question is suppressed
PASS Narrative short significant thread survives
PASS Narrative semantic evolution consolidates by continuity
PASS Narrative existing thread matching is supported
PASS Narrative candidate merge and parent fields are persisted
PASS Narrative prompt uses one scene call with compact schema
PASS Narrative production code remains fixture agnostic
PASS Whole-book Plot Intelligence prompt carries full manuscript context
PASS Whole-book Plot Intelligence schema requires timeline event types
PASS Whole-book Plot Intelligence author seed inputs persist safely
PASS Whole-book Plot Intelligence structured author seed match survives
PASS Whole-book Plot Intelligence unmatched seeds become review candidates
PASS Whole-book Plot Intelligence uses dedicated output token headroom
PASS Story Intelligence narrative review displays author seed provenance
PASS Story Intelligence narrative review avoids raw author-facing IDs
PASS Story Intelligence author seed decisions are preserved
PASS Whole-book Plot Intelligence production code remains fixture agnostic
PASS Story Intelligence narrative review creates canonical records via existing procs
PASS Story Intelligence narrative stage follows knowledge
PASS Word Companion replays live current scene to writing panes
PASS Scan review post supports full-book form submissions
PASS StoryPosition rejects incomplete or invalid runtime scene positions
PASS StoryPosition builds canonical runtime scene navigation
PASS StoryPosition derives canonical scene context identity
PASS Writing Context route uses canonical story context service
PASS Writing Context client follows canonical story position events
PASS Writing Context preserves selected tab and avoids event loops
PASS Writing Intent route uses canonical story context and planning data
PASS Writing Intent client uses shared writing follow helper
PASS Obsolete global Word navigation is removed while writing windows remain live
PASS Appearance preferences and ribbon destinations
PASS Toolbar preferences, authorisation and contextual routes
PASS Application navigation resolves authorised project and book context
PASS Writing pair shares canonical follow infrastructure
PASS Writing workspace presence scopes browser windows
PASS Writing workspace client uses session window identity and stable names
PASS Writing workspace launcher uses progressive screen placement
PASS Writing workspace pages register roles without changing follow behavior
PASS Word Companion exposes writing workspace launch actions
PASS Word Companion writing screens receive resolved context identifiers
PASS Word Companion canonical markers drive runtime follow
PASS Word Companion runtime follows multiple imported scene anchors
PASS Word Companion existing project book linking remains available
PASS Word Companion document identity survives reconnect
PASS Word Companion multiscreen launch and follow remain reachable
PASS Word Companion modes remain distinct
PASS Writing pages do not require Story Intelligence
PASS Word Companion host script has valid tab mapping
PASS Writing screens show diagnostic empty states
PASS Word Companion three-screen flow logs connection identifiers
PASS Admin Story Intelligence reset returns to diagnostics with messages
PASS Project hard delete clears Story Intelligence dependencies in transaction
PASS Permanent project delete keeps archive and name safety gates
PASS Word manuscript cleanup classifies PlotDirector markers by tag only
PASS Word manuscript cleanup preserves content controls content
PASS Word manuscript cleanup UI separates unlink from clean unlink
PASS Word manuscript unlink keeps Story Intelligence data untouched
PASS Word manuscript cleanup remains relinkable and idempotent
PASS Story Intelligence Review Centre route replaces linear review resume
PASS Story Intelligence obsolete create scene workflow is removed
PASS Story Intelligence Review Centre counts only needs-attention categories
PASS Story Intelligence Review Centre uses independent tile grid
PASS Story Intelligence Review Centre opens with character gate
PASS Story Intelligence review modules are independent after character gate
PASS Story Intelligence review module completion is durable and independent
PASS Story Intelligence review module pages omit wizard chrome
PASS Story Intelligence downstream review uses completed scene analysis
PASS Story Intelligence review posts do not use success interstitials
PASS Story Intelligence legacy review completion routes are deleted
PASS Story Intelligence review forms share busy submit guard
PASS Story Intelligence heavy review modules offer bounded rendering
PASS Story Intelligence Review Centre adds no AI calls
PASS Story Intelligence Review Centre uses bounded summary query
PASS Story Intelligence character review queues enrichment beside plot synthesis
PASS Story Intelligence character enrichment uses persisted SignalR progress
PASS Story Intelligence character enrichment preserves author fields
PASS Story Intelligence character enrichment batches by prompt size
PASS Story Intelligence character enrichment promotes structured facts
PASS Character detail can queue single-character enrichment
PASS Single-character enrichment is persisted and duplicate safe
PASS Character detail enrichment status uses scoped SignalR
PASS Story Intelligence detailed review GETs use selected module paths
PASS Story Intelligence completed Character review remains inspectable
PASS Story Intelligence Review Centre completed modules use canonical destinations
PASS Story Intelligence detailed reviews read persisted candidate pages
PASS Story Intelligence module completion lifecycle uses persisted candidates
PASS Story Intelligence Job 6 uses bounded concurrent chapter execution
PASS Story Intelligence global progress uses whole run scene totals
PASS Story Intelligence recovered provider failures stay operational
PASS Story Intelligence recovered JSON repair stays operational
PASS Story Intelligence terminal failures remain user visible
PASS Story Intelligence global banner remains visible through finalising gaps
PASS Story Intelligence global banner rejects stale live snapshots
PASS Story Intelligence live global progress publishes authoritative scene aggregates
PASS Story Intelligence global progress survives initial SignalR start races
PASS Story Intelligence scene analysis completion barrier releases review
PASS Story Intelligence active progress only appears in global strip
PASS Story Intelligence book actions do not open review centre while running

View File

@ -0,0 +1,3 @@
Validation: ; states 85140; nodes 152/152; solutions 52; primary 52
Acceptance 60/60; prefixes 291/291
PASS Stage 1 full traversal, reviewed 60 paths/prefixes, intentional outcomes and revision

View File

@ -0,0 +1 @@
PASS Stage 1 rendering: distinct six opening icons/choices and Restart; 4/5/6-answer diagnostics; all 67 no-JS pages; desktop/mobile neutral, nonlinear, absence, multi-select, revision and Back/Forward journeys; all adoption concerns and no-JS reassurance; no overflow/CLS; noindex.

View File

@ -98,3 +98,15 @@ A current Stage 1 diagnosis requires an observed consequence and a stated concer
`WritingSolverTraversal` evaluates and deduplicates semantic states before enqueuing them. The identity remains visited node sequence + complete signal totals + next node. The **100,000 distinct-state limit is unchanged**; duplicate pending answers with identical evidence no longer consume extra budget. No scores or reachable outcomes are discarded. The original V2 still explores 11,325 states. Explicit tests separately cover choice-specific reassurance because that existing semantic traversal identity merges neutral presentation variants.
The original `curated-v2` graph and 60-case expectations remain historical regression fixtures. Stage 1 is a separate immutable publication version in `Candidates/curated-v2-stage1`. Its authored expanded paths and semantic expectations are frozen in its own `acceptance-paths.json`. `--writing-solver-stage1` audits that file; `--write-paths` is an explicit authoring operation, not part of normal regressions. Production publication is not authorised by the Development gate.
## Authored diagnostic result presentation
`Content/WritingSolver/Presentation/results-v1.json` is a separate, deterministic presentation catalogue. It does not alter or republish the Stage 1 graph. Each result has one primary capability, diagnosis-specific inference/relevance/look-for copy, an optional useful principle, at most one secondary capability and at most one existing Help article key.
Evidence copy is explicitly bound to exact accepted node/choice pairs. Only matched rules for the returned diagnosis are rendered; up to three authored observations/intention clauses form the explanation. This supports materially different paths to one diagnosis without runtime text generation. A score or unaccepted/stale history cannot supply evidence copy. Exhaustive tests require a matched corroborating observation for every returned result in all Stage 1 states. No signals, scores or diagnosis identifiers are exposed in the presentation.
`Result.cshtml` is used only for completed diagnostic conversations. `Solution.cshtml`/`Page.cshtml` retain the existing direct advice/SEO article content. Supporting diagnoses stay visible as compact expandable evidence summaries. Reassurance retains its own template; insufficient evidence has no diagnosis confirmation or recommendation panel. The indiscriminate article catalogue is removed from every conversation state without deleting any article.
Capabilities declare an audited existing application route, public tour anchor, screenshot requirement and end-user preview caption. Until a safe, existing `/images/writing-solver/*.webp|png` capture is configured, the visual component explicitly renders a Development placeholder. A configured but missing file also retains the placeholder. Capture requirements are kept out of product-facing captions. The later application-theme work will supply genuine screenshots; none are fabricated here.
Visitors receive a public tour CTA. Signed-in authors enter an authenticated project selector; project membership is resolved using existing user-scoped repositories, and character-specific views additionally validate that the selected character belongs to that project. Missing project/character context gives a usable selection/empty state rather than a broken route. Redirects use fixed audited local templates and validated numeric IDs. No new database queries, procedures, migrations or production configuration changes are required.

View File

@ -0,0 +1,55 @@
const {chromium}=require('playwright');
const assert=require('node:assert/strict');
const fs=require('node:fs');
const graph=JSON.parse(fs.readFileSync('PlotLine/Content/WritingSolver/Candidates/curated-v2-stage1/writing-solver-curated-v2-stage1.json'));
const cases=JSON.parse(fs.readFileSync('PlotLine/Content/WritingSolver/Candidates/curated-v2-stage1/acceptance-paths.json')).cases;
const catalog=JSON.parse(fs.readFileSync('PlotLine/Content/WritingSolver/Presentation/results-v1.json'));
const base=process.env.SOLVER_BASE_URL||'http://127.0.0.1:5238';
assert(['127.0.0.1:5238','dev.plotdirector.com'].includes(new URL(base).host));
(async()=>{
const browser=await chromium.launch();
async function journey(page,id){await page.goto(base+'/writing-problems');assert.equal(await page.locator('.solver-library').count(),0);for(const answer of cases.find(c=>c.id===id).answers){assert.equal(await page.locator('input[name=node]').inputValue(),answer.node);assert.equal(await page.locator('.solver-library').count(),0);for(const choice of answer.choices)await page.locator(`input[name=choices][value="${choice}"]`).check();await page.locator('.solver-form button[type=submit]').click();}}
try {
for(const width of [390,1440])for(const javaScriptEnabled of [true,false]){
const context=await browser.newContext({javaScriptEnabled,viewport:{width,height:1100}});
await context.addCookies([{name:'solver-anonymous',value:'true',url:base}]);
const page=await context.newPage();const errors=[];page.on('pageerror',e=>errors.push(e.message));
for(const id of [3,25,15,30,47,22,43]){
await journey(page,id);const test=cases.find(c=>c.id===id);const content=catalog.results.find(r=>r.solution===test.expectedPrimary);const tool=catalog.capabilities.find(c=>c.id===content.capability);
assert.equal(await page.locator('.solver-result-panel h1').innerText(),graph.solutions.find(s=>s.id===test.expectedPrimary).title);
assert((await page.locator('.solver-result-evidence').innerText()).length>50);
assert(!/\bd\d{2}\b|observed-|concern-confirmed|threshold|\bscores?\b/i.test(await page.locator('.solver-result-panel').innerText()));
assert.equal(await page.locator('.solver-result-panel .solver-result-cta').count(),1);
assert.equal(await page.locator('.solver-result-cta').getAttribute('href'),tool.tour);
assert((await page.locator('.solver-result-cta').innerText()).startsWith('See how'));
assert.equal(await page.locator('.solver-visual-placeholder').count(),1);assert.equal(await page.locator('.solver-tool-visual img').count(),0);
assert.equal(await page.locator('.solver-also').count(),content.secondary?1:0);
assert.equal(await page.locator('.solver-deeper a').count(),content.articleKey?1:0);
if(content.articleKey){const article=await page.locator('.solver-deeper a').getAttribute('href');assert.equal((await context.request.get(base+article)).status(),200);}
assert.equal(await page.locator('.solver-library').count(),0);assert(!(await page.locator('main').innerText()).includes('A little help, whenever you need it'));
assert.equal(await page.evaluate(()=>document.documentElement.scrollWidth>innerWidth),false,`overflow ${id}/${width}`);
assert.equal(await page.locator('meta[name=robots]').getAttribute('content'),'noindex, follow');
assert.equal(await page.locator('html').getAttribute('data-site-theme'),'public');assert.equal(await page.locator('html').getAttribute('data-app-theme'),null);
if(id===3&&width===1440&&javaScriptEnabled&&base.includes('127.0.0.1'))await page.screenshot({path:'/tmp/solver-results-layout.png'});
await page.goBack();assert.equal(await page.locator('input[name=node]').inputValue(),test.answers.at(-1).node);
await page.goForward();assert.equal(await page.locator('.solver-result-panel').count(),1);
await page.getByRole('link',{name:'Start again',exact:true}).click();assert.equal(await page.locator('input[name=node]').inputValue(),'entry');
}
await page.goto(base+'/writing-problems');for(const [node,choice]of[['entry','unsure'],['rescue-happening','reread-cant-see'],['rescue-confidence','using-tool-concern'],['existing-stage','draft-done'],['existing-barrier','discovery']]){assert.equal(await page.locator('input[name=node]').inputValue(),node);await page.locator(`input[value="${choice}"]`).check();await page.locator('.solver-form button[type=submit]').click();}
assert.equal(await page.locator('.solver-neutral').count(),1);assert.equal(await page.locator('.solver-start,.solver-library,.solver-result-panel').count(),0);
await journey(page,50);assert.equal(await page.locator('.solver-result-panel,.solver-resolution,.solver-library').count(),0);assert((await page.locator('main').innerText()).includes('isn’t enough evidence'));
assert.equal(errors.length,0,errors.join('\n'));await context.close();
}
if(base.includes('127.0.0.1')){
const context=await browser.newContext({viewport:{width:1440,height:1000}});const page=await context.newPage();
await journey(page,3);assert.match(await page.locator('.solver-result-cta').innerText(),/^Open .* in my workspace/);
await page.locator('.solver-result-cta').click();assert.equal(await page.locator('select[name=projectId]').count(),1);
const response=await context.request.get(base+'/writing-problems/workspace/plot?projectId=77',{maxRedirects:0});assert.equal(response.status(),302);assert.equal(response.headers().location,'/PlotLineWorkspace?projectId=77');
await page.goto(base+'/writing-problems/workspace/knowledge?projectId=77');assert.equal(await page.locator('select[name=characterId]').count(),1);
const character=await context.request.get(base+'/writing-problems/workspace/knowledge?projectId=77&characterId=88',{maxRedirects:0});assert.equal(character.status(),302);assert.equal(character.headers().location,'/Dynamics/Knowledge/88?projectId=77');
assert.equal((await context.request.get(base+'/writing-problems/workspace/plot?projectId=999')).status(),404);
await context.close();
}
console.log('PASS result presentation: Plot Lines, timeline/continuity, relationships, scene/chapter, series, knowledge and character arc; evidence variants; optional secondary/article; explicit missing visuals; no article dump; reassurance/insufficient evidence; no-JS; 390/1440px; Back/Forward/Restart; public theme and noindex; signed-out tour CTA'+(base.includes('127.0.0.1')?'; signed-in authorised project/character selector and real workspace redirects.':'.'));
}finally{await browser.close();}
})().catch(e=>{console.error(e);process.exit(1)});

View File

@ -77,6 +77,9 @@ if (args.Contains("--plot-lines"))
var tests = new (string Name, Action Test)[]
{
("Solver result evidence covers all reachable diagnoses without changing Stage 1 semantics", WritingSolverResultTests.EditorialCoverage),
("Solver result copy follows actual answers, intention, variants and revision", WritingSolverResultTests.ListeningAndVariants),
("Solver workspace CTAs resolve authorised project/character context and real routes", WritingSolverResultTests.WorkspaceRouting),
("Stage 1 preserves all 60 strict conversations, corroboration, intent, reachability and adoption", WritingSolverStage1Tests.Verification),
("Stage 1 evidence gates, required follow-ups, bounded multi-select and neutral choices are enforced", WritingSolverStage1Tests.Framework),
("Neutral endpoints require explicit valid terminal declarations", WritingSolverNeutralTests.Validation),

View File

@ -76,6 +76,8 @@ internal static class ToolbarBrowserHost
builder.Services.AddScoped<ApplicationNavigation>(_ => new ApplicationNavigation(null!, null!, null!));
builder.Services.AddSingleton<IHelpService, HelpService>();
builder.Services.AddSingleton<IWritingSolverRepository, WritingSolverFixtureRepository>();
builder.Services.AddSingleton<IWritingSolverWorkspaceContext, SolverWorkspaceFixture>();
builder.Services.AddSingleton(new WritingSolverResults(Path.GetFullPath("PlotLine/Content/WritingSolver/Presentation/results-v1.json")));
builder.Services.AddSingleton<IHelpMarkdownRenderer, HelpMarkdownRenderer>();
builder.Services.AddScoped<ICurrentUserService>(services => new ToolbarTestUser(int.Parse(services.GetRequiredService<IHttpContextAccessor>().HttpContext!.User.FindFirstValue(ClaimTypes.NameIdentifier)!)));
var app = builder.Build();
@ -85,6 +87,7 @@ internal static class ToolbarBrowserHost
{
var user = context.Request.Cookies["fixture-user"] == "5" ? "5" : "4";
context.User = new ClaimsPrincipal(new ClaimsIdentity([new Claim(ClaimTypes.NameIdentifier, user), new Claim(ClaimTypes.Name, "Fixture Author")], "Fixture"));
if(context.Request.Cookies["solver-anonymous"]=="true") context.User=new ClaimsPrincipal(new ClaimsIdentity());
await next();
});
app.UseRouting();
@ -361,3 +364,9 @@ internal sealed class WritingSolverFixtureRepository(IHttpContextAccessor access
}
public Task PublishAsync(string json,string editor) => throw new NotSupportedException("Read-only fixture");
}
internal sealed class SolverWorkspaceFixture : IWritingSolverWorkspaceContext
{
public Task<IReadOnlyList<Project>> ProjectsAsync()=>Task.FromResult<IReadOnlyList<Project>>([new(){ProjectID=77,ProjectName="Fixture novel"}]);
public Task<IReadOnlyList<Character>> CharactersAsync(int projectId)=>Task.FromResult<IReadOnlyList<Character>>([new(){CharacterID=88,ProjectID=77,CharacterName="Fixture character"}]);
}

View File

@ -0,0 +1,96 @@
using System.Reflection;
using System.Security.Claims;
using System.Text.Json;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.FileProviders;
using PlotLine.Controllers;
using PlotLine.Data;
using PlotLine.Models;
using PlotLine.Models.WritingSolver;
using PlotLine.Services;
internal static class WritingSolverResultTests
{
private static string Root=>WritingSolverCuratedV2Tests.Root();
public static WritingSolverResults Content()=>new(Path.Combine(Root,"PlotLine/Content/WritingSolver/Presentation/results-v1.json"));
private static void Check(bool condition,string message){if(!condition)throw new Exception(message);}
public static void EditorialCoverage()
{
var results=Content();var graph=WritingSolverStage1Tests.Graph();
Check(results.Catalog.Results.Select(r=>r.Solution).Order().SequenceEqual(graph.Solutions.Select(s=>s.Id).Order()),"Every diagnosis needs exactly one presentation.");
var help=new HelpService(new EnvironmentFixture());
foreach(var result in results.Catalog.Results)
{
Check(graph.Features.Any(f=>f.Id==results.Capability(result.Capability).Feature),"Unknown product feature.");
if(result.ArticleKey is not null)Check(help.GetByContextKey(result.ArticleKey) is not null,"Missing reviewed advice article.");
}
foreach(var evidence in results.Catalog.Evidence)
Check(graph.Nodes.Any(n=>n.Id==evidence.Node && n.Choices.Any(c=>c.Id==evidence.Choice)),"Evidence copy refers to an answer that cannot be supplied.");
var exploration=WritingSolverCuratedV2Tests.Explore(graph,outcome=>
{
var rendered=results.Present(outcome);
if(outcome.Next is not null || outcome.Reassurance is not null || outcome.Solutions.Count==0){Check(rendered is null,"Non-diagnostic outcome was styled as a diagnosis.");return;}
Check(rendered is not null,"Missing result presentation.");
foreach(var solution in outcome.Solutions)
{
var evidence=results.Evidence(outcome,solution.Id);
Check(evidence.Count is >0 and <=3,"A result has no supplied evidence or is too verbose.");
Check(results.Catalog.Evidence.Any(e=>e.Priority==100 && e.Solutions.Contains(solution.Id) && outcome.Answers.Any(a=>a.Node==e.Node && a.Choices.Contains(e.Choice))),"A result lacks a matched corroborating observation.");
}
});
Check(exploration.Complete && exploration.StateCount==85140 && exploration.PrimarySolutions.Length==52,"Presentation altered Stage 1 reachability.");
Check(results.Catalog.Results.Count(r=>r.Principle is not null)<26,"Principles should not be padded across every result.");
foreach(var capability in results.Catalog.Capabilities)Check(!results.HasImage(capability),"This stage must not manufacture final screenshot assets.");
var unknown=results.Catalog.Capabilities[0];unknown.Image="/images/writing-solver/not-yet-captured.webp";Check(!results.HasImage(unknown),"A missing configured image must retain a placeholder.");
}
public static void ListeningAndVariants()
{
var results=Content();var graph=WritingSolverStage1Tests.Graph();
SolverOutcome Dominance(string observation)=>WritingSolverEngine.Evaluate(graph,[new("entry",["story-not-working"]),new("story-problem",["takes-over"]),new("dominance-observation",[observation]),new("dominance-intention",["even"])]);
var expanding=results.Present(Dominance("space"))!;var gaps=results.Present(Dominance("gaps"))!;var unsure=results.Present(Dominance("unsure"))!;
Check(expanding.Solution.Id=="d04" && gaps.Solution.Id=="d04" && unsure.Solution.Id=="d04","Variant test no longer exercises one diagnosis.");
Check(expanding.Evidence.Any(t=>t.Contains("expanding")) && gaps.Evidence.Any(t=>t.Contains("vanish")),"Materially different evidence was flattened into generic prose.");
Check(!gaps.Evidence.Any(t=>t.Contains("expanding")) && !unsure.Evidence.Any(t=>t.Contains("expanding") || t.Contains("vanish")),"A result invented an observation not supplied.");
var deliberate=WritingSolverEngine.Evaluate(graph,[new("entry",["story-not-working"]),new("story-problem",["takes-over"]),new("dominance-observation",["space"]),new("dominance-intention",["deliberate"])]);
Check(results.Present(deliberate) is null && deliberate.Reassurance is not null,"Deliberate working choice must retain reassurance.");
Check(results.Present(WritingSolverEngine.Evaluate(graph,[new("entry",["unsure"]),new("rescue-happening",["reread-cant-see"]),new("rescue-confidence",["other"])])) is null,"Insufficient evidence became a diagnosis.");
var history=Dominance("space").Answers.ToArray();history[0]=new("entry",["losing-track"]);
Check(results.Present(WritingSolverEngine.Evaluate(graph,history)) is null,"Stale evidence survived earlier-answer revision.");
}
public static void WorkspaceRouting()=>WorkspaceRoutingAsync().GetAwaiter().GetResult();
private static async Task WorkspaceRoutingAsync()
{
Check(typeof(WritingSolverWorkspaceController).GetCustomAttribute<AuthorizeAttribute>() is not null,"Workspace selector must require authentication.");
var results=Content();var context=new WorkspaceFixture();
var controller=new WritingSolverWorkspaceController(results,context){ControllerContext=new ControllerContext{HttpContext=new DefaultHttpContext()}};
var initial=await controller.Open("plot");Check(initial is ViewResult {Model:SolverWorkspaceChoice {ProjectId:null}},"No project must show a graceful selector.");
var selected=await controller.Open("plot",77);Check(selected is LocalRedirectResult {Url:"/PlotLineWorkspace?projectId=77"},"Plot Lines CTA must open the real workspace.");
Check(await controller.Open("plot",999) is NotFoundResult,"Foreign project context must not be accepted.");
Check(await controller.Open("knowledge",77) is ViewResult {Model:SolverWorkspaceChoice {ProjectId:77}},"Knowledge requires a character, not an arbitrary ID.");
Check(await controller.Open("knowledge",77,999) is NotFoundResult,"Foreign character context must not be accepted.");
Check(await controller.Open("knowledge",77,88) is LocalRedirectResult {Url:"/Dynamics/Knowledge/88?projectId=77"},"Knowledge CTA must open the real character timeline.");
context.Empty=true;Check(await controller.Open("plot") is ViewResult {Model:SolverWorkspaceChoice {Projects.Count:0}},"No-project state must remain usable.");
foreach(var capability in results.Catalog.Capabilities)
{
var route=new Uri("https://fixture.invalid"+results.WorkspaceUrl(capability,77,88));var parts=route.AbsolutePath.Split('/',StringSplitOptions.RemoveEmptyEntries);
var type=typeof(WritingProblemsController).Assembly.GetType("PlotLine.Controllers."+parts[0]+"Controller");
var action=parts.Length>1?parts[1]:"Index";
Check(type?.GetMethods().Any(m=>m.Name==action)==true,"Recommendation route does not name an existing application action.");
}
}
private sealed class WorkspaceFixture : IWritingSolverWorkspaceContext
{
public bool Empty;
public Task<IReadOnlyList<Project>> ProjectsAsync()=>Task.FromResult<IReadOnlyList<Project>>(Empty?[]:[new(){ProjectID=77,ProjectName="Novel"}]);
public Task<IReadOnlyList<Character>> CharactersAsync(int id)=>Task.FromResult<IReadOnlyList<Character>>([new(){CharacterID=88,ProjectID=77,CharacterName="Character"}]);
}
private sealed class EnvironmentFixture : IWebHostEnvironment
{
public string ApplicationName{get;set;}="PlotLine";public string EnvironmentName{get;set;}="Development";
public string ContentRootPath{get;set;}=Path.Combine(Root,"PlotLine");public IFileProvider ContentRootFileProvider{get;set;}=new NullFileProvider();
public string WebRootPath{get;set;}=Path.Combine(Root,"PlotLine/wwwroot");public IFileProvider WebRootFileProvider{get;set;}=new NullFileProvider();
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,27 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using PlotLine.Models.WritingSolver;
using PlotLine.Services;
namespace PlotLine.Controllers;
[Authorize]
public sealed class WritingSolverWorkspaceController(WritingSolverResults results,IWritingSolverWorkspaceContext context) : Controller
{
[HttpGet("/writing-problems/workspace/{capability}")]
public async Task<IActionResult> Open(string capability,int? projectId=null,int? characterId=null)
{
Response.Headers.CacheControl="no-store";
Response.Headers["X-Robots-Tag"]="noindex, follow";
ViewData["Robots"]="noindex, follow";
var tool=results.Catalog.Capabilities.SingleOrDefault(c=>c.Id==capability);
if(tool is null)return NotFound();
var projects=await context.ProjectsAsync();
if(projectId is null)return View("~/Views/WritingProblems/Workspace.cshtml",new SolverWorkspaceChoice(tool,null,projects,[]));
if(!projects.Any(p=>p.ProjectID==projectId && !p.IsArchived))return NotFound();
if(!tool.WorkspaceRoute.Contains("{characterId}",StringComparison.Ordinal))return LocalRedirect(results.WorkspaceUrl(tool,projectId.Value));
var characters=await context.CharactersAsync(projectId.Value);
if(characterId is null)return View("~/Views/WritingProblems/Workspace.cshtml",new SolverWorkspaceChoice(tool,projectId,projects,characters));
if(!characters.Any(c=>c.CharacterID==characterId))return NotFound();
return LocalRedirect(results.WorkspaceUrl(tool,projectId.Value,characterId));
}
}

View File

@ -0,0 +1,47 @@
namespace PlotLine.Models.WritingSolver;
public sealed class SolverResultCatalog
{
public List<SolverCapability> Capabilities { get; set; } = [];
public List<SolverResultContent> Results { get; set; } = [];
public List<SolverEvidenceCopy> Evidence { get; set; } = [];
}
public sealed class SolverCapability
{
public string Id { get; set; } = "";
public string Feature { get; set; } = "";
public string Name { get; set; } = "";
public string Shows { get; set; } = "";
public string Tour { get; set; } = "";
public string WorkspaceRoute { get; set; } = "";
public string CaptureView { get; set; } = "";
public string Asset { get; set; } = "";
public string Capture { get; set; } = "";
public string PreviewCaption { get; set; } = "";
public string? Image { get; set; }
}
public sealed class SolverResultContent
{
public string Solution { get; set; } = "";
public string Capability { get; set; } = "";
public string Explanation { get; set; } = "";
public string Reason { get; set; } = "";
public string LookFor { get; set; } = "";
public string? Principle { get; set; }
public string? Secondary { get; set; }
public string? SecondaryReason { get; set; }
public string? ArticleKey { get; set; }
}
public sealed class SolverEvidenceCopy
{
public string Node { get; set; } = "";
public string Choice { get; set; } = "";
public List<string> Solutions { get; set; } = [];
public string Text { get; set; } = "";
public int Priority { get; set; }
}
public sealed record SolverDiagnosticPresentation(SolverSolution Solution,SolverResultContent Content,SolverCapability Capability,
IReadOnlyList<string> Evidence,IReadOnlyList<SolverSupportingPresentation> Supporting);
public sealed record SolverSupportingPresentation(SolverSolution Solution,IReadOnlyList<string> Evidence);
public sealed record SolverWorkspaceChoice(SolverCapability Capability,int? ProjectId,
IReadOnlyList<PlotLine.Models.Project> Projects,IReadOnlyList<PlotLine.Models.Character> Characters);

View File

@ -114,6 +114,8 @@ public class Program
builder.Services.AddScoped<IProjectRepository, ProjectRepository>();
builder.Services.AddScoped<ApplicationNavigation>();
builder.Services.AddScoped<IWritingSolverRepository, WritingSolverRepository>();
builder.Services.AddScoped<IWritingSolverWorkspaceContext, WritingSolverWorkspaceContext>();
builder.Services.AddSingleton(services => new WritingSolverResults(Path.Combine(services.GetRequiredService<IWebHostEnvironment>().ContentRootPath,"Content/WritingSolver/Presentation/results-v1.json")));
builder.Services.AddScoped<IToolbarPreferenceRepository, ToolbarPreferenceRepository>();
builder.Services.AddScoped<IAppearanceRepository, AppearanceRepository>();
builder.Services.AddScoped<IBookRepository, BookRepository>();

View File

@ -0,0 +1,49 @@
using System.Text.Json;
using PlotLine.Data;
using PlotLine.Models.WritingSolver;
namespace PlotLine.Services;
// Authored presentation only. No effect on scoring, routing, state or publication.
public sealed class WritingSolverResults
{
public SolverResultCatalog Catalog { get; }
private readonly string webRoot;
public WritingSolverResults(string path)
{
webRoot=Path.GetFullPath(Path.Combine(Path.GetDirectoryName(path)!,"../../..","wwwroot"));
Catalog=JsonSerializer.Deserialize<SolverResultCatalog>(File.ReadAllText(path),WritingSolverRepository.JsonOptions)??throw new InvalidDataException("Empty result catalogue.");
var capabilities=Catalog.Capabilities;
if(capabilities.Select(c=>c.Id).Distinct().Count()!=capabilities.Count || Catalog.Results.Select(r=>r.Solution).Distinct().Count()!=Catalog.Results.Count)
throw new InvalidDataException("Duplicate result presentation identity.");
foreach(var c in capabilities)
if(string.IsNullOrWhiteSpace(c.Name) || string.IsNullOrWhiteSpace(c.Shows) || string.IsNullOrWhiteSpace(c.Capture) || string.IsNullOrWhiteSpace(c.PreviewCaption)
|| !c.Tour.StartsWith("/features#",StringComparison.Ordinal) || !SafeLocal(c.WorkspaceRoute)
|| !c.WorkspaceRoute.Contains("{projectId}",StringComparison.Ordinal)
|| (c.Image is not null && !System.Text.RegularExpressions.Regex.IsMatch(c.Image,@"^/images/writing-solver/[a-z0-9-]+\.(webp|png)$")))throw new InvalidDataException("Invalid result capability.");
foreach(var r in Catalog.Results)
if(!capabilities.Any(c=>c.Id==r.Capability) || string.IsNullOrWhiteSpace(r.Explanation) || string.IsNullOrWhiteSpace(r.Reason) || string.IsNullOrWhiteSpace(r.LookFor)
|| (r.Secondary is not null && (!capabilities.Any(c=>c.Id==r.Secondary) || r.Secondary==r.Capability || string.IsNullOrWhiteSpace(r.SecondaryReason))))throw new InvalidDataException("Invalid result recommendation.");
if(Catalog.Evidence.Any(e=>string.IsNullOrWhiteSpace(e.Text) || e.Solutions.Count==0 || e.Solutions.Any(s=>!Catalog.Results.Any(r=>r.Solution==s))))throw new InvalidDataException("Invalid result evidence copy.");
}
private static bool SafeLocal(string url)=>url.StartsWith('/') && !url.StartsWith("//",StringComparison.Ordinal) && !url.Contains('\\') && !url.Any(char.IsControl);
public bool HasImage(SolverCapability capability)=>capability.Image is not null && File.Exists(Path.Combine(webRoot,capability.Image.TrimStart('/')));
public SolverCapability Capability(string id)=>Catalog.Capabilities.Single(c=>c.Id==id);
public IReadOnlyList<string> Evidence(SolverOutcome outcome,string solution) => Catalog.Evidence
.Where(e=>e.Solutions.Contains(solution) && outcome.Answers.Any(a=>a.Node==e.Node && a.Choices.Contains(e.Choice)))
.OrderByDescending(e=>e.Priority).ThenBy(e=>outcome.Answers.ToList().FindIndex(a=>a.Node==e.Node))
.Select(e=>e.Text).Distinct(StringComparer.Ordinal).Take(3).ToArray();
public SolverDiagnosticPresentation? Present(SolverOutcome outcome)
{
if(outcome.Next is not null || outcome.Reassurance is not null || outcome.Solutions.FirstOrDefault() is not {} solution)return null;
var content=Catalog.Results.SingleOrDefault(r=>r.Solution==solution.Id);
if(content is null)return null; // Older/demo snapshots keep their original article presentation.
return new(solution,content,Capability(content.Capability),Evidence(outcome,solution.Id),
outcome.Solutions.Skip(1).Select(s=>new SolverSupportingPresentation(s,Evidence(outcome,s.Id))).ToArray());
}
public string WorkspaceUrl(SolverCapability capability,int projectId,int? characterId=null)
{
if(projectId<=0 || (capability.WorkspaceRoute.Contains("{characterId}") && characterId is not >0))throw new InvalidDataException("Workspace context required.");
return capability.WorkspaceRoute.Replace("{projectId}",projectId.ToString(System.Globalization.CultureInfo.InvariantCulture),StringComparison.Ordinal)
.Replace("{characterId}",characterId?.ToString(System.Globalization.CultureInfo.InvariantCulture)??"",StringComparison.Ordinal);
}
}

View File

@ -0,0 +1,18 @@
using PlotLine.Data;
using PlotLine.Models;
namespace PlotLine.Services;
public interface IWritingSolverWorkspaceContext
{
Task<IReadOnlyList<Project>> ProjectsAsync();
Task<IReadOnlyList<Character>> CharactersAsync(int projectId);
}
public sealed class WritingSolverWorkspaceContext(IProjectRepository projects,ICharacterRepository characters,ICurrentUserService user) : IWritingSolverWorkspaceContext
{
public Task<IReadOnlyList<Project>> ProjectsAsync()=>user.UserId is int id?projects.ListActiveForUserAsync(id):Task.FromResult<IReadOnlyList<Project>>([]);
public async Task<IReadOnlyList<Character>> CharactersAsync(int projectId)
{
if(user.UserId is not int id || await projects.GetForUserAsync(projectId,id) is not {} project || project.IsArchived)return [];
return (await characters.ListCharactersAsync(projectId)).Where(c=>!c.IsArchived).ToArray();
}
}

View File

@ -1,6 +1,7 @@
@using PlotLine.Models.WritingSolver
@model SolverJourney
@{ Layout = "_PublicLayout"; var next = Model.Outcome.Next; var beginning = Model.Outcome.Answers.Count == 0; }
@inject PlotLine.Services.WritingSolverResults Results
@{ Layout = "_PublicLayout"; var next = Model.Outcome.Next; var beginning = Model.Outcome.Answers.Count == 0; var presentation=Results.Present(Model.Outcome); }
<section class="solver-space @(beginning ? "solver-space--entry" : "")">
<div class="solver-content">
<p class="marketing-eyebrow">The Writing Problem Solver</p>
@ -45,16 +46,18 @@
}
else
{
<p class="solver-resolution">✓ Here’s a useful way forward</p>
@if(Model.Outcome.Solutions.Count == 0)
{
<h1>Let’s give this a little breathing room.</h1>
<p>There isn’t enough evidence for a specific recommendation yet. Try naming one scene or thread that feels difficult, then ask what you need to know about it next.</p>
<p>You can explore the advice below, or restart with a different area.</p>
<p>Try one concrete scene or thread, then start again with the symptom you can recognise most clearly.</p>
}
@foreach(var solution in Model.Outcome.Solutions)
@if(presentation is not null) { <partial name="Result" model="presentation" /> }
else
{
<partial name="Solution" model="@(new SolverPageView(Model.Graph,solution,false))" />
@foreach(var solution in Model.Outcome.Solutions)
{ <partial name="Solution" model="@(new SolverPageView(Model.Graph,solution,false))" /> }
}
}
<div class="solver-controls">
@ -79,12 +82,4 @@
@if(Model.Graph.IsDemo) { <p class="solver-demo">Preview journey · This small plot-line demonstration will grow into a curated collection of writing problems.</p> }
</div>
</section>
@if(Model.Outcome.Reassurance is null)
{
<section class="solver-library marketing-container">
<h2>A little help, whenever you need it.</h2>
<p>You can read this advice directly, without starting the conversation.</p>
@foreach(var solution in Model.Graph.Solutions.Where(s=>s.Active).OrderBy(s=>s.Order)) { <a class="editorial-link" href="/writing-problems/@solution.Slug">@solution.PageTitle →</a> }
</section>
}
@section Scripts { <script src="~/js/writing-solver.js" asp-append-version="true"></script> }

View File

@ -0,0 +1,55 @@
@using PlotLine.Models.WritingSolver
@using PlotLine.Services
@model SolverDiagnosticPresentation
@inject WritingSolverResults Results
@inject IHelpService Help
@{ var tool=Model.Capability; var content=Model.Content; var signedIn=User.Identity?.IsAuthenticated==true; var article=content.ArticleKey is null?null:Help.GetByContextKey(content.ArticleKey); }
<article class="solver-result solver-result-panel">
<header class="solver-result-heading">
<p class="solver-resolution">✓ Here’s a useful way forward</p>
<h1>@Model.Solution.Title</h1>
<div class="solver-result-evidence">
@foreach(var evidence in Model.Evidence) { <p>@evidence</p> }
<p class="solver-result-inference">@content.Explanation</p>
</div>
</header>
@if(!string.IsNullOrWhiteSpace(content.Principle))
{ <aside class="solver-principle solver-principle--compact"><strong>Worth remembering</strong><p>@content.Principle</p></aside> }
<section class="solver-start" aria-labelledby="solver-start-heading">
<h2 id="solver-start-heading">How PlotDirector can help</h2>
<div class="solver-start-grid">
<div class="solver-start-copy">
<p class="marketing-eyebrow">Start here</p>
<h3>@tool.Name</h3>
<p>@tool.Shows</p>
<p>@content.Reason</p>
<p class="solver-look-for"><strong>Look for</strong> @content.LookFor</p>
<a class="marketing-btn marketing-btn--primary solver-result-cta" href="@(signedIn ? "/writing-problems/workspace/"+tool.Id : tool.Tour)">@(signedIn ? "Open "+tool.Name+" in my workspace" : "See how "+tool.Name+" works") <span aria-hidden="true">→</span></a>
@if(signedIn) { <p class="solver-context-hint">Choose your project first@(tool.WorkspaceRoute.Contains("{characterId}") ? ", then the character you want to follow." : ".")</p> }
else { <p class="solver-context-hint">Explore the tool without signing in.</p> }
</div>
<partial name="ResultVisual" model="tool" />
</div>
</section>
@if(content.Secondary is not null)
{
var secondary=Results.Capability(content.Secondary);
<aside class="solver-also"><strong>Also useful</strong><h3><a href="@secondary.Tour">@secondary.Name →</a></h3><p>@content.SecondaryReason</p></aside>
}
@if(article is not null)
{
<aside class="solver-deeper"><p>Want to understand this problem in more depth?</p><a class="editorial-link" href="/help/@article.CategorySlug/@article.Slug">@article.Title →</a></aside>
}
</article>
@if(Model.Supporting.Count>0)
{
<section class="solver-supporting" aria-label="Other patterns indicated by your answers">
<h2>Also indicated by your answers</h2>
@foreach(var item in Model.Supporting)
{
<details class="solver-result solver-result--support"><summary>@item.Solution.Title</summary>
@foreach(var evidence in item.Evidence) { <p>@evidence</p> }
</details>
}
</section>
}

View File

@ -0,0 +1,17 @@
@using PlotLine.Models.WritingSolver
@model SolverCapability
@inject PlotLine.Services.WritingSolverResults Results
<figure class="solver-tool-visual">
@if(Results.HasImage(Model))
{ <img src="@Model.Image" alt="@Model.Name in the real PlotDirector application" width="1200" height="750" loading="lazy" /> }
else
{
<div class="solver-visual-placeholder">
<svg viewBox="0 0 48 40" width="48" height="40" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><path d="M4 9h10l4-6h12l4 6h10v28H4z"/><circle cx="24" cy="22" r="9"/></svg>
<span class="marketing-eyebrow">Development preview</span>
<strong>@Model.Name</strong>
<p>Reserved for a real application screenshot in the forthcoming PlotDirector theme.</p>
</div>
}
<figcaption>@Model.PreviewCaption</figcaption>
</figure>

View File

@ -0,0 +1,28 @@
@using PlotLine.Models.WritingSolver
@model SolverWorkspaceChoice
@{ Layout="_PublicLayout"; var characterChoice=Model.ProjectId is not null; }
<section class="solver-space"><div class="solver-content solver-workspace-picker">
<p class="marketing-eyebrow">Start here</p>
<h1>@Model.Capability.Name</h1>
<p>@Model.Capability.Shows</p>
@if((characterChoice?Model.Characters.Count:Model.Projects.Count)==0)
{
<p>@(characterChoice ? "There are no characters to follow in this project yet. Add a character when you are ready, or explore the tool first." : "You do not have an active project to open yet. You can explore the tool before creating one.")</p>
<a class="marketing-btn marketing-btn--primary" href="@Model.Capability.Tour">See how @Model.Capability.Name works →</a>
<p><a class="editorial-link" href="@(characterChoice ? "/Characters?projectId="+Model.ProjectId : "/Projects")">Go to @(characterChoice?"characters":"projects") →</a></p>
}
else
{
<form method="get" action="/writing-problems/workspace/@Model.Capability.Id">
@if(characterChoice) { <input type="hidden" name="projectId" value="@Model.ProjectId" /> }
<label for="solver-workspace-context">@(characterChoice?"Which character would you like to follow?":"Which project would you like to open?")</label>
<select id="solver-workspace-context" name="@(characterChoice?"characterId":"projectId")" required>
<option value="">Choose @(characterChoice?"a character":"a project")</option>
@if(characterChoice) { @foreach(var character in Model.Characters) { <option value="@character.CharacterID">@character.CharacterName</option> } }
else { @foreach(var project in Model.Projects) { <option value="@project.ProjectID">@project.ProjectName</option> } }
</select>
<button type="submit" class="marketing-btn marketing-btn--primary">Open @Model.Capability.Name →</button>
</form>
}
<p><a class="editorial-link" href="/writing-problems">Back to the Writing Problem Solver →</a></p>
</div></section>

View File

@ -62,3 +62,40 @@ html[data-site-theme="public"] .public-footer { background:#f0e5d4; }
html[data-site-theme="public"] .solver-neutral { max-width:760px; margin-inline:auto; }
html[data-site-theme="public"] .solver-neutral .solver-intro { margin-left:0; }
/* Conversation results: the existing warm public palette, with a compact practical payoff. */
html[data-site-theme="public"] .solver-result-panel h1 { font-size:clamp(2.15rem,4vw,3.4rem); margin:12px 0 20px; }
html[data-site-theme="public"] .solver-result-evidence { max-width:900px; font:1.12rem/1.6 Georgia,serif; }
html[data-site-theme="public"] .solver-result-evidence p { margin:0 0 8px; }
html[data-site-theme="public"] .solver-result-inference { color:var(--plum); }
html[data-site-theme="public"] .solver-principle--compact { padding:14px 20px; margin:20px 0; max-width:none; }
html[data-site-theme="public"] .solver-principle--compact strong { font-size:.85rem; }
html[data-site-theme="public"] .solver-principle--compact p { font-size:1.08rem; }
html[data-site-theme="public"] .solver-start { border-top:1px solid var(--line); margin-top:22px; padding-top:16px; }
html[data-site-theme="public"] .solver-start h2 { font-size:1.9rem; margin:0 0 22px; }
html[data-site-theme="public"] .solver-start-grid { display:grid; grid-template-columns:1fr 1fr; gap:32px; align-items:start; }
html[data-site-theme="public"] .solver-start h3 { font-size:1.8rem; margin:0 0 14px; }
html[data-site-theme="public"] .solver-start-copy p { line-height:1.6; margin-bottom:14px; }
html[data-site-theme="public"] .solver-start-copy .marketing-eyebrow { margin-bottom:8px; }
html[data-site-theme="public"] .solver-look-for { padding-left:15px; border-left:2px solid var(--gold-dark); }
html[data-site-theme="public"] .solver-look-for strong { display:block; color:var(--plum); margin-bottom:3px; }
html[data-site-theme="public"] .solver-result-cta { display:inline-flex; gap:12px; justify-content:space-between; max-width:100%; white-space:normal; line-height:1.4; padding:13px 20px; border-radius:24px; }
html[data-site-theme="public"] .solver-context-hint { font-size:.83rem; color:var(--muted); margin-top:9px; }
html[data-site-theme="public"] .solver-tool-visual { margin:0; min-width:0; }
html[data-site-theme="public"] .solver-tool-visual img { width:100%; height:auto; border-radius:14px; border:1px solid var(--line); }
html[data-site-theme="public"] .solver-visual-placeholder { min-height:290px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:14px; padding:28px; color:var(--plum); background:linear-gradient(145deg,#f4e7ed,#fbf2e3); border:1px dashed #a67d91; border-radius:14px; }
html[data-site-theme="public"] .solver-visual-placeholder strong { font:1.7rem/1.2 Georgia,serif; }
html[data-site-theme="public"] .solver-visual-placeholder p { max-width:300px; margin:0; font-size:.92rem; line-height:1.5; }
html[data-site-theme="public"] .solver-tool-visual figcaption { font-size:.82rem; line-height:1.5; color:var(--muted); padding:12px 4px; }
html[data-site-theme="public"] .solver-also,html[data-site-theme="public"] .solver-deeper,html[data-site-theme="public"] .solver-supporting { border-top:1px solid var(--line); margin-top:24px; padding-top:18px; }
html[data-site-theme="public"] .solver-also>strong { font-size:.85rem; color:var(--muted); }
html[data-site-theme="public"] .solver-also h3 { font-size:1.3rem; margin:8px 0; }
html[data-site-theme="public"] .solver-also p,html[data-site-theme="public"] .solver-deeper p { margin-bottom:8px; max-width:800px; }
html[data-site-theme="public"] .solver-supporting h2 { font-size:1.5rem; margin:0 0 15px; }
html[data-site-theme="public"] .solver-result--support { padding:12px 0; border-bottom:1px solid var(--line); }
html[data-site-theme="public"] .solver-result--support summary { cursor:pointer; font:1.18rem/1.4 Georgia,serif; color:var(--plum); }
html[data-site-theme="public"] .solver-result--support p { margin:12px 0 0; }
html[data-site-theme="public"] .solver-workspace-picker { max-width:650px; }
html[data-site-theme="public"] .solver-workspace-picker .marketing-btn { max-width:100%; white-space:normal; }
html[data-site-theme="public"] .solver-workspace-picker select { width:100%; padding:12px; margin:12px 0 20px; background:#fffaf2; border:1px solid #aa8799; border-radius:8px; }
@media(max-width:700px) { html[data-site-theme="public"] .solver-start-grid { grid-template-columns:1fr; gap:18px; } html[data-site-theme="public"] .solver-visual-placeholder { min-height:220px; } html[data-site-theme="public"] .solver-result-cta { width:100%; } }

View File

@ -0,0 +1,121 @@
import json
from pathlib import Path
r=Path(__file__).resolve().parents[2];g=json.loads((r/'PlotLine/Content/WritingSolver/Candidates/curated-v2-stage1/writing-solver-curated-v2-stage1.json').read_text())
# Audited routes are existing application actions. Character-specific tools require explicit selection.
caps=[
('plot','plot-lines','Plot Lines Workspace','Follow selected storylines through their recorded scene contributions. Focus isolates one line; Weave shows shared scenes and the gaps between contributions.','plot-lines','/PlotLineWorkspace?projectId={projectId}','PlotLineWorkspace/Index','plot-lines-weave.webp','Two or three selected lines, shared scene junctions, contribution roles and dashed scene/chapter gaps.'),
('timeline','timeline','Timeline','Compare scene order with the dates, times and locations recorded for each scene. Select scenes to inspect the details behind the sequence.','timeline','/Timeline?projectId={projectId}','Timeline/Index','timeline-chronology.webp','Departure/arrival or cause/reaction scenes with recorded dates, times, duration and location visible.'),
('scenes','scenes-and-chapters','Timeline · scenes and chapters','See scenes grouped under chapters in manuscript order, with their summaries, purposes and linked story elements available for inspection.','story','/Timeline?projectId={projectId}','Timeline/Index','timeline-scene-overview.webp','Chapter bands and several scene cards with summaries, purpose labels, character chips and POV labels.'),
('cast','characters','Characters','Keep character records together, then open an individual character to review established facts and linked appearances.','characters','/Characters?projectId={projectId}','Characters/Index','character-records.webp','A fictional cast with distinguishable records; an example record can be opened during the later capture session.'),
('appearances','characters','Timeline · character appearances','Read the character and POV labels attached to scene cards in manuscript order. Use scene details to check whose presence is recorded.','characters','/Timeline?projectId={projectId}','Timeline/Index','timeline-scene-overview.webp','The same chapter/scene overview used for structure, with readable character chips and POV labels.'),
('relationships','relationships','Relationship Map','See recorded connections at a selected story position. Compare positions to review how states, intensity and each side’s perspective change.','characters','/RelationshipMap?projectId={projectId}','RelationshipMap/Index','relationship-map.webp','A small readable network at a named story position, with connection state, direction and selected relationship detail.'),
('knowledge','knowledge-and-revelations','Character knowledge timeline','Choose a character and follow their recorded learning, suspicion and misunderstanding through linked scenes.','knowledge','/Dynamics/Knowledge/{characterId}?projectId={projectId}','Dynamics/Knowledge','character-knowledge.webp','One fictional character’s learning events with book/chapter/scene references, information item and knowledge state.'),
('development','character-development','Character arc','Choose a character and compare their recorded development and story involvement across scenes.','characters','/Dynamics/Character/{characterId}?projectId={projectId}','Dynamics/Character','character-arc.webp','One fictional character’s recorded arc with readable scene references and any configured development values.'),
('locations','locations','Locations','Keep an agreed reference for each place and open its record when checking how it is described or used in scenes.','continuity','/Locations?projectId={projectId}','Locations/Details','location-reference.webp','A fictional place’s description and scene references. Do not imply automatic version history or geometry comparison.'),
('objects','important-objects','Continuity Explorer · object journey','Follow recorded asset states across a scene range. Restrict the view to assets, then inspect the object and scene entries that need to agree.','continuity','/ContinuityExplorer?projectId={projectId}&mode=Journey&EntityTypes=Assets','ContinuityExplorer/Index','object-journey.webp','Journey mode, Assets selected, a named fictional object and its recorded states across several scenes.'),
('flow','story-flow','Timeline · story values','With scene values recorded, compare their shape across the manuscript. The graph gives you a pattern to inspect; the creative judgement remains yours.','insights','/Timeline?projectId={projectId}','Timeline/Index','timeline-story-values.webp','Metric Shape enabled with a readable recorded tension/development value, chapter bands and scene positions.'),
('scenarios','scenarios','Scenarios','Keep proposed scene arrangements separate from the established manuscript, then inspect how a different order would work.','story','/Scenarios?projectId={projectId}','Scenarios/Compare','scenario-alternatives.webp','One named fictional scenario compared with the main order, showing the real changed-scene comparison. Reach it from the scenario list; do not fabricate simultaneous timelines.'),
('continuity','continuity','Continuity Explorer','Inspect recorded story state at a scene, or follow changes across a range, with links back to the relevant story details.','continuity','/ContinuityExplorer?projectId={projectId}','ContinuityExplorer/Index','continuity-story-state.webp','Story State mode at a selected scene with a few readable character/asset/location states and provenance labels.'),
('series','books-and-series','Project · books and series','Keep the books in one project so their order and shared story records are accessible from the same place.','story','/Projects/Details/{projectId}','Projects/Details','series-project.webp','An ordered fictional multi-book project with book cards and navigation to shared characters, story bible and plot lines.'),
('organisation','story-organisation','Story Bible','Search and browse the story records connected to your project instead of maintaining a separate mental index of every note.','knowledge','/StoryBible?projectId={projectId}','StoryBible/Index','story-bible.webp','A fictional project’s searchable story bible with a few related records and meaningful links to their source views.')]
capabilities=[dict(id=id,feature=feature,name=name,shows=shows,tour='/features#'+tour,workspaceRoute=route,captureView=view,asset=asset,capture=capture,image=None) for id,feature,name,shows,tour,route,view,asset,capture in caps]
captions=['Selected storylines, shared scenes and the gaps between contributions.','Scene timing and locations alongside the manuscript sequence.','Chapters and scene cards with purposes, characters and points of view.','Cast records that keep established details close to their scenes.','Character and viewpoint labels across the scene sequence.','Connections and their recorded states at a chosen story position.','The scenes where one character learns, suspects or misunderstands something.','One character’s recorded development and story involvement.','A reference for an established place and the scenes using it.','Recorded object states followed through a range of scenes.','Recorded scene values showing the shape of change across the manuscript.','Named alternatives kept separate from the established order.','Recorded story state at a selected point in the manuscript.','Books in order with shared story records close at hand.','Searchable story records and links back to their context.']
for capability,caption in zip(capabilities,captions):capability['previewCaption']=caption
# diagnosis: capability | reasoned conclusion | why this view first | look for
rows='''
01|plot|The difficulty is keeping several open threads visible together, rather than remembering one scene.|A map of selected lines gives each open thread a visible place in the manuscript.|Open lines with long breaks, overlapping work and threads you keep searching back to recover.
02|plot|The concern is the gap before a thread returns and whether its earlier importance survives that absence.|The gap markers make the distance between a line’s recorded contributions easier to judge.|The last meaningful contribution before the gap, its return, and what the reader must still remember.
03|plot|The threads may be understandable separately while their effects on one another remain hard to see.|Weave puts shared contributions and recorded connections beside the separate lines.|Shared junctions, consequences crossing between threads and stretches that continue without affecting each other.
04|plot|This points to a balance you want to change, rather than a rule that every storyline needs equal space.|Compare the line carrying most of the book with the supporting work you still want the others to do.|Extended runs on one line, gaps in supporting lines and the scenes where their work reconnects.
05|scenes|The useful question is what each scene changes or makes possible, rather than whether it belongs to a category.|Scene summaries and purpose labels let you compare a passage with the scenes that depend on it.|A change, decision, discovery or later consequence that would be lost without the scene.
06|plot|The connection between an earlier promise and its later answer needs to be made visible.|Following the relevant thread can put preparation and payoff in the same review path.|Introductions without later contributions, payoffs without preparation, and long gaps between the two.
07|plot|The issue is how events cause consequences, rather than simply how many events happen.|Follow the relevant line’s contribution roles and stored dependencies to compare cause with response.|An action that changes the next scene, or a sequence that would play out the same way without the earlier event.
08|cast|Keeping the cast identifiable has become a memory burden.|Character records give names, roles and established details a consistent place to return to.|People you repeatedly confuse, records with too little distinguishing context and the scenes that establish each role.
09|cast|The overlap concerns what the characters contribute, not just whether their names are similar.|Compare the two records and their linked appearances before deciding what each uniquely brings.|Different decisions, pressures, relationships or scene contributions that justify keeping both characters.
10|appearances|The important question is what is left waiting during the character’s absence.|Scene cards make the appearances surrounding a gap easier to compare in manuscript order.|The last unresolved action before the gap, the next appearance and any missing bridge between them.
11|appearances|The mismatch is between the role you intended and the presence the manuscript currently gives it.|Character labels on scene cards help you compare actual recorded appearances with the role you want.|Long runs of one character, quieter important roles and places where the intended emphasis changes.
12|appearances|The concern is the work each viewpoint carries, rather than equal scene counts.|POV labels let you follow which narrator carries each stretch of the manuscript.|Long absences, repeated coverage and essential scenes that only one viewpoint can provide.
13|cast|An established character fact needs a consistent reference across the conflicting passages.|The character record gives you a place to settle the intended fact, then revisit linked scenes.|The agreed fact, the first passage establishing it and later uses that need to match.
14|timeline|The difficulty is keeping each character’s position straight from one appearance to the next.|Scene locations and character labels let you compare the relevant appearances side by side.|The last known position, the next appearance and any intervening move that has not been accounted for.
15|relationships|The burden is the network of connections, rather than one isolated relationship.|A map externalises the connections so you do not have to hold the whole network in memory.|Family links, alliances and connections you repeatedly have to reconstruct.
16|relationships|The relationship’s current state needs to be pinned to a point in the story.|Compare the recorded relationship at selected story positions instead of relying on a single overall label.|The last clear state, the scene that changes it and later behaviour that assumes a different stage.
17|relationships|The change needs the moments that would make it feel earned.|Review the relationship state at points before and after the change, then return to the scenes between them.|Choices, encounters or consequences that prepare the shift, rather than a new label appearing on its own.
18|relationships|The concern is repeated relationship position despite opportunities to change, not slowness by itself.|Comparing story positions gives you specific encounters to review for development.|Encounters that repeat the same state and events that should alter what the characters can do next.
19|relationships|Different interpretations can be intentional; the task is keeping those perspectives legible.|Directional relationship records let you compare what each side believes at a chosen position.|Where the two views differ, what each character knows and the behaviour that follows from that difference.
20|relationships|The event’s effects need to be followed across several connections.|A network view helps you revisit each affected connection instead of following only the most obvious pair.|Connections touched by the event, their before-and-after states and consequences still missing from later scenes.
21|knowledge|A recorded learning opportunity needs to precede the character acting on the information.|Follow the character’s knowledge events back to the relevant scenes.|The first use of the information, the first opportunity to learn it and any missing link between them.
22|knowledge|The task is locating an existing source of knowledge rather than assuming the character could not know it.|The character’s knowledge timeline gives the learning event a scene reference you can return to.|The conversation, witness or discovery that supplies the fact and the next scene relying on it.
23|knowledge|The separate pieces known by each viewpoint need to stay distinguishable.|Review one character’s knowledge timeline, then repeat for the other viewpoints involved.|Who has each piece, who only suspects it and which scene changes that position.
24|knowledge|The current sequence puts a discovery and its use in an order you need to reconcile.|Linked knowledge events let you trace a reaction back to the scene that should enable it.|Reactions before discoveries, reveals before preparation and learning events affected by moved scenes.
25|knowledge|The trail of discoveries has become harder to follow than an individual clue.|Follow the recorded knowledge events for the character investigating the trail.|Clues already encountered, changes in interpretation and discoveries that never reach the people relying on them.
26|knowledge|The issue is when information reaches the reader relative to the experience you want.|Use the linked discovery scenes as reference points, then compare what the prose reveals around them.|Preparation before the reveal, the intended moment of understanding and scenes that give away or withhold too much.
27|timeline|The stated positions of the events need to fit on one consistent sequence.|Dates and scene references make the conflict concrete enough to compare.|The two incompatible points, any fixed anchor and the neighbouring scenes affected by a correction.
28|timeline|The sequence may be clear while the interval between its events still does not fit.|Compare the recorded endpoints and the events that must happen between them.|The start, the finish and the amount of story time available for travel, recovery or other intervening action.
29|timeline|The age and the dates need to agree with the same established birthday.|Put the dated scenes in order, then check their ages against the character’s agreed reference.|The birthday, elapsed years and the exact scene where the age no longer fits.
30|timeline|A workable chronology can differ deliberately from the order in which readers encounter it.|Keep the manuscript sequence visible while checking the dates attached to its scenes.|The actual event sequence, each jump in reading order and the information the reader has at that point.
31|timeline|The overlapping chains of events need a common time reference.|Compare the scene dates and times across the people or threads involved.|Events that overlap, shared deadlines and reactions that depend on another sequence having reached a particular point.
32|timeline|The invented events need to fit around an anchor that cannot move.|Record the fixed date alongside the surrounding fictional scenes.|The anchor, time available before and after it and any movable event carrying an impossible interval.
33|scenes|The number of scenes is making the larger arrangement difficult to hold in view.|Chapter groups and scene summaries give you a manageable overview before you open the prose.|Crowded stretches, chapter boundaries and scenes whose place is hard to remember.
34|scenes|The decision is about what changes when the scene sits in a different position.|Compare its neighbouring scenes and linked story elements in manuscript order.|What must already have happened, what follows from this scene and which information the reader needs first.
35|scenes|The chapter boundaries are shaping the reading experience unevenly.|Chapter bands make the groups visible alongside the scenes each contains.|Breaks that interrupt a developing sequence, unusually compressed sections and stretches with little change.
36|scenes|The overlap is in what scenes give the reader, rather than their superficial similarity.|Compare their summaries, purposes and linked developments before deciding whether both are needed.|The unique work of each scene and information or changes that the other already provides.
37|scenarios|You want room to test an arrangement without committing to it immediately.|A scenario keeps the proposed order separate while you inspect its consequences.|Moved scenes, newly separated setup/payoff and the version you want to preserve as a reference.
38|timeline|The appearances need a journey that can fit between their recorded places and times.|Compare departure and arrival scenes using their location and timing details.|A possible route, the available interval and any intervening scene that changes where the character can be.
39|locations|The place needs an agreed reference before the incompatible descriptions can be reconciled.|Use the place’s description and linked scenes as the starting reference for a manual consistency check.|The intended version of the place and the passages whose details need to agree with it.
40|objects|The task is following an object’s recorded path rather than memorising its last appearance.|Journey mode keeps asset states attached to the scenes where they are recorded.|The last clear holder or position, the next appearance and any handover you need to check.
41|objects|The person using the object needs a plausible opportunity to receive it.|Follow the recorded asset states around the relevant scene range.|The previous holder, the acquisition or handover and the first use by the new character.
42|objects|The later appearance needs to agree with what previously happened to the object.|Journey mode gives the conflicting states scene references you can inspect.|Loss, damage or destruction, the later state and any intended explanation connecting the two.
43|flow|The concern is events failing to change what can happen next, rather than a quiet tone alone.|Recorded scene values give you positions to compare with the underlying events and consequences.|Long stretches with little recorded movement and the events that should change the available choices.
44|flow|Progress exists, but its distribution is not producing the rhythm you want.|Compare the shape of recorded scene values with the chapter and scene sequence.|Changes packed together between long waits, then the scenes that create those transitions.
45|flow|The pressure pattern needs to match the experience you want the reader to have.|A recorded tension value makes rises, drops and clusters concrete enough to inspect.|Unintended drops after a rise, isolated spikes and the scenes that should sustain or release pressure.
46|development|The events need a more legible effect on this character’s choices.|Review the character’s recorded arc and linked story involvement at the points you identified.|Responses to significant events, repeated choices and small changes that may be missing or hard to see.
47|flow|The changes that matter are arriving later than you want them to.|Use recorded development values and scene positions to inspect the lead-in to the ending.|Early preparation, development left waiting and the cluster of changes in the closing section.
48|continuity|The difficulty is tracing the effects of a revision beyond the scene you changed.|Story-state records and scene references give you a starting point for checking the affected details.|The first changed fact or event, later uses of it and connections still reflecting the previous version.
49|scenarios|The alternatives need to stay distinguishable while you decide which arrangement serves the story.|Named scenarios keep proposed arrangements separate from the established order.|The difference between versions, the consequences of each order and the reference version you want to keep.
50|series|The earlier books contain established material you need to keep available while writing the next one.|A shared project keeps the book sequence and routes to common story records together.|Established facts in earlier books, the book introducing each one and the later passage that relies on it.
51|plot|The thread needs to stay visible across book boundaries, even when its payoff is intentionally distant.|Use the workspace’s book scope to follow the same line across the series or within one book.|The last contribution in each book, intentional quiet stretches and the eventual setup/payoff connection.
52|organisation|The organisation is consuming attention that you want to give back to writing.|A searchable story bible provides one place to find the records you keep reconstructing from separate notes.|Repeated searches, duplicated references and the small set of records you return to most often.
'''
secondary={4:('flow','Once the thread balance is visible, recorded story values can help you inspect how its prominence changes the reading rhythm.'),14:('locations','Use the place record as a reference when an appearance depends on a recurring location.'),29:('cast','Settle the agreed birthday or age reference in the character record before correcting the dated scenes.'),34:('scenarios','If several positions could work, preserve the current order while trying an alternative.'),38:('locations','Check the place descriptions and location references when judging the possible journey.'),46:('flow','Compare the individual arc with the wider scene-value pattern when the surrounding story is moving differently.'),51:('series','Use the project’s ordered books as a reference when a thread spans more than one manuscript.')}
articles={1:'plotLines.workspace',2:'plotLines.workspace',3:'plotLines.workspace',4:'plotLines.workspace',10:'characters.sceneAppearances',11:'characters.sceneAppearances',12:'timeline.characterAppearances',21:'characters.knowledge',22:'characters.knowledge',23:'characters.knowledge',33:'timeline.sceneCards',34:'timeline.sceneCards',37:'scenarios.overview',49:'scenarios.overview'}
principles={4:'Narrative balance is about intention, not equal quantities.',5:'A scene earns its place through what it contributes, not through how busy it is.',19:'Two characters can understand the same relationship differently without either view being a continuity error.',30:'Reading order and story chronology do not have to be the same.',37:'An experiment is easier to judge when the established version is still available.'}
results=[]
for line in rows.strip().splitlines():
id,cap,explanation,reason,look=line.split('|');i=int(id)
results.append(dict(solution='d'+id,capability=cap,explanation=explanation,reason=reason,lookFor=look,principle=principles.get(i),secondary=secondary.get(i,(None,None))[0],secondaryReason=secondary.get(i,(None,None))[1],articleKey=articles.get(i)))
# These are authored paraphrases of actual choices; rules below bind them to exact node/choice identities.
phrases={
('threads','lost'):'You have to search back to remember which threads are still open.',('threads','gap'):'A thread returns after you have lost why it matters.',('threads','apart'):'The threads continue, but events in one scarcely affect the others.',('threads','scenes'):'You can follow the thread but cannot tell what individual scenes add.',
('purpose','nothing'):'You cannot find anything later that depends on the scene.',('purpose','same'):'Another scene already gives the reader the same thing.',('purpose','missing-link'):'A later action or reaction depends on this scene.',('purpose','thread'):'The scene belongs to a thread whose destination you cannot see.',
('causality','reset'):'The next event could happen much the same way without the earlier one.',('causality','offstage'):'Consequences appear in another thread without a clear connection.',('causality','promise'):'You are waiting for an earlier promise to matter.',
('payoff','remember'):'An earlier promise never seems to receive an answer.',('payoff','prepare'):'The answer arrives with little preparation.',('payoff','clues'):'You lose track of which clues have been noticed.',('payoff','order'):'The reader meets the answer before the necessary information.',
('cast','remember'):'You forget who a character is or how they fit in.',('cast','same-job'):'Another character could take their place without changing what happens.',('cast','gap'):'Something important is left with the character before a long absence.',('cast','share'):'Their share of the manuscript differs from the role you intended.',('cast','voice'):'One narrator carries most of the account although you need the others to carry more.',
('relationships','unprepared'):'The behaviour changes, but you cannot find the moments that would earn the change.',('relationships','repeat'):'Their encounters return to the same position despite chances to change.',('relationships','stage'):'Their behaviour suggests different stages, and you cannot place the shift.',('relationships','views'):'They behave consistently but understand the relationship differently.',('relationships','ripples'):'One event changes several connections and you lose track of its effects.',('relationships','network'):'You keep confusing who is connected to whom across several relationships.',
('knowledge','no-source'):'Someone acts on information without a learning opportunity you can find.',('knowledge','source'):'You know they learn it but cannot locate the conversation or discovery.',('knowledge','povs'):'You can find the facts but lose track of which narrator has which pieces.',('knowledge','clues'):'You lose the trail as different people encounter the clues.',('knowledge','order'):'The current scene order puts the discovery after the reaction.',('knowledge','reader'):'The characters are consistent; the reader gets the answer at the wrong moment.',
('time','clash'):'Two stated dates or event positions cannot both be true.',('time','elapsed'):'The sequence is clear but the gap between events does not fit.',('time','age'):'The calendar would work if the character had a different age.',('time','reading'):'The events fit in time but the reader meets them in another order.',('time','parallel'):'Separate chains of events overlap and you lose where each has reached.',('time','fixed'):'A real-world date cannot move, so the invented events must fit around it.',('time','travel'):'The journey cannot fit between the two appearances.',
('whereabouts','where'):'The moves could work, but you forget where the character last was.',('whereabouts','journey'):'The next appearance leaves no possible journey from the previous one.',('whereabouts','parallel'):'Several people move at once and you lose which events overlap.',
('structure','volume'):'You can describe the scenes but cannot keep the whole arrangement in view.',('structure','place'):'Several positions seem possible and you cannot see what each changes.',('structure','chapter'):'The scenes work individually but the chapter breaks produce uneven stretches.',('structure','repeat'):'Different scenes give the reader substantially the same thing.',('structure','purpose'):'You cannot say what would be lost if some scenes went.',
('object','track'):'A plausible handover or move exists, but you keep losing where it ended up.',('object','holder'):'The person using the object has no opportunity to receive it.',('object','history'):'An earlier loss, damage or destruction is incompatible with the later state.',('object','place'):'The physical position does not fit the earlier scene, rather than the person holding it.',
('place','facts'):'The same place has incompatible details.',('place','people'):'The place is consistent; the characters’ route does not fit.',('place','object'):'Only an object there has changed state; the place is consistent.',
('progression','nothing'):'Events repeat without changing what anyone can do next.',('progression','uneven'):'There is progress, but developments arrive in bunches between long waits.',('progression','late'):'Most of the changes that matter are left until the closing section.',('progression','tension'):'The situation changes, but the pressure drops or spikes unexpectedly.',('progression','character'):'Events move forward while one character seems unaffected.',
('arc','unchanged'):'The character’s choices return to the same place after events that should affect them.',('arc','late'):'Their responses change, but nearly all that change arrives near the ending.',('arc','absent'):'The change may be there, but you spend too long away from the character to follow it.',
('change','ripples'):'You have to chase the effects of a small change through several scenes.',('change','position'):'You mainly need to see where the moved scene fits.',('change','try'):'You want to try a different arrangement while keeping the current one safe.',('change','versions'):'Several arrangements could work and you need to compare them.',('change','information'):'Discoveries and reactions now appear in the wrong order.',
('series','facts'):'You need established facts from several books before trusting a new passage.',('series','thread'):'A thread remains open across books and you cannot see where each book advances it.',('series','both'):'Both established facts and threads spanning the books are hard to follow.',
('overload','whole'):'Several kinds of detail slip together; fixing one makes you lose another.',('overload','scenes'):'It is mostly the scenes’ place in the larger arrangement that slips.',('overload','threads'):'It is mostly which storylines are still open that slips.',('overload','cast'):'It is mostly who the characters are and how they fit that slips.',
('facts','detail'):'An established appearance, background or other character fact changes.',('facts','age'):'The age and the dates cannot both be right.',('facts','knowledge'):'The facts are consistent; the character knows something they have not learned.'}
evidence=[]
for n in g['nodes']:
for c in n['choices']:
observed={k for k,v in c['weights'].items() if k.startswith('observed-') and v>0}
matched=[s['id'] for s in g['solutions'] if observed.intersection(s['requiredSignals'])]
if matched:
if n['id']=='dominance-intention':text='You want the other threads to carry more of the book than they currently do.'
else:
family=n['id'].split('-')[1];text=phrases[(family,c['id'])]
evidence.append(dict(node=n['id'],choice=c['id'],solutions=matched,text=text,priority=100))
if n['id'].startswith('intent-') and c['id'] in ('unwanted','manage'):
# The exact selected intention is quoted so a deliberate management concern is never rewritten as unwanted creative change.
evidence.append(dict(node=n['id'],choice=c['id'],solutions=[s['id'] for s in g['solutions']],text='You also said, “'+c['text']+'”.',priority=80))
for cid,text in [('space','You described scenes from this storyline expanding and squeezing out work you still want the other threads to do.'),('gaps','The supporting threads vanish while this one is prominent.'),('apart','Other threads continue, but stop affecting this one.'),('turns','Most of the big turning points belong to this storyline.'),('voice','A character or narrator may be creating the impression of dominance.')]:
evidence.append(dict(node='dominance-observation',choice=cid,solutions=['d04'],text=text,priority=110))
(r/'PlotLine/Content/WritingSolver/Presentation/results-v1.json').write_text(json.dumps(dict(capabilities=capabilities,results=results,evidence=evidence),ensure_ascii=False,indent=2)+'\n')