A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
docs: historian review guide (#29) (#171)
agamrafaeli-instinct58ef230b0ca4
diff --git a/docs/HISTORIAN_REVIEW.md b/docs/HISTORIAN_REVIEW.mdnew file mode 100644index 000000000..06e72f060--- /dev/null+++ b/docs/HISTORIAN_REVIEW.md@@ -0,0 +1,100 @@+# Historian review++A review checklist and record format for [issue #29](https://github.com/eyalgolan/statecraft-israel/issues/29).+This guide prepares a human review; it does not certify any event or introduce a release gate.+Read [CONTENT_POLICY.md](CONTENT_POLICY.md) and [WRITING_EVENTS.md](WRITING_EVENTS.md) first.++## Current behavior and the M4 target++The [design spec, section 5.2](superpowers/specs/2026-10-09-statecraft-israel-design.md#5-content-and-historical-accuracy-pipeline)+plans `draft` -> `fact-checked` -> `historian-reviewed`, then `sensitivity-reviewed` for sensitive tags.+Historian review is planned for M4 and is not yet a gate. The current code and policy take precedence over the planned pipeline:++- [ContentLoader.cs](../sim/Statecraft.Sim/ContentLoader.cs) accepts all four status values, but rejects unknown YAML keys.+ [GameEvent](../sim/Statecraft.Sim/Content.cs) has `sources` and `status`, not fields for a reviewer or review date.+- [RealContentTests.cs](../sim/Statecraft.Sim.Tests/RealContentTests.cs) currently requires non-sensitive events to be exactly+ `fact-checked` and sensitive events to be exactly `sensitivity-reviewed`. Changing one to `historian-reviewed` fails that test.+- [ReleaseGate.cs](../sim/Statecraft.Sim/ReleaseGate.cs) checks sensitivity review, not historian review.+ A green release gate is not evidence that a historian checked the content.++Record an actual historian review now in the PR and YAML comments as described below, leaving `status` unchanged.+Before changing a status, a separate implementation must update tests and decide how historian and sensitivity sign-offs+are preserved together. Do not weaken the sensitivity gate to make a historian status pass. No new machine-read fields+or extra status values are defined by this guide.++## Who reviews and what is being reviewed++The maintainer confirms a human reviewer with relevant historical or academic background, their area of expertise,+and the public name or handle they consent to use. Do not infer credentials from a username or label an AI check a historian review.+A reviewer can limit the review to particular claims or decline topics outside their expertise. The record names those limits.++Start with a small batch of non-sensitive events with retrievable sources. For each event, the PR lists its file, event id,+exact commit, current status and whether its tags require sensitivity review. No batch is accepted merely because its sources+list is nonempty. Do not put private contact details or unapproved biographical information in a public record.++Give the reviewer the exact YAML at that commit, the rendered title/body/options, a claim list and the source packet.+The packet identifies each claim's source URL, check date, and page/section or timestamp where it can be checked.+If a source is inaccessible, record the gap instead of claiming it was read. Short, exact quotes may be used for checking;+do not reproduce a book or source packet whose rights do not permit sharing it.++## Per-event checklist++- [ ] Dates, names, offices, places, amounts and numbers match the cited passages. Check the event window separately+ from the historical date: `from` can be a game turn before the event, and `to` is exclusive.+- [ ] The title, body and option text are supported by the sources and do not invent speech or put unsourced words in a person's mouth.+- [ ] The option marked `historical: true` matches the documented decision, not an invented alternative or a gameplay preference.+- [ ] Office placeholders resolve to the right public role across the window. Check office terms as well as the event source.+- [ ] Facts use the project's Israeli framing and source-selection rules in [CONTENT_POLICY.md, sections 1-2](CONTENT_POLICY.md).+ Where sources disagree, identify the exact disputed field and both passages; do not silently average or erase the conflict.+- [ ] Separate factual claims from design choices. `recommended`, indicator deltas and balance are not certified as historical+ measurements just because a historian reviewed the prose. Flag an implausible effect for design review rather than inventing evidence.+- [ ] Check the tags, civilian-harm framing and no-reward rules. Sensitive tags (`holocaust`, `terror`, `massacre`, `war-casualties`)+ still need the maintainer's separate sensitivity review. A historian cannot sign that off on the maintainer's behalf.+- [ ] List any omitted context that makes the text misleading, each correction needed, and any claim left outside the review scope.++## Record the result without changing the schema++The reviewer comments on the PR for each event, giving: file/id, reviewed commit, review date, agreed public identity and+relevant expertise, claim/source/page list, scope limits, outcome and corrections. Use `accepted`, `changes requested`, or+`unable to verify` as **record outcomes**, not YAML `status` values. An accepted result needs an actual affirmative human review.+A contributor's or AI's summary is not a substitute for the reviewer's record. GitHub code-owner approval is a different check.++After the reviewer confirms acceptance, put a comment block next to `sources` in the event YAML. Replace every placeholder+with facts from the real review; never commit this unfilled example as a sign-off:++```yaml+# Historian review record (not a new YAML field):+# Reviewer: <agreed public name/handle>; expertise: <confirmed relevant scope>+# Reviewed: <YYYY-MM-DD>; content commit: <full reviewed SHA>+# Record: <URL of the actual per-event review comment>+# Claims and sources: <fields checked, source URLs and page/section locators>+# Scope: <covered claims and any exclusions>; outcome: accepted+# Sensitivity: <separate maintainer record if applicable; otherwise not applicable>+# status remains at its existing value until the M4 implementation supports the transition.+```++Comments are not a machine-enforced certificate: anyone can edit them, and no test reads them. The reviewer's PR comment+is the record; the YAML comment only points to it, without adding unsupported keys such as `reviewed_by` or `reviewed_on`.+A comment-only edit still changes the content hash (`ContentLoader` hashes the text of every content file), so a save made+before it loads with the "different game content" warning. It does not change any parsed value, so the golden hashes in+[determinism.md](determinism.md) stay the same. If they move, the edit changed more than comments: find out what before going on.++## Corrections, disagreements and changed content++For each disputed field, open or link a **Historical accuracy** issue with the current value, proposed correction and checkable+source passages. The maintainer chooses the game's value under [CONTENT_POLICY.md, section 3](CONTENT_POLICY.md#3-how-to-dispute-a-fact).+Keep the disagreement and rationale in that issue. A source conflict or unverified claim is not an accepted review.++After a correction, the reviewer checks the changed claims and records the new commit. Earlier acceptance stays attached to+its original revision; it does not silently cover later edits. Keep unrelated design changes out of the review PR.+Sensitive content that changes also returns to the maintainer for sensitivity review.++## Before the first reviewed batch lands++1. Confirm the reviewer and their scope, then collect the per-event records at exact commits.+2. Fix requested corrections, update each affected `sources` entry with its real check date, and get the changed claims rechecked.+3. Add the confirmed audit comments, keeping current `status` values and the separate sensitivity sign-off intact.+4. Run the sim, tools and repository-policy checks listed in [CONTRIBUTING.md](../CONTRIBUTING.md), including+ `dotnet test sim/Statecraft.sln`, `uv run scripts/oss/check_repo.py` and `git diff --check`. Content changes need a changelog line.+5. The maintainer reviews the PR. Only after a separate M4 status/test/gate implementation should a batch move to+ `status: historian-reviewed`. Guide-only work does not close #29: its first genuine reviewed batch remains outstanding.diff --git a/docs/WRITING_EVENTS.md b/docs/WRITING_EVENTS.mdindex 571ac1609..58d4140f5 100644--- a/docs/WRITING_EVENTS.md+++ b/docs/WRITING_EVENTS.md@@ -158,7 +158,8 @@ One of `draft`, `fact-checked`, `historian-reviewed`, `sensitivity-reviewed`; an- `draft`: a work in progress. A pull request for `content/` should not stay at this.- `fact-checked`: a person checked every claim against its sources. This is what you submit. The content testsrequire `fact-checked` on every non-sensitive event in `content/`.-- `historian-reviewed`: planned for M4, not a gate yet.+- `historian-reviewed`: planned for M4, not a gate yet. How a review is done and recorded until then:+ [HISTORIAN_REVIEW.md](HISTORIAN_REVIEW.md).- `sensitivity-reviewed`: set by the maintainer for events with a sensitive tag (see above).If AI helped draft the text, you still check every claim yourself before using `fact-checked`diff --git a/scripts/oss/tests/test_historian_review.py b/scripts/oss/tests/test_historian_review.pynew file mode 100644index 000000000..986f5b56d--- /dev/null+++ b/scripts/oss/tests/test_historian_review.py@@ -0,0 +1,33 @@+"""Keep the human review guide honest about the current schema, tests and gate."""+import re+from pathlib import Path++ROOT = Path(__file__).resolve().parents[3]+++def read(path):+ return (ROOT / path).read_text(encoding='utf-8')+++def test_guide_is_current_process_not_a_fabricated_signoff():+ guide = read('docs/HISTORIAN_REVIEW.md')+ for text in ('not yet a gate', 'leaving `status` unchanged', 'affirmative human review',+ 'exact commit', 'Historical accuracy', 'first genuine reviewed batch remains outstanding',+ 'not YAML `status` values', 'content hash', 'AI check'):+ assert text in guide+ assert 'EveryHistoricalRecordIsSourcedAndFactChecked' in read('sim/Statecraft.Sim.Tests/RealContentTests.cs')+ assert '? ReleaseGate.ReviewedStatus : "fact-checked"' in read('sim/Statecraft.Sim.Tests/RealContentTests.cs')+ assert 'public const string ReviewedStatus = "sensitivity-reviewed"' in read('sim/Statecraft.Sim/ReleaseGate.cs')+ event = re.search(r'class GameEvent\b.*?\n }', read('sim/Statecraft.Sim/Content.cs'), re.S).group(0)+ assert 'ReviewedBy' not in event and 'ReviewedOn' not in event+++def test_review_example_adds_only_comments_and_links_resolve():+ guide = read('docs/HISTORIAN_REVIEW.md')+ sample = re.search(r'```yaml\n(.*?)```', guide, re.S).group(1)+ assert all(not line.strip() or line.lstrip().startswith('#') for line in sample.splitlines())+ for link in re.findall(r'\]\(([^)]+)\)', guide):+ if not link.startswith('https://'):+ assert (ROOT / 'docs' / link.split('#')[0]).resolve().is_file(), link+ for tag in ('holocaust', 'terror', 'massacre', 'war-casualties'):+ assert f'`{tag}`' in guide