[P1] merge.py always writes; SECTOR_REPO fallback can hit the VATPRC tree #1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Reviewed commit:
b8804851aca167ab29de837459aaae8de507bcaa.Priority: P1
Observed behavior
Two related foot-guns in the merge tools:
tools/merge.pyhas no dry-run /--apply. Sector's other scripts default to dry-run.python merge.py ZGZUwritesSector/<FIR>/Plugins/GroundMap/ground.jsonimmediately.tools/common.py_default_repo()uses a siblingSector/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.sctnames would makemerge.pycreatePlugins/GroundMap/inside somebody else's package, unreverting. The monorepoCLAUDE.mddocuments this collision.Expected behavior
--applyto write, like Sector.~/Documents/Dev/Sector. IfSECTOR_REPOis unset and there is no sibling, exit with the export line.Source references
tools/common.py:18-33tools/merge.py— no--applyCLAUDE.md— “Local path assumption — set SECTOR_REPO”Validation limits
Source review. merge.py was not run against the VATPRC tree.