Standardized the grammar and spoken_word modules on a shared editorial_review validator

This commit is contained in:
2026-05-14 09:30:10 -05:00
parent b103bb2e7d
commit 6dae15656d
11 changed files with 9 additions and 65 deletions

View File

@@ -52,8 +52,6 @@ func buildCorrectionLedger(runDirPath string, runOutput *runner.RunOutput) []cor
"spoken_form_plausibility": true,
"meaning_reversal_review": true,
"editorial_review": true,
"grammar_review": true,
"spoken_word_review": true,
}
for _, module := range runOutput.ModuleResults {

View File

@@ -3564,8 +3564,8 @@ func TestRunProcessExplicitSpokenWordMeaningChangingCleanupRejected(t *testing.T
if len(module.ValidatorRejected) != 1 {
t.Fatalf("expected one semantic guardrail rejection, got %+v", module.ValidatorRejected)
}
if module.ValidatorRejected[0].ValidatorName != "spoken_word_review" {
t.Fatalf("expected spoken_word_review rejection, got %+v", module.ValidatorRejected[0])
if module.ValidatorRejected[0].ValidatorName != "editorial_review" {
t.Fatalf("expected editorial_review rejection, got %+v", module.ValidatorRejected[0])
}
}

View File

@@ -14,6 +14,6 @@
"total_skipped_changes": 1,
"validator_rejected_reason_codes": ["llm_rejected"],
"expected_proposal_calls": ["grammar:proposal"],
"expected_validation_calls": ["grammar:section-0000:grammar_review:batch-0000"]
"expected_validation_calls": ["grammar:section-0000:editorial_review:batch-0000"]
}
}