{
 "version": "1.2",
 "harness": "census-crawl-0.5",
 "text": "visible_text: script/style/noscript stripped, then all tags",
 "window": {
  "anchor": "METRIC_PAT matches first; if none, MONEY regex matches; if none, whole page text",
  "span_chars": 300,
  "max_windows": 40,
  "zones": "figure windows PLUS the page title and H1 (head zone), both searched for place signals",
  "zero_window_behavior": "whole page text is the context"
 },
 "match": {
  "rule": "INSIDE wins; OUTSIDE alone excludes; no place identified either way passes. The firm names its market; the gate only checks the place named is inside the metro.",
  "inside": "any ONE of: a registry grain label (multi-word labels as a case-insensitive phrase; single-word labels need a place cue), a principal city (word-bounded, case-insensitive), a Census incorporated place of the metro written as a place, a county of the metro ('X County'), a ZIP of the metro",
  "outside": "a ZIP of another CBSA; 'Place, ST' or 'Place, State' resolving to another CBSA; a county name belonging to exactly one other CBSA; a full state name that is not one of the metro's states (Washington excluded; names followed by City/Beach/Springs/Street etc. excluded); the principal city of another METROPOLITAN area written as a place",
  "place_cue": "a bare place name counts only with a locative cue: preceded by in/of/near/around/for/across/throughout/to/at/from/within/serving/covering, or followed by 's, ', ST', ', State', a ZIP, or area/metro/market/rental/rent(s)/home(s)/house/property/landlord/owner/tenant/investor/neighborhood/real estate/zip/county/single-family/apartment/lease/vacancy/MLS; names are matched case-sensitively as the Census spells them",
  "grain": "submarket grain (grade 3) = a grain label, or a metro place/county/ZIP signal, near the figures or in the head; principal cities never count as grain",
  "principal_city": "every name in the CBSA title before the comma, split on '-' and '/' (Dallas-Fort Worth-Arlington, TX -> Dallas, Fort Worth, Arlington)",
  "applies_to": "census grader (grade_firm/grade_url) and the poll content classifier: a cited page typed market_data that fails this gate for the polled metro publishes as market_data_other_metro",
  "legacy_1.1": "harness 0.2-0.4 required 2 distinct grain terms, or 1 plus a principal city, case-insensitive substring, figure windows only; our label list was the judge of a firm's market (McCaw's Roanoke report failed because Roanoke was not a label)"
 },
 "geography": "registry/metro-geo.json \u2014 Census 2023 CBSA delineation (county -> CBSA), national_place_by_county2020 (incorporated places), tab20_zcta520_county20 (ZCTA -> county), national_county2020; built by crawler/geo_build.py",
 "vocabulary": "grain.json \u2014 per metro: post-validation registry labels + cities, PLUS the metro's Census incorporated places and counties (so the external audit's grain check sees the same places the grader does)"
}