Audit curated Writing Solver v2 without publishing
This commit is contained in:
parent
3c888049c5
commit
224e22a2df
149
Docs/WritingSolver/CuratedV2/Report.md
Normal file
149
Docs/WritingSolver/CuratedV2/Report.md
Normal file
@ -0,0 +1,149 @@
|
|||||||
|
# Curated Writing Solver V2 — offline validation report
|
||||||
|
|
||||||
|
1 November 2026. **Not published, deployed or indexed. No database connection was opened.**
|
||||||
|
|
||||||
|
## Outcome
|
||||||
|
|
||||||
|
The actual .NET engine matches **60/60 supplied V2 cases and all 185 prefix expectations**, and exhaustive real-engine traversal matches the assembly report exactly: **11,325 states, 44/44 active nodes, 52/52 solutions**. Every solution is also primary in at least one explored state.
|
||||||
|
|
||||||
|
The candidate is nevertheless **rejected by the existing repository validator** for one specific framework compatibility issue:
|
||||||
|
|
||||||
|
```
|
||||||
|
Dead end without diagnostic evidence: existing-barrier
|
||||||
|
```
|
||||||
|
|
||||||
|
That node is intentionally a non-diagnostic adoption endpoint. Its choices have no diagnostic weights, and it has no outgoing routes. The validator requires terminal nodes to contain diagnostic evidence. Adding weights merely to pass would contradict the V2 instruction that adoption concerns are not diagnoses. No such repair was made, and no validator exception was added to production code.
|
||||||
|
|
||||||
|
The validator exits before its journey-exploration phase because of that guard. The state count below comes from a separately instrumented copy of its traversal calling the **actual, unchanged .NET routing/scoring engine**, not from the CLI's rejected run or a Python reproduction. The instrumentation preserves the validator's exact deduplication key, choice combinations and `seen + pending` ceiling.
|
||||||
|
|
||||||
|
## Source preservation and schema
|
||||||
|
|
||||||
|
All eight supplied files are stored byte-for-byte as received under `PlotLine/Content/WritingSolver/Candidates/curated-v2/`. No schema, wording, signal, coefficient, threshold, route, feature mapping, slug or index flag was changed. The candidate is never selected by the application repository.
|
||||||
|
|
||||||
|
- Schema corrections required: **none**.
|
||||||
|
- Counts: **48 signals; 44 nodes; 52 solutions; 15 features; 60 cases**.
|
||||||
|
- Missing fallbacks: **0**. No duplicate IDs/slugs, missing references or unpermitted cycles were reported by the real validator.
|
||||||
|
- Multi-select nodes: `track-what`, `change-damage`, `scale-what`; each has seven substantive choices, below the limit of twelve.
|
||||||
|
- Graph SHA-256: `cda5732700d279c4a59d832b795fb80e9debfbf7853f3809213ed0dbb541b22f`.
|
||||||
|
|
||||||
|
## Reachability and exploration
|
||||||
|
|
||||||
|
| Measure | Result |
|
||||||
|
|---|---:|
|
||||||
|
| Distinct states | 11,325 |
|
||||||
|
| Replay attempts, including duplicate states | 12,701 |
|
||||||
|
| Peak pending queue | 4,293 |
|
||||||
|
| Active nodes reached | 44/44 |
|
||||||
|
| Solutions returned | 52/52 |
|
||||||
|
| Solutions primary somewhere | 52/52 |
|
||||||
|
| Terminal states | 9,997 |
|
||||||
|
| Terminal states with no qualifying result | 2,632 |
|
||||||
|
| Maximum answers anywhere explored | 6 |
|
||||||
|
| Exploration complete / ceiling exceeded | Yes / No |
|
||||||
|
|
||||||
|
Neutral terminal states include intentional uncertainty and adoption paths; they are not automatically defects. Their user-facing treatment still matters, as noted below. Node and solution witness paths are in `results.json`.
|
||||||
|
|
||||||
|
A concrete witness for the validator blocker is:
|
||||||
|
|
||||||
|
```
|
||||||
|
entry/unsure
|
||||||
|
→ rescue-happening/reread-cant-see
|
||||||
|
→ rescue-confidence/using-tool-concern
|
||||||
|
→ existing-stage/planning
|
||||||
|
→ existing-barrier/too-much-written
|
||||||
|
```
|
||||||
|
|
||||||
|
The final signals are `uncertainty=7`, `checking=3`. D52 is highest at **10**, below its threshold **26**; no solution qualifies. The engine ends neutrally, as intended. Every adoption choice has an equivalent recorded witness with its complete score table. Publication protection is tested with a connection factory that fails if invoked: `PublishAsync` rejects this candidate during validation **before opening any database connection**.
|
||||||
|
|
||||||
|
## Behavioural acceptance
|
||||||
|
|
||||||
|
- **60/60** cases pass the supplied primary/neutral, exact ordered prefix-result, expected-next, required-supporting and forbidden-result expectations.
|
||||||
|
- **185/185** submitted-answer prefixes match. Tests refuse to submit an answer when the UI would already have ended or selected a different question.
|
||||||
|
- No wrong primary, prefix mismatch, unexpected early stop or forbidden supporting result was found.
|
||||||
|
- Cases **13 and 58** finish neutrally. Case **50** continues to `rescue-confidence` without a premature result.
|
||||||
|
- Case **55** returns D30=30; D27=12 is below threshold 30 and is absent from results.
|
||||||
|
- Case **56** returns D10=52; D11=30 is below threshold 34 and is absent from results.
|
||||||
|
- Multi-select exclusivity, duplicate-selection resistance, earlier-answer revision and deterministic replay are covered. The browser suite additionally exercises actual Back/Forward and revised answers.
|
||||||
|
- No graph/scoring corrections were made to obtain these results.
|
||||||
|
|
||||||
|
Answer counts in the supplied paths: **6 cases use two answers, 43 use three, 11 use four**. Minimum **2**, median **3**, mean **3.08**, maximum **4**. These are submitted-path lengths; case 50 deliberately remains an unfinished broadening conversation. None of the curated paths needs the six-answer ceiling.
|
||||||
|
|
||||||
|
Every case's requested/accepted path, all prefix signals, all 52 candidate scores and thresholds, winning/supporting results, final next node and pass/fail are recorded in `results.json`.
|
||||||
|
|
||||||
|
### Supporting-result metadata needs reconciliation
|
||||||
|
|
||||||
|
The supplied file is internally inconsistent in **18 cases**: its exact `prefixExpectations.expectedResults` includes a supporting result not listed in `acceptableSupporting`.
|
||||||
|
|
||||||
|
| Cases | Explicitly expected support omitted from `acceptableSupporting` |
|
||||||
|
|---|---|
|
||||||
|
| 7 | D15 |
|
||||||
|
| 10 | D10 |
|
||||||
|
| 11 | D23 |
|
||||||
|
| 15 | D15, D16 |
|
||||||
|
| 16 | D43, D15 |
|
||||||
|
| 17, 18 | D15 |
|
||||||
|
| 22 | D26 |
|
||||||
|
| 25 | D29, D13 |
|
||||||
|
| 30 | D50 |
|
||||||
|
| 36 | D42 |
|
||||||
|
| 39 | D39, D13 |
|
||||||
|
| 43 | D43 |
|
||||||
|
| 49 | D33, D01 |
|
||||||
|
| 51 | D26 |
|
||||||
|
| 52, 57 | D15 |
|
||||||
|
| 60 | D26 |
|
||||||
|
|
||||||
|
Tests match the explicitly supplied full prefix-result lists and report these mismatches as warnings, rather than silently rewriting either list or inventing a new expectation. If `acceptableSupporting` is intended as a strict whitelist, those 18 cases require metadata/editorial review before claiming whitelist compliance.
|
||||||
|
|
||||||
|
Case **56** additionally lists D11 as both acceptable and forbidden. The explicit forbidden rule takes precedence in testing, consistent with the handoff's intent; D11 is not returned. There are no required-supporting entries in any of the 60 supplied cases. Compound cases 51 and 60 return D24 with D26, exactly as their prefix lists specify, but do not demonstrate required D25/D48 or other originally optional compound outcomes.
|
||||||
|
|
||||||
|
## Page and conversational review
|
||||||
|
|
||||||
|
The isolated MVC/Razor browser fixture rendered all **52 solution pages and 15 feature pages** successfully with JavaScript disabled. H1s, summaries, descriptions, canonical URLs, social descriptions, valid JSON-LD and solution/feature links were checked. No replacement characters or horizontal overflow were found. Representative 390px and 1440px journeys passed multi-select, neutral outcomes, intentional chronology/absence, Back/Forward, revision, public-theme isolation and layout-shift checks.
|
||||||
|
|
||||||
|
The preview is bound to loopback only and uses an explicit test-only candidate environment variable. Its copied in-memory records are rendered `noindex, follow`. The source candidate's index flags remain unchanged. Production/public controllers, views, scoring, validation, CSS, SQL and publication procedures were not changed.
|
||||||
|
|
||||||
|
Remaining UX/editorial concerns, without rewriting the catalogue:
|
||||||
|
|
||||||
|
1. **Adoption reassurance is missing at the endpoint.** The engine correctly avoids a diagnosis, but the current renderer uses generic “not enough evidence” advice and a library of **52 solution links**. It does not answer the discovery-writer/import concern or link directly to manuscript import. Both adoption-node help fields are empty. This is a neutral-result presentation gap, not a reason to assign a false writing problem.
|
||||||
|
2. **Supporting recommendations deserve editorial review.** Some literal expectations include diagnoses outside the stated complaint: e.g. D50 as support in the scene-navigation case 30, and D26 in compound character-knowledge cases 51/60. Those tests pass because the V2 file expressly expects them, not because the audit establishes that they are the best author-facing advice.
|
||||||
|
3. **Main advice remains templated.** All 52 solution `content` fields share the same opening inspection paragraph. Removing repeated summaries/principles improves rendering, but that common paragraph still provides little problem-specific practical guidance. No content was rewritten.
|
||||||
|
4. All 67 pages now have populated `questions` fields. Stable routes and metadata render correctly; this pass does not assert editorial completeness or search quality.
|
||||||
|
|
||||||
|
## Reproduction and verification
|
||||||
|
|
||||||
|
Actual validator (currently exits nonzero with the adoption-node message):
|
||||||
|
|
||||||
|
```
|
||||||
|
dotnet run --project Tools/WritingSolver -- validate /srv/repos/PlotDirector/PlotLine/Content/WritingSolver/Candidates/curated-v2/writing-solver-curated-v2.json
|
||||||
|
```
|
||||||
|
|
||||||
|
Real-engine audit and machine-readable report:
|
||||||
|
|
||||||
|
```
|
||||||
|
dotnet run --project PlotLine.Tests -- --writing-solver-curated-v2 --report Docs/WritingSolver/CuratedV2/results.json
|
||||||
|
```
|
||||||
|
|
||||||
|
This audit command deliberately returns nonzero while the actual validator rejects the candidate, even when its behavioural cases pass. The default regression harness separately asserts that the **known rejection remains in force**, rather than disabling it or claiming validator success.
|
||||||
|
|
||||||
|
Normal checks, run serially:
|
||||||
|
|
||||||
|
```
|
||||||
|
dotnet build PlotLine.slnx
|
||||||
|
dotnet run --no-build --project PlotLine.Tests/PlotLine.Tests.csproj
|
||||||
|
```
|
||||||
|
|
||||||
|
Result: build passed with the two existing nullable warnings in the regression harness; **381 regression checks passed**.
|
||||||
|
|
||||||
|
For isolated browser review, from the repository root:
|
||||||
|
|
||||||
|
```
|
||||||
|
PD_WRITING_SOLVER_CANDIDATE=/srv/repos/PlotDirector/PlotLine/Content/WritingSolver/Candidates/curated-v2/writing-solver-curated-v2.json dotnet run --no-build --project PlotLine.Tests -- --toolbar-browser-host
|
||||||
|
node PlotLine.Tests/Browser/writing-solver-curated-v2.cjs
|
||||||
|
```
|
||||||
|
|
||||||
|
The browser suite passed all 67 direct pages and representative desktop/mobile journeys. It makes no requests to the deployed development site and cannot publish data.
|
||||||
|
|
||||||
|
## Decision boundary
|
||||||
|
|
||||||
|
V2's engine behaviour is reproducible and substantially improved. The remaining hard validator rejection reflects its intentional neutral adoption endpoint versus the existing validator contract. Resolve neutral/adoption handling explicitly, reconcile supporting-result metadata and review the noted presentation gaps before publication. **No semantic repairs, schema changes, database writes, migration, deployment or publication were performed.**
|
||||||
3
Docs/WritingSolver/CuratedV2/browser-output.txt
Normal file
3
Docs/WritingSolver/CuratedV2/browser-output.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
NOTE 390px: adoption endpoint is neutral but uses generic advice and 52 reading links, without a direct manuscript-import link.
|
||||||
|
NOTE 1440px: adoption endpoint is neutral but uses generic advice and 52 reading links, without a direct manuscript-import link.
|
||||||
|
PASS curated V2 rendering: all 67 no-JS pages; desktop/mobile neutral, nonlinear, absence, multi-select, revision and Back/Forward journeys; no overflow/CLS; offline noindex.
|
||||||
88501
Docs/WritingSolver/CuratedV2/results.json
Normal file
88501
Docs/WritingSolver/CuratedV2/results.json
Normal file
File diff suppressed because it is too large
Load Diff
10
Docs/WritingSolver/CuratedV2/source-sha256.json
Normal file
10
Docs/WritingSolver/CuratedV2/source-sha256.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"ASSEMBLY_REPORT_V2.md": "f0e13799a5f7f5a936a1e081f5082eeed27e16ac3a79c76df8a55296c2cf9ad1",
|
||||||
|
"CHANGELOG_V2.md": "a89fea48c516b182f2a9a630834673183bac99582bced4ae0ec1a5f7fcfa40d1",
|
||||||
|
"CODEX_HANDOFF_V2.md": "f4133c2ae16052a841eea624652f895a19ac5fb24fd37fd290850b9561798bcb",
|
||||||
|
"MASTER_MATRIX_V2.md": "f8b7c8d68c969f679765bbe9875b97fde40ca160d48ce3018261381386466756",
|
||||||
|
"acceptance-cases-original.json": "8d7eb5db6f92056ee812bf9f4034d7420bd9ffa744033eab238a3f1052537876",
|
||||||
|
"acceptance-paths.json": "955fadc38fe3df1f1e27c510263e5e9629ff8f93d5836ceb89a7c3d0bad05076",
|
||||||
|
"manifest.json": "c0a3b946f5cff5e222fa4ee6d402ca95eaca8da9abcd6f987bf7533c08c0307b",
|
||||||
|
"writing-solver-curated-v2.json": "cda5732700d279c4a59d832b795fb80e9debfbf7853f3809213ed0dbb541b22f"
|
||||||
|
}
|
||||||
6
Docs/WritingSolver/CuratedV2/validator-output.txt
Normal file
6
Docs/WritingSolver/CuratedV2/validator-output.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
Command: dotnet run --project Tools/WritingSolver -- validate /srv/repos/PlotDirector/PlotLine/Content/WritingSolver/Candidates/curated-v2/writing-solver-curated-v2.json
|
||||||
|
|
||||||
|
Unhandled exception. System.IO.InvalidDataException: Dead end without diagnostic evidence: existing-barrier
|
||||||
|
at PlotLine.Data.WritingSolverRepository.Parse(String json) in /srv/repos/PlotDirector/PlotLine/Data/WritingSolverRepository.cs:line 29
|
||||||
|
at Program.<Main>$(String[] args) in /srv/repos/PlotDirector/Tools/WritingSolver/Program.cs:line 13
|
||||||
|
at Program.<Main>(String[] args)
|
||||||
93
PlotLine.Tests/Browser/writing-solver-curated-v2.cjs
Normal file
93
PlotLine.Tests/Browser/writing-solver-curated-v2.cjs
Normal file
@ -0,0 +1,93 @@
|
|||||||
|
// Isolated, loopback-only MVC host. Never target the deployed public site with this suite.
|
||||||
|
const { chromium } = require('playwright');
|
||||||
|
const assert = require('node:assert/strict');
|
||||||
|
const fs = require('node:fs');
|
||||||
|
const path = require('node:path');
|
||||||
|
const candidate = path.resolve('PlotLine/Content/WritingSolver/Candidates/curated-v2');
|
||||||
|
const graph = JSON.parse(fs.readFileSync(path.join(candidate,'writing-solver-curated-v2.json'),'utf8'));
|
||||||
|
const cases = JSON.parse(fs.readFileSync(path.join(candidate,'acceptance-paths.json'),'utf8')).cases;
|
||||||
|
const base = 'http://127.0.0.1:5238';
|
||||||
|
(async () => {
|
||||||
|
const browser = await chromium.launch();
|
||||||
|
try {
|
||||||
|
const context=await browser.newContext({javaScriptEnabled:false,viewport:{width:1440,height:1000}});
|
||||||
|
const page=await context.newPage();
|
||||||
|
for (const [kind,pages] of [['writing-problems',graph.solutions],['features',graph.features]]) {
|
||||||
|
for(const record of pages) {
|
||||||
|
const response=await page.goto(`${base}/${kind}/${record.slug}`);
|
||||||
|
assert.equal(response.status(),200,record.id);
|
||||||
|
assert.equal(await page.locator('h1').innerText(),record.title,record.id);
|
||||||
|
assert.equal(await page.locator('link[rel=canonical]').getAttribute('href'),`https://plotdirector.com/${kind}/${record.slug}`,record.id);
|
||||||
|
assert.equal(await page.locator('meta[name=description]').getAttribute('content'),record.description,record.id);
|
||||||
|
assert.equal(await page.locator('meta[property="og:description"]').getAttribute('content'),record.description,record.id);
|
||||||
|
assert.equal(await page.locator('meta[name=robots]').getAttribute('content'),'noindex, follow',record.id);
|
||||||
|
assert(await page.locator('script[type="application/ld+json"]').count(),record.id);
|
||||||
|
assert((await page.locator('body').innerText()).includes(record.summary),record.id);
|
||||||
|
assert.equal(await page.evaluate(()=>document.documentElement.scrollWidth>innerWidth),false,record.id);
|
||||||
|
assert(!((await page.locator('main').innerText()).includes('\uFFFD')),`Replacement character in ${record.id}`);
|
||||||
|
for(const script of await page.locator('script[type="application/ld+json"]').allTextContents()) JSON.parse(script);
|
||||||
|
if(kind==='writing-problems') {
|
||||||
|
for(const link of record.features) {
|
||||||
|
const feature=graph.features.find(f=>f.id===link.feature);
|
||||||
|
assert(await page.locator(`a[href="/features/${feature.slug}"]`).count(),`${record.id}/${feature.id}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
await context.close();
|
||||||
|
for(const width of [390,1440]) {
|
||||||
|
const context=await browser.newContext({viewport:{width,height:1000}});
|
||||||
|
await context.addInitScript(()=>{
|
||||||
|
localStorage.setItem('plotdirector.applicationTheme','rose-pink');
|
||||||
|
window.__shifts=[];
|
||||||
|
new PerformanceObserver(list=>list.getEntries().forEach(e=>{if(!e.hadRecentInput)window.__shifts.push(e.value);})).observe({type:'layout-shift',buffered:true});
|
||||||
|
});
|
||||||
|
const page=await context.newPage();const errors=[];page.on('pageerror',e=>errors.push(e.message));
|
||||||
|
for(const id of [13,20,23,50,55,56,58,60]) {
|
||||||
|
await page.goto(base+'/writing-problems');
|
||||||
|
const test=cases.find(c=>c.id===id);
|
||||||
|
for(let i=0;i<test.answers.length;i++) {
|
||||||
|
const answer=test.answers[i];
|
||||||
|
assert.equal(await page.locator('input[name=node]').getAttribute('value'),answer.node,`case ${id} prefix ${i}`);
|
||||||
|
for(const choice of answer.choices) await page.locator(`input[name=choices][value="${choice}"]`).check();
|
||||||
|
await page.locator('.solver-form button[type=submit]').click();
|
||||||
|
const expected=test.prefixExpectations[i];
|
||||||
|
assert.equal(await page.locator('input[name=node]').count() ? await page.locator('input[name=node]').getAttribute('value') : null,expected.expectedNext,`case ${id} prefix ${i+1}`);
|
||||||
|
assert.equal(await page.locator('.solver-result').count(),expected.expectedResults.length,`case ${id} prefix ${i+1}`);
|
||||||
|
assert.equal(await page.evaluate(()=>document.documentElement.scrollWidth>innerWidth),false,`case ${id} width ${width}`);
|
||||||
|
}
|
||||||
|
assert.equal(await page.locator('html').getAttribute('data-site-theme'),'public');
|
||||||
|
assert.equal(await page.locator('html').getAttribute('data-app-theme'),null);
|
||||||
|
assert((await page.evaluate(()=>window.__shifts.reduce((a,b)=>a+b,0)))<.1,`layout shift in case ${id}`);
|
||||||
|
}
|
||||||
|
// Browser history returns to the actual prior question; revise to neutral knowledge-state advice.
|
||||||
|
await page.goto(base+'/writing-problems');
|
||||||
|
for(const answer of cases.find(c=>c.id===20).answers) {
|
||||||
|
for(const choice of answer.choices) await page.locator(`input[name=choices][value="${choice}"]`).check();
|
||||||
|
await page.locator('.solver-form button[type=submit]').click();
|
||||||
|
}
|
||||||
|
await page.goBack();
|
||||||
|
assert.equal(await page.locator('input[name=node]').getAttribute('value'),'track-knowledge');
|
||||||
|
await page.goForward();assert(await page.locator('.solver-result h1').innerText().then(s=>s===graph.solutions.find(s=>s.id==='d22').title));
|
||||||
|
await page.goBack();await page.locator('input[value="who-knows-fact"]').check();await page.locator('.solver-form button[type=submit]').click();
|
||||||
|
assert.equal(await page.locator('.solver-result').count(),0);
|
||||||
|
assert(await page.locator('main').innerText().then(t=>t.includes('isn’t enough evidence')));
|
||||||
|
// The adoption branch is neutral; record the current renderer's lack of tailored guidance.
|
||||||
|
await page.goto(base+'/writing-problems');
|
||||||
|
for(const [node,choice] of [['entry','unsure'],['rescue-happening','reread-cant-see'],['rescue-confidence','using-tool-concern'],['existing-stage','planning'],['existing-barrier','discovery']]) {
|
||||||
|
assert.equal(await page.locator('input[name=node]').getAttribute('value'),node);
|
||||||
|
await page.locator(`input[name=choices][value="${choice}"]`).check();
|
||||||
|
await page.locator('.solver-form button[type=submit]').click();
|
||||||
|
}
|
||||||
|
assert.equal(await page.locator('.solver-result').count(),0);
|
||||||
|
assert.equal(await page.locator('.solver-library a').count(),52);
|
||||||
|
assert.equal(await page.locator('main a[href="/features/manuscript-import"]').count(),0);
|
||||||
|
console.log(`NOTE ${width}px: adoption endpoint is neutral but uses generic advice and 52 reading links, without a direct manuscript-import link.`);
|
||||||
|
assert.equal(errors.length,0,errors.join('\n'));
|
||||||
|
await context.close();
|
||||||
|
}
|
||||||
|
// Existing renderer lists every public solution under a neutral result. Record its size
|
||||||
|
// as a UX finding rather than silently treating a blank recommendation as a diagnosis.
|
||||||
|
console.log('PASS curated V2 rendering: all 67 no-JS pages; desktop/mobile neutral, nonlinear, absence, multi-select, revision and Back/Forward journeys; no overflow/CLS; offline noindex.');
|
||||||
|
} finally {await browser.close();}
|
||||||
|
})().catch(error=>{console.error(error);process.exit(1);});
|
||||||
@ -17,6 +17,12 @@ using PlotLine.ViewModels;
|
|||||||
|
|
||||||
#pragma warning disable CS8321
|
#pragma warning disable CS8321
|
||||||
|
|
||||||
|
if (args.Contains("--writing-solver-curated-v2"))
|
||||||
|
{
|
||||||
|
WritingSolverCuratedV2Tests.Run(args);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (args.Contains("--dev-browser-identity"))
|
if (args.Contains("--dev-browser-identity"))
|
||||||
{
|
{
|
||||||
await DevBrowserIdentity.RunAsync(args);
|
await DevBrowserIdentity.RunAsync(args);
|
||||||
@ -52,6 +58,9 @@ if (args.Contains("--plot-lines"))
|
|||||||
|
|
||||||
var tests = new (string Name, Action Test)[]
|
var tests = new (string Name, Action Test)[]
|
||||||
{
|
{
|
||||||
|
("Curated V2 replays all supplied acceptance prefixes and supporting-result rules", WritingSolverCuratedV2Tests.Acceptance),
|
||||||
|
("Curated V2 exhausts real-engine states and preserves revision/multi-select behaviour", WritingSolverCuratedV2Tests.ReachabilityAndRevision),
|
||||||
|
("Curated V2 records the existing neutral adoption validator boundary", WritingSolverCuratedV2Tests.ExistingValidatorBoundary),
|
||||||
("Writing Solver anonymous state is protected, expires and rejects stale versions", WritingSolverTests.AnonymousState),
|
("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),
|
("Writing Solver scoring, multi-select, revision, fallback and graph routes", WritingSolverTests.RoutingAndRevision),
|
||||||
("Writing Solver import rejects invalid graphs and editorial identities", WritingSolverTests.Validation),
|
("Writing Solver import rejects invalid graphs and editorial identities", WritingSolverTests.Validation),
|
||||||
|
|||||||
@ -340,8 +340,15 @@ internal sealed class WritingSolverFixtureRepository(IHttpContextAccessor access
|
|||||||
{
|
{
|
||||||
public Task<PlotLine.Models.WritingSolver.SolverGraph> GetAsync()
|
public Task<PlotLine.Models.WritingSolver.SolverGraph> GetAsync()
|
||||||
{
|
{
|
||||||
var graph = WritingSolverRepository.Parse(File.ReadAllText("PlotLine/Content/WritingSolver/demo.json"));
|
// Read-only, loopback-only candidate rendering. Strict schema parsing is kept
|
||||||
if (accessor.HttpContext?.Request.Query["curated"].ToString() == "true")
|
// separate from semantic validation so rejected candidates can still be inspected.
|
||||||
|
var candidatePath = Environment.GetEnvironmentVariable("PD_WRITING_SOLVER_CANDIDATE");
|
||||||
|
var graph = string.IsNullOrEmpty(candidatePath)
|
||||||
|
? WritingSolverRepository.Parse(File.ReadAllText("PlotLine/Content/WritingSolver/demo.json"))
|
||||||
|
: System.Text.Json.JsonSerializer.Deserialize<PlotLine.Models.WritingSolver.SolverGraph>(File.ReadAllText(candidatePath), WritingSolverRepository.JsonOptions)!;
|
||||||
|
if (!string.IsNullOrEmpty(candidatePath))
|
||||||
|
foreach(var page in graph.Solutions.Cast<PlotLine.Models.WritingSolver.SolverPage>().Concat(graph.Features)) page.Index = false;
|
||||||
|
if (string.IsNullOrEmpty(candidatePath) && accessor.HttpContext?.Request.Query["curated"].ToString() == "true")
|
||||||
{
|
{
|
||||||
graph.IsDemo = false;
|
graph.IsDemo = false;
|
||||||
foreach(var page in graph.Solutions.Cast<PlotLine.Models.WritingSolver.SolverPage>().Concat(graph.Features)) page.Index = true;
|
foreach(var page in graph.Solutions.Cast<PlotLine.Models.WritingSolver.SolverPage>().Concat(graph.Features)) page.Index = true;
|
||||||
|
|||||||
202
PlotLine.Tests/WritingSolverCuratedV2Tests.cs
Normal file
202
PlotLine.Tests/WritingSolverCuratedV2Tests.cs
Normal file
@ -0,0 +1,202 @@
|
|||||||
|
using System.Text.Json;
|
||||||
|
using PlotLine.Data;
|
||||||
|
using PlotLine.Models.WritingSolver;
|
||||||
|
using PlotLine.Services;
|
||||||
|
|
||||||
|
// Validation-only: no connection factory, publication API or live database is used.
|
||||||
|
internal static class WritingSolverCuratedV2Tests
|
||||||
|
{
|
||||||
|
private static readonly JsonSerializerOptions Json = WritingSolverRepository.JsonOptions;
|
||||||
|
public sealed record PrefixExpectation(int AfterAnswers, string? ExpectedNext, string[] ExpectedResults);
|
||||||
|
public sealed record AcceptanceCase(int Id, string Complaint, SolverAnswer[] Answers, PrefixExpectation[] PrefixExpectations,
|
||||||
|
string? ExpectedPrimary, string[] AcceptableSupporting, string[] RequiredSupporting, string[] ForbiddenResults, string Notes);
|
||||||
|
public sealed record AcceptanceFile(string Version, AcceptanceCase[] Cases);
|
||||||
|
public sealed record Score(string Id, int Value, int Threshold, bool Qualified);
|
||||||
|
public sealed record Step(SolverAnswer Answer, string? Next, Dictionary<string,int> Signals, Score[] Scores, string[] Results);
|
||||||
|
public sealed record CaseResult(int Id, string Complaint, SolverAnswer[] RequestedPath, SolverAnswer[] AcceptedPath,
|
||||||
|
string? ExpectedPrimary, string[] AcceptableSupporting, string[] RequiredSupporting, string[] ForbiddenResults,
|
||||||
|
Step[] Prefixes, Dictionary<string,int> Signals, Score[] Scores, string? Primary, string[] Supporting, string? Next,
|
||||||
|
bool Pass, string[] Errors, string[] Warnings);
|
||||||
|
public sealed record Exploration(int StateCount, long Attempts, int PeakQueue, bool Complete,
|
||||||
|
Dictionary<string,SolverAnswer[]> Nodes, Dictionary<string,SolverAnswer[]> Solutions, string[] PrimarySolutions,
|
||||||
|
int TerminalStates, int NeutralTerminalStates, int MaximumAnswers, string[] Errors);
|
||||||
|
|
||||||
|
public static string Root()
|
||||||
|
{
|
||||||
|
var directory=new DirectoryInfo(AppContext.BaseDirectory);
|
||||||
|
while(directory is not null && !File.Exists(Path.Combine(directory.FullName,"PlotLine.slnx"))) directory=directory.Parent;
|
||||||
|
return directory?.FullName ?? throw new InvalidOperationException("Repository root missing.");
|
||||||
|
}
|
||||||
|
public static string DirectoryPath => Path.Combine(Root(),"PlotLine/Content/WritingSolver/Candidates/curated-v2");
|
||||||
|
public static SolverGraph Graph() => JsonSerializer.Deserialize<SolverGraph>(File.ReadAllText(Path.Combine(DirectoryPath,"writing-solver-curated-v2.json")),Json)
|
||||||
|
?? throw new InvalidDataException("Empty graph.");
|
||||||
|
private static AcceptanceCase[] Cases() => JsonSerializer.Deserialize<AcceptanceFile>(File.ReadAllText(Path.Combine(DirectoryPath,"acceptance-paths.json")),Json)!.Cases;
|
||||||
|
private static void Require(bool condition,string message) { if(!condition) throw new Exception(message); }
|
||||||
|
private static Score[] Scores(SolverGraph graph,SolverOutcome outcome) => graph.Solutions.Where(s=>s.Active)
|
||||||
|
.Select(s=>new Score(s.Id,s.Signals.Sum(w=>outcome.Scores.GetValueOrDefault(w.Key)*w.Value),s.Threshold,false))
|
||||||
|
.Select(s=>s with {Qualified=s.Value>=s.Threshold}).OrderByDescending(s=>s.Value)
|
||||||
|
.ThenBy(s=>graph.Solutions.Single(d=>d.Id==s.Id).Order).ThenBy(s=>s.Id,StringComparer.Ordinal).ToArray();
|
||||||
|
|
||||||
|
public static CaseResult[] Replay(SolverGraph graph)
|
||||||
|
{
|
||||||
|
var cases=Cases();
|
||||||
|
Require(cases.Length==60 && cases.Select(c=>c.Id).Order().SequenceEqual(Enumerable.Range(1,60)),"Exactly the supplied 60 case IDs must be tested.");
|
||||||
|
return cases.Select(test=>
|
||||||
|
{
|
||||||
|
var errors=new List<string>(); var warnings=new List<string>(); var steps=new List<Step>(); var history=new List<SolverAnswer>();
|
||||||
|
var outcome=WritingSolverEngine.Evaluate(graph,history);
|
||||||
|
if(test.PrefixExpectations.Length!=test.Answers.Length || !test.PrefixExpectations.Select(p=>p.AfterAnswers).Order().SequenceEqual(Enumerable.Range(1,test.Answers.Length)))
|
||||||
|
errors.Add("Every submitted answer needs exactly one prefix expectation.");
|
||||||
|
foreach(var answer in test.Answers)
|
||||||
|
{
|
||||||
|
if(outcome.Next?.Id!=answer.Node) { errors.Add($"After {history.Count} answers: expected question {answer.Node}, actual {outcome.Next?.Id ?? "terminal"}."); break; }
|
||||||
|
history.Add(answer);
|
||||||
|
outcome=WritingSolverEngine.Evaluate(graph,history);
|
||||||
|
if(outcome.Answers.Count!=history.Count) {errors.Add("The engine rejected this choice combination.");break;}
|
||||||
|
var ids=outcome.Solutions.Select(s=>s.Id).ToArray();
|
||||||
|
steps.Add(new(answer,outcome.Next?.Id,new(outcome.Scores),Scores(graph,outcome),ids));
|
||||||
|
var expected=test.PrefixExpectations.SingleOrDefault(p=>p.AfterAnswers==history.Count);
|
||||||
|
if(expected is not null)
|
||||||
|
{
|
||||||
|
if(expected.ExpectedNext!=outcome.Next?.Id) errors.Add($"Prefix {history.Count}: next expected {expected.ExpectedNext ?? "terminal"}, actual {outcome.Next?.Id ?? "terminal"}.");
|
||||||
|
if(!expected.ExpectedResults.SequenceEqual(ids)) errors.Add($"Prefix {history.Count}: results expected [{string.Join(",",expected.ExpectedResults)}], actual [{string.Join(",",ids)}].");
|
||||||
|
}
|
||||||
|
foreach(var forbidden in ids.Intersect(test.ForbiddenResults)) errors.Add($"Prefix {history.Count}: forbidden result {forbidden} was returned.");
|
||||||
|
}
|
||||||
|
var primary=outcome.Solutions.FirstOrDefault()?.Id; var supporting=outcome.Solutions.Skip(1).Select(s=>s.Id).ToArray();
|
||||||
|
if(primary!=test.ExpectedPrimary) errors.Add($"Expected primary {test.ExpectedPrimary ?? "none"}, actual {primary ?? "none"}.");
|
||||||
|
foreach(var required in test.RequiredSupporting.Except(supporting)) errors.Add($"Required supporting result missing: {required}.");
|
||||||
|
foreach(var id in supporting.Except(test.AcceptableSupporting)) warnings.Add($"Supporting result {id} is present in the explicit prefix expectation but absent from acceptableSupporting; reconcile the supplied metadata.");
|
||||||
|
foreach(var conflict in test.AcceptableSupporting.Intersect(test.ForbiddenResults)) warnings.Add($"{conflict} is both acceptable and forbidden in the supplied metadata; the explicit forbidden rule takes precedence.");
|
||||||
|
return new CaseResult(test.Id,test.Complaint,test.Answers,outcome.Answers.ToArray(),test.ExpectedPrimary,test.AcceptableSupporting,test.RequiredSupporting,test.ForbiddenResults,
|
||||||
|
steps.ToArray(),new(outcome.Scores),Scores(graph,outcome),primary,supporting,outcome.Next?.Id,errors.Count==0,errors.ToArray(),warnings.ToArray());
|
||||||
|
}).ToArray();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Faithful instrumentation of the existing validator traversal, including its exact
|
||||||
|
// history/score key and seen+pending ceiling. This intentionally does not replace it.
|
||||||
|
public static Exploration Explore(SolverGraph graph)
|
||||||
|
{
|
||||||
|
var pending=new Queue<SolverAnswer[]>();pending.Enqueue([]);
|
||||||
|
var seen=new HashSet<string>();var nodes=new Dictionary<string,SolverAnswer[]>();var solutions=new Dictionary<string,SolverAnswer[]>();
|
||||||
|
var primary=new HashSet<string>();var errors=new List<string>();long attempts=0;var peak=1;var terminals=0;var neutral=0;var maximum=0;var complete=true;
|
||||||
|
while(pending.TryDequeue(out var history))
|
||||||
|
{
|
||||||
|
attempts++;
|
||||||
|
var outcome=WritingSolverEngine.Evaluate(graph,history);
|
||||||
|
var key=string.Join(",",outcome.Answers.Select(a=>a.Node))+":"+string.Join(",",outcome.Scores.OrderBy(s=>s.Key).Select(s=>$"{s.Key}={s.Value}"))+":"+outcome.Next?.Id;
|
||||||
|
if(!seen.Add(key)) continue;
|
||||||
|
if(seen.Count+pending.Count>100000) {errors.Add("The real validator's seen+pending ceiling was exceeded.");complete=false;break;}
|
||||||
|
maximum=Math.Max(maximum,outcome.Answers.Count);
|
||||||
|
foreach(var solution in outcome.Solutions) solutions.TryAdd(solution.Id,outcome.Answers.ToArray());
|
||||||
|
if(outcome.Solutions.FirstOrDefault() is { } winner) primary.Add(winner.Id);
|
||||||
|
if(outcome.Next is not { } node) {terminals++;if(outcome.Solutions.Count==0) neutral++;continue;}
|
||||||
|
nodes.TryAdd(node.Id,outcome.Answers.ToArray());
|
||||||
|
foreach(var choice in node.Choices.Where(c=>c.Active)) pending.Enqueue([..history,new(node.Id,[choice.Id])]);
|
||||||
|
if(node.Multiple)
|
||||||
|
{
|
||||||
|
var substantive=node.Choices.Where(c=>c.Active && !c.Fallback).ToArray();
|
||||||
|
Require(substantive.Length<=12,$"Too many multi-select choices at {node.Id}.");
|
||||||
|
for(var mask=1;mask<(1<<substantive.Length);mask++)
|
||||||
|
{
|
||||||
|
if((mask & (mask-1))==0) continue;
|
||||||
|
var ids=substantive.Where((_,i)=>(mask & (1<<i))!=0).Select(c=>c.Id).ToArray();
|
||||||
|
pending.Enqueue([..history,new(node.Id,ids)]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
peak=Math.Max(peak,pending.Count);
|
||||||
|
}
|
||||||
|
errors.AddRange(graph.Nodes.Where(n=>n.Active && !nodes.ContainsKey(n.Id)).Select(n=>$"Unreachable active node: {n.Id}"));
|
||||||
|
errors.AddRange(graph.Solutions.Where(s=>s.Active && !solutions.ContainsKey(s.Id)).Select(s=>$"Unreachable active solution: {s.Id}"));
|
||||||
|
return new(seen.Count,attempts,peak,complete,nodes,solutions,primary.Order(StringComparer.Ordinal).ToArray(),terminals,neutral,maximum,errors.ToArray());
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void Acceptance()
|
||||||
|
{
|
||||||
|
var results=Replay(Graph());
|
||||||
|
Require(results.All(r=>r.Pass),string.Join("; ",results.Where(r=>!r.Pass).Select(r=>$"Case {r.Id}: {string.Join(" ",r.Errors)}")));
|
||||||
|
}
|
||||||
|
public static void ReachabilityAndRevision()
|
||||||
|
{
|
||||||
|
var graph=Graph();var exploration=Explore(graph);
|
||||||
|
Require(exploration.Complete && exploration.Errors.Length==0,string.Join("; ",exploration.Errors));
|
||||||
|
Require(exploration.StateCount==11325,$"Expected the supplied 11,325 states, actual {exploration.StateCount}.");
|
||||||
|
Require(exploration.Nodes.Count==44 && exploration.Solutions.Count==52,"Reachability differs from the supplied assembly report.");
|
||||||
|
foreach(var test in Cases())
|
||||||
|
{
|
||||||
|
foreach(var prefix in Enumerable.Range(0,test.Answers.Length+1))
|
||||||
|
{
|
||||||
|
var history=test.Answers.Take(prefix).ToArray();var outcome=WritingSolverEngine.Evaluate(graph,history);
|
||||||
|
Require(outcome.Answers.Count==history.Length,$"Case {test.Id} prefix {prefix} was rejected.");
|
||||||
|
Require(outcome.Answers.Select(a=>a.Node).Distinct().Count()==history.Length,"Question repeated.");
|
||||||
|
var replay=WritingSolverEngine.Evaluate(graph,history);
|
||||||
|
Require(outcome.Next?.Id==replay.Next?.Id && outcome.Scores.OrderBy(s=>s.Key).SequenceEqual(replay.Scores.OrderBy(s=>s.Key)),"Replay/Forward changed the outcome.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var original=Cases().Single(c=>c.Id==20).Answers;
|
||||||
|
var revised=original.ToArray();revised[0]=new("entry",["feels-wrong"]);
|
||||||
|
var after=WritingSolverEngine.Evaluate(graph,revised);
|
||||||
|
Require(after.Answers.Count==1 && after.Next?.Id=="feel-where" && !after.Scores.ContainsKey("knowledge"),"Revision retained stale answers or knowledge scores.");
|
||||||
|
foreach(var multi in graph.Nodes.Where(n=>n.Multiple))
|
||||||
|
{
|
||||||
|
var path=exploration.Nodes[multi.Id];
|
||||||
|
foreach(var fallback in multi.Choices.Where(c=>c.Active && c.Fallback))
|
||||||
|
{
|
||||||
|
var one=multi.Choices.First(c=>c.Active && !c.Fallback);
|
||||||
|
var invalid=WritingSolverEngine.Evaluate(graph,[..path,new(multi.Id,[one.Id,fallback.Id])]);
|
||||||
|
Require(invalid.Answers.Count==path.Length,"Fallback was combined with another answer.");
|
||||||
|
var single=WritingSolverEngine.Evaluate(graph,[..path,new(multi.Id,[one.Id])]);
|
||||||
|
var duplicate=WritingSolverEngine.Evaluate(graph,[..path,new(multi.Id,[one.Id,one.Id])]);
|
||||||
|
Require(single.Scores.OrderBy(s=>s.Key).SequenceEqual(duplicate.Scores.OrderBy(s=>s.Key)),"Duplicate selections amplified weights.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private sealed class NoDatabaseConnection : ISqlConnectionFactory
|
||||||
|
{
|
||||||
|
public int Calls { get; private set; }
|
||||||
|
public System.Data.IDbConnection CreateConnection()
|
||||||
|
{
|
||||||
|
Calls++;
|
||||||
|
throw new InvalidOperationException("Validation-only test must never open a database connection.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public static void ExistingValidatorBoundary()
|
||||||
|
{
|
||||||
|
var errors=WritingSolverValidator.Validate(Graph());
|
||||||
|
Require(errors.SequenceEqual(new[]{"Dead end without diagnostic evidence: existing-barrier"}),"The known neutral adoption endpoint blocker changed: "+string.Join("; ",errors));
|
||||||
|
var connections=new NoDatabaseConnection();
|
||||||
|
try
|
||||||
|
{
|
||||||
|
new WritingSolverRepository(connections).PublishAsync(File.ReadAllText(Path.Combine(DirectoryPath,"writing-solver-curated-v2.json")),"validation-only").GetAwaiter().GetResult();
|
||||||
|
throw new Exception("The current publication guard accepted a rejected graph.");
|
||||||
|
}
|
||||||
|
catch(InvalidDataException exception)
|
||||||
|
{
|
||||||
|
Require(exception.Message.Contains("existing-barrier") && connections.Calls==0,"Publication did not reject before opening a database connection.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public static void Run(string[] args)
|
||||||
|
{
|
||||||
|
var graph=Graph();var validation=WritingSolverValidator.Validate(graph);var exploration=Explore(graph);var results=Replay(graph);
|
||||||
|
var reportIndex=Array.IndexOf(args,"--report");
|
||||||
|
var report=reportIndex<0 ? Path.Combine(Root(),"Docs/WritingSolver/CuratedV2/results.json") : args[reportIndex+1];
|
||||||
|
var lengths=results.Select(r=>r.AcceptedPath.Length).Order().ToArray();
|
||||||
|
var signals=graph.Nodes.SelectMany(n=>n.Choices).SelectMany(c=>c.Weights.Keys).Distinct().Order().ToArray();
|
||||||
|
var witness=exploration.Nodes.GetValueOrDefault("existing-barrier") ?? [];
|
||||||
|
var neutral=graph.Nodes.Single(n=>n.Id=="existing-barrier").Choices.Where(c=>c.Active).Select(choice=>
|
||||||
|
{
|
||||||
|
var outcome=WritingSolverEngine.Evaluate(graph,[..witness,new("existing-barrier",[choice.Id])]);
|
||||||
|
return new {Choice=choice.Id,Path=outcome.Answers,Signals=outcome.Scores,Scores=Scores(graph,outcome),Next=outcome.Next?.Id,Results=outcome.Solutions.Select(s=>s.Id).ToArray()};
|
||||||
|
}).ToArray();
|
||||||
|
Directory.CreateDirectory(Path.GetDirectoryName(Path.GetFullPath(report))!);
|
||||||
|
File.WriteAllText(report,JsonSerializer.Serialize(new {graph.Version,Counts=new {Signals=signals.Length,Nodes=graph.Nodes.Count,Solutions=graph.Solutions.Count,Features=graph.Features.Count},
|
||||||
|
ValidationPassed=validation.Count==0,ValidationErrors=validation,Exploration=exploration,Passed=results.Count(r=>r.Pass),Total=results.Length,
|
||||||
|
JourneyLengths=new {Min=lengths.Min(),Median=(lengths[29]+lengths[30])/2.0,Mean=lengths.Average(),Max=lengths.Max(),ContinuingCases=results.Where(r=>r.Next is not null).Select(r=>r.Id).ToArray()},
|
||||||
|
NeutralAdoptionWitnesses=neutral,Results=results},Json)+"\n");
|
||||||
|
Console.WriteLine($"Actual validator: {(validation.Count==0 ? "PASS" : "FAIL")}; {string.Join("; ",validation)}");
|
||||||
|
Console.WriteLine($"Exploration: {exploration.StateCount} states, {exploration.Nodes.Count}/44 nodes, {exploration.Solutions.Count}/52 solutions, complete={exploration.Complete}.");
|
||||||
|
Console.WriteLine($"Acceptance: {results.Count(r=>r.Pass)}/60. Lengths {lengths.Min()}–{lengths.Max()}, median {(lengths[29]+lengths[30])/2.0}, mean {lengths.Average():F2}.");
|
||||||
|
foreach(var result in results.Where(r=>!r.Pass)) Console.WriteLine($"Case {result.Id}: {string.Join(" ",result.Errors)}");
|
||||||
|
if(validation.Count>0 || !exploration.Complete || exploration.Errors.Length>0 || results.Any(r=>!r.Pass)) Environment.ExitCode=1;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,48 @@
|
|||||||
|
# Assembly report V2
|
||||||
|
|
||||||
|
Status: **offline candidate — do not publish or index**.
|
||||||
|
|
||||||
|
## Counts
|
||||||
|
|
||||||
|
- 48 signals
|
||||||
|
- 44 nodes
|
||||||
|
- 52 solutions
|
||||||
|
- 15 features
|
||||||
|
- 60 curated acceptance paths
|
||||||
|
|
||||||
|
## Schema/source basis
|
||||||
|
|
||||||
|
V2 was rebuilt against the repository snapshots supplied in the revision bundle: `SolverGraph.cs`, `WritingSolverEngine.cs`, `WritingSolverValidator.cs` and `demo.json`, rather than the earlier prose-only interpretation.
|
||||||
|
|
||||||
|
## Local structural checks
|
||||||
|
|
||||||
|
- Missing fallbacks: **0**
|
||||||
|
- Structural cycles: **0**
|
||||||
|
- Edge-reachable active nodes: **44/44**
|
||||||
|
- Maximum substantive choices in a multi-select node: **7** (framework limit 12)
|
||||||
|
|
||||||
|
## Engine-equivalent exhaustive traversal
|
||||||
|
|
||||||
|
A local Python reproduction of the supplied `WritingSolverEngine` and `ValidateJourneys` traversal explored **11,325 distinct states**, below the repository validator ceiling of 100,000.
|
||||||
|
|
||||||
|
- Nodes reachable under scoring/routing rules: **44/44**
|
||||||
|
- Solutions returned by at least one reachable state: **52/52**
|
||||||
|
|
||||||
|
This is deliberately described as an **engine-equivalent local check**, not as a real repository/.NET validator pass. Codex must still run the actual CLI validator.
|
||||||
|
|
||||||
|
## Acceptance suite
|
||||||
|
|
||||||
|
The 60 literal V2 paths were replayed against the same local engine-equivalent implementation: **60/60 passed the stated V2 primary/neutral and forbidden-result expectations**.
|
||||||
|
|
||||||
|
Journey lengths in those curated paths:
|
||||||
|
|
||||||
|
- minimum: **2** answers
|
||||||
|
- median: **3** answers
|
||||||
|
- mean: **3.08** answers
|
||||||
|
- maximum: **4** answers
|
||||||
|
|
||||||
|
The literal paths and expected next/result state after every prefix are in `acceptance-paths.json`.
|
||||||
|
|
||||||
|
## Important approval boundary
|
||||||
|
|
||||||
|
Do not tune this candidate merely to obtain a green validator. If the actual repository validator disagrees with these results, report the exact state/path and scores. Do not publish.
|
||||||
@ -0,0 +1,46 @@
|
|||||||
|
# V2 change log
|
||||||
|
|
||||||
|
## Schema corrections
|
||||||
|
|
||||||
|
- Route `choiceId` → `choice`.
|
||||||
|
- Solution `coefficients` → `signals`.
|
||||||
|
- Page `relatedQuestions` → `questions`.
|
||||||
|
- Solution `relatedSolutionIds` → `related`.
|
||||||
|
- Feature mapping `featureId` → `feature`.
|
||||||
|
- Feature mapping `explanation` → `reason`.
|
||||||
|
- Removed unsupported feature `principle`; its idea remains in feature content.
|
||||||
|
|
||||||
|
## Routing and fallback corrections
|
||||||
|
|
||||||
|
- Added an explicit fallback choice to every active node.
|
||||||
|
- Removed the `change-knowledge` ↔ `change-damage` structural cycle.
|
||||||
|
- Reduced broad selector weights so the real stop rule does not pre-empt useful specialist questions.
|
||||||
|
- Adjusted conditional route minimums to match the new orientation-level evidence.
|
||||||
|
- Preserved specialist follow-ups for setup/payoff, elapsed time, nonlinear chronology, revision ordering and series threads.
|
||||||
|
- Added a direct place-continuity route into the location specialist question.
|
||||||
|
|
||||||
|
## Semantic corrections
|
||||||
|
|
||||||
|
- Character absence now uses `flat-progression` as supporting evidence so D10 can be distinguished from general presence imbalance D11.
|
||||||
|
- Character-age/date conflicts now favour D29 once age/chronology evidence is present; generic character facts still favour D13.
|
||||||
|
- Relationship diagnoses D17–D20 require their discriminating evidence rather than qualifying on generic relationship evidence alone.
|
||||||
|
- D52 general overload was weakened so a specific scene-navigation problem can outrank it.
|
||||||
|
- D01 no longer qualifies from generic scale/overwhelm without meaningful thread evidence.
|
||||||
|
- D12 now requires more than POV-domain evidence alone.
|
||||||
|
- Added honest choices for reader-facing reveal timing, knowledge of an object/fact, deliberately slow relationship progression, cross-book relationship progression and an explicitly unmanageable cast.
|
||||||
|
- Safe structural experimentation was separated from maintaining multiple alternative versions.
|
||||||
|
- Series evidence now reaches `series-what` / `series-thread` before broad D50 can stop the journey.
|
||||||
|
|
||||||
|
## Editorial decisions from the revision brief
|
||||||
|
|
||||||
|
- Case 13 (cannot remember whether two characters have met) now ends neutrally rather than pretending uncertainty proves D21 premature knowledge.
|
||||||
|
- Case 58 (cannot remember who knows an object-related fact) also ends neutrally rather than mislabelling it D22 knowledge provenance or D40 object whereabouts. The current 52-diagnosis catalogue has no exact knowledge-state-uncertainty diagnosis; this is deliberately not papered over.
|
||||||
|
- Intentional nonlinear case 55 forbids D27 chronology conflict anywhere in the returned result set.
|
||||||
|
- Intentional character absence case 56 forbids D11 presence-imbalance as a supporting error result.
|
||||||
|
|
||||||
|
## Content cleanup
|
||||||
|
|
||||||
|
- Populated `questions` rather than leaving the discoverability field empty.
|
||||||
|
- Removed repeated summary/principle text from solution `content`.
|
||||||
|
- Corrected mechanical feature-link grammar.
|
||||||
|
- Retained the writer-led, non-judgemental voice.
|
||||||
@ -0,0 +1,28 @@
|
|||||||
|
# Codex handoff — Writing Problem Solver V2 replacement candidate
|
||||||
|
|
||||||
|
This package replaces the earlier V1 candidate. **Offline validation only. Do not publish or index.**
|
||||||
|
|
||||||
|
Read `CHANGELOG_V2.md` and `ASSEMBLY_REPORT_V2.md` first.
|
||||||
|
|
||||||
|
## Required work
|
||||||
|
|
||||||
|
1. Run the actual repository CLI validator against `writing-solver-curated-v2.json`.
|
||||||
|
2. Do not make semantic repairs merely to obtain green output. If it fails, report the exact validator message, reachable state/path and scores.
|
||||||
|
3. Replay `acceptance-paths.json` through the real engine, checking every prefix. A complete history must not be accepted if the UI would have stopped earlier.
|
||||||
|
4. Confirm all 44 active nodes and all 52 active solutions are reachable under the real scoring/routing rules.
|
||||||
|
5. Confirm full state exploration stays below 100,000 states.
|
||||||
|
6. Confirm forbidden supporting diagnoses are absent, particularly intentional nonlinear chronology (case 55) and intentional character absence (case 56).
|
||||||
|
7. Confirm neutral cases 13 and 58 remain neutral; do not manufacture a diagnosis simply to avoid a neutral outcome.
|
||||||
|
8. Review the public page records for rendering/schema issues only. Do not replace the writer-led content with generic marketing copy.
|
||||||
|
|
||||||
|
## What to return
|
||||||
|
|
||||||
|
- Real CLI validator result.
|
||||||
|
- State count.
|
||||||
|
- Node and solution reachability.
|
||||||
|
- Acceptance result out of 60.
|
||||||
|
- Any prefix mismatch, unexpected early stop, wrong primary result or forbidden supporting result.
|
||||||
|
- Any schema correction still required.
|
||||||
|
- Commit/hash for validation-only test work if repository files are changed.
|
||||||
|
|
||||||
|
If everything passes, stop and report. **Do not publish the graph to Development until Nick explicitly approves publication.**
|
||||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,660 @@
|
|||||||
|
{
|
||||||
|
"purpose": "Behavioural acceptance suite for the curated solver. These are semantic expectations, not literal free-text inputs to the current choice engine.",
|
||||||
|
"rules": {
|
||||||
|
"MUST": "Expected primary diagnosis or explicit no-premature-diagnosis behaviour.",
|
||||||
|
"MAY": "Acceptable supporting diagnoses.",
|
||||||
|
"MUST_NOT": "Diagnoses that should not dominate."
|
||||||
|
},
|
||||||
|
"cases": [
|
||||||
|
{
|
||||||
|
"id": 1,
|
||||||
|
"complaint": "I've got six subplots and can't see how they connect anymore.",
|
||||||
|
"must": "d03",
|
||||||
|
"may": [
|
||||||
|
"d01"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d33"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 2,
|
||||||
|
"complaint": "I suddenly realised I haven't mentioned one subplot for eight chapters.",
|
||||||
|
"must": "d02",
|
||||||
|
"may": [
|
||||||
|
"d04"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d44"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 3,
|
||||||
|
"complaint": "My main plot seems to disappear underneath all the other stuff.",
|
||||||
|
"must": "d04",
|
||||||
|
"may": [
|
||||||
|
"d01"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d02"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 4,
|
||||||
|
"complaint": "I've got loads of scenes I like but I'm no longer sure why some of them are there.",
|
||||||
|
"must": "d05",
|
||||||
|
"may": [
|
||||||
|
"d33"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d02"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 5,
|
||||||
|
"complaint": "Things keep happening but it feels like a sequence of incidents rather than a story.",
|
||||||
|
"must": "d07",
|
||||||
|
"may": [
|
||||||
|
"d03",
|
||||||
|
"d43"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d27"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 6,
|
||||||
|
"complaint": "I set things up early and then keep forgetting to do anything with them.",
|
||||||
|
"must": "d06",
|
||||||
|
"may": [
|
||||||
|
"d02"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d33"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 7,
|
||||||
|
"complaint": "I've got about forty named characters and I'm starting to forget who half of them are.",
|
||||||
|
"must": "d08",
|
||||||
|
"may": [
|
||||||
|
"d52"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d18"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 8,
|
||||||
|
"complaint": "Two supporting characters are starting to feel like the same person.",
|
||||||
|
"must": "d09",
|
||||||
|
"may": [
|
||||||
|
"d08"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d10"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 9,
|
||||||
|
"complaint": "My protagonist vanishes for about six chapters in the middle.",
|
||||||
|
"must": "d10",
|
||||||
|
"may": [
|
||||||
|
"d11",
|
||||||
|
"d44"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d02"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10,
|
||||||
|
"complaint": "One supposedly minor character seems to be in absolutely everything.",
|
||||||
|
"must": "d11",
|
||||||
|
"may": [
|
||||||
|
"d04"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d08"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 11,
|
||||||
|
"complaint": "I've got four POVs and one of them has barely appeared for 100 pages.",
|
||||||
|
"must": "d12",
|
||||||
|
"may": [
|
||||||
|
"d11"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d04"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 12,
|
||||||
|
"complaint": "She's 27 here, but with the birthday I gave her earlier I think she should be 29.",
|
||||||
|
"must": "d29",
|
||||||
|
"may": [
|
||||||
|
"d13"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d27"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 13,
|
||||||
|
"complaint": "I can't remember whether Maggie has actually met this person yet.",
|
||||||
|
"must": "d21",
|
||||||
|
"may": [
|
||||||
|
"d16"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d08"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 14,
|
||||||
|
"complaint": "I've got three generations of one family and I keep forgetting exactly how everyone is related.",
|
||||||
|
"must": "d15",
|
||||||
|
"may": [
|
||||||
|
"d08"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d18"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 15,
|
||||||
|
"complaint": "They go from barely speaking to being in love and I don't think I've earned it.",
|
||||||
|
"must": "d17",
|
||||||
|
"may": [
|
||||||
|
"d44"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d18"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 16,
|
||||||
|
"complaint": "The romance is there throughout the book, but nothing changes between them for ages.",
|
||||||
|
"must": "d18",
|
||||||
|
"may": [
|
||||||
|
"d44"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d17"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 17,
|
||||||
|
"complaint": "He thinks they're friends. She absolutely doesn't.",
|
||||||
|
"must": "d19",
|
||||||
|
"may": [
|
||||||
|
"d16"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d21"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 18,
|
||||||
|
"complaint": "After the betrayal, six different relationships change and I'm losing track of the fallout.",
|
||||||
|
"must": "d20",
|
||||||
|
"may": [
|
||||||
|
"d48"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d08"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 19,
|
||||||
|
"complaint": "She talks about the murder, but nobody has told her about it yet.",
|
||||||
|
"must": "d21",
|
||||||
|
"may": [
|
||||||
|
"d24"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d27"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 20,
|
||||||
|
"complaint": "I know he knows about the letter, but I can't remember who told him or in which scene.",
|
||||||
|
"must": "d22",
|
||||||
|
"may": [
|
||||||
|
"d21"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d40"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 21,
|
||||||
|
"complaint": "Each POV knows different bits of the truth and I've completely lost track.",
|
||||||
|
"must": "d23",
|
||||||
|
"may": [
|
||||||
|
"d25"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d12"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 22,
|
||||||
|
"complaint": "I moved three chapters and now the reveal happens before the character discovers the clue.",
|
||||||
|
"must": "d24",
|
||||||
|
"may": [
|
||||||
|
"d48",
|
||||||
|
"d25"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d34"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 23,
|
||||||
|
"complaint": "I've got twelve clues, five suspects and different people know about different evidence.",
|
||||||
|
"must": "d25",
|
||||||
|
"may": [
|
||||||
|
"d23",
|
||||||
|
"d41"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d08"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 24,
|
||||||
|
"complaint": "I'm worried I've basically told the reader who the killer is 100 pages too early.",
|
||||||
|
"must": "d26",
|
||||||
|
"may": [
|
||||||
|
"d06"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d02"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 25,
|
||||||
|
"complaint": "I've somehow got Tuesday happening before Monday.",
|
||||||
|
"must": "d27",
|
||||||
|
"may": [],
|
||||||
|
"mustNot": [
|
||||||
|
"d33"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 26,
|
||||||
|
"complaint": "Her pregnancy is only lasting about six months according to my dates.",
|
||||||
|
"must": "d28",
|
||||||
|
"may": [
|
||||||
|
"d27"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d13"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 27,
|
||||||
|
"complaint": "My novel jumps between 1983 and the present and the chapter order is intentionally all over the place.",
|
||||||
|
"must": "d30",
|
||||||
|
"may": [
|
||||||
|
"d32"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d27"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 28,
|
||||||
|
"complaint": "While Beth is doing this, I need to know exactly what Maggie and Gareth are doing elsewhere.",
|
||||||
|
"must": "d31",
|
||||||
|
"may": [
|
||||||
|
"d14"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d04"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 29,
|
||||||
|
"complaint": "My fictional events have to fit around an actual historical event on a fixed date.",
|
||||||
|
"must": "d32",
|
||||||
|
"may": [
|
||||||
|
"d27"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d10"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 30,
|
||||||
|
"complaint": "I've got 180 scenes and scrolling through them is becoming ridiculous.",
|
||||||
|
"must": "d33",
|
||||||
|
"may": [
|
||||||
|
"d52"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d01"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 31,
|
||||||
|
"complaint": "I have the scene. I just can't work out where in the book it belongs.",
|
||||||
|
"must": "d34",
|
||||||
|
"may": [
|
||||||
|
"d37"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d27"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 32,
|
||||||
|
"complaint": "One chapter is 14,000 words and the next is 1,200. Something feels structurally wrong.",
|
||||||
|
"must": "d35",
|
||||||
|
"may": [
|
||||||
|
"d44"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d04"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 33,
|
||||||
|
"complaint": "I think I've got three scenes that basically tell the reader the same thing.",
|
||||||
|
"must": "d36",
|
||||||
|
"may": [
|
||||||
|
"d05"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d21"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 34,
|
||||||
|
"complaint": "I want to move the reveal much earlier just to see if the story works better, but I don't want to wreck what I have.",
|
||||||
|
"must": "d37",
|
||||||
|
"may": [
|
||||||
|
"d49"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d24"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 35,
|
||||||
|
"complaint": "She leaves Birmingham and apparently arrives in North Wales ten minutes later.",
|
||||||
|
"must": "d38",
|
||||||
|
"may": [
|
||||||
|
"d28"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d39"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 36,
|
||||||
|
"complaint": "The house had a conservatory earlier and now I've written as if it doesn't.",
|
||||||
|
"must": "d39",
|
||||||
|
"may": [
|
||||||
|
"d13"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d38"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 37,
|
||||||
|
"complaint": "Where the hell is the key at this point?",
|
||||||
|
"must": "d40",
|
||||||
|
"may": [
|
||||||
|
"d41"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d25"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 38,
|
||||||
|
"complaint": "He's using the gun, but I think somebody else still has it.",
|
||||||
|
"must": "d41",
|
||||||
|
"may": [
|
||||||
|
"d40"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d21"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 39,
|
||||||
|
"complaint": "I destroyed the letter three chapters ago and I've just found it sitting on a desk later.",
|
||||||
|
"must": "d42",
|
||||||
|
"may": [
|
||||||
|
"d41"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d38"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 40,
|
||||||
|
"complaint": "Nothing is technically wrong with the middle. It's just... dead.",
|
||||||
|
"must": "d43",
|
||||||
|
"may": [
|
||||||
|
"d44"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d02"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 41,
|
||||||
|
"complaint": "Some sections fly past and others feel painfully slow.",
|
||||||
|
"must": "d44",
|
||||||
|
"may": [
|
||||||
|
"d43"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d27"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 42,
|
||||||
|
"complaint": "The tension climbs beautifully, falls away completely for ages, then suddenly comes back.",
|
||||||
|
"must": "d45",
|
||||||
|
"may": [
|
||||||
|
"d44"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d02"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 43,
|
||||||
|
"complaint": "My protagonist is supposed to change enormously, but looking back she feels basically identical until the final chapters.",
|
||||||
|
"must": "d46",
|
||||||
|
"may": [
|
||||||
|
"d47"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d10"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 44,
|
||||||
|
"complaint": "All the revelations, emotional changes and big developments seem to happen in the last 15%.",
|
||||||
|
"must": "d47",
|
||||||
|
"may": [
|
||||||
|
"d44",
|
||||||
|
"d26"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d43"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 45,
|
||||||
|
"complaint": "I've rewritten so much that changing one thing now makes me wonder what else I've broken.",
|
||||||
|
"must": "d48",
|
||||||
|
"may": [
|
||||||
|
"d52"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d37"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 46,
|
||||||
|
"complaint": "I've got two completely different versions of acts two and three and don't want to throw either away yet.",
|
||||||
|
"must": "d49",
|
||||||
|
"may": [
|
||||||
|
"d37"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d34"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 47,
|
||||||
|
"complaint": "I'm on book four and can't remember whether this fact was established in book one or book two.",
|
||||||
|
"must": "d50",
|
||||||
|
"may": [
|
||||||
|
"d22"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d13"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 48,
|
||||||
|
"complaint": "There's a mystery I started in book one that isn't supposed to pay off until book five.",
|
||||||
|
"must": "d51",
|
||||||
|
"may": [
|
||||||
|
"d06",
|
||||||
|
"d50"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d02"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 49,
|
||||||
|
"complaint": "I've got a 170,000-word novel, notes everywhere, spreadsheets everywhere, and I'm spending more time checking things than writing.",
|
||||||
|
"must": "d52",
|
||||||
|
"may": [],
|
||||||
|
"mustNot": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 50,
|
||||||
|
"complaint": "I don't know what's wrong anymore. I've read the bloody thing so many times I can't see it.",
|
||||||
|
"must": null,
|
||||||
|
"may": [
|
||||||
|
"d43",
|
||||||
|
"d44",
|
||||||
|
"d52"
|
||||||
|
],
|
||||||
|
"mustNot": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 51,
|
||||||
|
"complaint": "I've rearranged the murder investigation because the middle dragged, but now some suspects may know about evidence before it's discovered.",
|
||||||
|
"must": "d24",
|
||||||
|
"may": [
|
||||||
|
"d25",
|
||||||
|
"d48"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d44"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 52,
|
||||||
|
"complaint": "Their relationship feels rushed, but by the dates they've actually known each other for six months.",
|
||||||
|
"must": "d17",
|
||||||
|
"may": [],
|
||||||
|
"mustNot": [
|
||||||
|
"d28"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 53,
|
||||||
|
"complaint": "Gareth disappears for ten chapters, but his storyline is still developing through what other characters are doing.",
|
||||||
|
"must": "d10",
|
||||||
|
"may": [],
|
||||||
|
"mustNot": [
|
||||||
|
"d02"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 54,
|
||||||
|
"complaint": "Maggie is present throughout, but one storyline she's involved in simply stops progressing.",
|
||||||
|
"must": "d02",
|
||||||
|
"may": [
|
||||||
|
"d43"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d10"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 55,
|
||||||
|
"complaint": "Chapter one is 1983, chapter two is 2005, chapter three is back in 1983. That's deliberate; I just need the actual chronology straight.",
|
||||||
|
"must": "d30",
|
||||||
|
"may": [],
|
||||||
|
"mustNot": [
|
||||||
|
"d27"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 56,
|
||||||
|
"complaint": "My antagonist disappears for half the novel deliberately, but I want to make sure the reader doesn't forget him.",
|
||||||
|
"must": "d10",
|
||||||
|
"may": [
|
||||||
|
"d11"
|
||||||
|
],
|
||||||
|
"mustNot": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 57,
|
||||||
|
"complaint": "The romance is deliberately slow. I want to know whether it progresses rather than sitting completely still.",
|
||||||
|
"must": "d18",
|
||||||
|
"may": [
|
||||||
|
"d44"
|
||||||
|
],
|
||||||
|
"mustNot": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 58,
|
||||||
|
"complaint": "Beth has the letter, but the real problem is that I can't remember who knows she has it.",
|
||||||
|
"must": "d22",
|
||||||
|
"may": [
|
||||||
|
"d23"
|
||||||
|
],
|
||||||
|
"mustNot": [
|
||||||
|
"d40"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 59,
|
||||||
|
"complaint": "Two characters met in book one, hated each other in book two and become close in book three. I need to see whether that progression makes sense.",
|
||||||
|
"must": "d50",
|
||||||
|
"may": [
|
||||||
|
"d17",
|
||||||
|
"d18"
|
||||||
|
],
|
||||||
|
"mustNot": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 60,
|
||||||
|
"complaint": "Something is wrong with the second half: pacing weird, moved scenes, subplot disappears, characters know things too early.",
|
||||||
|
"must": "d24",
|
||||||
|
"may": [
|
||||||
|
"d02",
|
||||||
|
"d48",
|
||||||
|
"d44"
|
||||||
|
],
|
||||||
|
"mustNot": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"package": "PlotDirector Writing Problem Solver curated V2",
|
||||||
|
"status": "offline candidate \u2014 do not publish or index",
|
||||||
|
"files": [
|
||||||
|
"ASSEMBLY_REPORT_V2.md",
|
||||||
|
"CHANGELOG_V2.md",
|
||||||
|
"CODEX_HANDOFF_V2.md",
|
||||||
|
"MASTER_MATRIX_V2.md",
|
||||||
|
"acceptance-cases-original.json",
|
||||||
|
"acceptance-paths.json",
|
||||||
|
"writing-solver-curated-v2.json"
|
||||||
|
],
|
||||||
|
"counts": {
|
||||||
|
"signals": 48,
|
||||||
|
"nodes": 44,
|
||||||
|
"solutions": 52,
|
||||||
|
"features": 15,
|
||||||
|
"acceptanceCases": 60,
|
||||||
|
"engineEquivalentStates": 11325
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user