Skip to content

fix: remove license/PMPL-1.0.txt to break LICENSE / license/ case collision - #199

Merged
hyperpolymath merged 1 commit into
mainfrom
claude/fix-license-case-collision
Apr 30, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
claude/fix-license-case-collision

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

Fixes a permanent D LICENSE (or D license/PMPL-1.0.txt) in git status on a fresh Windows clone, caused by two tracked paths colliding under case-insensitive filesystem semantics:

  • LICENSE — top-level file (162 lines, Palimpsest licence preamble)
  • license/PMPL-1.0.txt — 162-line file inside a license/ directory

When git checks out the tree on Windows, the license/ directory and the LICENSE file map to the same case-insensitive name, so only one survives in the working tree.

Why deletion is the right fix

license/PMPL-1.0.txt is content-identical to the canonical LICENSES/PMPL-1.0-or-later.txt (same 162-line body), differing only in the SPDX header on line 1:

-SPDX-License-Identifier: MPL-2.0-or-later          # license/PMPL-1.0.txt
+SPDX-License-Identifier: PMPL-1.0-or-later          # LICENSES/PMPL-1.0-or-later.txt

The duplicate also carried the wrong SPDX identifier (declared MPL-2.0-or-later while actually being the PMPL text). So removing it resolves three things at once: the case collision, the duplication, and the incorrect SPDX header.

Changes

  • Delete license/PMPL-1.0.txt (the enclosing license/ directory becomes untracked since git tracks files, not dirs).
  • Update README.adoc:19 to point at the canonical LICENSES/PMPL-1.0-or-later.txt.

Out of scope

The existing audit at docs/governance/CRG-AUDIT-2026-04-18.adoc:93 flags "three parallel license-text locations" (LICENSES/, license/, licenses/). After this PR, two remain — the LICENSES/ vs licenses/ case collision (uppercase vs lowercase directory) is a separate, larger consolidation. The audit doc is a snapshot dated 2026-04-18 and is not modified by this PR.

Test plan

  • git clone on a Windows machine no longer shows D LICENSE in git status.
  • LICENSES/PMPL-1.0-or-later.txt retains the canonical PMPL text (verified content-identical to deleted file's body).
  • No other inbound references to license/PMPL-1.0.txt (verified by grep — only README.adoc:19 referenced it; the audit doc reference is descriptive of the directory's existence, not a path link).
  • After merge: GitHub's licence detection still recognises LICENSE (top-level file) and LICENSES/PMPL-1.0-or-later.txt (SPDX-compliant directory).

…lision

On Windows (case-insensitive filesystem) a fresh clone produced a
permanent `D LICENSE` in `git status` because two tracked paths
collided:

- `LICENSE` (top-level file, 162 lines, Palimpsest licence preamble)
- `license/PMPL-1.0.txt` (162 lines)

When git checks out the tree on Windows, the `license/` directory and
the `LICENSE` file map to the same case-insensitive name, so only one
survives in the working tree. Whichever wins causes the other to
appear deleted in `git status`.

Investigation showed `license/PMPL-1.0.txt` is content-identical to
the canonical `LICENSES/PMPL-1.0-or-later.txt` (same 162 lines body),
differing only in the SPDX header on line 1: `license/PMPL-1.0.txt`
declared `SPDX-License-Identifier: MPL-2.0-or-later` while the
canonical version correctly declares `PMPL-1.0-or-later`. So the
duplicate file additionally carried a wrong SPDX identifier.

Changes:
- Remove `license/PMPL-1.0.txt` (the case-colliding duplicate). The
  enclosing `license/` directory becomes empty and git stops tracking
  it.
- Update `README.adoc:19` to point at the canonical
  `LICENSES/PMPL-1.0-or-later.txt` rather than the removed file.

Out of scope:
- The audit at `docs/governance/CRG-AUDIT-2026-04-18.adoc:93` already
  flagged "three parallel license-text locations". After this PR, two
  remain (`LICENSES/` and `licenses/`). The `LICENSES/` vs `licenses/`
  case collision (uppercase vs lowercase directory) is a separate
  consolidation — not addressed here. The audit is a snapshot dated
  2026-04-18 and is not modified.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@hyperpolymath
hyperpolymath merged commit 16e36a4 into main Apr 30, 2026
44 of 69 checks passed
@hyperpolymath
hyperpolymath deleted the claude/fix-license-case-collision branch April 30, 2026 06:41
hyperpolymath added a commit that referenced this pull request Apr 30, 2026
## Summary

Closes the second case-collision flagged in
`docs/governance/CRG-AUDIT-2026-04-18.adoc:93` ("three parallel
license-text locations"). After #199 (`license/` removal) and this PR,
only `LICENSES/` remains.

Two tracked directories at the repo root had case-only-different names:

- `LICENSES/` (uppercase) — 2 files: `MPL-2.0.txt`,
`PMPL-1.0-or-later.txt`
- `licenses/` (lowercase) — 4 files: `MPL-2.0-EN.txt`, `MPL-2.0-NL.txt`,
`PALIMPSEST-EN.txt`, `PALIMPSEST-NL.txt`

On Windows (case-insensitive filesystem) the two paths fold together;
only one set of files survives in the working tree, hiding the other. On
case-sensitive systems both exist, but parallel licence-text directories
with different case is itself confusing.

**No filename collisions between the two directories** — each of the 4
lowercase files has a distinct name from the 2 uppercase files, so
consolidation is a clean directory rename.

## Changes

- `git mv` each of the 4 files from `licenses/<name>` →
`LICENSES/<name>`. The `licenses/` directory becomes untracked.
- `docs/STANDARDIZATION-CHECKLIST.scm:20` — required-file path
`licenses/MPL-2.0-EN.txt` → `LICENSES/MPL-2.0-EN.txt`.
- `docs/ADA-TUI-AUDIT-SPEC.adoc:94` — required-directory entry
`licenses/` → `LICENSES/`.

## Independence from #199

Both PRs are scoped to non-overlapping line edits:

- #199 touches `LICENSE`, `license/PMPL-1.0.txt`, and `README.adoc:19`.
- This PR touches `licenses/*`, `LICENSES/*` (additions),
`docs/STANDARDIZATION-CHECKLIST.scm:20`,
`docs/ADA-TUI-AUDIT-SPEC.adoc:94`.

Whichever merges first, the other should rebase cleanly.

## Out of scope

- `docs/governance/CRG-AUDIT-2026-04-18.adoc` is a dated snapshot
(2026-04-18) and is **not** modified — its description was accurate as
of its date.
- `README.adoc:546` references `https://opensource.org/licenses/MPL-2.0`
— that's the OSI URL, not a repo path, so left untouched.

## Test plan

- [x] `git ls-files | grep -i license` shows only `LICENSE` and
`LICENSES/...` after this PR (no `licenses/` paths).
- [x] No filename collisions between source and destination
(`MPL-2.0.txt` vs `MPL-2.0-EN.txt` are distinct).
- [x] Inbound references updated (only two found via grep:
`STANDARDIZATION-CHECKLIST.scm:20`, `ADA-TUI-AUDIT-SPEC.adoc:94`).
- [ ] After #199 also merges: `git status` is clean on a fresh Windows
clone (no `D LICENSE` and no hidden directory contents).

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant