Complete permanent writing problem resources and grouped discovery

This commit is contained in:
Nick Beckley 2026-11-02 11:02:03 +00:00
parent c76673b39c
commit b69085f01d
22 changed files with 2275 additions and 25 deletions

View File

@ -0,0 +1,583 @@
# Permanent Writing Problem editorial audit
All 52 authoritative diagnoses reviewed and substantially rewritten in a separate authored editorial catalogue. Solver graph, identifiers, slugs, H1s, evidence/scoring and capability choices are unchanged. Each resource now provides recognition, common causes with a concrete example, three manuscript checks, a mental model and two neighbouring problems.
Search intents are editorial hypotheses, not measured search-volume research. Six per diagnosis (312 total), stored with the content in `PlotLine/Content/WritingSolver/Editorial/pages-v1.json`; never rendered as keyword lists.
Nine grouped discovery pages provide ordinary HTML links to all 52 resources. The solver entry links quietly to `/writing-problems/browse`; results link to their group and two relevant neighbours. Existing feature routes remain linked. No site-wide catalogue or hidden links.
HTML title and description are individually authored, unique and used consistently in Open Graph and existing WebPage structured data. Original H1s and clean self canonical/OG URLs are retained. No FAQ schema added; old unhelpful question lists are omitted on the new resources. Development remains noindex; index-enabled fixture validation covers eventual production behaviour.
## Individual review and intent mapping
### D01 — There are too many storylines to keep in your head
- URL: `/writing-problems/too-many-storylines-to-manage`
- HTML/OG title: Too many storylines in a novel: finding an overview
- Description: Find a workable overview of multiple storylines, their open questions and shared consequences without assuming a complex novel needs fewer plots.
- Area: plots
- Distinction: Managing the number and connections of open threads, rather than the length of one thread's absence.
- Related: D02, D04
- Editorial search intents: too many storylines in my novel; how many subplots is too many; keeping track of multiple plots; organising intertwined storylines; my novel has too many threads; how to manage a complicated plot
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D02 — A storyline disappears for too long
- URL: `/writing-problems/storyline-disappears-for-too-long`
- HTML/OG title: When a subplot disappears for too long
- Description: Inspect long subplot gaps, what keeps a question alive during an absence, and what a returning thread expects readers to remember.
- Area: plots
- Distinction: The interval between one thread's contributions is the issue, even if the rest of the novel is well balanced.
- Related: D04, D51
- Editorial search intents: subplot disappears halfway through novel; how often should a subplot appear; forgotten subplot in my story; story thread goes missing; bringing back a subplot after a long gap; keeping a subplot alive
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D03 — Your storylines don't feel connected
- URL: `/writing-problems/storylines-dont-connect`
- HTML/OG title: Connecting separate storylines without forcing them together
- Description: Explore why separate storylines feel disconnected and inspect the information, decisions and consequences that could connect them.
- Area: plots
- Distinction: Connections between lines are missing, rather than events within one line failing to cause each other.
- Related: D01, D07
- Editorial search intents: my subplots do not connect; how to weave storylines together; connecting multiple plots in a novel; separate story threads feel unrelated; making subplots affect the main plot; bringing storylines together at the end
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D04 — One storyline is taking over the book
- URL: `/writing-problems/one-storyline-is-taking-over`
- HTML/OG title: When one storyline takes over the novel
- Description: Compare the space given to a dominant storyline with your intended balance, including supporting threads that still need room to develop.
- Area: plots
- Distinction: The allocation of attention across storylines differs from your intention, rather than one isolated gap being the whole problem.
- Related: D02, D11
- Editorial search intents: one subplot takes over my novel; main plot crowds out subplots; balancing storylines in a book; too much space given to one storyline; my novel changed focus while drafting; how much space should subplots get
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D05 — You're not sure what some scenes are contributing
- URL: `/writing-problems/scenes-with-no-clear-purpose`
- HTML/OG title: Working out what a scene contributes
- Description: Work out what a scene contributes by tracing change, later dependencies and what readers would lose if the scene disappeared.
- Area: structure
- Distinction: The contribution of an individual scene is unclear; repeated contributions across several scenes are a different question.
- Related: D36, D34
- Editorial search intents: what is the purpose of a scene; scene does not advance the plot; how to tell if a scene is needed; quiet scenes in a novel; what should each scene contribute; my scene feels pointless
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D06 — Your setups and payoffs have become disconnected
- URL: `/writing-problems/setups-without-payoffs`
- HTML/OG title: Keeping track of setups and payoffs
- Description: Trace setups to their payoffs and check what remains of a promise after scenes, clues or endings change during revision.
- Area: plots
- Distinction: Preparation and response have lost their connection; the timing of an otherwise prepared reveal may need a different review.
- Related: D25, D26
- Editorial search intents: tracking setups and payoffs in a novel; forgotten foreshadowing in my book; payoff feels unearned; plot promises without resolution; how to track Chekhov's gun; setups removed during revision
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D07 — Things happen, but the story doesn't seem to build
- URL: `/writing-problems/story-feels-like-unconnected-events`
- HTML/OG title: When a story feels like a sequence of unrelated events
- Description: Inspect cause and effect when a novel feels like unrelated events, distinguishing purposeful episodic structure from missing consequences.
- Area: plots
- Distinction: The causal links between events are weak, rather than a connected sequence simply changing too little.
- Related: D03, D43
- Editorial search intents: my story is just a series of events; plot lacks cause and effect; things happen but story goes nowhere; how to connect scenes causally; episodic novel feels disconnected; making events build into a plot
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D08 — There are too many characters to keep straight
- URL: `/writing-problems/too-many-characters-to-manage`
- HTML/OG title: Keeping track of a large cast of characters
- Description: Manage a large fictional cast by making roles, introductions and later appearances easier to retrieve and distinguish.
- Area: people
- Distinction: The cast as a whole is difficult to retrieve and distinguish; overlap between two specific roles is more focused.
- Related: D09, D15
- Editorial search intents: too many characters in my novel; how to keep track of characters while writing; organising a large cast; remembering minor characters in a book; introducing too many names; managing an ensemble novel
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D09 — Some characters may be doing the same job in the story
- URL: `/writing-problems/characters-doing-the-same-job`
- HTML/OG title: When two characters seem to do the same job
- Description: Compare characters whose narrative functions overlap before deciding whether to distinguish, develop or combine their roles.
- Area: people
- Distinction: Two characters have overlapping narrative functions, rather than the cast simply being large.
- Related: D08, D36
- Editorial search intents: two characters do the same job; should I combine characters in my novel; redundant characters in a story; characters feel interchangeable; distinguishing character roles; how to tell if a character is necessary
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D10 — An important character disappears for a long stretch
- URL: `/writing-problems/character-disappears-for-too-long`
- HTML/OG title: When an important character disappears from the story
- Description: Review an important character's long absence, the effects that remain active, and the demands their return places on the reader.
- Area: people
- Distinction: One character's stretch of absence needs attention, rather than the overall proportions of the cast.
- Related: D11, D02
- Editorial search intents: character disappears halfway through book; important character missing for chapters; how long can a character be absent; bringing back a forgotten character; tracking character appearances; reader forgets a supporting character
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D11 — Your characters aren't appearing in the proportions you expected
- URL: `/writing-problems/character-presence-is-unbalanced`
- HTML/OG title: Balancing character presence across a novel
- Description: Inspect how character presence is distributed across a novel without assuming an ensemble needs equal space for every person.
- Area: people
- Distinction: The distribution of attention across characters is the concern, rather than one person's isolated absence.
- Related: D10, D12
- Editorial search intents: balancing character screen time in a novel; character presence is unbalanced; supporting characters get too little space; ensemble cast balance; one character dominates my book; tracking how often characters appear
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D12 — Your points of view are becoming difficult to balance
- URL: `/writing-problems/pov-characters-are-unbalanced`
- HTML/OG title: Making sense of viewpoint balance
- Description: Review viewpoint patterns, long switches and each narrator's unique access without imposing equal chapter counts.
- Area: people
- Distinction: The pattern of narrative perspectives is at issue; different information held by those perspectives is a separate layer.
- Related: D11, D23
- Editorial search intents: balancing multiple POV characters; uneven viewpoint chapters; one narrator has too many chapters; how often to switch POV; tracking point of view in a novel; do POV characters need equal space
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D13 — A character's details don't stay consistent
- URL: `/writing-problems/character-details-dont-match`
- HTML/OG title: Keeping established character details consistent
- Description: Reconcile character descriptions and established facts while allowing intentional change, unreliable accounts and differences of perspective.
- Area: people
- Distinction: Established non-temporal facts need reconciliation; age arithmetic and conflicting interpretations require different checks.
- Related: D29, D19
- Editorial search intents: character details inconsistent in my novel; keeping character facts straight; character description changes between chapters; tracking character backstory; continuity errors in character profiles; how to maintain a character reference
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D14 — You're losing track of where your characters are
- URL: `/writing-problems/losing-track-of-character-whereabouts`
- HTML/OG title: Knowing where characters are between scenes
- Description: Track last confirmed character locations and distinguish uncertain whereabouts from a journey that is demonstrably impossible.
- Area: world
- Distinction: The last reliable position is uncertain; a known journey that cannot fit is a different problem.
- Related: D38, D31
- Editorial search intents: how to track character locations; losing track of where characters are; character whereabouts between scenes; tracking off page movement; where was this character last seen; organising character movement in a novel
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D15 — There are too many character relationships to hold in your head
- URL: `/writing-problems/too-many-character-relationships`
- HTML/OG title: Managing a complicated web of relationships
- Description: Make a complex fictional relationship network easier to inspect by separating connection types, story positions and changes.
- Area: relationships
- Distinction: The network is hard to hold in memory, rather than one pair's current state being unclear.
- Related: D16, D20
- Editorial search intents: tracking character relationships in a novel; complicated relationship map; organising family ties in fiction; keeping track of alliances; large cast relationship web; how to plan relationships between characters
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D16 — You're not sure where a relationship has reached
- URL: `/writing-problems/relationship-stage-is-unclear`
- HTML/OG title: Working out where a relationship has reached
- Description: Establish a relationship's current state from its turning points and each participant's understanding at a particular story position.
- Area: relationships
- Distinction: The relationship's present state is uncertain; lack of development over an interval is a different concern.
- Related: D18, D19
- Editorial search intents: tracking relationship stages in fiction; where has a character relationship reached; relationship continuity between scenes; characters act closer than they should; tracking trust changes; relationship status unclear in my novel
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D17 — A relationship changes before it feels earned
- URL: `/writing-problems/relationship-changes-too-quickly`
- HTML/OG title: When a relationship changes faster than expected
- Description: Inspect the experiences supporting a fast relationship transition without imposing a universal pace on trust, intimacy or alliance.
- Area: relationships
- Distinction: A particular transition lacks visible support, rather than a relationship staying unchanged for too long.
- Related: D18, D16
- Editorial search intents: relationship develops too fast in my novel; romance feels rushed; friendship change feels unearned; characters trust each other too quickly; pacing an alliance in fiction; missing relationship development scenes
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D18 — A relationship stops moving for too long
- URL: `/writing-problems/relationship-stops-developing`
- HTML/OG title: When a relationship seems to stop developing
- Description: Examine repeated relationship encounters for intended development, while distinguishing stagnation from deliberate slowness or stability.
- Area: relationships
- Distinction: The development across several encounters is flat relative to intention; a slow relationship is not automatically a fault.
- Related: D17, D16
- Editorial search intents: relationship subplot goes nowhere; romance stops developing; characters repeat the same argument; slow relationship or stalled relationship; how to track relationship progression; friendship arc feels static
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D19 — Your characters see the same relationship differently
- URL: `/writing-problems/characters-see-relationship-differently`
- HTML/OG title: When characters understand the same relationship differently
- Description: Track different interpretations of the same relationship without mistaking intentional asymmetry for an accidental inconsistency.
- Area: relationships
- Distinction: The two sides hold different interpretations; do not flatten that into one supposedly correct state.
- Related: D16, D23
- Editorial search intents: characters see relationship differently; one sided relationship in fiction; tracking asymmetric character relationships; unreliable relationship perspectives; characters misunderstand each other; different expectations in a romance subplot
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D20 — One event has changed too many relationships to track easily
- URL: `/writing-problems/relationship-changes-have-too-many-consequences`
- HTML/OG title: Following the consequences of a relationship turning point
- Description: Follow a betrayal, confession or alliance through a wider relationship network, including delayed and private consequences.
- Area: relationships
- Distinction: A specific social turning point has network effects, rather than every kind of revision dependency being the issue.
- Related: D15, D48
- Editorial search intents: betrayal affects too many relationships; tracking consequences of an alliance; character relationships after a major event; social fallout in a novel; keeping relationship changes consistent; one event changes the whole cast
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D21 — A character knows something they haven't learned yet
- URL: `/writing-problems/character-knows-something-too-early`
- HTML/OG title: When a character knows something too early
- Description: Check whether a character has access to information before using it, separating knowledge from suspicion, inference and bluff.
- Area: knowledge
- Distinction: There is a possible timing contradiction between acquiring information and using it, rather than an unlocated source alone.
- Related: D22, D24
- Editorial search intents: character knows something they have not learned; character knowledge continuity error; information revealed to character too early; tracking who knows what; author knowledge leaks into dialogue; character acts on future information
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D22 — You can't remember how a character learned something
- URL: `/writing-problems/cant-remember-how-character-learned-something`
- HTML/OG title: Remembering how a character learned something
- Description: Locate the source of a character's knowledge before deciding whether an apparent gap is a genuine continuity error.
- Area: knowledge
- Distinction: The source of a knowledge claim is missing from your working record; its timing may still be entirely plausible.
- Related: D21, D25
- Editorial search intents: how did my character learn this; tracking sources of character knowledge; cannot remember when character found out; who told this character; recording discoveries in a novel; lost explanation for character knowledge
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D23 — Different POV characters know different pieces of the story
- URL: `/writing-problems/different-povs-know-different-things`
- HTML/OG title: Keeping different viewpoints' knowledge separate
- Description: Keep viewpoint, character and reader knowledge separate when different people hold different parts of a story.
- Area: knowledge
- Distinction: Information differs between perspectives, rather than the distribution of viewpoint chapters being the concern.
- Related: D12, D21
- Editorial search intents: tracking knowledge across multiple POVs; different characters know different things; multi POV information management; reader knows more than character; dramatic irony continuity; keeping narrator knowledge separate
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D24 — Your revelations have ended up in the wrong order
- URL: `/writing-problems/revelations-are-in-the-wrong-order`
- HTML/OG title: Putting discoveries and revelations in a workable order
- Description: Trace the prerequisites and consequences of discoveries when clues and revelations arrive in an unworkable sequence.
- Area: knowledge
- Distinction: Dependencies between pieces of information are out of sequence; early versus late dramatic effect is a different judgement.
- Related: D26, D30
- Editorial search intents: revelations in the wrong order; clues revealed out of sequence; organising discoveries in a mystery; reordering information in a novel; reveal depends on a later clue; plot information sequence does not work
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D25 — There are too many clues and discoveries to keep straight
- URL: `/writing-problems/too-many-clues-to-keep-track-of`
- HTML/OG title: Keeping track of clues and discoveries
- Description: Organise clues, observers, interpretations and unresolved leads so a mystery's evidence remains traceable through revision.
- Area: knowledge
- Distinction: The body of evidence and its changing interpretations are hard to manage, rather than one fact's source being the only uncertainty.
- Related: D06, D22
- Editorial search intents: how to track clues in a mystery; organising discoveries in a novel; keeping track of red herrings; clue tracking for writers; forgotten evidence in a plot; who has found which clues
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D26 — You're not sure whether a reveal comes too early or too late
- URL: `/writing-problems/reveal-timing-doesnt-feel-right`
- HTML/OG title: Deciding whether a reveal comes too early or too late
- Description: Consider reveal timing through the questions and consequences it creates, rather than a fixed point in the manuscript.
- Area: knowledge
- Distinction: The dramatic timing of a supported reveal is uncertain; missing preparation or broken information dependencies need other checks.
- Related: D24, D06
- Editorial search intents: when should I reveal the secret; plot twist comes too early; reveal comes too late in novel; pacing a mystery revelation; how long to withhold information; reader gets answer before the climax
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D27 — Your timeline doesn't add up
- URL: `/writing-problems/timeline-doesnt-add-up`
- HTML/OG title: When the dates in a fictional timeline contradict each other
- Description: Compare dates and relative time references in story-world chronology, keeping nonlinear reading order separate from contradiction.
- Area: time
- Distinction: The time claims conflict with one another; a consistent schedule can still allow too little time for an activity.
- Related: D28, D30
- Editorial search intents: timeline in my novel does not make sense; dates contradict in my story; fictional chronology errors; checking a novel timeline; events happen before their cause; inconsistent dates between chapters
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D28 — The amount of time between events doesn't work
- URL: `/writing-problems/elapsed-time-doesnt-work`
- HTML/OG title: Checking whether enough time passes between events
- Description: Check whether travel, recovery and other activities fit the elapsed interval between scenes, even when the stated dates agree.
- Area: time
- Distinction: An activity does not fit its allotted interval, even if all stated dates are mutually consistent.
- Related: D27, D38
- Editorial search intents: not enough time between scenes; elapsed time in my novel does not work; journey takes too little time; tracking duration in fiction; too much happens in one day; checking travel and recovery time
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D29 — A character's age doesn't match the dates
- URL: `/writing-problems/character-age-doesnt-match-dates`
- HTML/OG title: When a character's age disagrees with the dates
- Description: Check fictional ages against birth dates, story dates and reference scenes, especially when characters continue across books.
- Area: time
- Distinction: A time-dependent character fact needs arithmetic against a reference date, rather than a general profile discrepancy.
- Related: D13, D27
- Editorial search intents: character age does not match timeline; calculating ages in a novel; inconsistent birthdays in fiction; character too young for backstory; tracking ages across a series; birth dates and story dates conflict
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D30 — Your reading order and chronological order are different
- URL: `/writing-problems/story-order-differs-from-chronology`
- HTML/OG title: Managing reading order and chronological order
- Description: Maintain both manuscript order and event chronology when planning flashbacks, parallel timelines or other nonlinear structures.
- Area: time
- Distinction: The two orders differ intentionally or structurally; difference alone is not a contradictory timeline.
- Related: D27, D24
- Editorial search intents: writing a nonlinear timeline; story order versus chronological order; organising flashbacks in a novel; tracking narrative order; parallel timelines in fiction; how to outline a non chronological book
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D31 — Too many things are happening at the same time
- URL: `/writing-problems/too-many-events-happening-at-once`
- HTML/OG title: Keeping simultaneous events straight
- Description: Align simultaneous fictional events and inspect their implications for shared people, places, resources and communication.
- Area: time
- Distinction: Overlapping activities need coordination across people and places, rather than a single interval being too short.
- Related: D14, D28
- Editorial search intents: tracking simultaneous events in a novel; parallel action timeline; characters in two places at once; coordinating events across viewpoints; overlapping scenes in fiction; what happens at the same time in my plot
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D32 — Your fictional timeline has to fit around real dates
- URL: `/writing-problems/fiction-must-fit-real-dates`
- HTML/OG title: Fitting fictional events around fixed real dates
- Description: Plan fictional intervals around reliable real-world date anchors while keeping uncertainty in research visible.
- Area: time
- Distinction: External date anchors constrain the invented sequence; distinguish researched certainty from your own movable choices.
- Related: D27, D28
- Editorial search intents: historical novel timeline planning; fiction around real historical dates; matching a story to a calendar; fixed dates in a fictional timeline; research dates conflict with plot; planning events around a real deadline
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D33 — There are too many scenes to see the structure clearly
- URL: `/writing-problems/too-many-scenes-to-organise`
- HTML/OG title: Seeing the structure when there are too many scenes
- Description: Build a usable chapter-and-scene overview before deciding that a large manuscript needs cuts or a new order.
- Area: structure
- Distinction: The arrangement is hard to see at all; uncertainty about one scene's position is a more local problem.
- Related: D34, D36
- Editorial search intents: too many scenes to organise; how to see novel structure; organising a long manuscript; scene overview for a novel; lost in my own draft; mapping chapters and scenes
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D34 — You don't know where a scene belongs
- URL: `/writing-problems/dont-know-where-scene-belongs`
- HTML/OG title: Deciding where a scene belongs
- Description: Find a workable position for a scene by comparing its prerequisites, consequences and transitions into neighbouring material.
- Area: structure
- Distinction: A scene's position is uncertain even though its contribution may be clear.
- Related: D33, D05
- Editorial search intents: where should this scene go; moving a scene in a novel; finding the right scene order; scene placement in a manuscript; reordering chapters without breaking plot; how to position a flashback scene
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D35 — Your chapter structure feels uneven
- URL: `/writing-problems/chapter-structure-feels-unbalanced`
- HTML/OG title: When chapter structure feels uneven
- Description: Inspect chapter boundaries and the work inside each chapter, allowing intentional variation in length and rhythm.
- Area: structure
- Distinction: The grouping and boundaries of chapters need inspection; overall reading speed can vary for other reasons.
- Related: D34, D44
- Editorial search intents: chapters feel unbalanced; some chapters too long others short; where to end a chapter; uneven chapter structure; chapter lengths in a novel; organising scenes into chapters
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D36 — Several scenes may be doing the same job
- URL: `/writing-problems/scenes-repeat-the-same-job`
- HTML/OG title: When several scenes repeat the same work
- Description: Compare similar scenes for new consequences, changed stakes and purposeful variation before deciding whether repetition is redundant.
- Area: structure
- Distinction: Several scenes make overlapping contributions; the purpose of each may be clear while their combined effect is repetitive.
- Related: D05, D43
- Editorial search intents: repetitive scenes in my novel; scenes doing the same job; how to find redundant scenes; repeating information in fiction; should I cut a similar scene; novel scenes feel repetitive
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D37 — You want to rearrange the story without wrecking it
- URL: `/writing-problems/afraid-to-rearrange-the-story`
- HTML/OG title: Trying structural changes without losing the current version
- Description: Test a proposed structural change against a preserved baseline so uncertainty about the idea does not become fear of losing the draft.
- Area: revision
- Distinction: The barrier is safely trying a proposed change, rather than deciding between several already-developed alternatives.
- Related: D49, D34
- Editorial search intents: afraid to rearrange my novel; trying a new scene order safely; experimenting with novel structure; keeping original draft while reordering; testing chapter changes; how to restructure without losing my place
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D38 — A character's movement between places doesn't make sense
- URL: `/writing-problems/character-movement-doesnt-make-sense`
- HTML/OG title: Checking whether character movement is possible
- Description: Check character travel against established positions, available routes and elapsed time, distinguishing missing transitions from impossibility.
- Area: world
- Distinction: A known movement must be possible given its route and interval; uncertain whereabouts should be resolved first.
- Related: D14, D28
- Editorial search intents: character travel does not make sense; impossible movement in a novel; tracking journeys between scenes; character appears somewhere too quickly; travel continuity in fiction; checking routes and elapsed time
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D39 — A location has changed without you meaning it to
- URL: `/writing-problems/location-details-have-changed`
- HTML/OG title: When a fictional place changes unintentionally
- Description: Reconcile setting descriptions and stable physical features while allowing differences of viewpoint, weather and change over time.
- Area: world
- Distinction: The established place itself appears inconsistent, rather than a journey through it being implausible.
- Related: D38, D42
- Editorial search intents: location details change in my novel; inconsistent setting descriptions; tracking fictional places; room layout continuity in fiction; keeping a story location consistent; setting changes between chapters
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D40 — You've lost track of an important object
- URL: `/writing-problems/dont-know-where-important-object-is`
- HTML/OG title: Losing track of an important object
- Description: Trace an important object's last reliable location or holder and mark the gaps between its recorded appearances.
- Area: world
- Distinction: The object's last reliable position or holder is uncertain, rather than a known history contradicting itself.
- Related: D41, D42
- Editorial search intents: where is an object in my story; tracking important objects in a novel; lost track of a clue; object location continuity; following an item between scenes; who last had this object
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D41 — A character has an object they shouldn't have
- URL: `/writing-problems/wrong-character-has-an-object`
- HTML/OG title: When the wrong character has an object
- Description: Check possession and handovers when a character produces an item they have not been shown acquiring.
- Area: world
- Distinction: A particular person's access to an object is unsupported, rather than its general whereabouts being unknown.
- Related: D40, D21
- Editorial search intents: wrong character has an object; missing handover in a novel; object possession continuity; character uses a weapon they do not have; tracking who holds a clue; how did character get this item
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D42 — An object's history contradicts itself
- URL: `/writing-problems/object-history-contradicts-itself`
- HTML/OG title: When an object's recorded history contradicts itself
- Description: Follow recorded object states through story time and check later uses against changes such as loss, opening or destruction.
- Area: world
- Distinction: The recorded sequence of object states conflicts; a missing location alone is not the same problem.
- Related: D40, D39
- Editorial search intents: object continuity errors in a novel; destroyed object reappears; tracking the state of story objects; clue history contradicts itself; item changes between scenes; keeping an object timeline consistent
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D43 — The story seems to stop moving
- URL: `/writing-problems/story-stops-moving`
- HTML/OG title: When a story feels busy but stops progressing
- Description: Inspect lasting changes in situation, knowledge and choices when a story contains activity but little intended progression.
- Area: revision
- Distinction: The amount of lasting change is too small for your intention; speed and pressure are separate dimensions.
- Related: D44, D45
- Editorial search intents: my story stops moving; novel has no progression; busy plot but nothing changes; story feels static in the middle; how to tell if a story is developing; scenes happen without progress
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D44 — Some parts of the story rush while others drag
- URL: `/writing-problems/pacing-is-uneven`
- HTML/OG title: When parts of a novel rush and others drag
- Description: Compare rushing and dragging passages through reading rhythm, scene density and the amount of development being processed.
- Area: revision
- Distinction: The experience of speed varies awkwardly; that can happen even when progression and tension are working.
- Related: D43, D45
- Editorial search intents: pacing is uneven in my novel; story rushes then drags; middle of novel feels slow; how to check novel pacing; scenes move too quickly; balancing action and quieter passages
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D45 — The tension rises and falls in the wrong places
- URL: `/writing-problems/tension-is-uneven`
- HTML/OG title: When tension rises and falls in the wrong places
- Description: Review the shape of uncertainty and pressure across scenes, separately from pace, action and reveal timing.
- Area: revision
- Distinction: The pattern of uncertainty and pressure needs inspection, rather than reading speed or activity alone.
- Related: D44, D26
- Editorial search intents: tension is uneven in my novel; story loses tension in the middle; too much constant tension; tracking suspense across scenes; where should tension peak; quiet scenes with tension
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D46 — A character's development goes flat
- URL: `/writing-problems/character-arc-stops-developing`
- HTML/OG title: When a character's development goes flat
- Description: Trace a character's responses and choices over time, distinguishing intended stability from development that the draft does not support.
- Area: people
- Distinction: One person's responses and choices show too little intended development across time; stability can still be purposeful.
- Related: D47, D18
- Editorial search intents: character arc stops developing; static character arc in a novel; protagonist does not change; how to track character growth; character development goes flat; deliberately unchanging character or weak arc
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D47 — Too much development is packed into the ending
- URL: `/writing-problems/too-much-happens-near-the-end`
- HTML/OG title: When too much development is left for the ending
- Description: Inspect the earlier experiences supporting late changes in belief, loyalty or understanding when an ending feels development-heavy.
- Area: revision
- Distinction: Necessary development is concentrated late, rather than being flat throughout or one relationship transition being rushed.
- Related: D46, D17
- Editorial search intents: too much happens at the end of my novel; character development rushed in ending; back loaded character arc; ending has too many changes; preparing a character transformation; climax feels emotionally unearned
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D48 — Every change seems to break something else
- URL: `/writing-problems/changes-have-unexpected-consequences`
- HTML/OG title: Following the consequences of a manuscript change
- Description: Trace manuscript dependencies around an edit, including the earlier preparation and later consequences affected by the chosen change.
- Area: revision
- Distinction: The task is tracing consequences of a chosen edit, rather than comparing competing versions before choosing one.
- Related: D49, D20
- Editorial search intents: every revision breaks something else; tracking consequences of novel edits; continuity after changing a scene; how to revise a complicated manuscript; scene changes affect later chapters; managing dependencies in fiction
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D49 — You have more than one possible version of the story
- URL: `/writing-problems/comparing-different-story-versions`
- HTML/OG title: Comparing different versions of the same story
- Description: Keep competing story arrangements distinct and compare the same turning points before choosing which version to adopt.
- Area: revision
- Distinction: Several alternatives need comparison and separation; tracing a committed edit's consequences is a different job.
- Related: D48, D37
- Editorial search intents: comparing different story versions; keeping alternative novel structures; which draft version is the main one; testing alternate scene orders; managing competing plot ideas; how to compare structural revisions
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D50 — Your series has become too big to remember reliably
- URL: `/writing-problems/series-continuity-is-too-big-to-remember`
- HTML/OG title: Keeping established facts consistent across a series
- Description: Verify established series facts against their source books and story positions, allowing details and states to change between volumes.
- Area: projects
- Distinction: Established facts across books are difficult to verify; the progress of one unresolved thread is a separate concern.
- Related: D51, D29
- Editorial search intents: tracking continuity across a book series; series bible for novelists; remembering facts from earlier books; cross book continuity errors; keeping characters consistent across sequels; organising a shared story world
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D51 — A storyline stretches across several books
- URL: `/writing-problems/storyline-spans-several-books`
- HTML/OG title: Following a storyline across several books
- Description: Follow an unresolved storyline's contributions and continuing questions across volumes without requiring every book to resolve it.
- Area: projects
- Distinction: The lifespan and development of one thread crosses books; this is more specific than general series fact checking.
- Related: D50, D02
- Editorial search intents: plot thread spans several books; tracking a series long running subplot; unresolved storyline across sequels; planning multi book arcs; keeping a mystery alive across a series; when to resolve a series thread
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.
### D52 — Your novel has become too much to hold in your head
- URL: `/writing-problems/novel-is-too-much-to-hold-in-your-head`
- HTML/OG title: When the whole novel becomes too much to hold in mind
- Description: Reduce the memory burden of a complex novel by separating established facts, open decisions and the context needed for each writing task.
- Area: projects
- Distinction: The burden spans several kinds of information, rather than one scene arrangement or cross-book fact being the sole obstacle.
- Related: D33, D50
- Editorial search intents: my novel is too complicated to manage; cannot hold my whole story in my head; organising notes for a complex novel; overwhelmed by manuscript details; keeping track of a big writing project; how to regain control of a complicated draft
- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved.

View File

@ -0,0 +1,15 @@
# Permanent Writing Problem resources
All 52 diagnoses reviewed and substantially rewritten. Authored content precedes the preserved product recommendation: recognition, causes and an example, three concrete manuscript checks, a useful mental model, then Start Here / Look for / real screenshot. Direct visitors see no claimed personal answers; completed solver journeys retain their evidence and history. Neutral outcomes keep their existing separate presentation.
See [Audit.md](Audit.md) for every page's title, description, neighbour distinction, group and six editorial search intents (312 total). These are editorial hypotheses, not measured keyword-volume research. The maintainable runtime source is `PlotLine/Content/WritingSolver/Editorial/pages-v1.json`.
Important distinctions include a storyline's long absence versus unintended allocation across threads; an individual scene's purpose versus repeated work across scenes; established character facts versus age/date arithmetic; relationship-state uncertainty versus little development over an interval; knowledge appearing before access versus a missing acquisition source; progression versus reading speed versus pressure; cross-book reference continuity versus an unresolved series thread. Related links explain these differences instead of presenting interchangeable SEO variants.
Nine server-rendered browse groups, reached through a quiet link on the solver entry page, reach all 52 permanent resources. Each resource links to two neighbours, its browse group and existing primary feature page. No large 52-link block, hidden links or article catalogue was introduced.
Specific unique HTML titles and descriptions feed Open Graph and existing WebPage schema. Original visible H1s and clean canonical/OG URLs are retained. No artificial FAQ schema; redundant legacy question lists are omitted for the new articles. Development noindex remains enabled. Index-enabled fixture checks verify future public indexability and sitemap coverage, including browse pages.
No changes to solver weights, thresholds, routing, evidence, identifiers, slugs, primary/secondary recommendations, article choices or screenshot assets. No application theme changes or new JavaScript. The decorative background has visually equivalent AVIF/WebP encodings with PNG fallback, reducing its encoded size from 2,293,988 bytes to 176,669 bytes (92.3%). Existing background placement, full-width canvas and responsive positions remain unchanged.
Validation and live performance/deployment results are recorded in Deployment.md.

View File

@ -0,0 +1,2 @@
const{chromium}=require('playwright'),fs=require('node:fs');
(async()=>{const b=await chromium.launch();const samples=[];try{for(const slug of ['too-many-storylines-to-manage','relationship-stops-developing','story-order-differs-from-chronology'])for(const width of [390,1440])for(let run=0;run<2;run++){const c=await b.newContext({viewport:{width,height:1000}});const p=await c.newPage();await p.addInitScript(()=>{window.measured={lcp:null,cls:0};new PerformanceObserver(l=>{for(const e of l.getEntries())window.measured.lcp={ms:e.startTime,url:e.url,tag:e.element?.tagName};}).observe({type:'largest-contentful-paint',buffered:true});new PerformanceObserver(l=>{for(const e of l.getEntries())if(!e.hadRecentInput)window.measured.cls+=e.value;}).observe({type:'layout-shift',buffered:true});});await p.goto('https://dev.plotdirector.com/writing-problems/'+slug);await p.waitForLoadState('networkidle');await p.waitForTimeout(500);samples.push(await p.evaluate(({slug,width,run})=>({slug,width,run,...window.measured,resources:performance.getEntriesByType('resource').filter(e=>e.name.includes('writing-solver')).map(e=>({url:e.name,transfer:e.transferSize,encoded:e.encodedBodySize,initiator:e.initiatorType})),totalBytes:performance.getEntriesByType('resource').reduce((n,e)=>n+e.transferSize,0)}),{slug,width,run}));await c.close();}fs.writeFileSync(process.argv[2],JSON.stringify(samples,null,2));console.log('Recorded',samples.length,'fresh-context measurements');}finally{await b.close();}})().catch(e=>{console.error(e);process.exit(1)});

View File

@ -0,0 +1,12 @@
const {chromium}=require('playwright'),assert=require('node:assert/strict'),fs=require('node:fs');
const graph=JSON.parse(fs.readFileSync('PlotLine/Content/WritingSolver/Candidates/curated-v2-stage1-repair/writing-solver-curated-v2-stage1-repair.json'));
const catalog=JSON.parse(fs.readFileSync('PlotLine/Content/WritingSolver/Editorial/pages-v1.json'));
const base=process.env.SOLVER_BASE_URL||'http://127.0.0.1:5238', indexed=process.env.PD_SOLVER_TEST_INDEXING==='true';
(async()=>{const browser=await chromium.launch();try{const context=await browser.newContext();await context.addCookies([{name:'solver-anonymous',value:'true',url:base}]);const page=await context.newPage();
const discovered=new Set();await page.goto(base+'/writing-problems');assert(await page.locator('a[href="/writing-problems/browse"]').count()>0);await page.goto(base+'/writing-problems/browse');
const areas=await page.locator('.solver-browse-areas a').evaluateAll(es=>es.map(e=>e.getAttribute('href')));assert.equal(areas.length,9);
for(const area of areas){await page.goto(base+area);for(const link of await page.locator('.solver-problem-links a').evaluateAll(es=>es.map(e=>e.getAttribute('href'))))discovered.add(link);}
assert.equal(discovered.size,52);
for(const solution of graph.solutions){const article=catalog.pages.find(p=>p.solution===solution.id),path='/writing-problems/'+solution.slug;assert(discovered.has(path));assert.equal((await page.goto(base+path)).status(),200);assert.equal(await page.locator('h1').innerText(),solution.title);assert((await page.title()).includes(article.title));assert.equal(await page.locator('meta[name=description]').getAttribute('content'),article.description);assert((await page.locator('meta[property="og:title"]').getAttribute('content')).includes(article.title));assert.equal(await page.locator('meta[property="og:description"]').getAttribute('content'),article.description);const canonical=await page.locator('link[rel=canonical]').getAttribute('href');assert.equal(canonical,'https://plotdirector.com'+path);assert.equal(await page.locator('meta[property="og:url"]').getAttribute('content'),canonical);const schema=(await page.locator('script[type="application/ld+json"]').allTextContents()).join('');assert(schema.includes(canonical));assert(!schema.includes('FAQPage'));assert.equal(await page.locator('.solver-result-evidence').count(),0);assert.equal(await page.locator('.solver-permanent-copy').count(),1);assert.equal(await page.locator('.solver-permanent-copy li').count(),3);assert.equal(await page.locator('.solver-related li').count(),article.related.length);assert.equal(await page.locator('.solver-result-cta').count(),1);assert.equal(await page.locator('meta[name=robots]').getAttribute('content'),indexed?'index, follow':'noindex, follow');assert(!(await page.locator('body').innerText()).includes('DEVELOPMENT PREVIEW'));}
for(const width of [390,768,1440,1920]){await page.setViewportSize({width,height:1000});for(const id of ['d01','d16','d21','d28','d30','d34','d43','d49','d50']){const s=graph.solutions.find(s=>s.id===id);await page.goto(base+'/writing-problems/'+s.slug);assert.equal(await page.evaluate(()=>document.documentElement.scrollWidth>innerWidth),false);const canvas=await page.locator('.solver-space').boundingBox();assert(canvas.width>=width-2);const copy=await page.locator('.solver-permanent-copy').boundingBox();assert(copy.width<=782);await page.locator('.solver-start').scrollIntoViewIfNeeded();await page.waitForTimeout(100);const img=page.locator('.solver-result-visual img');if(await img.count())assert(await img.evaluate(e=>e.complete&&e.naturalWidth>0));if(id==='d01'&&process.env.EDITORIAL_CAPTURE_DIR){fs.mkdirSync(process.env.EDITORIAL_CAPTURE_DIR,{recursive:true});await page.screenshot({path:process.env.EDITORIAL_CAPTURE_DIR+'/after-'+width+'.png',fullPage:true});}}}
await context.close();const nojs=await browser.newContext({javaScriptEnabled:false,viewport:{width:390,height:1000}});const np=await nojs.newPage();await np.goto(base+'/writing-problems/'+graph.solutions[0].slug);assert.equal(await np.locator('.solver-permanent-copy').count(),1);assert.equal(await np.evaluate(()=>document.documentElement.scrollWidth>innerWidth),false);await nojs.close();console.log('PASS editorial: all 52 metadata/content/direct-entry pages; nine crawlable groups reach all 52; nine families × four widths; no overflow; no-JS; preserved previews.');}finally{await browser.close();}})().catch(e=>{console.error(e);process.exit(1)});

View File

@ -22,7 +22,7 @@ const indexed=process.env.PD_SOLVER_TEST_INDEXING==='true';
await page.reload();assert.equal(await page.locator('.solver-result-evidence').innerText(),personal);
const fresh=await browser.newContext();const direct=await fresh.newPage();await direct.goto(page.url());
assert.equal(await direct.locator('.solver-result-panel').count(),1);
assert.equal(await direct.locator('.solver-result-evidence > p').count(),1);
assert.equal(await direct.locator('.solver-result-evidence').count(),0);assert.equal(await direct.locator('.solver-permanent-copy').count(),1);
assert.equal(await direct.locator('nav[aria-label="Areas discussed"]').count(),0);
assert.equal(await direct.locator('.solver-result-cta').count(),1);
await fresh.close();

View File

@ -96,6 +96,7 @@ var tests = new (string Name, Action Test)[]
("Curated V2 preserves 60 literal paths and enforces eight explicit Development review exceptions", WritingSolverCuratedV2Tests.Acceptance),
("Curated V2 exhausts real-engine states and preserves revision/multi-select behaviour", WritingSolverCuratedV2Tests.ReachabilityAndRevision),
("Curated V2 passes normal validation and invalid publication stays guarded", WritingSolverCuratedV2Tests.ExistingValidatorBoundary),
("All permanent writing problems have distinct editorial content, intent, metadata, links and real images", WritingProblemEditorialTests.Audit),
("Clean solver completion preserves private evidence and permanent indexable URLs", WritingSolverCleanUrlTests.TransitionAndIsolation),
("Writing Solver anonymous state is protected, expires and rejects stale versions", WritingSolverTests.AnonymousState),
("Writing Solver scoring, multi-select, revision, fallback and graph routes", WritingSolverTests.RoutingAndRevision),

View File

@ -79,6 +79,7 @@ internal static class ToolbarBrowserHost
builder.Services.AddSingleton<IWritingSolverWorkspaceContext, SolverWorkspaceFixture>();
builder.Services.AddMemoryCache();
builder.Services.AddSingleton<WritingSolverResultContext>();
builder.Services.AddSingleton(new WritingProblemEditorial(Path.GetFullPath("PlotLine/Content/WritingSolver/Editorial/pages-v1.json")));
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)!)));

View File

@ -0,0 +1,52 @@
using System.Text.RegularExpressions;
using Microsoft.AspNetCore.DataProtection;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.Configuration;
using PlotLine.Controllers;
using PlotLine.Data;
using PlotLine.Models.WritingSolver;
using PlotLine.Services;
internal static class WritingProblemEditorialTests
{
private sealed class Repository(SolverGraph graph):IWritingSolverRepository
{
public Task<SolverGraph> GetAsync()=>Task.FromResult(graph);
public Task PublishAsync(string json,string editor)=>throw new NotSupportedException();
}
public static void Audit()
{
var root=WritingSolverCuratedV2Tests.Root();
var editorial=new WritingProblemEditorial(Path.Combine(root,"PlotLine/Content/WritingSolver/Editorial/pages-v1.json"));
var graph=WritingSolverRepository.Parse(File.ReadAllText(Path.Combine(root,"PlotLine/Content/WritingSolver/Candidates/curated-v2-stage1-repair/writing-solver-curated-v2-stage1-repair.json")));
var results=WritingSolverResultTests.Content();
void Check(bool condition,string reason){if(!condition)throw new Exception(reason);}
string Normal(string s)=>Regex.Replace(s.ToLowerInvariant(),@"\W+"," ").Trim();
Check(editorial.Catalog.Pages.Count==52 && graph.Solutions.Count==52,"Expected 52 authoritative diagnoses.");
Check(graph.Solutions.Select(s=>s.Slug).Distinct().Count()==52,"Diagnosis slugs must be unique.");
foreach(var field in new Func<WritingProblemArticle,string>[] {p=>p.Title,p=>p.Description,p=>p.Recognition,p=>p.Cause,p=>p.Model,p=>p.Distinction})
Check(editorial.Catalog.Pages.Select(p=>Normal(field(p))).Distinct().Count()==52,"Accidentally duplicated editorial field.");
using var cache=new MemoryCache(new MemoryCacheOptions());
foreach(var solution in graph.Solutions)
{
var article=editorial.Find(solution.Id);Check(article is not null,"Missing permanent article.");
Check(!string.IsNullOrWhiteSpace(solution.Title) && article!.Title.Length>20 && article.Description.Length>50,"Missing specific heading or metadata.");
var body=string.Join(" ",new[]{article!.Recognition,article.Cause,article.Model}.Concat(article.Inspect));
Check(body.Split((char[]?)null,StringSplitOptions.RemoveEmptyEntries).Length>=100 && article.Inspect.Count>=3,"Thin permanent article.");
Check(article.SearchIntents.Count is >=5 and <=10 && article.SearchIntents.Select(Normal).Distinct().Count()==article.SearchIntents.Count,"Search intent coverage incomplete.");
Check(article.Related.Count is >0 and <=3 && article.Related.Distinct().Count()==article.Related.Count && article.Related.All(id=>id!=solution.Id && graph.Solutions.Any(s=>s.Id==id&&s.Active)),"Invalid related problems.");
var recommendation=results.Catalog.Results.Single(r=>r.Solution==solution.Id);var capability=results.Capability(recommendation.Capability);
Check(results.HasImage(capability)&&capability.ImageAlt.Length>30,"Missing primary capability/image/alt.");
solution.Index=true;
var controller=new WritingProblemsController(new Repository(graph),new EphemeralDataProtectionProvider(),new ConfigurationBuilder().Build(),new(cache),editorial){ControllerContext=new(){HttpContext=new DefaultHttpContext()}};
Check(controller.Solution(solution.Slug).GetAwaiter().GetResult() is ViewResult,"Permanent slug failed.");
Check((string?)controller.ViewData["CanonicalUrl"]=="https://plotdirector.com/writing-problems/"+solution.Slug,"Canonical must use the clean permanent slug.");
Check((string?)controller.ViewData["Robots"]=="index, follow" && controller.ViewData["OgTitle"]?.ToString()?.Contains(article.Title)==true,"Production-ready metadata missing.");
}
// Catch near-copy accidents without asserting exact authored sentences.
var sets=editorial.Catalog.Pages.Select(p=>Regex.Matches(Normal(p.Recognition+" "+p.Cause+" "+p.Model),@"\w+").Select(m=>m.Value).ToHashSet()).ToArray();
for(var i=0;i<sets.Length;i++)for(var j=i+1;j<sets.Length;j++)Check((double)sets[i].Intersect(sets[j]).Count()/sets[i].Union(sets[j]).Count()<.75,"Near-duplicate permanent articles.");
Check(editorial.Catalog.Areas.All(a=>Regex.IsMatch(a.Id,@"^[a-z]+$")&&editorial.Catalog.Pages.Any(p=>p.Area==a.Id)),"Empty or unsafe browse area.");
}
}

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,7 @@ using PlotLine.Services;
namespace PlotLine.Controllers;
[AllowAnonymous]
public sealed class SitemapController(IHelpService help, IConfiguration configuration, PlotLine.Data.IWritingSolverRepository solver) : Controller
public sealed class SitemapController(IHelpService help, IConfiguration configuration, PlotLine.Data.IWritingSolverRepository solver, WritingProblemEditorial? editorial = null) : Controller
{
[HttpGet("/sitemap.xml")]
public async Task<IActionResult> Index()
@ -29,6 +29,11 @@ public sealed class SitemapController(IHelpService help, IConfiguration configur
if (configuration.GetValue("WritingSolver:EnableIndexing", true))
{
urls.Add(new("/writing-problems", "monthly", "0.8"));
if(editorial is not null)
{
urls.Add(new("/writing-problems/browse", "monthly", "0.7"));
urls.AddRange(editorial.Catalog.Areas.Select(a=>new SitemapUrl("/writing-problems/browse/"+a.Id,"monthly","0.6")));
}
urls.AddRange(graph.Solutions.Where(p => p.Active && p.Index).Select(p => new SitemapUrl($"/writing-problems/{p.Slug}", "monthly", "0.7")));
urls.AddRange(graph.Features.Where(p => p.Active && p.Index).Select(p => new SitemapUrl($"/features/{p.Slug}", "monthly", "0.7")));
}

View File

@ -9,7 +9,7 @@ using PlotLine.Services;
namespace PlotLine.Controllers;
[AllowAnonymous]
public sealed class WritingProblemsController(IWritingSolverRepository repository, IDataProtectionProvider protection, IConfiguration configuration, WritingSolverResultContext resultContext) : Controller
public sealed class WritingProblemsController(IWritingSolverRepository repository, IDataProtectionProvider protection, IConfiguration configuration, WritingSolverResultContext resultContext, WritingProblemEditorial? editorial = null) : Controller
{
private readonly ITimeLimitedDataProtector protector = protection.CreateProtector("WritingSolver.history.v1").ToTimeLimitedDataProtector();
private sealed record History(string Version, List<SolverAnswer> Answers);
@ -65,6 +65,17 @@ public sealed class WritingProblemsController(IWritingSolverRepository repositor
resultContext.Save(HttpContext, graph, outcome, solution.Slug);
return RedirectToAction(nameof(Solution), new { slug = solution.Slug });
}
[HttpGet("/writing-problems/browse")]
[HttpGet("/writing-problems/browse/{problemArea}")]
public async Task<IActionResult> Browse(string? problemArea=null)
{
if(editorial is null)return NotFound();
var group=problemArea is null?null:editorial.Catalog.Areas.FirstOrDefault(a=>a.Id==problemArea);
if(problemArea is not null && group is null)return NotFound();
var path="/writing-problems/browse"+(group is null?"":"/"+group.Id);
SetSeo(group is null?"Browse writing problems":group.Title+" writing problems",group?.Description??"Explore writing problems by area, with practical ways to recognise and inspect them.",path,true);
return View("Browse",new WritingProblemBrowse(await repository.GetAsync(),editorial.Catalog,group));
}
[HttpGet("/writing-problems/{slug}")]
public async Task<IActionResult> Solution(string slug) => await Page(slug,false);
[HttpGet("/features/{slug}")]
@ -74,7 +85,8 @@ public sealed class WritingProblemsController(IWritingSolverRepository repositor
var graph = await repository.GetAsync();
SolverPage? page = feature ? graph.Features.FirstOrDefault(p => p.Active && p.Slug == slug) : graph.Solutions.FirstOrDefault(p => p.Active && p.Slug == slug);
if (page is null) return NotFound();
SetSeo(page.PageTitle,page.Description,$"/{(feature ? "features" : "writing-problems")}/{page.Slug}",page.Index,page.SocialImage);
var article=feature?null:editorial?.Find(page.Id);
SetSeo(article?.Title??page.PageTitle,article?.Description??page.Description,$"/{(feature ? "features" : "writing-problems")}/{page.Slug}",page.Index,page.SocialImage);
SolverJourney? journey = null;
if (!feature)
{

View File

@ -0,0 +1,29 @@
namespace PlotLine.Models.WritingSolver;
public sealed class WritingProblemCatalog
{
public int Version { get; set; }
public List<WritingProblemArea> Areas { get; set; } = [];
public List<WritingProblemArticle> Pages { get; set; } = [];
}
public sealed class WritingProblemArea
{
public string Id { get; set; } = "";
public string Title { get; set; } = "";
public string Description { get; set; } = "";
}
public sealed class WritingProblemArticle
{
public string Solution { get; set; } = "";
public string Area { get; set; } = "";
public string Title { get; set; } = "";
public string Description { get; set; } = "";
public string Recognition { get; set; } = "";
public string Cause { get; set; } = "";
public List<string> Inspect { get; set; } = [];
public string Model { get; set; } = "";
public string Distinction { get; set; } = "";
public List<string> SearchIntents { get; set; } = [];
public List<string> Related { get; set; } = [];
}
public sealed record WritingProblemBrowse(SolverGraph Graph, WritingProblemCatalog Catalog, WritingProblemArea? Area);

View File

@ -116,6 +116,7 @@ public class Program
builder.Services.AddScoped<IWritingSolverRepository, WritingSolverRepository>();
builder.Services.AddScoped<IWritingSolverWorkspaceContext, WritingSolverWorkspaceContext>();
builder.Services.AddSingleton<WritingSolverResultContext>();
builder.Services.AddSingleton(services => new WritingProblemEditorial(Path.Combine(services.GetRequiredService<IWebHostEnvironment>().ContentRootPath,"Content/WritingSolver/Editorial/pages-v1.json")));
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>();

View File

@ -0,0 +1,22 @@
using System.Text.Json;
using PlotLine.Data;
using PlotLine.Models.WritingSolver;
namespace PlotLine.Services;
// Permanent editorial content only. Never supplies solver weights, choices or routes.
public sealed class WritingProblemEditorial
{
public WritingProblemCatalog Catalog { get; }
public WritingProblemEditorial(string path)
{
Catalog=JsonSerializer.Deserialize<WritingProblemCatalog>(File.ReadAllText(path),WritingSolverRepository.JsonOptions)??throw new InvalidDataException("Empty writing problem editorial catalogue.");
if(Catalog.Version!=1 || Catalog.Pages.Select(p=>p.Solution).Distinct().Count()!=Catalog.Pages.Count
|| Catalog.Areas.Select(a=>a.Id).Distinct().Count()!=Catalog.Areas.Count)throw new InvalidDataException("Invalid editorial catalogue identity.");
foreach(var page in Catalog.Pages)
if(!Catalog.Areas.Any(a=>a.Id==page.Area) || new[]{page.Title,page.Description,page.Recognition,page.Cause,page.Model,page.Distinction}.Any(string.IsNullOrWhiteSpace)
|| page.Inspect.Count<3 || page.SearchIntents.Count is <5 or >10
|| page.Related.Count>3 || page.Related.Any(id=>id==page.Solution || !Catalog.Pages.Any(p=>p.Solution==id)))
throw new InvalidDataException("Incomplete writing problem article.");
}
public WritingProblemArticle? Find(string solution)=>Catalog.Pages.FirstOrDefault(p=>p.Solution==solution);
}

View File

@ -0,0 +1,26 @@
@using PlotLine.Models.WritingSolver
@model WritingProblemBrowse
@{ Layout="_PublicLayout"; }
<section class="solver-space solver-space--article"><div class="solver-content">
<nav class="solver-trail" aria-label="Breadcrumb"><a href="/writing-problems">Writing Problem Solver</a>@if(Model.Area is not null) { <span>›</span><a href="/writing-problems/browse">Browse writing problems</a> }</nav>
<h1>@(Model.Area?.Title??"Browse writing problems")</h1>
<p class="solver-recognition">@(Model.Area?.Description??"Find a familiar difficulty, understand what may be happening, and choose what to inspect in your manuscript.")</p>
<p><a class="editorial-link" href="/writing-problems">Prefer a conversation? Find your way with the Writing Problem Solver →</a></p>
@if(Model.Area is null)
{
<div class="solver-browse-areas">
@foreach(var area in Model.Catalog.Areas)
{ <section><h2><a href="/writing-problems/browse/@area.Id">@area.Title →</a></h2><p>@area.Description</p></section> }
</div>
}
else
{
<ul class="solver-problem-links">
@foreach(var article in Model.Catalog.Pages.Where(p=>p.Area==Model.Area.Id))
{
var solution=Model.Graph.Solutions.FirstOrDefault(s=>s.Id==article.Solution&&s.Active);
@if(solution is not null) { <li><h2><a href="/writing-problems/@solution.Slug">@solution.Title</a></h2><p>@article.Distinction</p></li> }
}
</ul>
}
</div></section>

View File

@ -0,0 +1,6 @@
@model PlotLine.Models.WritingSolver.WritingProblemArticle
<div class="solver-permanent-copy">
<section aria-labelledby="problem-causes"><h2 id="problem-causes">Why this happens</h2>@foreach(var paragraph in Model.Cause.Split("\n\n")) { <p>@paragraph</p> }</section>
<section aria-labelledby="problem-inspect"><h2 id="problem-inspect">What to look for</h2><ul>@foreach(var item in Model.Inspect) { <li>@item</li> }</ul></section>
<aside class="solver-mental-model"><h2>A useful way to think about it</h2><p>@Model.Model</p></aside>
</div>

View File

@ -78,7 +78,7 @@
<a href="/writing-problems">Restart</a>
</nav>
}
else { <p class="solver-promises">A few quiet minutes <span>·</span> No sign-up required <span>·</span> Advice you can use straight away</p> }
else { <p><a class="editorial-link" href="/writing-problems/browse">Browse writing problems →</a></p><p class="solver-promises">A few quiet minutes <span>·</span> No sign-up required <span>·</span> Advice you can use straight away</p> }
@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>

View File

@ -1,6 +1,7 @@
@using PlotLine.Models.WritingSolver
@model SolverPageView
@inject PlotLine.Services.WritingSolverResults Results
@inject PlotLine.Services.WritingProblemEditorial Editorial
@{ Layout="_PublicLayout"; }
<div class="solver-space solver-space--article">
<div class="solver-content">
@ -35,23 +36,24 @@
</nav>
}
var solution=(SolverSolution)Model.Page;
@if(presentation is not null)
var permanent=Editorial.Find(solution.Id);
@if(permanent is not null)
{
<details class="solver-editorial"><summary>More about this writing problem</summary>
<p>@solution.Summary</p>
@foreach(var paragraph in solution.Content.Split("\n\n")) { <p>@paragraph</p> }
@foreach(var link in solution.Features.Where(f=>f.Primary))
{ var feature=Model.Graph.Features.Single(f=>f.Id==link.Feature); <p><a href="/features/@feature.Slug">Explore @feature.Title →</a></p> }
</details>
}
@if(solution.Related.Count>0) { <h2>You might also find this useful</h2> }
@foreach(var id in solution.Related)
{
var related=Model.Graph.Solutions.Single(s=>s.Id==id && s.Active);
<p><a href="/writing-problems/@related.Slug">@related.PageTitle</a></p>
<section class="solver-related" aria-labelledby="related-problems"><h2 id="related-problems">Related writing problems</h2><ul>
@foreach(var id in permanent.Related)
{
var related=Model.Graph.Solutions.FirstOrDefault(s=>s.Id==id&&s.Active);
var relatedArticle=Editorial.Find(id);
@if(related is not null && relatedArticle is not null) { <li><a href="/writing-problems/@related.Slug">@related.Title</a><p>@relatedArticle.Distinction</p></li> }
}
</ul></section>
@foreach(var link in solution.Features.Where(f=>f.Primary))
{ var feature=Model.Graph.Features.Single(f=>f.Id==link.Feature); <p><a class="editorial-link" href="/features/@feature.Slug">Explore @feature.Title →</a></p> }
<p><a class="editorial-link" href="/writing-problems/browse/@permanent.Area">Browse this problem area →</a></p>
}
}
@if(Model.Page.Questions.Count>0) { <h2>Questions this helps answer</h2><ul>@foreach(var question in Model.Page.Questions) { <li>@question</li> }</ul> }
@if(Model.Page.Questions.Count>0 && (Model.IsFeature || Editorial.Find(Model.Page.Id) is null)) { <h2>Questions this helps answer</h2><ul>@foreach(var question in Model.Page.Questions) { <li>@question</li> }</ul> }
<a class="editorial-link" href="/writing-problems">Find a way through your writing problem →</a>
</div>
</div>

View File

@ -3,17 +3,25 @@
@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); }
@inject WritingProblemEditorial Editorial
@{ var tool=Model.Capability; var content=Model.Content; var signedIn=User.Identity?.IsAuthenticated==true; var permanent=Editorial.Find(Model.Solution.Id); 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>
@if(Model.Evidence.Count>0) { <p class="solver-resolution">✓ Here’s a useful way forward</p> }
else { <p class="marketing-eyebrow">Writing problems</p> }
<h1>@Model.Solution.Title</h1>
@if(Model.Evidence.Count>0 || permanent is null)
{
<div class="solver-result-evidence">
@foreach(var evidence in Model.Evidence) { <p>@evidence</p> }
<p class="solver-result-inference">@content.Explanation</p>
</div>
}
@if(permanent is not null) { <p class="solver-recognition">@permanent.Recognition</p> }
@if(Model.Evidence.Count>0 && permanent is not null) { <p><a class="editorial-link" href="#solver-start-heading">See where to start in PlotDirector →</a></p> }
</header>
@if(!string.IsNullOrWhiteSpace(content.Principle))
@if(permanent is not null) { <partial name="Editorial" model="permanent" /> }
@if(permanent is null && !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>

View File

@ -1,5 +1,6 @@
/* Public-only refinement; application theme tokens never participate. */
html[data-site-theme="public"] {
--solver-desk-image:url('/images/public/writing-solver-desk.png');
--paper:#fcf3e5; --paper-deep:#f0e2cf; --ink:#30242b; --muted:#71625c;
--line:#dfcdb9; --sage:#e8eadc; --gold:#c7ac67; --gold-dark:#7c733d; --plum:#54223f;
.public-header { background:#fcf3e5f5; }
@ -9,7 +10,7 @@ html[data-site-theme="public"] {
.writer-hero { background:radial-gradient(ellipse at 85% 50%,#eddfca 0,transparent 60%); }
.public-links { gap:22px; }
#publicMenu { margin-left:38px; }
.solver-space { background-color:var(--paper); background-image:linear-gradient(90deg,transparent,#fcf3e5ed 22%,#fcf3e5f7 50%,#fcf3e5ed 78%,transparent),url('/images/public/writing-solver-desk.png'); background-position:center top; background-size:cover; padding:48px 24px 32px; min-height:760px; }
.solver-space { background-color:var(--paper); background-image:linear-gradient(90deg,transparent,#fcf3e5ed 22%,#fcf3e5f7 50%,#fcf3e5ed 78%,transparent),var(--solver-desk-image); background-position:center top; background-size:cover; padding:48px 24px 32px; min-height:760px; }
.solver-content { width:min(930px,100%); margin:auto; }
.solver-space--entry .solver-content { width:min(1000px,100%); text-align:center; }
.solver-space h1 { font-size:clamp(2.4rem,4.2vw,4rem); margin:12px 0 22px; line-height:1.08; }
@ -53,8 +54,8 @@ html[data-site-theme="public"] {
.solver-library { padding-block:30px 55px; }.solver-library>a { margin:10px 30px 10px 0; }
.solver-space--article { background-size:auto 900px; background-repeat:no-repeat; }
.solver-selection-error { color:#8b293e; }
@media(max-width:1000px) { .solver-space { background-image:linear-gradient(90deg,#fcf3e5aa,#fcf3e5f5 12%,#fcf3e5f5 88%,#fcf3e5aa),url('/images/public/writing-solver-desk.png'); }.solver-choices--areas { grid-template-columns:repeat(2,minmax(0,1fr)); }.public-links { gap:14px; } #publicMenu { margin-left:20px; } }
@media(max-width:600px) { .solver-space { padding:30px 20px; min-height:800px; background-image:linear-gradient(#fcf3e5e8,#fcf3e5 240px),url('/images/public/writing-solver-desk.png'); background-size:auto 300px; background-repeat:no-repeat; }.solver-choices--areas { grid-template-columns:1fr; gap:10px; }.solver-choices--areas .solver-choice { min-height:90px; padding:15px 35px 15px 16px; }.solver-wide { display:none; }.solver-icon { width:38px; min-width:38px; height:38px; }.solver-choices--areas .solver-choice strong { font-size:1.35rem; }.solver-help { font-size:.95rem; }.solver-controls { justify-content:space-between; gap:12px; }.solver-controls .marketing-btn { padding:13px 22px; font-size:1rem; }.solver-promises span { margin:0 6px; }.solver-features { grid-template-columns:1fr; }.solver-features>div:first-child { grid-column:auto; }.solver-content h1 { overflow-wrap:break-word; }.solver-trail span:not(:first-child) { max-width:100%; } }
@media(max-width:1000px) { .solver-space { background-image:linear-gradient(90deg,#fcf3e5aa,#fcf3e5f5 12%,#fcf3e5f5 88%,#fcf3e5aa),var(--solver-desk-image); }.solver-choices--areas { grid-template-columns:repeat(2,minmax(0,1fr)); }.public-links { gap:14px; } #publicMenu { margin-left:20px; } }
@media(max-width:600px) { .solver-space { padding:30px 20px; min-height:800px; background-image:linear-gradient(#fcf3e5e8,#fcf3e5 240px),var(--solver-desk-image); background-size:auto 300px; background-repeat:no-repeat; }.solver-choices--areas { grid-template-columns:1fr; gap:10px; }.solver-choices--areas .solver-choice { min-height:90px; padding:15px 35px 15px 16px; }.solver-wide { display:none; }.solver-icon { width:38px; min-width:38px; height:38px; }.solver-choices--areas .solver-choice strong { font-size:1.35rem; }.solver-help { font-size:.95rem; }.solver-controls { justify-content:space-between; gap:12px; }.solver-controls .marketing-btn { padding:13px 22px; font-size:1rem; }.solver-promises span { margin:0 6px; }.solver-features { grid-template-columns:1fr; }.solver-features>div:first-child { grid-column:auto; }.solver-content h1 { overflow-wrap:break-word; }.solver-trail span:not(:first-child) { max-width:100%; } }
@media(prefers-reduced-motion:reduce) { scroll-behavior:auto; .marketing-btn { transition:none; transform:none; } }
}
html[data-site-theme="public"] main.marketing-shell > .solver-space { max-width:none; width:100%; }
@ -103,3 +104,19 @@ html[data-site-theme="public"] .solver-workspace-picker select { width:100%; pad
html[data-site-theme="public"] .solver-image-link { display:block; border-radius:14px; }
html[data-site-theme="public"] .solver-image-link:focus-visible { outline:3px solid var(--plum); outline-offset:4px; }
html[data-site-theme="public"] .solver-image-link img { display:block; }
/* Permanent resources share the result canvas, with a narrower editorial measure. */
html[data-site-theme="public"] .solver-recognition { max-width:780px; font-size:1.13rem; line-height:1.65; margin:18px 0; }
html[data-site-theme="public"] .solver-permanent-copy { max-width:780px; line-height:1.7; margin:24px 0 30px; }
html[data-site-theme="public"] :is(.solver-permanent-copy,.solver-related,.solver-browse-areas,.solver-problem-links) h2 { font-size:1.5rem; line-height:1.25; margin:22px 0 12px; }
html[data-site-theme="public"] .solver-permanent-copy li { margin-block:7px; }
html[data-site-theme="public"] .solver-mental-model { border-left:3px solid var(--gold-dark); padding:2px 20px; margin-top:20px; }
html[data-site-theme="public"] .solver-related { max-width:780px; margin-block:30px; }
html[data-site-theme="public"] :is(.solver-related,.solver-problem-links) ul,html[data-site-theme="public"] .solver-problem-links { list-style:none; padding:0; }
html[data-site-theme="public"] :is(.solver-related,.solver-problem-links) li { padding-block:10px; border-bottom:1px solid var(--line); }
html[data-site-theme="public"] .solver-related li p { margin:6px 0; color:var(--muted); line-height:1.6; }
html[data-site-theme="public"] .solver-browse-areas { max-width:780px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 30px; }
@media(max-width:600px) { html[data-site-theme="public"] .solver-browse-areas { grid-template-columns:1fr; } }
@supports (background-image: image-set(url("/images/public/writing-solver-desk.avif") type("image/avif"))) {
html[data-site-theme="public"] { --solver-desk-image:image-set(url("/images/public/writing-solver-desk.avif") type("image/avif"),url("/images/public/writing-solver-desk.webp") type("image/webp")); }
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 KiB