A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
fix(tools): the review queue shows people names' sources from biography_sources (#914)
Eyal Golan0eb0c7396aca
diff --git a/docs/review-queue.md b/docs/review-queue.mdindex 9ff4b569c..1c9d8a1b3 100644--- a/docs/review-queue.md+++ b/docs/review-queue.md@@ -1,6 +1,6 @@# Human-review queue-Generated by `uv run tools/review_queue.py --write` at commit `bb048212`. Do not edit by hand: rerun the tool.+Generated by `uv run tools/review_queue.py --write` at commit `d28f7516`. Do not edit by hand: rerun the tool.It changes no status. Clearing an entry is a content change in its own pull request: a native speaker deletes aname's `*_review: agent-checked` line once they have read it against its source (#564); a person who has checkedevery claim of a listed row signs it off beside its status with `reviewed_by` (their GitHub handle) and@@ -158,56 +158,56 @@ to match, or a reflow between flow and block style, makes that commit the line's| Line | Row | Field | Value | Sources | Checked by ||---|---|---|---|---|---|-| [31](../content/people.yaml#L31) | ben_gurion | name_he | דוד בן-גוריון | (none in the row) | an AI agent (the `agent-checked` flag) |-| [139](../content/people.yaml#L139) | zisling | name_he | אהרון ציזלינג | (none in the row) | an AI agent (the `agent-checked` flag) |-| [159](../content/people.yaml#L159) | kaplan | name_he | אליעזר קפלן | (none in the row) | an AI agent (the `agent-checked` flag) |-| [207](../content/people.yaml#L207) | sharett | name_he | משה שרת | (none in the row) | an AI agent (the `agent-checked` flag) |-| [247](../content/people.yaml#L247) | shapira | name_he | חיים משה שפירא | (none in the row) | an AI agent (the `agent-checked` flag) |-| [300](../content/people.yaml#L300) | gruenbaum | name_he | יצחק גרינבוים | (none in the row) | an AI agent (the `agent-checked` flag) |-| [318](../content/people.yaml#L318) | rosen | name_he | פנחס רוזן | (none in the row) | an AI agent (the `agent-checked` flag) |-| [348](../content/people.yaml#L348) | bentov | name_he | מרדכי בנטוב | (none in the row) | an AI agent (the `agent-checked` flag) |-| [367](../content/people.yaml#L367) | sheetrit | name_he | בכור-שלום שטרית | (none in the row) | an AI agent (the `agent-checked` flag) |-| [399](../content/people.yaml#L399) | maimon | name_he | יהודה לייב מימון | (none in the row) | an AI agent (the `agent-checked` flag) |-| [429](../content/people.yaml#L429) | bernstein | name_he | פרץ ברנשטיין | (none in the row) | an AI agent (the `agent-checked` flag) |-| [460](../content/people.yaml#L460) | remez | name_he | דוד רמז | (none in the row) | an AI agent (the `agent-checked` flag) |-| [481](../content/people.yaml#L481) | levin | name_he | יצחק-מאיר לוין | (none in the row) | an AI agent (the `agent-checked` flag) |-| [508](../content/people.yaml#L508) | dov_yosef | name_he | דב יוסף | (none in the row) | an AI agent (the `agent-checked` flag) |-| [560](../content/people.yaml#L560) | shazar | name_he | זלמן שז״ר | (none in the row) | an AI agent (the `agent-checked` flag) |-| [583](../content/people.yaml#L583) | golda_meir | name_he | גולדה מאיר | (none in the row) | an AI agent (the `agent-checked` flag) |-| [611](../content/people.yaml#L611) | lavon | name_he | פנחס לבון | (none in the row) | an AI agent (the `agent-checked` flag) |-| [647](../content/people.yaml#L647) | geri | name_he | יעקב גרי | (none in the row) | an AI agent (the `agent-checked` flag) |-| [666](../content/people.yaml#L666) | eshkol | name_he | לוי אשכול | (none in the row) | an AI agent (the `agent-checked` flag) |-| [695](../content/people.yaml#L695) | dinur | name_he | בן ציון דינור | (none in the row) | an AI agent (the `agent-checked` flag) |-| [717](../content/people.yaml#L717) | burg | name_he | שלמה יוסף בורג | (none in the row) | an AI agent (the `agent-checked` flag) |-| [743](../content/people.yaml#L743) | pinkas | name_he | דוד-צבי פנקס | (none in the row) | an AI agent (the `agent-checked` flag) |-| [761](../content/people.yaml#L761) | naftali | name_he | פרץ נפתלי | (none in the row) | an AI agent (the `agent-checked` flag) |-| [785](../content/people.yaml#L785) | haim_cohn | name_he | חיים כהן | (none in the row) | an AI agent (the `agent-checked` flag) |-| [803](../content/people.yaml#L803) | nurock | name_he | מרדכי נורוק | (none in the row) | an AI agent (the `agent-checked` flag) |-| [821](../content/people.yaml#L821) | rokach | name_he | ישראל רוקח | (none in the row) | an AI agent (the `agent-checked` flag) |-| [841](../content/people.yaml#L841) | serlin | name_he | יוסף סרלין | (none in the row) | an AI agent (the `agent-checked` flag) |-| [868](../content/people.yaml#L868) | yosef_sapir | name_he | יוסף ספיר | (none in the row) | an AI agent (the `agent-checked` flag) |-| [889](../content/people.yaml#L889) | aran | name_he | זלמן ארן | (none in the row) | an AI agent (the `agent-checked` flag) |-| [908](../content/people.yaml#L908) | luz | name_he | קדיש לוז | (none in the row) | an AI agent (the `agent-checked` flag) |-| [925](../content/people.yaml#L925) | pinchas_sapir | name_he | פנחס ספיר | (none in the row) | an AI agent (the `agent-checked` flag) |-| [943](../content/people.yaml#L943) | barzilai | name_he | ישראל ברזילי | (none in the row) | an AI agent (the `agent-checked` flag) |-| [960](../content/people.yaml#L960) | bar_yehuda | name_he | ישראל בר-יהודה | (none in the row) | an AI agent (the `agent-checked` flag) |-| [979](../content/people.yaml#L979) | carmel | name_he | משה כרמל | (none in the row) | an AI agent (the `agent-checked` flag) |-| [998](../content/people.yaml#L998) | namir | name_he | מרדכי נמיר | (none in the row) | an AI agent (the `agent-checked` flag) |-| [1016](../content/people.yaml#L1016) | weizmann | name_he | חיים ויצמן | (none in the row) | an AI agent (the `agent-checked` flag) |-| [1042](../content/people.yaml#L1042) | ben_zvi | name_he | יצחק בן-צבי | (none in the row) | an AI agent (the `agent-checked` flag) |-| [1065](../content/people.yaml#L1065) | dori | name_he | יעקב דורי | (none in the row) | an AI agent (the `agent-checked` flag) |-| [1083](../content/people.yaml#L1083) | yadin | name_he | יגאל ידין | (none in the row) | an AI agent (the `agent-checked` flag) |-| [1101](../content/people.yaml#L1101) | maklef | name_he | מרדכי מקלף | (none in the row) | an AI agent (the `agent-checked` flag) |-| [1117](../content/people.yaml#L1117) | dayan | name_he | משה דיין | (none in the row) | an AI agent (the `agent-checked` flag) |-| [1135](../content/people.yaml#L1135) | efrati | name_he | יוסף אפרתי | (none in the row) | an AI agent (the `agent-checked` flag) |-| [1168](../content/people.yaml#L1168) | shari | name_he | ראובן שרי | (none in the row) | an AI agent (the `agent-checked` flag) |-| [1195](../content/people.yaml#L1195) | kahana | name_he | קלמן כהנא | (none in the row) | an AI agent (the `agent-checked` flag) |-| [1220](../content/people.yaml#L1220) | warhaftig | name_he | זרח ורהפטיג | (none in the row) | an AI agent (the `agent-checked` flag) |-| [1245](../content/people.yaml#L1245) | ben_meir | name_he | שלמה-ישראל בן-מאיר | (none in the row) | an AI agent (the `agent-checked` flag) |-| [1269](../content/people.yaml#L1269) | susayeff | name_he | זלמן סוזאיב | (none in the row) | an AI agent (the `agent-checked` flag) |-| [1287](../content/people.yaml#L1287) | tzur | name_he | זאב צור | (none in the row) | an AI agent (the `agent-checked` flag) |-| [1304](../content/people.yaml#L1304) | unna | name_he | משה אונא | (none in the row) | an AI agent (the `agent-checked` flag) |-| [1323](../content/people.yaml#L1323) | assaf | name_he | עמי אסף | (none in the row) | an AI agent (the `agent-checked` flag) |+| [31](../content/people.yaml#L31) | ben_gurion | name_he | דוד בן-גוריון | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Person(2198)> | an AI agent (the `agent-checked` flag) |+| [139](../content/people.yaml#L139) | zisling | name_he | אהרון ציזלינג | <https://en.wikipedia.org/wiki/Aharon_Zisling> | an AI agent (the `agent-checked` flag) |+| [159](../content/people.yaml#L159) | kaplan | name_he | אליעזר קפלן | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Person(2590)> | an AI agent (the `agent-checked` flag) |+| [207](../content/people.yaml#L207) | sharett | name_he | משה שרת | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Person(2114)> | an AI agent (the `agent-checked` flag) |+| [247](../content/people.yaml#L247) | shapira | name_he | חיים משה שפירא | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Person(2661)> | an AI agent (the `agent-checked` flag) |+| [300](../content/people.yaml#L300) | gruenbaum | name_he | יצחק גרינבוים | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Person(5904)> | an AI agent (the `agent-checked` flag) |+| [318](../content/people.yaml#L318) | rosen | name_he | פנחס רוזן | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Person(2600)> | an AI agent (the `agent-checked` flag) |+| [348](../content/people.yaml#L348) | bentov | name_he | מרדכי בנטוב | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Person(2210)> | an AI agent (the `agent-checked` flag) |+| [367](../content/people.yaml#L367) | sheetrit | name_he | בכור-שלום שטרית | <https://en.wikipedia.org/wiki/Bechor-Shalom_Sheetrit> | an AI agent (the `agent-checked` flag) |+| [399](../content/people.yaml#L399) | maimon | name_he | יהודה לייב מימון | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Person(2460)> | an AI agent (the `agent-checked` flag) |+| [429](../content/people.yaml#L429) | bernstein | name_he | פרץ ברנשטיין | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Person(2223)> | an AI agent (the `agent-checked` flag) |+| [460](../content/people.yaml#L460) | remez | name_he | דוד רמז | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Person(2613)> | an AI agent (the `agent-checked` flag) |+| [481](../content/people.yaml#L481) | levin | name_he | יצחק-מאיר לוין | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Person(2427)> | an AI agent (the `agent-checked` flag) |+| [508](../content/people.yaml#L508) | dov_yosef | name_he | דב יוסף | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Person(2375)> | an AI agent (the `agent-checked` flag) |+| [560](../content/people.yaml#L560) | shazar | name_he | זלמן שז״ר | <https://web.archive.org/web/20170930193513/http://www.knesset.gov.il:80/mk/heb/mk.asp?mk_individual_id_t=681><br><https://en.wikipedia.org/wiki/Zalman_Shazar> | an AI agent (the `agent-checked` flag) |+| [583](../content/people.yaml#L583) | golda_meir | name_he | גולדה מאיר | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Person(2448)> | an AI agent (the `agent-checked` flag) |+| [611](../content/people.yaml#L611) | lavon | name_he | פנחס לבון | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Person(2416)> | an AI agent (the `agent-checked` flag) |+| [647](../content/people.yaml#L647) | geri | name_he | יעקב גרי | <https://web.archive.org/web/20160303225240/http://www.knesset.gov.il/mk/heb/mk.asp?mk_individual_id_t=698> | an AI agent (the `agent-checked` flag) |+| [666](../content/people.yaml#L666) | eshkol | name_he | לוי אשכול | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Person(2173)> | an AI agent (the `agent-checked` flag) |+| [695](../content/people.yaml#L695) | dinur | name_he | בן ציון דינור | <https://en.wikipedia.org/wiki/Ben-Zion_Dinur> | an AI agent (the `agent-checked` flag) |+| [717](../content/people.yaml#L717) | burg | name_he | שלמה יוסף בורג | <https://en.wikipedia.org/wiki/Yosef_Burg> | an AI agent (the `agent-checked` flag) |+| [743](../content/people.yaml#L743) | pinkas | name_he | דוד-צבי פנקס | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Person(2546)> | an AI agent (the `agent-checked` flag) |+| [761](../content/people.yaml#L761) | naftali | name_he | פרץ נפתלי | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Person(2493)> | an AI agent (the `agent-checked` flag) |+| [785](../content/people.yaml#L785) | haim_cohn | name_he | חיים כהן | <https://he.wikipedia.org/wiki/חיים_כהן_(משפטן)> | an AI agent (the `agent-checked` flag) |+| [803](../content/people.yaml#L803) | nurock | name_he | מרדכי נורוק | <https://en.wikipedia.org/wiki/Mordechai_Nurock> | an AI agent (the `agent-checked` flag) |+| [821](../content/people.yaml#L821) | rokach | name_he | ישראל רוקח | <https://en.wikipedia.org/wiki/Israel_Rokach> | an AI agent (the `agent-checked` flag) |+| [841](../content/people.yaml#L841) | serlin | name_he | יוסף סרלין | <https://en.wikipedia.org/wiki/Yosef_Serlin> | an AI agent (the `agent-checked` flag) |+| [868](../content/people.yaml#L868) | yosef_sapir | name_he | יוסף ספיר | <https://en.wikipedia.org/wiki/Yosef_Sapir> | an AI agent (the `agent-checked` flag) |+| [889](../content/people.yaml#L889) | aran | name_he | זלמן ארן | <https://en.wikipedia.org/wiki/Zalman_Aran> | an AI agent (the `agent-checked` flag) |+| [908](../content/people.yaml#L908) | luz | name_he | קדיש לוז | <https://en.wikipedia.org/wiki/Kadish_Luz> | an AI agent (the `agent-checked` flag) |+| [925](../content/people.yaml#L925) | pinchas_sapir | name_he | פנחס ספיר | <https://en.wikipedia.org/wiki/Pinchas_Sapir> | an AI agent (the `agent-checked` flag) |+| [943](../content/people.yaml#L943) | barzilai | name_he | ישראל ברזילי | <https://en.wikipedia.org/wiki/Yisrael_Barzilai> | an AI agent (the `agent-checked` flag) |+| [960](../content/people.yaml#L960) | bar_yehuda | name_he | ישראל בר-יהודה | <https://en.wikipedia.org/wiki/Yisrael_Bar-Yehuda> | an AI agent (the `agent-checked` flag) |+| [979](../content/people.yaml#L979) | carmel | name_he | משה כרמל | <https://en.wikipedia.org/wiki/Moshe_Carmel> | an AI agent (the `agent-checked` flag) |+| [998](../content/people.yaml#L998) | namir | name_he | מרדכי נמיר | <https://en.wikipedia.org/wiki/Mordechai_Namir> | an AI agent (the `agent-checked` flag) |+| [1016](../content/people.yaml#L1016) | weizmann | name_he | חיים ויצמן | <https://web.archive.org/web/20160622202111/http://www.president.gov.il:80/Presidency_In_Israel/Presidents_Of_Israel/Pages/ChaimWeizmann.aspx> | an AI agent (the `agent-checked` flag) |+| [1042](../content/people.yaml#L1042) | ben_zvi | name_he | יצחק בן-צבי | <https://en.wikipedia.org/wiki/Yitzhak_Ben-Zvi> | an AI agent (the `agent-checked` flag) |+| [1065](../content/people.yaml#L1065) | dori | name_he | יעקב דורי | <https://en.wikipedia.org/wiki/Yaakov_Dori> | an AI agent (the `agent-checked` flag) |+| [1083](../content/people.yaml#L1083) | yadin | name_he | יגאל ידין | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Person(2369)> | an AI agent (the `agent-checked` flag) |+| [1101](../content/people.yaml#L1101) | maklef | name_he | מרדכי מקלף | <https://en.wikipedia.org/wiki/Mordechai_Maklef> | an AI agent (the `agent-checked` flag) |+| [1117](../content/people.yaml#L1117) | dayan | name_he | משה דיין | <https://en.wikipedia.org/wiki/Moshe_Dayan> | an AI agent (the `agent-checked` flag) |+| [1135](../content/people.yaml#L1135) | efrati | name_he | יוסף אפרתי | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Person(2161)> | an AI agent (the `agent-checked` flag) |+| [1168](../content/people.yaml#L1168) | shari | name_he | ראובן שרי | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Person(2666)> | an AI agent (the `agent-checked` flag) |+| [1195](../content/people.yaml#L1195) | kahana | name_he | קלמן כהנא | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Person(2404)> | an AI agent (the `agent-checked` flag) |+| [1220](../content/people.yaml#L1220) | warhaftig | name_he | זרח ורהפטיג | <https://en.wikipedia.org/wiki/Zorach_Warhaftig> | an AI agent (the `agent-checked` flag) |+| [1245](../content/people.yaml#L1245) | ben_meir | name_he | שלמה-ישראל בן-מאיר | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Person(2203)> | an AI agent (the `agent-checked` flag) |+| [1269](../content/people.yaml#L1269) | susayeff | name_he | זלמן סוזאיב | <https://en.wikipedia.org/wiki/Zalman_Susayeff> | an AI agent (the `agent-checked` flag) |+| [1287](../content/people.yaml#L1287) | tzur | name_he | זאב צור | <https://en.wikipedia.org/wiki/Ze'ev_Tzur> | an AI agent (the `agent-checked` flag) |+| [1304](../content/people.yaml#L1304) | unna | name_he | משה אונא | <https://en.wikipedia.org/wiki/Moshe_Unna> | an AI agent (the `agent-checked` flag) |+| [1323](../content/people.yaml#L1323) | assaf | name_he | עמי אסף | <https://en.wikipedia.org/wiki/Ami_Assaf> | an AI agent (the `agent-checked` flag) |## Reviewed statuses last written by a commit with an AI co-author trailer, or not committed yetdiff --git a/tools/review_queue.py b/tools/review_queue.pyindex 8ce32c668..0541dc674 100644--- a/tools/review_queue.py+++ b/tools/review_queue.py@@ -209,8 +209,12 @@ def scan(text: str, rel: str) -> list[Entry]:m = FLAG_KEY.match(key)if m and _scalar(node) == FLAG:name = m.group("field")+ source_node = keys.get(name + "_sources")+ # People keep a field's sources under biography_sources.<field> (content/people.yaml).+ if source_node is None and isinstance(keys.get("biography_sources"), yaml.MappingNode):+ source_node = {_scalar(k): v for k, v in keys["biography_sources"].value}.get(name)entries.append(Entry("flag", rel, node.start_mark.line + 1, label, name, _scalar(keys.get(name)) if name in keys else "",- _urls(keys[name + "_sources"]) if name + "_sources" in keys else []))+ _urls(source_node) if source_node is not None else []))status = keys.get("status")if status is not None and _scalar(status) in STATUSES:# A whole sign-off by a person (#375) takes the row out of the queue; a malformed one does not (fail closed).diff --git a/tools/tests/test_review_queue.py b/tools/tests/test_review_queue.pyindex b379903a1..e87a447d1 100644--- a/tools/tests/test_review_queue.py+++ b/tools/tests/test_review_queue.py@@ -33,6 +33,14 @@ sources:- { url: "https://example.org/truce", checked: 2026-10-10 }status: sensitivity-reviewed"""+PEOPLE = """people:+ - id: example+ name: Example Person+ name_he: איש לדוגמה+ name_he_review: agent-checked+ biography_sources:+ name_he: [{ url: "https://example.org/hebrew-name", checked: 2026-10-14 }]+"""def git(repo: Path, *args: str, env: dict | None = None) -> str:@@ -67,6 +75,12 @@ def test_scan_finds_flags_and_reviewed_statuses_with_their_lines():assert rq.scan("rows:\n - { id: x, name_he_review: reviewed }\n", "c.yaml") == [] # only agent-checked is a flag+def test_people_name_uses_its_biography_source_in_the_page():+ entries = rq.scan(PEOPLE, "content/people.yaml")+ text = rq.page(entries, 0, "0123456789abcdef")+ assert "| example | name_he | איש לדוגמה | <https://example.org/hebrew-name> |" in text++def test_queue_lists_agent_set_statuses_and_every_flag_and_counts_the_rest(tmp_path):repo = make_repo(tmp_path)entries, human, _ = rq.queue(repo)