diff --git a/.github/codex/prompts/pr-review.md b/.github/codex/prompts/pr-review.md index ceb5639..fcb3f61 100644 --- a/.github/codex/prompts/pr-review.md +++ b/.github/codex/prompts/pr-review.md @@ -15,10 +15,12 @@ The head checkout is `../pr-data/`. Read changed docs and surrounding or related - grammar/spelling: reader-visible errors, not subjective style preferences - terminology/ui-label: inconsistent product terms or literal UI navigation - structure: missing explicit `{#id}`, IDs inconsistent with changed English titles or matching localized headings, broken Markdown/admonitions/tables -- translation: meaning differing from English, untranslated fragments, or violations of trusted language guidance +- translation: in changed localized lines, meaning differing from English, untranslated fragments, or violations of trusted language guidance English is the source for heading IDs; localized headings share the same IDs. IDs follow changed English titles without separate migration approval. Do not flag a title-driven ID change solely because the old ID or external bookmarks are not preserved. Do check in-repository anchor links and redirects and matching localized IDs; unchanged headings need no bulk rewrite. Protected localized-only legal sections keep their IDs. Preserve exact product/UI names, addresses, versions, and URLs. Regulatory statements (`regulatory_statement.md` and legacy `fcc_ic_compliance_statements.md` redirects) are English-only: do not request localized copies, navigation, redirects, or links. German-only approved safety information must retain its approved wording. Do not flag its wording/punctuation as translation defects; do flag removal or altered product names, directives, or certificate links when supported by evidence. +The scheduled translation workflow syncs localized pages after English changes merge. Do not report localized pages that the PR did not change because they no longer match changed English text, and do not ask the author to update translations. + Do not report unrelated pre-existing problems, missing translations of English pages, speculative compatibility/behavior claims, tone preferences, or unsupported issues. Report each issue once, most severe first, at most 30 findings. Prefer an added line in the head commit, using a repository-relative `docs/...` path. Severity: high for misleading technical content or wrong links; medium for reader-visible errors; low for minor grammar/consistency errors. Use only categories in the schema. Write summary, problem, and suggestion in English. Explain the evidence and fix concisely. `replacement_line` is the complete corrected single line with original indentation/Markdown, or empty if a single-line fix is inappropriate. Never include a multiline replacement or code fence. In the summary describe the changes and overall assessment in two or three sentences. With no supported problems, return an empty findings array and say so.