58 lines
8.6 KiB
Markdown
58 lines
8.6 KiB
Markdown
# Writer Help Me rule catalogue
|
||
|
||
Audit date: 16 November 2026. Source baseline: `fad26c3`. Development: `https://dev.plotdirector.com/`.
|
||
|
||
## Evidence and limits
|
||
|
||
**Browser verified** means an observed Development result in this audit. **Source verified** means a traced implementation, not an executed action. **Both verified** means the particular behavior was observed and traced. **Not verified** means the stated condition or outcome was not exercised. Live database metadata is identified explicitly alongside source evidence; repository SQL is not assumed to be deployed.
|
||
|
||
This is an investigation, not a certification that every state works. Counts describe the documented scope, not all possible runtime instances. See [coverage and gaps](Writer-Audit-Coverage.md). No application code, schema, configuration or deployment was changed. Only a synthetic author’s disposable records were used for writes.
|
||
|
||
## Complete provider rule catalogue
|
||
|
||
Source: [WriterSuggestions.cs](../../../PlotLine/Services/Writer/WriterSuggestions.cs), [Help Me partial](../../../PlotLine/Views/Writer/_HelpMe.cshtml), [client toggle](../../../PlotLine/wwwroot/js/writer-work.js), [book reminder SQL](../../../PlotLine/Sql/260_WriterActivitySummary.sql). All rules **Source verified**. Opening/dismissal/reopening, missing chapter-goal suggestion, Reader empty destination and chapter fallback were **Both verified** on a disposable book. Queue-dependent suggestions were not produced live because of D01.
|
||
|
||
The provider is `WriterSuggestionProvider.Suggest(WriterDashboardViewModel)`. It is deterministic data logic. No AI call, classifier, semantic story analysis, user preference model or learned recommendation ranking occurs here. The provider interface allows a different implementation, but that is not evidence that an advanced provider is active. Controller fallback explicitly constructs this provider; `Program.cs` registers this exact provider as a singleton (line 205).
|
||
|
||
| Append order / key | Exact trigger / input | Observation and exact action | Actual target and scope | What it can and cannot conclude |
|
||
|---|---|---|---|---|
|
||
| 1 `focus` | model.Objective exists | Saved activity lowercased; “Return to your current focus” | Scene → Scenes.Edit; else chapter → Writer.Chapter; else Writer.Index. IDs from objective; book/project from model | Returns to authored focus; does not establish the most urgent story problem |
|
||
| 2 `reviewed` | PlannedActivities.FirstOrDefault exists | Title/date; “Open your next planned activity” | Scene editor or chapter workflow using allocation target | Recorded budget; not evidence the task is the right creative priority or is future-dated |
|
||
| 3 `planned` | First TodayTasks.Concat(UpcomingTasks) exists | Scene/date; “Open this planned scene” | Scenes.Edit(task.SceneID) | Scheduled workflow scene, not a measured session or AI need |
|
||
| 4 `intent` | First reminder with EntityType Chapter and Category Chapter Goal | reminder.Detail or “This chapter has no saved goal summary.”; “Set this chapter's Intent” | Writer.Chapter(reminder.EntityID) | Missing GoalSummary only; does not read or assess the goal's meaning |
|
||
| 5 `revision` | RevisionQueue.FirstOrDefault exists | Scene marked Needs Work; “Review this scene”; qualifier workflow label, not new diagnosis | Scenes.Edit(scene.SceneID) | Repeats the author's workflow status; no prose diagnosis |
|
||
| 6 `draft` | WriteNext.FirstOrDefault exists | Scene marked Outlined; “Work on the next outlined scene” | Scenes.Edit(scene.SceneID) | Queue order, not generated scene-writing advice |
|
||
| 7 `changes` | Activity.Totals.Removed >0 | Added/removed totals over30days; “Review the change evidence”; qualifier revision may be substantial despite small net | WritingActivity.Index(bookId) | Helpful interpretation of counts, not judgement of improvement |
|
||
| 8 `listen` | ObjectiveChoices matching objective.ChapterID, else first choice, exists | Chapter available; “Read or start Audio Review”; Windows support qualifier | ManuscriptReader.Index(bookId,chapterId) | Alternative review route; neither accepted prose nor working media controls checked |
|
||
| 9 `note` | First reminder with SceneID and Category Writer Note | reminder.Detail or note fallback; “Review this captured note” | Scenes.Edit(note.SceneID) | Surfaces a saved unresolved note; not a new continuity finding |
|
||
| 10 `explore` | BookID exists AND current pre-dedup result.Count<3 | Book.ChapterCount or0; “Explore or add chapters” | Books.Details(bookId) | Generic navigation fallback; can produce fewer than3 final results after dedup |
|
||
|
||
After appending, the provider uses `DistinctBy((Controller,RouteAction,EntityID,ChapterID))`, then `Take(4)`. This is **fixed append priority**, not severity weighting. A focus and a scheduled activity going to the same scene collapse. Key/observation text does not determine uniqueness. Fallback runs before dedup, so it is not backfilled when duplicate destinations reduce the list. Rich accounts can consistently hide lower-priority note/listen/change suggestions behind the first four.
|
||
|
||
## Input provenance and ordering
|
||
|
||
- Objective: SQL `WriterObjective(read)` for current user/book. Valid saved chapter/scene required; no valid target means absent objective.
|
||
- Reviewed activity: `WriterPlanningUpcoming` selects TOP10 Planned allocations from active user plans filtered to book, ordered by ScheduledDate, ActivityID. There is no “today or later” predicate; overdue tasks can be called next.
|
||
- Legacy tasks: schedule dashboard orders today's items by priority then date/order; future list by date then ID, max5.
|
||
- Missing Intent: `WriterBook_Reminders` selects TOP60 nonarchived chapters with null/blank GoalSummary. There is no final stable ORDER BY for the UNION result, so first missing chapter/note is not a guaranteed editorial priority.
|
||
- Notes: same reminder procedure includes unresolved TODO, Continuity Note and Revision Note types, with scene/chapter active. Other note types, resolved notes and general Story Intelligence results do not enter this branch.
|
||
- Revision/draft: first queue record; source SQL sorts priority descending then book/chapter/scene manuscript order/ID. Development currently returns none for requested queue names.
|
||
- Change counts: retained accepted activity summary, not text semantics. Private activity may be absent for nonowner.
|
||
- Listen: saved chapter/scene choices. Presence in choices does not imply accepted manuscript text exists; browser click reached Reader’s “No accepted manuscript text” message.
|
||
|
||
## What the engine does not use
|
||
|
||
It does not inspect chapter GoalSummary contents, EmotionalGoal, ReaderTakeaway, MustInclude, RisksOrConcerns, scene purpose/outcome, checklist completion meaning, plot line/thread distribution, story chronology, character development, relationships, pacing, trilogy continuity, intended ending, AI Intent evidence, solver questionnaire history, or the semantic content of manuscript prose. Some queue rows carry warning/checklist/note counts, but this provider only uses existence/first scene and its status/title. It does not rank warnings or feed their details into a recommendation model.
|
||
|
||
Book context is inherited from WriterController. Scene/chapter destinations can refer to different targets within the book. There is no project-global learning or recommendation session memory.
|
||
|
||
## Dismissal, persistence and feedback
|
||
|
||
Help Me is initially collapsed. Its button unhides a pre-rendered list; it does not request fresh recommendations. “Dismiss suggestions” hides the whole panel and returns focus; it does not dismiss an individual rule, write a record, remember a decision or suppress the same suggestion later. Reopening shows the same rendered list; reload recomputes from saved inputs. “Return to Writing” navigates to the valid `#working-focus` anchor on Writer Index; it does not end a session. No button marks work complete, edits prose or starts playback. For a break, the text instructs the author to end a session below, rather than doing it.
|
||
|
||
Intent Evidence’s Keep evidence/Dismiss/Defer/Revisit buttons **do** persist per-input decisions, but they belong to the separate Intent assessment system; they must not be attributed to Help Me.
|
||
|
||
## Guidance value and limits
|
||
|
||
Concrete and grounded: return to a saved focus, recover a scheduled task, locate an explicitly missing chapter goal, revisit a captured note, understand revision despite low net word growth. Generic or potentially misleading: explore chapters, listen solely because a chapter exists, read an author-assigned Needs Work label as if it were newly detected. The interface’s observation/interpretation separation helps qualify advice. It does not resolve the losing-direction scenario through story diagnosis.
|