Standardized the grammar and spoken_word modules on a shared editorial_review validator
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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"]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user