104 lines
10 KiB
Markdown
104 lines
10 KiB
Markdown
# Curated V2 Development engineering gate
|
|
|
|
1 November 2026. This gate continues from `911a72e`. The owner explicitly authorised Development-only activation **with the eight documented secondary-result exceptions** after reviewing the reconciled metadata. This is not Production or final editorial approval.
|
|
|
|
## Result and approval boundary
|
|
|
|
- Real repository validator: **PASS**, normally, without instrumentation or bypasses.
|
|
- Original literal regression: **60/60 cases and 185/185 prefixes**.
|
|
- Reconciled strict semantic expectations: **52/60 and 177/185 prefixes**. The eight pre-existing secondary-result exceptions remain visible, not relabelled as semantic passes.
|
|
- Development gate: checks exactly the approved eight supports, correct primary/neutral outcomes and all literal journeys; new exceptions, primary changes, missing required support and unrelated forbidden results fail the guard.
|
|
- Exhaustive real-engine traversal: **11,325 states**, **44/44 nodes**, **52/52 solutions**, all **52 primary-capable**, below the ceiling. Counts remain 48 signals, 44 nodes, 52 solutions and 15 features.
|
|
- Operational release and live-site verification are recorded in `Deployment.md` after activation.
|
|
|
|
The explicit approval and the strict-vs-literal distinction are recorded in `SupportingDecision.md` and `development-exceptions.json`. No unrelated diagnosis was retuned to hide the metadata findings.
|
|
|
|
## Three approved signal repairs
|
|
|
|
Only the requested weights were removed:
|
|
|
|
| Choice | Removed weight | Preserved evidence |
|
|
|---|---|---|
|
|
| `continuity-object/wrong-place` | `possession=4` | Existing continuity-conflict evidence |
|
|
| `cast-presence/major-barely` | `flat-progression=4` | `character-presence=6` |
|
|
| `cast-presence/protagonist-disappears` | `flat-progression=4` | `character-presence=6` |
|
|
|
|
D41 and D43 coefficients/thresholds were not changed. The approved D50 correction and earlier Case 30 scene-purpose correction remain intact. No diagnostic route or choice wording was changed in this gate.
|
|
|
|
Focused witnesses use the real engine and verify each prefix. The repaired wrong-location witness no longer returns D41 (18, below threshold 24); the repaired absence witnesses no longer return D43 (4, below threshold 20), while retaining D10. In-memory reintroduction of the historical +4 weights reproduces the original false recommendations and proves the causal regression checks.
|
|
|
|
Genuine wrong-possession case 38 remains D41-primary. Genuine flat-progression case 40 remains D43-primary. Genuine D05 witnesses remain primary at 24, 28 and 22 without scale/overwhelm. Case 30 returns D33/D52 without D05/D50. D50 has zero qualifying states without series evidence (maximum 9, threshold 12); genuine D50 cases 47/59 and D51 case 48 retain their intended outcomes.
|
|
|
|
## First-class neutral endpoints
|
|
|
|
Schema-v1 nodes can explicitly declare `neutralEndpoint: true`, default false. Nodes have fallback `reassurance`; choices may override it. A reassurance has required title/summary, up to three advice paragraphs, and at most one active feature reference.
|
|
|
|
Validation requires neutral endpoints to be genuinely terminal, single-choice, without routing affinity or diagnostic choice weights. Missing content, invalid/inactive feature references, routes, evidence-bearing choices and orphan reassurance are rejected. Ordinary undeclared evidence-free dead ends remain invalid. Old/demo graphs retain their previous behaviour.
|
|
|
|
The engine returns selected reassurance rather than a fabricated solution, preserves previously accumulated signals without adding evidence, and recalculates reassurance during replay/revision. No runtime controller copy or conditions recognise adoption node/choice IDs. The only V2 endpoint declaration is on the existing neutral adoption question.
|
|
|
|
The new neutral validation and replay tests include malformed declarations, ordinary dead ends, prior diagnostic signals, all eight adoption answers, earlier-answer revision, demo compatibility and rejection before opening a database connection for invalid publication.
|
|
|
|
Database tables/procedures need no migration: the graph remains an immutable validated JSON snapshot. Updated runtime code must be deployed before activating its additive schema fields.
|
|
|
|
## Tailored reassurance in the existing UI
|
|
|
|
The normal `/writing-problems` MVC route renders the chosen reassurance as server-side Razor content. It retains Back/Restart, supports no-JavaScript use and excludes the entire diagnostic library for authored neutral outcomes.
|
|
|
|
- Existing manuscript/manual entry: “You don't need to start again”; explains beginning with an existing draft without manually recreating hundreds of scenes. Links only to Manuscript Import.
|
|
- Discovery writing: does not require planning before drafting; helps inspect what has emerged. No compulsory feature catalogue or extra question.
|
|
- Creative control: PlotDirector shows what is present; the author decides what to do. No claim to judge creative quality.
|
|
- Just writing: organisation reduces maintenance work so the author can return to writing; use only useful structure.
|
|
- Scattered notes, uncertainty about where to start and fallback receive their own authored reassurance, with at most one relevant capability.
|
|
|
|
Ordinary insufficient-evidence cases 13/58 remain distinct, receive no invented diagnosis and retain their existing practical advice. Warm public styling is preserved; only narrowly scoped neutral-content layout rules were added.
|
|
|
|
## Acceptance metadata decisions
|
|
|
|
All 19 relevant cases were reviewed individually. Full reasons and keep/reject decisions are in `metadata-decisions.json`.
|
|
|
|
- Cases 7/10/11: retain optional network/presence/POV knowledge cross-checks tied to the literal cast/viewpoint complaint; no supporting result is required solely to enrich output.
|
|
- Case 15: retain intermediate relationship-state inspection, reject network overload.
|
|
- Cases 16/17/52/57: reject network overload for a single relationship; case 16 also rejects global story stagnation.
|
|
- Case 18: six changing relationships genuinely justify network inspection.
|
|
- Cases 22/51/60: changing information/reveal timing makes optional reader-facing timing review relevant. Other possible compound outcomes remain optional because the literal path does not collect their discriminating evidence.
|
|
- Case 25: reject age/character-fact diagnoses from a calendar contradiction.
|
|
- Case 30: retain D33/D52; forbid D05/D50.
|
|
- Case 36: retain the related material-state/history cross-check for a changed house; remove the unrelated optional character-details expectation.
|
|
- Case 39: reject location/character-fact diagnoses from a destroyed letter reappearing.
|
|
- Case 43: reject global story stagnation from internal character-arc stagnation.
|
|
- Case 49: the literal “Pretty much everything” / “All of that” choices support optional scene/thread management views for the stated broad burden.
|
|
- Case 56: D11 remains forbidden and is removed from the contradictory acceptable list.
|
|
|
|
The original literal baseline is preserved separately. Corrected strict expectations are now the candidate's `acceptance-paths.json`. Eight reviewed cases still produce rejected secondary results; the owner explicitly accepted those known limitations for hands-on **Development** review. They are cases **15, 16, 17, 25, 39, 43, 52, 57**. This permission does not change their semantic verdict or any production scoring.
|
|
|
|
## Verification
|
|
|
|
- `dotnet build PlotLine.slnx`: pass; two existing nullable warnings in the regression harness.
|
|
- Full executable regression harness: **385 PASS results**, including explicit neutral validation, data-driven reassurance, revision, old graphs, literal paths and the exact approved-exception guard.
|
|
- Real `Tools/WritingSolver validate` command: pass, with only two non-blocking low solution-route-coverage warnings (`character-development`, `manuscript-import`). Neutral adoption links are not counted as diagnostic solution routes by that warning.
|
|
- Real-engine audit with `--development-accepted`: pass for the authorised Development gate; strict 52/60 and 177/185 are retained in the report.
|
|
- All 52 solution and 15 feature pages render without JavaScript; H1/description/canonical/social/JSON-LD/links and encoding checked.
|
|
- 390px and 1440px browser journeys pass multi-select, ordinary/intentional neutral outcomes, Back/Forward, revised earlier answers and all eight tailored adoption concerns. No horizontal overflow or significant layout shift.
|
|
- A complete adoption journey also passes with JavaScript disabled.
|
|
- Shared public-browser suite passes all six application themes in ordinary/PWA contexts, signed-in/out, authentication presentation/forms, responsiveness, assets/navigation and SEO checks.
|
|
- Automated testing reuses the existing regression host and real MVC/Razor UI; no alternate product or preview UI was built. Live Development smoke tests use the same ordinary public routes.
|
|
|
|
`engine-results.json`, `focused-witnesses.json` and the captured command outputs contain paths, scores, exact exception IDs and reachability witnesses. The strict audit can still be run without `--development-accepted` to return a nonzero exit for the eight outstanding semantic results.
|
|
|
|
## Development safety and review items
|
|
|
|
`WritingSolver:EnableIndexing=false` in the Development service forces solver/feature pages and responses to noindex and excludes solver URLs from the sitemap. Default existing public behaviour is unchanged elsewhere. Production is not modified.
|
|
|
|
`KnownReviewItems.md` preserves the 16 suspicious mappings from the prior completed audit without changing them. Larger practical-advice rewrites remain out of scope. The owner is explicitly evaluating a Development candidate with documented secondary-result limitations, not a catalogue certified as final editorial content.
|
|
|
|
## Changed files
|
|
|
|
Runtime: `Models/WritingSolver/SolverGraph.cs`, `Services/WritingSolverEngine.cs`, `Services/WritingSolverValidator.cs`, `Controllers/WritingProblemsController.cs`, `Controllers/SitemapController.cs`, `Views/WritingProblems/Index.cshtml`, `Neutral.cshtml`, `Admin.cshtml`, and `wwwroot/css/writing-solver.css`.
|
|
|
|
Data/tooling: the V2 graph and acceptance metadata, `Tools/WritingSolver/Program.cs` (safe standalone Development backup), and `Docs/WritingSolver/Framework.md`.
|
|
|
|
Tests: `WritingSolverNeutralTests.cs`, existing V2 and choice-witness tests, `Program.cs`, the existing browser fixture and curated browser suite.
|
|
|
|
Reports: this `DevelopmentGate` directory, metadata decisions, exact approved exceptions, original literal baseline, engine/focused evidence and operational release verification. Historical audit reports are retained unchanged.
|