Add bounded diagnostic prefix encoding

This commit is contained in:
2026-11-05 14:06:09 +00:00
parent a4901cbb0e
commit e834e7d806
3 changed files with 86 additions and 0 deletions

View File

@@ -492,6 +492,11 @@ invalid-byte runs, empty/small budgets, and truncation boundaries. Wiring into
the public repair workflow follows in Stage 19; no interim alternative formatter
is exposed or new contract created for a helper's exact allocation count.
Completion: bounded UTF-8 normalization and JSON-prefix encoding retain only
the useful candidate prefix and report complete versus truncated results.
Focused encoding and existing formatter tests pass on Go 1.27.3; formatter
wiring remains in the next unit.
## Stage 19: Construct Repair Feedback Without Whole-Input Serialization
**Catalog:** 17, completion. **Files:** `formatRepairDiagnostics` and repair tests.