Test plan: Four-State Per-Country Curation Lifecycle¶
Start with a country with no CountryConfig at all; confirm it computes
as State A.
Add a CountryConfig/SourceConfig with no crawl run yet; confirm it
computes as State B.
Run a crawl that produces documents, none yet reviewed; confirm it
computes as State C, not D.
Clear SME review on all outstanding documents for that country; confirm
it flips to State D immediately (no lag, no manual re-tagging step
required).
Crawl a new document into an already-State-D country (e.g. a "changed
since last crawl" resurfacing); confirm the country correctly reverts to
State C (review pending) rather than staying at D while a document
awaits re-review.
Confirm state computation is consistent between the ops dashboard display
and whatever internal logic feeds the three-tier grounding model — they
must not diverge.