navmesh_cell_fit: protect scanned vehicle documents from output aliases #2445

Open
github-bot wants to merge 1 commit from github-bot/gh-2445 into main AGit
Owner

@⁠kirigayakazima on GitHub · 2026-11-27 10:17 UTC · original
kirigayakazima:codex/navmesh-cell-fit-carve-alias → main · +28 −1 · 2 files · 1 commits · open

Claimed in the coordination issue as: NAVMESH-CELL-FIT-CARVE-ALIAS

Depends on: #952 (textual conflict in argument handling if both branches land; this change builds directly on main).

What and why

The archive was protected from output collisions, but scanned vehicle documents under --common could still be overwritten. Refuse output aliases of those files before reading the carve. A readable synthetic archive reproduced exit 0 with the vehicle document replaced via its hard link. The fixed CLI returns 2 and preserves its bytes. The regression also covers a direct path.

Tested

Windows, Python 3.14.7, synthetic fixtures.

  • python -I tests/test_navmesh_cell_fit.py
  • python -I tests/test_report_paths.py
  • Changed-path game-data scan and git diff --check passed.
  • Shared main baseline: 6,374 translator semantic tests passed across 500 files. The combined five-topic checkout passed 172 focused tests.

GPUs tested: N/A (CPU-only).

AI-assisted: Yes.

Checklist

  • Based on current main and merges cleanly with the tested base.
  • One topic.
  • No game data, keys or decryption.
  • Translator contract table: N/A.
**@⁠kirigayakazima** on GitHub · 2026-11-27 10:17 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2445) `kirigayakazima:codex/navmesh-cell-fit-carve-alias` → `main` · +28 −1 · 2 files · 1 commits · open Claimed in the coordination issue as: [NAVMESH-CELL-FIT-CARVE-ALIAS](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) Depends on: #952 (textual conflict in argument handling if both branches land; this change builds directly on main). ### What and why The archive was protected from output collisions, but scanned vehicle documents under --common could still be overwritten. Refuse output aliases of those files before reading the carve. A readable synthetic archive reproduced exit 0 with the vehicle document replaced via its hard link. The fixed CLI returns 2 and preserves its bytes. The regression also covers a direct path. ### Tested Windows, Python 3.14.7, synthetic fixtures. - `python -I tests/test_navmesh_cell_fit.py` - `python -I tests/test_report_paths.py` - Changed-path game-data scan and `git diff --check` passed. - Shared main baseline: 6,374 translator semantic tests passed across 500 files. The combined five-topic checkout passed 172 focused tests. GPUs tested: N/A (CPU-only). AI-assisted: Yes. ### Checklist - [x] Based on current main and merges cleanly with the tested base. - [x] One topic. - [x] No game data, keys or decryption. - Translator contract table: N/A.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 10:34:46 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2445/head:github-bot/gh-2445'
git switch 'github-bot/gh-2445'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2445'
git switch 'github-bot/gh-2445'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2445'
git switch 'github-bot/gh-2445'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2445'
git switch 'main'
git merge --squash 'github-bot/gh-2445'
git switch 'main'
git merge --ff-only 'github-bot/gh-2445'
git switch 'main'
git merge 'github-bot/gh-2445'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.