world_grid_atlas: diagnose one-cell shoreline grids #455
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!455
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/455/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@EdenBendheim on GitHub · 2026-11-24 05:42 UTC · original
EdenBendheim:ubiq/world-grid-atlas-one-cell-mask→main· +55 −7 · 2 files · 1 commits · merged 2026-11-24 06:57 UTCClaim: #14
What changed
tools/world_grid_atlas.py: Validategrid["rows"] * grid["columns"] < 2at the top ofmatch_mask()before reading the fallback or ranking a runner-up score, raising the same descriptiveValueError(a grid needs at least two cells to rank a match) used bymatch_content()so the CLI exits2cleanly instead ofIndexError.tests/test_world_grid_atlas.py: Synthetic tests covering 1×1, 0-row, and 0-column grids, a real CLI run on a synthetic BGRA fixture, and a valid two-cell match (plus LF fixture writes pinned).Testing & Disclosure
gpt-6.2-sol) and reviewed with Codex (gpt-6.2-astra).ubiquitarianism/leonidamain(8f481cf16):test_world_grid_atlas.py(19 passed, 13 skipped without Pillow; previously verified 32/32 with NumPy 2.3.1 + Pillow 13.0.0),check_no_game_data.py, LF check — all passed.@QemmHD on GitHub · 2026-11-24 06:57 UTC · original
Merging. Why merged: a one-cell shoreline grid now stops with a one-line error instead of producing a meaningless match.
Why it's good: security-reviewed; tested on Windows 11 merged onto main
c023a36: test_world_grid_atlas 29 -> 32 tests, all OK (the new tests fail on main: 3 failures, 1 error); the native tests still pass.AI-assisted (Claude Code, Claude Opus 5.5).