docs: record amended tail-quality threshold (<=1 overshoot reversal) in spec

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
dog
2026-07-09 18:15:29 +08:00
parent 9e529d3951
commit 241a4a41c7

View File

@@ -89,8 +89,13 @@ post-processing pipeline alone meets the quality gates (max tail turn
change; scroll golden untouched). CHANGELOG entry.
2. **Unit tests** (`tests/unit/test_postprocess.py`) — backtrack
tolerance, overshoot compression, exact endpoint hit after global
correction, correction weights 0/1 at the ends, no turns >90° on
smoothed output.
correction, correction weights 0/1 at the ends. The tail-quality
guard allows at most ONE >90° reversal (the natural
overshoot-and-correct gesture that overshoot support implies); two
or more indicate the hook/zigzag artifact class. (Amended
2026-07-09: the original "no turns >90°" wording predated overshoot
support and was empirically over-strict — a single 92-135° reversal
appears in ~20% of traces and is correct behavior.)
3. **Acceptance** — re-run the diagnostic script (same 4 cases × 6
seeds) and compare: `turns>45°` count drops sharply, no vertical
wall in the last 10 points. Final gate: user visually approves the