navmesh_cell_fit: measure the baseline across all sampled control tiles #2446
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!2446
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/navmesh-control-full-baseline"
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?
Pull request successfully merged and closed
Claimed in the coordination issue as: NAVMESH-CONTROL-FULL-BASELINE
What and why
The reported fit count covered every sampled static tile, while its chance baseline only covered the first twenty. Compute the mean over all measurable sampled tiles, weighted by how often each horizontal extent occurs. Cache the expensive per-axis calculations and exclude tiles without a measurable axis from the mean. A regression changes the extent after tile twenty and checks the weighted result, reversed input order and the all-flat case.
Tested
Windows, Python 3.14.7, synthetic fixtures.
python -I tests/test_navmesh_cell_fit.pygit diff --checkpassed.GPUs tested: N/A (CPU-only).
AI-assisted: Yes.
Checklist
#2446 | head aaabf497bee996b60375a12d4db10ce702fa6d41 (merged cleanly with main 02f71ccfe) |
python -I tests/test_navmesh_cell_fit.py| red on main: FAILED (failures=1) in 5 tests (baseline_mean0.25 vs expected 0.2619) | green on PR+main: Ran 5 tests, OK | Windows 11, Python 3.12.10 | AI-assisted: yesDiff reviewed across both touched files (
summarise_controlweights horizontal-extent frequencies across all measurable sampled tiles viaCounter+lru_cache, excludes zero-extent flat tiles, andgit merge origin/mainat02f71ccfeapplies cleanly with zero conflicts). Also verified on mergedPR+main:python -I tests/test_runner_calls_all_tests.py(3/3 OK),python -I tests/test_text_write_line_endings.py(3/3 OK),git diff --check, andscripts/check_no_game_data.py(clean).Red/green: tests/test_navmesh_cell_fit.py fails 1 assertion on main (the control baseline mean only uses the first 20 tiles) and passes with the PR (cloud run on main 7daa4a4).
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main 7daa4a4a5 in GitHub Actions: no new failure.
AI-assisted (Claude Code, Claude Opus 5.5)