[PR #1452] world_interior_names: refuse a report inside another case of the carve folder (WORLD-INTERIOR-NAMES-CASE-INSIDE) #1481

Open
opened 2026-11-26 20:21:24 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1452
Author: @Dashhhhhhhh
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: fix/world-interior-names-case-inside


📝 Commits (1)

  • 3e5f2cc world_interior_names: refuse a report inside another case of the carve folder.

📊 Changes

2 files changed (+31 additions, -4 deletions)

View changed files

📝 tests/test_world_interior_names.py (+22 -0)
📝 tools/world_interior_names.py (+9 -4)

📄 Description

Claimed in the coordination issue as: WORLD-INTERIOR-NAMES-CASE-INSIDE

What and why

tools/world_interior_names.py _inside compared the carve folder and --out with os.path.normcase(os.path.realpath()) and commonpath. On macOS that keeps the case you typed. --out inside a folder created as carved but spelled CARVED was accepted, so the report could be written where a later scan reads carved files.

The check now uses report_paths.path_key. Pull request #717 also edits this file, for the 20-bit block number, and does not touch this check.

Tested

python -I tests/test_world_interior_names.py (28 tests) on macOS APFS. The new test refuses CARVED/r.json for a folder created as carved. No game files.

GPUs tested: n/a

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.
  • A new translator rule is in the contract table of docs/design.md (not a translator change).

Made with Cursor


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1452 **Author:** [@Dashhhhhhhh](https://github.com/Dashhhhhhhh) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/world-interior-names-case-inside` --- ### 📝 Commits (1) - [`3e5f2cc`](https://github.com/ubiquitarianism/leonida/commit/3e5f2cc66bbb44b0f762c8beefc86e288ca00e83) world_interior_names: refuse a report inside another case of the carve folder. ### 📊 Changes **2 files changed** (+31 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_world_interior_names.py` (+22 -0) 📝 `tools/world_interior_names.py` (+9 -4) </details> ### 📄 Description Claimed in the coordination issue as: WORLD-INTERIOR-NAMES-CASE-INSIDE ### What and why `tools/world_interior_names.py` `_inside` compared the carve folder and `--out` with `os.path.normcase(os.path.realpath())` and `commonpath`. On macOS that keeps the case you typed. `--out` inside a folder created as `carved` but spelled `CARVED` was accepted, so the report could be written where a later scan reads carved files. The check now uses `report_paths.path_key`. Pull request #717 also edits this file, for the 20-bit block number, and does not touch this check. ### Tested `python -I tests/test_world_interior_names.py` (28 tests) on macOS APFS. The new test refuses `CARVED/r.json` for a folder created as `carved`. No game files. GPUs tested: n/a AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption. - [ ] A new translator rule is in the contract table of `docs/design.md` (not a translator change). Made with [Cursor](https://cursor.com) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1481
No description provided.