[P1] merge.py always writes; SECTOR_REPO fallback can hit the VATPRC tree #1

Closed
opened 2026-10-22 02:20:33 +00:00 by jhl-hk · 0 comments
Owner

Reviewed commit: b8804851aca167ab29de837459aaae8de507bcaa.

Priority: P1

Observed behavior

Two related foot-guns in the merge tools:

  1. tools/merge.py has no dry-run / --apply. Sector's other scripts default to dry-run. python merge.py ZGZU writes Sector/<FIR>/Plugins/GroundMap/ground.json immediately.

  2. tools/common.py _default_repo() uses a sibling Sector/ if present, otherwise ~/Documents/Dev/Sector. On this machine that fallback is a live VATPRC checkout (not a git repo): ZBPE ZGZU ZHWH …, vatprc-launcher-installer.exe. Matching .sct names would make merge.py create Plugins/GroundMap/ inside somebody else's package, unreverting. The monorepo CLAUDE.md documents this collision.

Expected behavior

  • Default merge to dry-run; require --apply to write, like Sector.
  • Do not silently fall back to ~/Documents/Dev/Sector. If SECTOR_REPO is unset and there is no sibling, exit with the export line.

Source references

  • tools/common.py:18-33
  • tools/merge.py — no --apply
  • monorepo CLAUDE.md — “Local path assumption — set SECTOR_REPO”

Validation limits

Source review. merge.py was not run against the VATPRC tree.

Reviewed commit: `b8804851aca167ab29de837459aaae8de507bcaa`. Priority: P1 Observed behavior Two related foot-guns in the merge tools: 1. `tools/merge.py` has no dry-run / `--apply`. Sector's other scripts default to dry-run. `python merge.py ZGZU` writes `Sector/<FIR>/Plugins/GroundMap/ground.json` immediately. 2. `tools/common.py` `_default_repo()` uses a sibling `Sector/` if present, otherwise `~/Documents/Dev/Sector`. On this machine that fallback is a live **VATPRC** checkout (not a git repo): `ZBPE ZGZU ZHWH …`, `vatprc-launcher-installer.exe`. Matching `.sct` names would make `merge.py` create `Plugins/GroundMap/` inside somebody else's package, unreverting. The monorepo `CLAUDE.md` documents this collision. Expected behavior - Default merge to dry-run; require `--apply` to write, like Sector. - Do not silently fall back to `~/Documents/Dev/Sector`. If `SECTOR_REPO` is unset and there is no sibling, exit with the export line. Source references - `tools/common.py:18-33` - `tools/merge.py` — no `--apply` - monorepo `CLAUDE.md` — “Local path assumption — set SECTOR_REPO” Validation limits Source review. merge.py was not run against the VATPRC tree.
Sign in to join this conversation.
No labels
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
CeruleanAviationNetwork/Ground#1
No description provided.