Skip to content

new(model-scope): find and put back units a write changed only in XPath whitespace (replaces #535) - #559

Merged
MendixMau merged 3 commits into
masterfrom
claude/loving-gates-hauc1n-535
Oct 22, 2026
Merged

MendixMau merged 3 commits into
masterfrom
claude/loving-gates-hauc1n-535

Conversation

@MendixMau

Copy link
Copy Markdown
Owner

Replaces #535 by @saingge. Their commit 487c390 is carried unchanged, with their authorship. It moved into our repo so CI runs without fork approval and CHANGELOG conflicts can be resolved here. See #535 for the full description and evidence.

On top: 9f3561e is a one-line docstring fix from the security review. The docstring said exec.sh runs restore after every write, but nothing calls it yet.

Review: MERGE (independent review: field-proven, captured golden input, nothing calls it yet). Security review: safe. Merge note: #551 also adds a name to MXTK_PROJECT_BIN in install-manifest.sh, so whichever merges second keeps both.


Generated by Claude Code

saingge and others added 2 commits October 21, 2026 17:51
…th whitespace

mxcli v0.27.0's `alter entity ... rename attribute` rewrote 135 units in 20 modules of a
Mendix 10.24.18 app that never referenced the attribute. The only change in each was the line
breaks between bracketed XPath conditions; `mxcli diff-local` showed nothing
(mendixlabs/mxcli#1596).

project-bin/model-scope.py: `report` sorts changed units into real and noise, `restore` checks
the noise out of HEAD and updates its ContentsHash rows through mxpatch.py, `check --staged`
exits 1 on staged noise (MODEL_SCOPE_OK=1 overrides once). Not wired into exec.sh or the hook
yet; that is the next PR.

Fixture tests/wave2/test-model-scope.sh, including a golden before/after capture of a real
v0.27.0 rename on a public model (fixtures/model-scope/golden-v0.27.0/, CAPTURE.md).
Independent review: the docstring said exec.sh runs it after every write;
it is not wired in (the CHANGELOG line says so).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013jQvaonym9V1wKKfAEPmRr
…eep both sides)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013jQvaonym9V1wKKfAEPmRr
@MendixMau
MendixMau merged commit ba16d50 into master Oct 22, 2026
2 checks passed
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.

3 participants