Record V2 semantic gate failure for unsupported series recommendation
This commit is contained in:
parent
224e22a2df
commit
77b899c542
103
Docs/WritingSolver/CuratedV2/EngineeringGate/Blocked.md
Normal file
103
Docs/WritingSolver/CuratedV2/EngineeringGate/Blocked.md
Normal file
@ -0,0 +1,103 @@
|
||||
# Engineering gate stopped: unsupported series recommendation
|
||||
|
||||
1 November 2026. Baseline: audited V2 commit `224e22a`.
|
||||
|
||||
## Why work stopped
|
||||
|
||||
The current task instructions explicitly require:
|
||||
|
||||
> If correcting an expectation exposes a genuine scoring problem, stop and report it rather than casually retuning the diagnostic model.
|
||||
|
||||
Case 30 meets that condition. Its complaint is:
|
||||
|
||||
> I've got 180 scenes and scrolling through them is becoming ridiculous.
|
||||
|
||||
Neither the complaint nor its literal accepted path establishes that the author is writing a series. D50 is expressly a cross-book/series problem: **Your series has become too big to remember reliably**, with the summary referring to facts established several books ago. It is not useful supporting advice for this complaint.
|
||||
|
||||
The metadata review therefore removes D50 from the final `expectedResults` and explicitly forbids it. It retains the expected primary D33 and acceptable overload support D52. That correction exposes an actual engine mismatch; the diagnostics have not been changed to conceal it.
|
||||
|
||||
## Exact reproduction
|
||||
|
||||
```
|
||||
entry/too-much
|
||||
→ scale-what/scenes
|
||||
→ track-structure/too-many
|
||||
```
|
||||
|
||||
Accumulated signals:
|
||||
|
||||
```json
|
||||
{"overwhelm":3,"scale":8,"scene-purpose":5,"checking":3}
|
||||
```
|
||||
|
||||
There is **no `series` signal**. D50 nevertheless qualifies using its generic coefficients:
|
||||
|
||||
```
|
||||
series: 0 × 3 = 0
|
||||
continuity-conflict: 0 × 1 = 0
|
||||
overwhelm: 3 × 2 = 6
|
||||
scale: 8 × 2 = 16
|
||||
D50 score = 22
|
||||
D50 threshold = 20
|
||||
```
|
||||
|
||||
| Outcome | Results |
|
||||
|---|---|
|
||||
| Audited V2 expectation | D33, D52, D50 |
|
||||
| Semantically corrected expectation | D33, D52 |
|
||||
| Unchanged engine output | D33=43, D52=28, D50=22 |
|
||||
|
||||
This is a supporting-result defect; the primary D33 remains correct. Removing D50 from metadata does not remove it from the engine's result set.
|
||||
|
||||
## Changes made
|
||||
|
||||
- Added a separately versioned review artifact, `acceptance-paths.case30-review.json`, with the full 60-case set and only the case-30 expectation correction, forbidden-result addition and explanatory note.
|
||||
- Preserved the audited candidate graph and original acceptance artifact unchanged. The review artifact is explicitly selected for this gate run; the old 60/60 baseline is not being relabelled as semantically approved.
|
||||
- Added optional `--paths` support to the existing audit command so revised expectations can be tested against the identical engine and graph without replacing historical evidence.
|
||||
- Recorded the complete 60-case replay and state-exploration output in `results.json`.
|
||||
|
||||
No neutral-endpoint schema, validator, engine, UI or graph changes were made. No signal vocabulary, weights, coefficients, thresholds, diagnostic routes, solution IDs/slugs or catalogue text were changed. No data was published, deployed or indexed, and no database was accessed.
|
||||
|
||||
## Verification
|
||||
|
||||
Run from `/srv/repos/PlotDirector`:
|
||||
|
||||
```
|
||||
dotnet build PlotLine.slnx
|
||||
|
||||
dotnet run --no-build --project PlotLine.Tests -- --writing-solver-curated-v2 \
|
||||
--paths Docs/WritingSolver/CuratedV2/EngineeringGate/acceptance-paths.case30-review.json \
|
||||
--report Docs/WritingSolver/CuratedV2/EngineeringGate/results.json
|
||||
```
|
||||
|
||||
Build: **passed**, with the two existing nullable warnings in the regression harness.
|
||||
|
||||
The real-engine audit intentionally exits nonzero:
|
||||
|
||||
```
|
||||
Actual validator: FAIL; Dead end without diagnostic evidence: existing-barrier
|
||||
Exploration: 11325 states, 44/44 nodes, 52/52 solutions, complete=True.
|
||||
Acceptance: 59/60. Lengths 2–4, median 3, mean 3.08.
|
||||
Case 30: Prefix 3: results expected [d33,d52], actual [d33,d52,d50].
|
||||
Prefix 3: forbidden result d50 was returned.
|
||||
```
|
||||
|
||||
The corrected suite has **59/60 cases and 184/185 exact prefix-result expectations passing**. The single mismatching prefix is also the forbidden-result failure. Exhaustive traversal remains complete at **11,325 states**, with all **44 nodes and 52 solutions** reachable. Counts remain **48 signals, 44 nodes, 52 solutions, 15 features**.
|
||||
|
||||
The existing neutral adoption validator rejection is unchanged. It is independent of the case-30 scoring issue; adding first-class neutral outcomes would not remove the unsupported D50 recommendation.
|
||||
|
||||
## Requested implementation status
|
||||
|
||||
| Requested work | Status |
|
||||
|---|---|
|
||||
| Explicit neutral-endpoint schema/default/validator behaviour | Not implemented: stopped at the instructed semantic gate |
|
||||
| Apply neutral declaration to V2 / obtain normal validator pass | Not implemented; current validator still rejects `existing-barrier` |
|
||||
| Tailored adoption reassurance and focused capability links | Not implemented |
|
||||
| Review acceptance metadata | Case 30 corrected and documented; remaining case decisions deferred at the stop condition |
|
||||
| Change scoring or diagnostic routing | None |
|
||||
| 60-case replay / all prefixes / exhaustive traversal | Run; results above |
|
||||
| New neutral-endpoint, page, Back/Forward and browser verification | Not run: the corresponding implementation was not started |
|
||||
| Full regression harness | Not rerun in this stopped pass; the targeted 60-case audit and normal build were run |
|
||||
| Publication, deployment, indexing or database writes | None |
|
||||
|
||||
The next decision concerns how to prevent a series diagnosis without series evidence while respecting the declared stable-model boundary. It requires an explicit diagnostic-policy/scoring decision outside the permitted changes in this pass. No repair has been assumed, and no further model tuning was attempted.
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,4 @@
|
||||
Actual validator: FAIL; Dead end without diagnostic evidence: existing-barrier
|
||||
Exploration: 11325 states, 44/44 nodes, 52/52 solutions, complete=True.
|
||||
Acceptance: 59/60. Lengths 2–4, median 3, mean 3.08.
|
||||
Case 30: Prefix 3: results expected [d33,d52], actual [d33,d52,d50]. Prefix 3: forbidden result d50 was returned.
|
||||
88505
Docs/WritingSolver/CuratedV2/EngineeringGate/results.json
Normal file
88505
Docs/WritingSolver/CuratedV2/EngineeringGate/results.json
Normal file
File diff suppressed because it is too large
Load Diff
@ -30,16 +30,16 @@ internal static class WritingSolverCuratedV2Tests
|
||||
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 AcceptanceCase[] Cases(string? pathsFile = null) => JsonSerializer.Deserialize<AcceptanceFile>(File.ReadAllText(pathsFile ?? 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)
|
||||
public static CaseResult[] Replay(SolverGraph graph, string? pathsFile = null)
|
||||
{
|
||||
var cases=Cases();
|
||||
var cases=Cases(pathsFile);
|
||||
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=>
|
||||
{
|
||||
@ -177,7 +177,9 @@ internal static class WritingSolverCuratedV2Tests
|
||||
}
|
||||
public static void Run(string[] args)
|
||||
{
|
||||
var graph=Graph();var validation=WritingSolverValidator.Validate(graph);var exploration=Explore(graph);var results=Replay(graph);
|
||||
var pathsIndex=Array.IndexOf(args,"--paths");
|
||||
var pathsFile=pathsIndex<0 ? null : args[pathsIndex+1];
|
||||
var graph=Graph();var validation=WritingSolverValidator.Validate(graph);var exploration=Explore(graph);var results=Replay(graph,pathsFile);
|
||||
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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user