@@ -1362,9 +1362,9 @@ def _html_quality_repair_strategy_lines() -> list[str]: |
| 1362 | 1362 | "exceed the expected text-character floor; if it says insufficient " |
| 1363 | 1363 | "structured content, add enough real sections, lists, code, tables, or " |
| 1364 | 1364 | "other content blocks to exceed the block floor.", |
| 1365 | | - "- Prefer a complete `write` or a `patch`/`edit` anchored to exact current " |
| 1366 | | - "on-disk text; do not use remembered minimal `old_string` snippets for " |
| 1367 | | - "generated-document expansion.", |
| 1365 | + "- Prefer a bounded append-style `patch` or exact-current `edit` that adds " |
| 1366 | + "missing body blocks before the existing back link, footer, or closing body; " |
| 1367 | + "avoid whole-file rewrites unless the file is tiny or malformed.", |
| 1368 | 1368 | "- Treat structured content as substantive page body material, not table-of-" |
| 1369 | 1369 | "contents inflation: do not add duplicate navigation entries, relabel links " |
| 1370 | 1370 | "to existing pages as new chapters, or introduce new missing page links just " |
@@ -1454,13 +1454,13 @@ def _build_verification_failure_recovery_nudge( |
| 1454 | 1454 | return ( |
| 1455 | 1455 | "Verification now identifies generated artifact content quality issues. " |
| 1456 | 1456 | "Do not restart discovery or keep auditing unrelated files. " |
| 1457 | | - "Your next response should be one concrete `write`, `patch`, or exact-current " |
| 1458 | | - "`edit` tool " |
| 1457 | + "Your next response should be one concrete append-style `patch` or " |
| 1458 | + "exact-current `edit` tool " |
| 1459 | 1459 | f"call that expands `{primary_target.artifact_path}` to address: " |
| 1460 | 1460 | f"{primary_target.issue}. Make a substantial change that clears the stated " |
| 1461 | | - "threshold, not a small incremental edit. Do not use remembered minimal " |
| 1462 | | - "`old_string` snippets; anchor edits to current on-disk text or rewrite the " |
| 1463 | | - "file completely. Do not summarize completion " |
| 1461 | + "threshold, not a small incremental edit. Add the missing body blocks before " |
| 1462 | + "the existing back link, footer, or closing body; avoid a whole-file rewrite " |
| 1463 | + "unless the file is tiny or malformed. Do not summarize completion " |
| 1464 | 1464 | f"after only one target is touched.{remaining_hint}" |
| 1465 | 1465 | ) |
| 1466 | 1466 | |