Skip to content

Commit 6099c0d

Browse files
committed
Merge remote-tracking branch 'origin/master' into feat/interaction-model-gate-v2
# Conflicts: # CHANGELOG.md
2 parents 4c76135 + bf05b34 commit 6099c0d

4 files changed

Lines changed: 21 additions & 5 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Sections dated before 2026-09-19 predate the cycle and stay as they are. Named m
2020
## Unreleased
2121

2222
- new(gate-check, interaction-model): **Stage 3 now fails on an interaction model that leaves out a user task or a wireframe's page parameter, and asks about BRD actors with no home** ([#291](https://github.com/MendixMau/mxcli-project-toolkit/issues/291), part 2). Once `design/interaction-model.md` exists, `bin/lib/interaction-model-check.sh` (called by `gate-check.sh`) lists one FAIL per BRD approval/review/sign-off/user-task use case not named on any line (row or bullet) under an Inbox heading, and per `design/wireframes/*.html` without a `Page parameter:` line (`Module.Entity`, a trailing `(note)` allowed, or `none — <reason>`) in its `wf-contract` block; any of them fails Stage 3. A BRD actor with no "Role homes" row is MANUAL (confirm it is a user role, or add a `none — <reason>` row), never FAIL. Findings are waived by hand in the register (`Waived artifact interaction-model/<unit>: reason`); a project adopted above stage 3 reports ADOPTED. A new `artifact-manifest.tsv` row reports the artifact PENDING when it is absent, which does not block. `checkpoint-design.md` asks "who lands where, and how does each role find its work" next to the layout question; `brd-to-build-plan.md` Step 7 reads wire points from the artifact. Fixture `tests/wave2/test-interaction-model-gate.sh` (synthetic trees only). Brought up to date with master 2026-11-03; run against six Stage-3 worker outputs, which found two defects, both fixed: a MANUAL role finding no longer hides the "no Stage-3 CONFIRMED decision" FAIL (it was reported MANUAL, exit 2), and a role cell with a trailing note in parentheses (`Owner (signed-in …)`) now names the role. After review: a "Homes and inboxes" heading with a `Home` column reads as the Role homes table. Fixture cases T13–T18. A field run on a client project is still owed — field retro (#291)
23+
- docs(doctor-triage): **the `~/.mxcli/mxbuild/` cache lane is no longer called Linux-only**: on macOS it held a working Mach-O arm64 build for 11.14.0, while 10.24 and 11.12 downloads were ELF. The lane table now says to run `file` on the cached `mx` before calling the lane unavailable (#525). — AlvinnYeo (report)
24+
- fix(_common): **an `export KEY=value` line in `toolkit.env` now sets KEY**: `mxtk_load_env` squeezed all whitespace out of the key, so `export MENDIX_APP=...` set a variable named `exportMENDIX_APP` and the override did nothing, although the function's own comment says that form works. `KEY = "value"` also kept its quotes (the quote strip ran before the trim); the trim now runs first. Pure bash, no extra process per line. Fixture `tests/wave2/test-common-windows.sh` case 4b (#579). — triage of #579
2325
- fix(exec): **a write no longer leaves units that changed only in XPath whitespace for the reviewer to read.** mxcli v0.27.0's `alter entity … rename attribute` rewrote 135 units in 20 unrelated modules that way (mendixlabs/mxcli#1596; fixed upstream in v0.29.0, ako/mxcli#1506, so this is insurance for projects on v0.27–v0.28). `exec.sh` now runs `model-scope.py restore` after the write (MDL and `--patch`) and before the mxbuild gate, so the gate checks the final model; it prints the real changes per module and puts a `scope:` note in the BUILD-LOG row. It never blocks: a failure is a warning, `MXTK_NO_SCOPE=1` skips it, and it is skipped when `FORCE_EXEC` let the write run over uncommitted model changes. No pre-commit refusal (maintainer decision on #593): `model-scope.py check --staged` stays available to run by hand. Fixture `tests/wave2/test-model-scope.sh` section F. Ported from #593 onto current master — saingge
2426
- learn(demo): **`skills/live-demo-autopilot.md` — run the demo live, not as a video**: Playwright drives the real app through scripted scenes, captions carry a WHY line, a control panel lets the presenter pause and take over, redo or skip; plus the traps that each broke a run (trial licence stops the runtime 2–4 h after start, 6-session cap and proving a logout freed its slot by the `System.Session` count, demo sign-in tiles kept out of any deployed build, focus-stealing panel pausing the run, SIGTERM closing the browser before sign-out). Field: a desktop+phone offline manufacturing demo (4/4 scenes) and a three-app process-hub demo (28/28 with an app killed mid-run and an 11 min pause), 2026-10 — Maurits Visser
2527
- docs(bug-ledger): **32 ledger entries now say what mxcli v0.22–v0.29 changed about them, before anyone re-runs an old workaround**: 22 are fixed upstream per the mxcli changelog or source (among them BUG-121 terminators, BUG-141 workflow PersistentId, BUG-151 `rest call body $Var`, BUG-100 shared Docker stack, BUG-94 role visibility, BUG-128 module-role idempotence) and 10 changed shape or are partly fixed (BUG-154; BUG-04 no automatic module role since v0.27, BUG-WF04/WF05 named call arguments since v0.25, BUG-130/131 vs the v0.27 `exec` rollback). Each gets an "Upstream status" line naming the version, the issue and what to retest; none is closed or archived, because none was retested — the ledger archives only after a retest. Also corrects `BUG-DRAFT-audit-member-access-ce0066`: commit `2455ee9f` first shipped in v0.23.0, not v0.22. Source: mxcli v0.29 compatibility audit 2026-10-30

‎project-bin/_common.sh‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,16 @@ mxtk_load_env() {
162162
line=${line%$'\r'}
163163
case "$line" in ''|'#'*) continue ;; esac
164164
case "$line" in *=*) ;; *) continue ;; esac
165-
key=$(printf '%s' "${line%%=*}" | tr -d '[:space:]'); val=${line#*=}
165+
# Drop a leading `export ` before squeezing whitespace, or the key reads as exportKEY.
166+
key=${line%%=*}; key=${key#"${key%%[![:space:]]*}"}
167+
case "$key" in export[[:space:]]*) key=${key#export} ;; esac
168+
key=$(printf '%s' "$key" | tr -d '[:space:]'); val=${line#*=}
166169
case "$key" in [A-Za-z_]*) ;; *) continue ;; esac
167170
case "$key" in *[!A-Za-z0-9_]*) continue ;; esac
168171
# export KEY=value and "KEY = value" both work; surrounding quotes are stripped.
169-
case "$val" in \"*\") val=${val#\"}; val=${val%\"} ;; \'*\') val=${val#\'}; val=${val%\'} ;; esac
172+
# Trim first, so `KEY = "value"` still has its quotes at the edges when they are stripped.
170173
val=$(printf '%s' "$val" | sed 's/^[[:space:]]*//; s/[[:space:]]*$//')
174+
case "$val" in \"*\") val=${val#\"}; val=${val%\"} ;; \'*\') val=${val#\'}; val=${val%\'} ;; esac
171175
val=$(mxtk_posix_path "$val")
172176
# Already set (by the shell, or by the project file on the previous pass) — keep it.
173177
eval "[ -n \"\${$key:-}\" ]" && continue

‎skills/doctor-triage.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ Every mxbuild/`mx` red belongs to exactly one lane, and the fix is lane-specific
9797
| Lane | Where the binary comes from | Runs on | What red means |
9898
|---|---|---|---|
9999
| **Studio Pro bundled** | the install's own `modeler/mx` (`Contents/modeler/mx` on macOS, `modeler/mx.exe` on Windows) | macOS, Windows | The install is missing, or is a build that ships no bundled `mx` — list the installs and look for the file |
100-
| **Standalone CDN toolchain** | `mxcli setup mxbuild` / `doctor.sh --install` (add `--yes` with no terminal), cached under `~/.mxcli/mxbuild/` | **Linux only** — it is an ELF | On macOS or Windows this lane is simply unavailable; no Mendix version changes that |
100+
| **Standalone CDN toolchain** | `mxcli setup mxbuild` / `doctor.sh --install` (add `--yes` with no terminal), cached under `~/.mxcli/mxbuild/` | Linux; macOS only when the cached build is Mach-O | Run `file ~/.mxcli/mxbuild/<ver>/modeler/mx` first: an ELF (seen on macOS for 10.24 and 11.12) cannot run natively, a Mach-O arm64 build (seen for 11.14.0, #525) does. Windows: unverified |
101101
| **Container** | the same Linux toolchain, inside a container | anywhere a container runtime runs | See the limitation below before believing this one |
102102

103103
**macOS: Mendix 11 is a platform requirement, not a toolkit preference.** macOS Studio Pro was Beta
104104
throughout 10.x and those builds ship **no** bundled `mx`; Mendix 11 is the first macOS build that
105-
carries one. So on a Mac, the bundled-`mx` lane does not exist below 11 — and the CDN lane never
106-
existed there at all. Verify by listing the installs and testing for the file (Step 1), **never**
105+
carries one. So on a Mac, the bundled-`mx` lane does not exist below 11 — and the cache lane works
106+
there only for a version whose cached build `file` reports as Mach-O. Verify by listing the installs and testing for the file (Step 1), **never**
107107
from a remembered version number: version lists rot, and two people in the 2026-09-22 thread had the
108108
toolkit itself checked out at two different paths.
109109

‎tests/wave2/test-common-windows.sh‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,16 @@ OUT=$(run_in "$P" "$T/user-home" "" 'echo "$MENDIX_APP"')
7878
[ "$OUT" = "/c/Program Files/Mendix/11.11.0" ] && ok "converted (-> $OUT)" || fail "not converted (-> $OUT)"
7979
rm -f "$P/.claude/toolkit.env"
8080

81+
# ── 4b: mxtk_load_env — `export KEY=value` lines, quoted values (#579) ───────
82+
# The key used to be read with all whitespace squeezed out, so `export MENDIX_APP=...` set a
83+
# variable named exportMENDIX_APP and MENDIX_APP stayed empty. Quotes after `= ` were kept too.
84+
echo "== 4b: mxtk_load_env — export KEY=value, quoted, and spaced forms =="
85+
printf 'export MENDIX_APP=/from/export\n export\tMXCLI_VERSION="0.29.0"\nPYTHON = "/q/py"\nexportX=1\n' > "$P/.claude/toolkit.env"
86+
OUT=$(run_in "$P" "$T/user-home" "" 'echo "${MENDIX_APP:-}|${MXCLI_VERSION:-}|${PYTHON:-}|${exportX:-}|${exportMENDIX_APP:-}"')
87+
[ "$OUT" = "/from/export|0.29.0|/q/py|1|" ] && ok "export/quoted/spaced keys read (-> $OUT)" \
88+
|| fail "export/quoted/spaced keys misread, want '/from/export|0.29.0|/q/py|1|' (-> $OUT)"
89+
rm -f "$P/.claude/toolkit.env"
90+
8191
# ── 5: mxtk_is_elf — a real ELF binary is reported true ──────────────────────
8292
echo "== 5: mxtk_is_elf — a real ELF binary =="
8393
OUT=$(run_in "$P" "$T/user-home" "" "mxtk_is_elf '$REAL_ELF' && echo yes || echo no")

0 commit comments

Comments
 (0)