A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
Hebrew review: the last name_he_review messages and the translator page name disclosed AI-assisted reads (Refs #2500) (#2523)
Eyal Golan085944e62d9c
diff --git a/changelog.d/he-review-msgs.md b/changelog.d/he-review-msgs.mdnew file mode 100644index 000000000..ca27b991f--- /dev/null+++ b/changelog.d/he-review-msgs.md@@ -0,0 +1,4 @@+### Fixed++- The three `name_he_review` messages that #2500 missed (map locations in the sim, and the Unity locality and+ settlement loaders) now match the others: a native speaker, or an AI-assisted contributor who discloses it, may clear it.diff --git a/docs/translations.md b/docs/translations.mdindex 914d4c142..41770603f 100644--- a/docs/translations.md+++ b/docs/translations.md@@ -84,7 +84,11 @@ same decoded text keeps the sign-off (owner, 25 October 2026, on #1618: "Yes, cais read as the same decoded text: every character the same, direction marks, nikkud and maqaf included. `scripts/oss/reviewed_by_guard.py`holds the line. A commit with an AI co-author trailer may take a signed row's Hebrew lines out of `content/` when therow's Hebrew, read from both places, is the same before and after. Any other change to that Hebrew, in either place,-is an edit of the signed row, and a person must sign the row again.+is an edit of the signed row: a person must sign the row again, or an AI-assisted contributor may sign it again+when the pull request's "AI assistance" section discloses the AI help, names the check and says which sources were+opened and what was checked (owner, 4 November 2026: "Yes, it counts"); CI checks only that the section names a check,+and the reviewer reads the rest (`docs/CONTENT_POLICY.md`). A commit with an AI co-author trailer never removes the+sign-off.`tools/review_queue.py` lists an entry's `review: agent-checked` just as it lists the inline `*_he_review` flag, withthe English record's row and sources (an event's `text_he_sources`, else its own `sources`).diff --git a/sim/Statecraft.Sim.Tests/MapContentTests.cs b/sim/Statecraft.Sim.Tests/MapContentTests.csindex 0bd8f8af6..fdadd9546 100644--- a/sim/Statecraft.Sim.Tests/MapContentTests.cs+++ b/sim/Statecraft.Sim.Tests/MapContentTests.cs@@ -99,6 +99,7 @@ public class MapContentTests[InlineData(" name_he: עיר א\n", "", "locations[town_a].name_he", "required")][InlineData(" name_he_sources: [{ url: 'https://example.org/town-a-he', checked: 2026-10-18 }]\n", "", "locations[town_a].name_he_sources", "needs a source")][InlineData(" name_he: עיר א\n", " name_he: עיר א\n name_he_review: checked\n", "locations[town_a].name_he_review", "not agent-checked")]+ [InlineData(" name_he: עיר א\n", " name_he: עיר א\n name_he_review: checked\n", "locations[town_a].name_he_review", "an AI-assisted contributor who discloses it")] // #564[InlineData("q: 1", "q: 9", "locations[town_a].q", "not a land hex")][InlineData(" sources: [{ url: 'https://example.org/town-a', checked: 2026-10-18 }]\n", "", "locations[town_a].sources", "required")][InlineData(" status: draft", " starting_control: arab_forces\n status: draft", "locations[town_a].control_date", "required with starting_control")]diff --git a/sim/Statecraft.Sim/ContentLoader.cs b/sim/Statecraft.Sim/ContentLoader.csindex 0cfdc2d84..6589b86d7 100644--- a/sim/Statecraft.Sim/ContentLoader.cs+++ b/sim/Statecraft.Sim/ContentLoader.cs@@ -1871,7 +1871,7 @@ namespace Statecraft.SimNamed(lf, at + ".name", x.Name);Named(lf, at + ".name_he", x.NameHe); // the map labels it in both languages (#1008)if (x.NameHeReview != "" && x.NameHeReview != "agent-checked")- throw new ContentException(lf, at + ".name_he_review", $"'{x.NameHeReview}' is not agent-checked (delete the line once a person has reviewed the name)");+ throw new ContentException(lf, at + ".name_he_review", $"'{x.NameHeReview}' is not agent-checked (delete the line once a native speaker, or an AI-assisted contributor who discloses it, has reviewed the name, #564)");if (x.NameHeSources.Count == 0) throw new ContentException(lf, at + ".name_he_sources", "required: a Hebrew name needs a source");for (int i = 0; i < x.NameHeSources.Count; i++)if (x.NameHeSources[i] == null || !x.NameHeSources[i].Url.StartsWith("https://", StringComparison.Ordinal) || x.NameHeSources[i].Checked == default)diff --git a/tools/translate.py b/tools/translate.pyindex 812ef6403..b9608d3b4 100644--- a/tools/translate.py+++ b/tools/translate.py@@ -435,8 +435,9 @@ def save(lang: str, edits: dict[str, str], native: dict[str, bool], dry: bool =return any(new.get(k, "") != old.get(k, "") for k in keys)def read(key: str) -> bool:- """Whether an event unit or content key counts as read by a native speaker after this save: a ticked box, or- a text that was read and has not changed (a native read covers only the text that was read)."""+ """Whether an event unit or content key counts as read after this save (#564: by a native speaker, or by an+ AI-assisted contributor who discloses it): a ticked box, or a text that was read and has not changed (a read+ covers only the text that was read)."""if key in native:return native[key]return bool(old.get(key + ":title" if key.startswith("event:") else key)) and key not in flagged \@@ -647,7 +648,7 @@ textarea.dirty { border-color:var(--accent); } textarea[readonly] { background:v<label>From <select id="src"></select></label><label>To <select id="lang"></select></label><input id="q" placeholder="Filter keys and text">- <select id="show"><option value="">All strings</option><option value="todo">Not translated</option><option value="flag">Not read by a native speaker</option></select>+ <select id="show"><option value="">All strings</option><option value="todo">Not translated</option><option value="flag">Not read by a native speaker or disclosed AI-assisted contributor</option></select><span id="progress" class="note"></span><span style="flex:1"></span><span id="status"></span><button class="primary" id="save" disabled>Save</button>@@ -715,14 +716,14 @@ function render() {const rs = g.rows.filter(visible); if (!rs.length) continue;if (shown + rs.length > 800 && shown) { html += `<p class="note">More strings below the first 800: pick a group on the left or filter.</p>`; break; }shown += rs.length;- html += `<section><h2>${esc(g.label)}${g.unit ? `<label><input type="checkbox" data-native="${esc(g.unit)}" ${isRead(g.unit) ? 'checked' : ''}> read by a native speaker</label>` : ''}</h2>`;+ html += `<section><h2>${esc(g.label)}${g.unit ? `<label><input type="checkbox" data-native="${esc(g.unit)}" ${isRead(g.unit) ? 'checked' : ''}> read by a native speaker, or an AI-assisted contributor who discloses it</label>` : ''}</h2>`;if (g.unit) html += msgs(g.unit);if (he && g.id.startsWith('content:')) html += `<p class="note">Hebrew content names are kept in content/ with their sources; edit them there by hand.</p>`;for (const r of rs) {const s = r.src || r.en, fallback = !r.src && src !== 'en', v = value(r), rk = reviewKey(r);const lines = Math.max(1, Math.ceil(Math.max(r.en.length, v.length) / 55));html += `<div class="row" data-key="${esc(r.key)}"><div class="key">${esc(r.label)}${!r.unit && rk && !r.readonly && v ?- `<label><input type="checkbox" data-native="${esc(rk)}" ${isRead(rk) ? 'checked' : ''}> read by a native speaker</label>` : ''}</div>+ `<label><input type="checkbox" data-native="${esc(rk)}" ${isRead(rk) ? 'checked' : ''}> read by a native speaker, or an AI-assisted contributor who discloses it</label>` : ''}</div><div class="src ${fallback ? 'fallback' : ''}" dir="${dir(fallback ? 'en' : src)}">${hl(s)}</div><div><textarea dir="${dir(lang)}" lang="${esc(lang)}" rows="${lines}" ${r.readonly ? 'readonly' : ''} class="${r.key in edits ? 'dirty' : ''}">${esc(v)}</textarea>${toks(r.en).length && !r.readonly ? `<div class="chips">${[...new Set(toks(r.en))].map(t => `<button type="button" data-tok="${esc(t)}">${esc(t)}</button>`).join('')}</div>` : ''}</div>diff --git a/unity/Assets/Scripts/Map/Kits/Localities.cs b/unity/Assets/Scripts/Map/Kits/Localities.csindex 3100bba5c..7677cd59e 100644--- a/unity/Assets/Scripts/Map/Kits/Localities.cs+++ b/unity/Assets/Scripts/Map/Kits/Localities.cs@@ -290,7 +290,7 @@ namespace Statecraft.Game.Map.Kitsif (p.NameHeSources.Count > 0 && string.IsNullOrWhiteSpace(p.NameHe)) throw new InvalidDataException($"{at} name_he_sources without a name_he");// Absent (a person has reviewed the name) or exactly agent-checked: blank, null or a list is neither.if (p.NameHeReviewGiven && p.NameHeReview != "agent-checked")- throw new InvalidDataException($"{at} name_he_review '{p.NameHeReview}' is not agent-checked (delete the line once a person has reviewed the name)");+ throw new InvalidDataException($"{at} name_he_review '{p.NameHeReview}' is not agent-checked (delete the line once a native speaker, or an AI-assisted contributor who discloses it, has reviewed the name, #564)");if (p.NameHeReviewGiven && string.IsNullOrWhiteSpace(p.NameHe)) throw new InvalidDataException($"{at} name_he_review without a name_he");for (int i = 0; i < p.NameHeSources.Count; i++)if (!p.NameHeSources[i].Url.StartsWith("https://") || string.IsNullOrWhiteSpace(p.NameHeSources[i].Checked))diff --git a/unity/Assets/Scripts/Map/SettlementPlacer.cs b/unity/Assets/Scripts/Map/SettlementPlacer.csindex f62753002..47f997dfa 100644--- a/unity/Assets/Scripts/Map/SettlementPlacer.cs+++ b/unity/Assets/Scripts/Map/SettlementPlacer.cs@@ -105,7 +105,7 @@ namespace Statecraft.Game.Mapif (!named && sources.Count > 0) throw new InvalidDataException($"{at} name_he is empty but name_he_sources is set");// Absent (a person has reviewed the name) or exactly agent-checked: a blank or null value is neither.if (s.NameHeReviewGiven && s.NameHeReview != "agent-checked")- throw new InvalidDataException($"{at} name_he_review '{s.NameHeReview}' is not agent-checked (delete the line once a person has reviewed the name)");+ throw new InvalidDataException($"{at} name_he_review '{s.NameHeReview}' is not agent-checked (delete the line once a native speaker, or an AI-assisted contributor who discloses it, has reviewed the name, #564)");if (!named && s.NameHeReviewGiven) throw new InvalidDataException($"{at} name_he is empty but name_he_review is set");for (int i = 0; i < sources.Count; i++){