49 lines
5.6 KiB
Markdown
49 lines
5.6 KiB
Markdown
# Development Writing Solver Review Mode
|
|
|
|
## Owner workflow
|
|
|
|
Sign in with an account already authorised by PlotDirector's existing `AdminOnly` policy. Open **Admin → Writing Solver Review Mode**, or `/admin/writing-solver-review`. Choose **Enable Writing Solver Review Mode**. This redirects to the ordinary `/writing-problems` page. The opt-in applies to this browser for 24 hours. Disable it from the review page; it has no effect on the saved feedback.
|
|
|
|
Use the solver normally. A small **Review journey · Development only** disclosure sits below the ordinary journey. It stays closed by default. No debug labels, IDs or scores enter the author-facing questions/results. Fresh direct-entry permanent resources remain unchanged, including for an opted-in reviewer. Completed solver arrivals retain clean URLs and personalised evidence.
|
|
|
|
Expand the disclosure to inspect the accepted conversation plus current question. It shows question/answer labels and IDs (including multi-select), answer count, engine stop reason, each transition's eligible routes in ranked order, route restrictions, priority and affinity rank, accumulated signals with every question/answer contribution, and diagnosis weighted-signal terms, thresholds and missing required evidence. Returned results are explicitly labelled primary/supporting; five other highest-scoring candidates are shown for comparison. These candidates are not presented as diagnoses. Start Here, secondary capability and advice article are recorded where applicable.
|
|
|
|
The observer uses outcomes from the existing engine at every prefix. Route reasoning describes its existing choice/signal/count filters, priority plus affinity rank and target-order/ID tie-breaks. Selected fallback answers are labelled. Rescue targets remain identifiable by their actual node IDs; no new routing categories or behaviour are invented. A winning route can be suppressed by an engine stop; the panel says so.
|
|
|
|
## Feedback
|
|
|
|
Categories:
|
|
|
|
- Question feels wrong here
|
|
- My answer isn't available
|
|
- Wording feels awkward
|
|
- Journey is too long
|
|
- Result feels wrong
|
|
- Start Here feels wrong
|
|
- Look for guidance feels wrong
|
|
- Other
|
|
|
|
An optional note permits up to 2,000 characters. The UI asks reviewers to omit manuscript prose. Capture records accepted answers and the current step/result; unsubmitted selections and abandoned branches are not included. After saving, the item opens for inspection. **Resume this journey** returns to the accepted path if the graph fingerprint still matches, using fresh protected state and the normal solver flow.
|
|
|
|
The review list defaults to unresolved items, newest first; filter by category and unresolved/resolved/all. Items can be resolved and reopened. Each item has a selectable compact reproduction summary and an authenticated JSON download.
|
|
|
|
## Captured data and replay
|
|
|
|
Each record has a GUID, category, optional note, clean page path, resolved state and immutable captured snapshot. The snapshot contains graph version/SHA-256 fingerprint, UTC timestamp, answer count, current node/question, stop reason, answered steps and transition reasoning, ranked eligible routes, signal sources/totals, returned and comparison diagnosis scores/thresholds/weighted terms/missing evidence, primary/secondary capability, article reference, neutral result title where relevant, and the accepted `SolverAnswer` sequence.
|
|
|
|
**Replay against current Development graph** is read-only. Captured and current outcomes appear under separate headings with their own version/fingerprint. It states how many captured answers the current engine accepted; changed/deleted routes discard a stale suffix normally. Replay never overwrites the capture or changes status. Exported `Captured.Answers` can also be used as regression-harness input. Resume refuses a changed graph and directs the reviewer to replay instead.
|
|
|
|
## Storage and privacy
|
|
|
|
Simple atomic JSON files, one per feedback item, in persistent `App_Data/WritingSolverReview/`. The existing Development deployment convention preserves `App_Data`; normal restart/redeployment does not remove feedback. This is a deliberately small file-backed review log, not a ticketing subsystem or database migration. New directory permissions are 0700 and files 0600 on Linux. Atomic temporary-file replacement and a singleton write lock protect status/capture updates. The folder is explicitly excluded from Git and is outside static web roots.
|
|
|
|
No manuscript prose, workspace content, project/book/character identifiers, account names, email addresses, credentials, protected history tokens or browsing history are automatically stored. Notes are plain text, escaped by Razor. Captures describe only the public solver conversation. Export/list/detail/replay/status/capture/enable actions all require existing admin authorisation and Development environment. Every mutation requires antiforgery validation. A forged opt-in cookie grants no authority. The cookie is HttpOnly, SameSite Strict and Secure on HTTPS.
|
|
|
|
Outside Development, review endpoints return 404 before authentication, no admin link or review panel renders, and storage refuses access. The environment gate cannot be overridden by the mode cookie or a request parameter. No Production configuration or deployment changes.
|
|
|
|
## Baseline preservation
|
|
|
|
No solver engine, graph/candidate JSON, scoring, thresholds, routes, questions, answers, diagnosis data, recommendations, permanent editorial content, theme or screenshot changes. Normal mode never builds a review snapshot. Only the two existing journey-rendering views call the gated partial; direct generic result views do not.
|
|
|
|
Validation and deployed runtime details are recorded in [Deployment.md](Deployment.md).
|