From 0ef7aca294deacf06119f6df4261e33f11063e39 Mon Sep 17 00:00:00 2001 From: Eric Rakestraw Date: Sun, 15 Nov 2026 01:45:39 +0000 Subject: [PATCH] Clarify grammar focus in correction repair conversations --- docs/roadmap/implementation.md | 12 ++++++++++++ .../assets/prompts/modules.grammar.repair.yaml | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/roadmap/implementation.md b/docs/roadmap/implementation.md index 74d69a4..d2893bb 100644 --- a/docs/roadmap/implementation.md +++ b/docs/roadmap/implementation.md @@ -33,6 +33,18 @@ and [developer guide](../development.md) for the applicable policies. ## Stage 2 — Review Proposal and Repair Conversations +**Complete.** The shipped and operator-replaced grammar requests retained the +proposal context, including a synthetic glossary entry and protected spelling. +The wire schema changed from a correction set to one repair result. The second +turn retained its branch's prior revision, and the other branch started from +the original proposal exchange. The adapter fixture confirmed separate proposal +and repair profiles. Runner fixtures confirmed updated previews after retargeting, +omission of an inapplicable after-preview, and withdrawal. + +The shipped grammar repair wording could read as a blanket restriction on +changes to other words. The revised text describes the grammar focus and leaves +the shared editorial allowance explicit in the rendered request. + 1. Use the existing subprocess fixture to exercise the production adapter and coordinator with scripted responses. Inspect its captured request messages and response schemas for the initial proposal and the two-turn repair. diff --git a/internal/prompts/assets/prompts/modules.grammar.repair.yaml b/internal/prompts/assets/prompts/modules.grammar.repair.yaml index e1323c2..18f2616 100644 --- a/internal/prompts/assets/prompts/modules.grammar.repair.yaml +++ b/internal/prompts/assets/prompts/modules.grammar.repair.yaml @@ -5,7 +5,7 @@ collections: messages: - role: user content: | - Reconsider the identified proposal from the preceding correction-set exchange. The requested focus is punctuation, capitalization, spacing, and whole-word a/an changes while preserving other words. Preserve protected spellings and canonical capitalization. A whitespace-only original span may identify a spacing edit. The literal original span must occur exactly once in the target segment. + Reconsider the identified proposal from the preceding correction-set exchange. The requested focus is punctuation, capitalization, spacing, and whole-word article changes between a and an. Preserve protected spellings and canonical capitalization. A whitespace-only original span may identify a spacing edit. The literal original span must occur exactly once in the target segment. {{ .RepairContract }}