Files
websitedev/openspec/changes/english-content-mithome-112-113/specs/content-management/spec.md
T
Do SikiandClaude Opus 5.5 ef93cec935
CI Pipeline with Test Management / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
CI Pipeline with Test Management / 🐳 Docker Integration Tests (push) Canceled after 0s
CI Pipeline with Test Management / 🏗️ Build Docker Image (push) Canceled after 0s
CI Pipeline with Test Management / 📊 Generate Test Summary (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 📊 Analyze Test Coverage (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🔄 Sync with Linear (push) Canceled after 0s
Test Reporting & Gherkin Analysis / ⚡ Performance Monitoring (push) Canceled after 0s
docs(openspec): propose MITHOME-112/113 English content change
Legal pages localization, English translation status with a public
gate, a non-destructive AI-draft import from a hu->en translation
memory, and mandatory multi-model validation of legal translations
with a copyable validation prompt in the admin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 02:24:24 +02:00

4.3 KiB

Spec Delta

ADDED Requirements

Legal pages SHALL store their title, last-updated text, and section titles and contents separately per locale. The slug and section identifiers SHALL be shared across locales. Existing Hungarian legal content SHALL be preserved as the Hungarian value, including published content and version history.

Scenario: An administrator adds an English privacy policy

  • WHEN an administrator edits a legal page in the en locale
  • THEN the Hungarian legal page content SHALL remain unchanged
  • WHEN the localized legal page configuration is deployed onto existing data
  • THEN the Hungarian legal pages SHALL render the same content as before

Requirement: English translation status

Every page global and legal page SHALL carry an English translation status with the values "no translation", "AI draft awaiting review", and "approved", visible to administrators with a warning that AI drafts require review. Only an administrator action SHALL set the status to "approved".

Scenario: AI draft is imported

  • WHEN machine-translated English content is imported for a page
  • THEN that page's status SHALL be "AI draft awaiting review"

Scenario: An administrator approves a translation

  • WHEN an administrator sets the status to "approved" and publishes
  • THEN the page SHALL be marked as having an approved English translation

Requirement: Non-destructive AI draft import

Importing AI-draft English content SHALL only fill English values that are empty and whose current Hungarian source text is identical to the text that was translated. It SHALL NOT change Hungarian values, shared values, or existing English values, SHALL keep placeholders such as {year}, {min} and {privacyHref} intact, and SHALL be safe to run more than once.

Scenario: Hungarian text changed after translation

  • WHEN a Hungarian value differs from the source text in the translation memory
  • THEN its English value SHALL stay empty and the import SHALL report it

Scenario: An English value was already edited by a person

  • WHEN a field already has an English value
  • THEN the import SHALL leave it unchanged

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.

  • WHEN an administrator sets a legal page's English status to "approved" without a complete legal validation record
  • THEN the CMS SHALL reject the save with a validation error
  • WHEN the legal validation record names at least two reviewing models, a date, and a report reference
  • THEN the CMS SHALL allow the status to be set to "approved"

Scenario: Page globals are not affected

  • WHEN an administrator approves the English translation of a page global
  • THEN no legal validation record SHALL be required

The legal page editor SHALL offer administrators a ready-to-use validation prompt for the English translation. The prompt SHALL contain the review criteria, the requested structured output format, and the current Hungarian and English text of every section of that page, and SHALL be copyable with a single action. The prompt SHALL be generated from the same template that is used for the project's own model validation.

Scenario: An administrator copies the validation prompt

  • WHEN an administrator opens a legal page that has English content and uses the copy action of the validation prompt panel
  • THEN the clipboard SHALL contain a prompt with the review criteria and the Hungarian and English text of each section of the current version

Scenario: No English text yet

  • WHEN a legal page has no English content
  • THEN the panel SHALL state that there is nothing to validate instead of offering a prompt