Skip to content

Releases

Engine v1.0.25

Choose a tag to compare

@github-actions github-actions released this 22 Aug 16:53
Immutable release. Only release title and notes can be modified.

Rewrites the Data gaps panel for the reader it was built for. Three changed blocks (coverage-gaps, gaps-modal-html, styles-footer), no new blocks — but this release changes the shape of data/app/coverage-gaps.json, so a fork that bumps without regenerating that file loses the panel's "Why" line. Read the adoption note before merging the bump.

Why. The panel printed the gap record's blocker field verbatim under a heading reading "Why". blocker is the maintainer's measured record — which host answered what, on which date, which route was proven closed — and on the harder counties it runs past ten thousand characters. Chicago shipped 111 gaps whose blockers totalled 238 KB, into a modal a voter opens to find out one thing: is the answer I came for missing where I live? The surface whose entire job is to make absence legible was the least legible thing in the app, and the reader had to scroll a research log to learn whether their own county was even mentioned. The record was never the problem; printing it at a voter was.

  • Data contract — why replaces blocker in the shipped file. scripts/build_coverage_gaps.py now emits summary, why and wanted and does not emit blocker. All four fields remain required in the guidebook's GUIDEBOOK:BEGIN gaps block; blocker simply stays there, unbounded, for the next maintainer. The three reader fields are capped at 240 characters each and linted for the four tells that a research note is leaking back into the panel — over budget, a hostname or URL, an ISO date, or a run of shouted capitals. Chicago's payload went 319 KB → 69 KB with no gap dropped.

  • Changed coverage-gaps: one visible line per gap (summary), with why + wanted + the source-submission link moved into a per-gap <details>. Gaps are grouped into <details class="gaps-group"> sections carrying their own counts — "Where you clicked" (open) first when a point is selected, then one group per kind. The kind vocabulary is now the reader's rather than the pipeline's: not published / publisher blocks us / partly published as badges, and full sentences as headings. A new .gaps-lede answers the reader's actual first question before the list — how many gaps affect the clicked point, or that none do, or that they clicked outside coverage entirely — with the same three provability guards the old section headings carried. Groups open by default only when a fork has 12 or fewer gaps to show, so a three-gap sibling never renders as a stack of closed drawers.

  • Changed gaps-modal-html: intro copy rewritten to say what the panel is for in a voter's terms, and to point at the disclosure rather than dumping the reasoning inline.

  • Changed styles-footer: .gaps-lede, .gaps-group, .gaps-section-text / -count, .gap-more / .gap-more-label, and disclosure-marker suppression on both summary elements. The old .gaps-section-label rule is kept and extended (it is now a <summary>), so nothing a fork styled disappears.

Fork adoption — the bump alone is not enough. Regenerate the fork's data file from Chicago's guidebook in the same PR:

python3 scripts/build_coverage_gaps.py --metro <fork> --out <fork>/data/app/coverage-gaps.json

A fork that authors its own coverage-gaps.json instead must add a why to every entry (and may drop blocker from the shipped file). Nothing breaks without it — a gap with no why renders its disclosure with only "What would fix it" — but the panel then explains half of what it used to. fleet_status.py's GAPS check compares shipped file to guidebook and will report the difference either way.

Smoke test worth porting alongside (Chicago's is updated): assert that each rendered group's displayed count equals the items actually inside it, that the group items sum to the shipped gap count, and that every gap keeps its detail behind a disclosure — that last one is the assertion that fails if a research note ever grows back into the card body. The old assertion counted .gaps-section-label elements as siblings of .gap-item; sections are containers now, so a fork's copy needs the same rewrite whether or not it carries the rest.

No generator output shape changed — generate_metro_files.py emits exactly what it did, so bump PRs hit no --check drift.

Engine v1.0.24

Choose a tag to compare

@github-actions github-actions released this 19 Aug 18:43
Immutable release. Only release title and notes can be modified.
0347b8d

Promotes the point chip's share surface into the engine and modernizes it: ONE "Share" button replaces the old Copy-link / Embed pill pair, and every URL it hands out now carries campaign tags for traffic attribution. Two changed blocks (permalink, styles-app), no new blocks — adopting forks need no fence seeding, but the wiring is one deliberate out-of-fence line, stated plainly below (the v1.0.22 lesson: say what the bump alone does not do).

Why. "Copy link" named the mechanism and hid the outcome — next to the chip's lat,lng readout it read as "copy these coordinates" as easily as "share this view", and the tooltip that explained it doesn't exist on touch. "Embed" wrote HTML to the clipboard sight unseen. The modern shape restores the missing altitude: Share (intent) opens a surface that names each mechanism's outcome.

  • Changed permalink: the share-controls suite — buildShareControl() (the chip button + popover), shareLinkUrl() / buildEmbedSnippet() / shareCoordsText() (values built at open/copy time from live state, never cached in the DOM), shareCanonicalBase() (the old fork-level embedBaseUrl, now engine), and copyTextToClipboard(). Touch-first devices with navigator.share get the platform share sheet; hover-capable devices get a popover with the permalink (readonly input, select-on-focus), the <iframe> snippet previewed before copying, and the coordinates as their own copyable row. Escape and outside-click close it; aria-haspopup/aria-expanded/role="dialog" are wired; the whole control rebuilds with the chip each selection so an open popover never outlives the point it described. Analytics event names share-permalink and embed-iframe are unchanged (continuity for existing dashboards); share-open, share-native, and copy-coordinates are new.

  • Campaign tags — the release's second purpose: shared links carry ?utm_source=share&utm_medium=link and embed src URLs ?utm_source=embed&utm_medium=iframe, inserted BEFORE the #hash so the hash router never sees them. Both analytics stacks consume them with zero code: gtag reads utm_* natively, and GoatCounter's count.js sends location.search with every hit and uses utm_source as the referrer — while its canonical-<link> path normalization keeps recorded paths clean, so tagging costs nothing in path stats (verified against count.js source before shipping). Organic traffic stays untagged; a re-share from a tagged page rebuilds from origin+pathname, so an inbound tag is never copied forward as the next reader's source. The embed snippet still targets the fork's canonical METRO_EXPLORERS URL, so a snippet grabbed on a preview embeds production; the share LINK keeps the old Copy-link behavior of sharing the current origin.

  • Changed styles-app: the popover styles (.share-popover*, .share-copy-btn) and one line on .selected-point-chip (position: relative, the popover's anchor). White card in --font-body over the dark mono chip; values inside stay --font-mono. Copy targets are comfortably larger than the old 11px pills.

Fork adoption is a bump plus ONE out-of-fence line. The engine additions are pure definitions — a fork that bumps without wiring keeps its old chip exactly as-is. To adopt, replace the chip's old copy-link/embed button construction in the fork's setSelectedPoint with pointChip.appendChild(buildShareControl()); and delete the fork-level embedBaseUrl/buildEmbedCode if it carries them (Chicago's went engine-side as shareCanonicalBase/buildEmbedSnippet). Chicago's smoke test gained a check worth porting alongside: opens the popover, asserts the tagged permalink matches the live hash, the embed snippet is tagged and canonical, and Escape closes.

No generator output shape changed — generate_metro_files.py emits exactly what it did, so bump PRs hit no --check drift.

Engine v1.0.23

Choose a tag to compare

@github-actions github-actions released this 19 Aug 17:48
Immutable release. Only release title and notes can be modified.
56059d3

Makes the county dispatcher's "load from the selected point outward" behavior the ENGINE DEFAULT for every layer: a click's card resolves from the geometry nearest the need — the cached full set when it's in memory, otherwise one small "which feature holds this point" spatial query — so a multi-MB boundary download (the rest of the state, the rest of the city) never delays the selected location's answer. The full set keeps downloading behind the card for the overlay, the highlight, and every later click, exactly as before. Ten changed blocks, no new blocks — adopting forks need no fence seeding and nothing outside the fences: every new path is opt-in per loader, and a loader that declares nothing takes the byte-equivalent of its old load-then-contain path.

  • Changed find-prop-ci: new queryFeatureAt(load, point) — the one funnel for point-first resolution. Full set cached (load.cached()) → local containment, free. Still downloading and the loader declares .atPoint(point) → answer from that spatial query, with the full download joined (not raced) in the background. The point query is advisory only: its features still pass the same local pointInGeometry test, and a failed OR EMPTY point query defers to the full set — "no district here" is only ever concluded from the validated full set, and a card answer can never disagree with what the drawn boundaries would say. Same block, one latent bug fixed: findFeatureContaining's P7 memo is now keyed by feature COUNT as well as point identity, because an incrementally-drawn layer (the county union, a future paged loader) APPENDS into the same live geojson object — a no-match memoized before a late area landed must not veto the rescan that finds the point's own district in the appended features. Latent until now (nothing scanned the union between selection and append); the new overlay-.then highlight catch-up exposed it, and the county-dispatch smoke check ("late county appends to the drawing and highlights the selected district") caught it before ship.

  • Changed cached-loaders: makeCached loaders expose .cached() (the resolved value, or null while unloaded/in flight — without it a query cannot tell "answer locally for free" from "worth a point query"). makeCachedLoader attaches .atPoint automatically, so every Socrata boundary layer in every fork goes point-first with no per-layer wiring.

  • Changed socrata-loader / arcgis-loader: the point-query fetchers — loadSocrataPointGeoJSON (SoQL intersects on the probed geometry column; only the primary route takes $where, and a legacy dataset that nulls geometry there fails hasUsableGeometry into the full-set fallback, so the route-walk machinery keeps owning that failure mode) and loadArcGISPointGeoJSON (point esriSpatialRelIntersects on any FeatureServer/MapServer layer; optional where for parity with a filtered full load). Both reject on empty for the same honesty reason queryFeatureAt re-tests locally.

  • Changed polygon-factory, school-zone-factory, cps-network-factory, chamber-factory: queries route through queryFeatureAt. For the chamber factory only the boundary half of the Promise.all changes — rosters stay whole-file, they are the small half of the join.

  • Changed layer-registry + overlay-cards: the two consequences of a card that can now resolve BEFORE the full geometry. (1) The overlay-load .then re-runs the highlight pass (and relationship outlines) when the full set lands, so the selected district lights up the moment its layer finishes drawing — the same catch-up the county dispatcher's drawAppendedCountyFeatures does when a late county arrives. (2) A new rt.resultSeq records the selection whose verified result the card currently shows; the overlay-load .catch no longer replaces such a card with the boundaries error (the answer outranks the drawing — the same recorded tradeoff the county dispatcher makes for a failed county: card/query keeps working, the overlay waits for a reload). Both were dead paths before this release, because query and overlay rode one promise and could not diverge.

Fork adoption is a clean bump. No METRO variable is required, no generator output shape changed, and with no .atPoint declared anywhere a fork's behavior is unchanged to the user. Turning the speed on for a fork's own heavy loaders is one line each, entirely outside the engine: myLoader.atPoint = function (point) { return loadArcGISPointGeoJSON(layerUrl, point, outFields); }; (Chicago wired its six TIGERweb statewide loaders, the ZCTA layer, CPD's district/beat services, and Cook's commissioner districts this way — the reference patterns are all fork-side in index.html). NYC's paged election-districts loader is the canonical candidate: five serial pages, one point query. One caution from Chicago's own wiring: a loader that STAMPS derived properties onto features at load time (Chicago's suburban municipalWardEntry geometry, with its dx* fields) must NOT get a naive .atPoint — the raw server features lack the stamps its card reads — so its queries stay on the full path deliberately.

Live-verified before shipping (Loop ground-truth point): TIGERweb township point query → 1 correct feature, 133 KB in 0.74 s against the 14.5 MB statewide download; Socrata ward intersects → 1 feature, same properties as the full route; Cook County GIS commissioner districts → 1 feature, district 2. Same layer, same outFields, same property schema either way — hover/card parity holds because both read the same fields.

Engine v1.0.22

Choose a tag to compare

@github-actions github-actions released this 01 Aug 19:29
Immutable release. Only release title and notes can be modified.
c356fc8

Stops the data-gaps panel telling a reader outside the covered area that nothing is missing where they clicked — outside the coverage, everything is. Found by a reader with a pin in Jo Daviess County: the only gray-washed county left on Chicago's northern edge answered "Nothing missing where you clicked." Two changed blocks, no new blocks — adopting forks need no fence seeding and nothing outside the fences.

  • Changed scope-mask: the coverage outline rings the mask already dissolves for the gray wash are now RETAINED in a module-scope coverageMaskRings (null until the mask loads) instead of being discarded after drawing. No behavioural change to the wash itself; this is one assignment, placed after the existing dissolve-or-fallback logic so the retained rings are exactly what the wash drew.

  • Changed coverage-gaps: a new pointInCoverage(point) tests the pin against those retained rings (even-odd across the flat ring list — pointInGeometry already handles outers-plus-holes this way), returning true / false / null-for-unknown. The section-header logic gains one honest branch: when no gap matched the pin AND the pin is outside the covered area, the header reads "Where you clicked is outside the covered area — the recorded gaps:" instead of "Nothing missing where you clicked — elsewhere:". The "nothing missing" wording now also requires pointInCoverage === true — it previously required only that some gap was mappable, which let an out-of-coverage pin claim a clean bill.

Null fails safe, in both directions. If the mask never loads (its fetch failed, or the panel opens before idle work runs), pointInCoverage returns null and the header falls back to the wording that claims neither — "Known gaps". A fork whose mask is absent entirely keeps exactly its current behaviour.

Why the rings, not a coverage file. The obvious design was a METRO constant naming a coverage-outline URL for the panel to fetch — and it would have required every sibling to add a variable outside the fence before the block could run, which a bump PR does not do (the v1.0.21 lesson, verbatim). The mask already receives each fork's coverage loader from BOOT and already dissolves the outline; reading what it computed costs nothing and cannot disagree with the wash the reader is looking at.

The fork-data half is not in this release. Chicago also shipped <slug>-county-outline.json files for three counties it does NOT serve (Jo Daviess, Bureau, Mercer) purely so their recorded gaps attach to their ground in the panel's "Where you clicked" section — that is fork data riding the existing slug contract, no engine involvement. A fork adopting this release gets the honest out-of-coverage header immediately; making an unserved county's gap locally visible additionally needs that fork to ship the county's outline and tag the gap with its slug.

Engine v1.0.21

Choose a tag to compare

@github-actions github-actions released this 31 Jul 14:27
Immutable release. Only release title and notes can be modified.
ce123ea

Adds the map's zoom level to the shareable URL, so a refreshed, copied or embedded link reopens at the view it was shared at. One changed block, no new blocks — adopting forks need no fence seeding and nothing outside the fence.

  • Changed permalink: the hash gains &zoom=N. Emitted only when the map has moved off the fork's boot zoom, so an untouched map still produces a clean, hash-free URL and existing links are unaffected. zoomend refreshes the hash — point and layer changes already called syncUrlHash, but a zoom changes no app state, only the view, so it had no hook. On restore, an unparseable or out-of-range zoom is ignored rather than clamped: a link made in a fork with different zoom limits should fall back to the receiving fork's default view, not to its nearest edge.

The boot zoom is read from the map, not configured. var bootZoom = map.getZoom() runs inside the block, which is safe because nothing between map creation and the permalink block changes the zoom, and applyStateFromHash() runs at the end of boot. That choice is what keeps this a bytes-only bump: a DEFAULT_ZOOM METRO constant would have been the obvious design, and it would have required every sibling to add a variable outside the fence before the new block could run — which a bump PR does not do, so the forks would have broken on a ReferenceError at boot. When an engine block needs a fork-specific value, prefer reading it from something every fork already has over introducing a constant every fork must be taught.

Restoring a point and a zoom together needs skipPan. setSelectedPoint's pan is animated and goes to at least zoom 15. An animation in flight settles after anything applied synchronously afterwards, so applying the shared zoom post-hoc was silently overwritten by the pan that was already running — #point=…&zoom=9 restored at 15. The block now passes { skipPan: true } when the link carries its own zoom and frames the view itself. Measured in a browser, not reasoned about: the first implementation looked correct and failed one of thirteen checks.

Note for readers of the resulting URLs: because selecting a point auto-zooms to 15, point permalinks now carry &zoom=15. That is accurate — the map is at 15 — and it reproduces the view exactly.

Not in this release: Chicago also widened its own map from minZoom: 9, maxZoom: 18 to 7..19, because its served area now spans 4.29° of latitude and could not be seen whole at zoom 9. That is on the map-construction line, outside every fence, and is Chicago-only — each fork sets its own limits to fit its own coverage. A fork adopting this release should check that its minZoom still lets a reader see everything it serves, since the permalink can now carry a zoom that its own map would refuse.

Engine v1.0.20

Choose a tag to compare

@github-actions github-actions released this 30 Jul 14:54
Immutable release. Only release title and notes can be modified.
72f398b

Fixes a line in the Data gaps panel that could claim something untrue in a fork with no county outlines. One changed block, no new blocks — adopting forks need no fence seeding.

  • Changed coverage-gaps: the "nothing here" section heading now requires that some gap was mappable in the first place. Previously, selecting a point with no matching gaps always produced "Nothing missing where you clicked — elsewhere:". That is true for Chicago, whose gaps are county-tagged: an unmatched point genuinely has none of them. It is false for a fork that tags no gap with a county — NYC's and SF's gaps all apply fork-wide, so the line told a reader their location was clean while listing three gaps that cover it. Those forks now get the neutral "Known gaps".

How it surfaced. Adding the panel's assertions to the sibling smoke tests (NYC #78, SF #43) printed the section labels, and the label for a fork with no outlines was visibly wrong. Nothing failed — the assertions check the section count, which was correct — so this is a case where writing the test found the bug by making the behaviour legible, not by going red.

The distinction is worth stating because it recurs: an engine block written against the reference fork's data shape can be correct there and misleading elsewhere. The guard is to ask what the block claims when the fork-specific input is empty. Here the input is counties, and empty means "cannot answer", not "answer is none".

Engine v1.0.19

Choose a tag to compare

@github-actions github-actions released this 30 Jul 02:51
Immutable release. Only release title and notes can be modified.
52e1b75

Ships the Data gaps panel — the app's inventory of what it cannot answer, and the source-submission path that invites readers to close it. Three NEW blocks, so this release needs sibling fence seeding (see below) before its bump PRs can merge.

  • New coverage-gaps: reads data/app/coverage-gaps.json and renders the panel. Location-aware — with a point selected it leads with the gaps that apply there, tested against the <slug>-county-outline.json files a fork already ships for its coverage tests. Every gap offers a prefilled GitHub issue-form link, so the reporter never copies an identifier by hand.
  • New gaps-html: the footer trigger button.
  • New gaps-modal-html: the panel markup. Reuses the feedback modal's shell classes rather than introducing a second modal idiom; only the width and the list inside are new (those styles are additions to the existing styles-footer block, not a fourth new block).

Adopting fork requirements. Two, and the first is mandatory before the bump:

  1. Seed the three fence pairs (gaps-html, gaps-modal-html, coverage-gaps) at the reference placement — button beside the feedback button in the footer, modal after the feedback modal, JS immediately before the feedback block. apply_engine.py fills existing fences only; without the pairs the bump fails with "index.html is missing ENGINE block(s) the manifest requires".
  2. Supply data/app/coverage-gaps.json, keyed by gap id, and register it in the worksheet's roster list. The block degrades honestly without it — the panel shows "couldn't load the gap list" — but a fork shipping the button with no data is worse than not shipping the button, so seed the file in the same PR. Chicago generates it from a GUIDEBOOK:BEGIN gaps block via scripts/build_coverage_gaps.py, whose --check is the drift gate; a fork can adopt the same block (add its metro key) or author the file directly.

The new-block trap, now recorded in both directions. docs/ENGINE_SYNC.md already warned that a release shipping new blocks breaks sibling bumps until their fences are seeded ("missing ENGINE block(s) the manifest requires"). This release found the mirror image the hard way: adding a new block breaks the reference fork's own deploy the moment it merges, because apply_engine.py splices the pinned release and fails with "index.html has ENGINE block(s) the manifest does not know". Nothing in PR CI catches it — check_engine_parity.py lints Chicago's fences against Chicago's file and is perfectly happy; the assemble step is the first thing that compares them to the pinned manifest. So a new block is not shippable in one PR: the block lands, the deploy fails, and the release that ships it is what repairs the deploy. Cut the release in the same sitting.

Engine v1.0.18

Choose a tag to compare

@github-actions github-actions released this 29 Jul 16:33
Immutable release. Only release title and notes can be modified.
9c7c8ec

Second and final correction to v1.0.16's adoption break. The engine bundle is byte-identical to v1.0.16 and v1.0.17 — same sha256 13e3ffa0a213, same 50+2 blocks, no JS change in any of the three. Only generate_metro_files.py moves.

  • Changed generate_metro_files.py: POI_GEOCODE_BBOX is emitted only when the worksheet declares poi_geocode_bbox. A fork that doesn't declare it gets a metro-config region byte-identical to the pre-key generator — verified by rendering both and comparing.

Why v1.0.17 wasn't enough. v1.0.17 made the key optional and defaulted the value to metro_bbox, which fixed schema validation — and then failed the siblings a second time, one gate later:

generate-metro-files: FAIL — 1 region(s) drifted from the worksheet.

The consumer engine-bump.yml applies the release and copies the shared scripts but never runs the generator; it only validates afterwards. So a generator emitting a new line — even one whose value reproduces the old behaviour — puts every sibling's index.html out of sync with its own worksheet, and the drift gate fails the bump PR.

The rule, now stated correctly. "Default to the old value" is too weak. A shared-script change must be inert in a fork that has not opted in — byte-identical output, not merely equivalent behaviour. Gate any new emitted line behind if "<key>" in w: and keep the key optional. Neither failure mode is observable from Chicago: Chicago's worksheet carries whatever the change needs, so its own gates stay green, and the release job's self-checks exercise the bundle, which never reads a worksheet. Recorded in docs/ENGINE_SYNC.md under the tooling section.

The eventual structural fix is for engine-bump.yml to regenerate after applying, which would make generator changes safe by construction. That file lives in the sibling repos, so it is a coordinated change rather than a Chicago one, and is left as the open item.

For adopters this release is a no-op beyond the lockfile: no worksheet edit, no regeneration, no behaviour change. The v1.0.16 guidance is unchanged and still worth acting on — poiGeocodeRequest is fork-level code, and its bound belongs to the widest layer the fork ships, not to its metro. Declare poi_geocode_bbox if and when a layer reaches past the metro; until then nothing is emitted and nothing changes.

Engine v1.0.17

Choose a tag to compare

@github-actions github-actions released this 29 Jul 16:11
Immutable release. Only release title and notes can be modified.
2c04b39

Fixes an adoption break in v1.0.16. The engine bundle is byte-identical to v1.0.16 — same sha256 13e3ffa0a213, same 50+2 blocks, no JS change at all. What changes is the consume-side scripts the release also ships.

  • Changed metro-worksheet.schema.json: poi_geocode_bbox is no longer in required. It stays a documented optional property.
  • Changed generate_metro_files.py: POI_GEOCODE_BBOX falls back to metro_bbox when the worksheet doesn't declare poi_geocode_bbox, and the emitted comment says which case applies.

What went wrong. v1.0.16 introduced poi_geocode_bbox as a required worksheet key. The release ships the schema and generator as assets, so both sibling bump PRs picked up the new requirement against worksheets that had no such key, and their drift gate failed immediately and identically:

generate-metro-files: FAIL — worksheet does not validate against the schema:
  'poi_geocode_bbox' is a required property (at <root>)

Nothing was wrong with the engine bundle; the fan-out simply could not merge. Both bump PRs were closed and replaced by this release's.

The rule this establishes: a new REQUIRED worksheet key is a breaking change for every fork, and the release pipeline will not catch it. The CHI-side gates all passed — CHI's own worksheet had the key, so generate_metro_files.py --check was green, and the release job's self-checks build and apply the bundle, which never sees the worksheet. The break is only observable in a fork. So: new worksheet keys are optional with a default that reproduces the old behaviour, unless every fork's worksheet is updated in the same release. Where the default is genuinely the right answer — as here, since a fork whose layers are all city-scoped wants exactly metro_bbox — optional is not a compromise, it is the correct design.

Forks adopting this release get an emitted POI_GEOCODE_BBOX equal to their existing METRO_BBOX and therefore no behaviour change. The v1.0.16 guidance still stands and is still worth acting on: poiGeocodeRequest is fork-level code, and its bound belongs to the widest layer the fork ships, not to its metro. Set poi_geocode_bbox if and when a layer reaches past the metro.

Engine v1.0.16

Choose a tag to compare

@github-actions github-actions released this 29 Jul 15:51
Immutable release. Only release title and notes can be modified.
e5119a9

Fixes office-address geocoding: the address cleaner missed three unit shapes, and the search box never called it at all. Changed blocks only — no new blocks, no fence-set change, no fork adoption required.

  • Changed poi-geocode: cleanPoiAddress gained three rules. (1) Letter units — Room J, Suite B, Building B — which the existing rule missed because it required [0-9] after the token; bounded to a single letter plus optional digits (Room A5) so it can only ever eat the designator, never the word after it (the city name usually sits there, unpunctuated). (2) PO Box <n> in all its punctuations, including the parenthesized form (175 Water St., (P.O. Box 205), Burlington) and a trailing period (P.O. Box 226. LEWISTOWN). (3) A separator dash orphaned by a removed floor (69 W. Washington St. - 6th Floor → … St. -), anchored to a comma or end-of-string so hyphenated names (Winston-Salem) and hyphenated house numbers (88-11 Sutphin Blvd) are untouched. All three sit behind the same (\S) guard the numeric rules use, so a leading #10 Public Square and a box-only address are still left alone.
  • Changed geocoder-search: runGeocodeSearch retries a zero-result search with cleanPoiAddress(q) when cleaning changes the string, ahead of the sibling-metro fallback.

Why the search box needed this at all. cleanPoiAddress has existed in poi-geocode for months and the search path never called it — the typed string went to the provider verbatim. So the same fragment the office pins had handled all along still sank the search box, which is what users actually hit, because people paste addresses off letterheads.

Why retry, not clean up front. Cleaning every query would be simpler and is measurably no better: on 12 paired queries (same address with and without the fragment) the as-typed form scores 7/12, the cleaned form 9/12, and the hand-stripped form also 9/12 — so cleaning closes the entire gap the fragment opens, and nothing beyond it. Retrying keeps two properties that unconditional cleaning gives up: a search that works today cannot regress, and a genuine place name that merely looks like a unit (The Room 43) is only ever cleaned after the as-typed query has already come back empty. It costs one extra request on a miss — the same shape as the sibling-metro fallback it runs ahead of, and nothing on the happy path.

Measured, not assumed. Against the source fork's whole shipped corpus (409 addresses in data/app/, 37 carrying a unit fragment): 63 rewrites, zero residual debris, zero house numbers or ZIPs lost. Hit rate on the unit-bearing set went 5/37 → 35/37, though most of that belongs to a fork-level change shipping alongside this one and NOT part of the engine — the POI provider was bounding every lookup to the metro bbox while a statewide layer named addresses outside it. Forks adopting this release should check the same thing in their own poiGeocodeRequest: the bound belongs to the widest layer the fork ships, not to its metro. Chicago moved it to a POI_GEOCODE_BBOX METRO-config value; a fork whose rosters are all city-scoped needs no change.

Why not a different geocoder. The question this started as. On the same corpus the US Census one-line geocoder scores 35/37 with no cleaning whatsoever — i.e. exactly what the cleaned Nominatim path now scores — so the remaining headroom no longer justifies a second provider. It also fails differently: it needs a complete address, where a viewbox-bounded lookup rescues a bare 4314 S. Cottage Grove Ave., and it sends no CORS header, so a static page can reach it only via JSONP. Chaining the two would reach 55/57 if that ever becomes worth the trust widening; recorded, not built.

Guarded in smoke_test.mjs: the cleanPoiAddress table grew 7 → 14 cases (each new shape, plus the guards it must not trip), and two new checks drive a stubbed geocoder — deterministic, no external network — proving the retry fires on a unit-fragment miss and does not fire when there is nothing to clean.