feat(cms): record hand-run legal translation reviews in the CMS (MITHOME-113)
Validation of legal translations is a manual flow (user decision): copy the prompt, run it in any vendor's model, paste the answer back. The legal validation block now holds the prompt panel and a list of reviews (model, date, verdict, pasted answer, notes) instead of a model list and report link. Approval needs two distinct models whose latest complete review does not reject; a newer review supersedes a model's rejection. The locale path collector now looks through row/collapsible wrappers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
acd1ff2ed9
commit
bff08edafe
@@ -56,25 +56,33 @@ safe to run more than once.
|
||||
|
||||
### Requirement: Validated English legal pages
|
||||
|
||||
The English translation of a legal page SHALL NOT be set to "approved" unless a legal
|
||||
validation record exists for it. The record SHALL name at least two independent
|
||||
high-capability language models that reviewed the translation, the validation date, and
|
||||
a reference to the validation report. The review SHALL cover meaning equivalence with
|
||||
the Hungarian text, data-protection terminology, omissions or additions, and preserved
|
||||
placeholders.
|
||||
The English translation of a legal page SHALL NOT be set to "approved" unless at least
|
||||
two distinct language models have reviewed it and their reviews are recorded in the CMS.
|
||||
Each review record SHALL contain the model name, the review date, the verdict (approve,
|
||||
approve with changes, reject), and the model's pasted answer. For each model only its
|
||||
latest review SHALL count, and a model whose latest verdict is "reject" SHALL NOT count.
|
||||
Reviews SHALL be run with the admin validation prompt, which covers meaning equivalence
|
||||
with the Hungarian text, data-protection terminology, omissions or additions, and
|
||||
preserved placeholders.
|
||||
|
||||
#### Scenario: Approving an unvalidated legal translation
|
||||
|
||||
- **WHEN** an administrator sets a legal page's English status to "approved" without a
|
||||
complete legal validation record
|
||||
- **WHEN** an administrator sets a legal page's English status to "approved" while fewer
|
||||
than two distinct models have a complete, non-rejecting latest review
|
||||
- **THEN** the CMS SHALL reject the save with a validation error
|
||||
|
||||
#### Scenario: Approving a validated legal translation
|
||||
|
||||
- **WHEN** the legal validation record names at least two reviewing models, a date, and
|
||||
a report reference
|
||||
- **WHEN** two distinct models each have a complete latest review that does not reject
|
||||
the translation
|
||||
- **THEN** the CMS SHALL allow the status to be set to "approved"
|
||||
|
||||
#### Scenario: A rejection is superseded
|
||||
|
||||
- **WHEN** a model rejected the translation and, after corrections, a newer review by the
|
||||
same model approves it
|
||||
- **THEN** that model SHALL count towards the required reviews
|
||||
|
||||
#### Scenario: Page globals are not affected
|
||||
|
||||
- **WHEN** an administrator approves the English translation of a page global
|
||||
|
||||
Reference in New Issue
Block a user