Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
ecdd33b
Merge a grant whose XPath differs only in whitespace (#2355)
claude Nov 17, 2026
8b3888e
Make the Placeholder Pattern re-runnable with if not exists (#2358)
claude Nov 17, 2026
beac9ac
Write a JavaScript action's file exactly as mxbuild does (#2357)
claude Nov 17, 2026
9724705
fix(lint): SEC012 skips data hidden from the user role by Visible: roles
claude Nov 17, 2026
61825f1
Merge origin/main
claude Nov 17, 2026
e21c1fe
docs(proposal): classify the 6 extra findings of mendix check
claude Nov 17, 2026
6942db4
docs(proposal): MxBuild reports errors in stages, mendix check does not
claude Nov 17, 2026
7047856
Merge remote-tracking branch 'origin/main' into claude/issue-triage-p…
claude Nov 17, 2026
9e6dcc4
test(roundtrip): strike two WorkflowCommons entities the #2355 fix ma…
claude Nov 17, 2026
74299b0
Merge pull request #2372 from ako/claude/issue-triage-prioritization-…
ako Nov 17, 2026
1775d01
Merge pull request #2370 from ako/docs/classify-mendix-check-extras
ako Nov 17, 2026
415bbaf
fix(marketplace): --no-baseline still gates on associations other mod…
claude Nov 17, 2026
56cb104
fix(sql): run read-only unless --write is given
claude Nov 17, 2026
44d601e
fix(sql): describe a schema-qualified table, and refuse a missing or …
claude Nov 17, 2026
a5ac9c3
test(bug-tests): declare the variables in the ledger-17 and ledger-21…
claude Nov 17, 2026
3951980
fix(check): report a list retrieve returned where the flow returns on…
claude Nov 17, 2026
5e8b6b8
fix(alter page): set (visible: roles (...)) writes the module roles, …
claude Nov 17, 2026
9ea0f3f
Merge remote-tracking branch 'origin/main' into claude/issue-triage-p…
claude Nov 17, 2026
de860a7
tooling: add scripts/maskmatrix and make mask-matrix
claude Nov 17, 2026
50094f6
docs(skills): the K2 manager lookup retrieves one object with first
claude Nov 17, 2026
cd40762
Merge pull request #2374 from ako/claude/issue-triage-prioritization-…
ako Nov 17, 2026
ae313d3
Merge pull request #2373 from ako/fix/ledger-fixtures-declare-bad
ako Nov 17, 2026
208a4e6
Merge pull request #2375 from ako/feat/mask-matrix-tool
ako Nov 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "cmd-mxcli", "date": "2026-11-17", "refs": ["ako/mxcli#2368", "mendixlabs/mxcli#1883"], "ce": [], "symptom": "marketplace update --no-baseline deleted an association another module owns into the updated module (MyFirstModule.Request_Configuration → WorkflowCommons.Configuration) without naming it; mx check then reported 0 errors, so nothing pointed at the loss.", "file": "cmd/mxcli/cmd_marketplace_update.go noBaselineGate; cmd/mxcli/marketplace/snapshot.go SnapshotDependents. Tests: cmd/mxcli/cmd_marketplace_update_no_baseline_2368_test.go, cmd/mxcli/marketplace/no_baseline_dependents_2368_test.go", "cause": "--no-baseline skipped the whole drift computation, and the dependent-association search (#1502) lived inside it, although it reads only the project and needs no baseline.", "insight": "**An opt-out flag should skip only the part it cannot do.** --no-baseline exists because the baseline package cannot be built; the cross-module association search does not use the baseline, so bundling it into the same branch made the flag silently drop a check it never had a reason to drop. Split each safety check by its inputs before deciding which flag disables it."}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl/backend", "date": "2026-11-17", "refs": ["ako/mxcli#2355"], "ce": [], "symptom": "`grant read * on entity Shop.Item to Shop.User where [Name = 'a' or Name = 'b'];` followed by the same grant with the XPath wrapped over two lines left two identical rules; diff reported a change, and on a real project upgraded from nightly-20261020 to nightly-20261117 every re-run duplicated two grants stored on one line by the older build.", "file": "mdl/types/xpath_same.go SameXPathConstraint; mdl/backend/modelsdk/domainmodel_security_write.go AddEntityAccessRule (match + keep stored spelling); mdl/executor/cmd_entities_access.go formatAccessRuleResult. Test: mdl/backend/modelsdk/access_rule_xpath_spacing_2355_test.go", "cause": "The upsert key (role set + constraint, #936) compared the constraint byte for byte, and FormatXPathConstraint keeps a constraint that already fits as written, so a script's line break reached both the comparison and the stored value.", "insight": "**A string that is part of an identity key must be compared in its canonical form, and a match must keep the stored spelling.** Comparing whitespace-insensitively outside literals (the same rule canon's CarryUnexpressed already applies to XPath) merges the grants; writing back the stored constraint on a match is what makes the re-run elide instead of rewriting the rule in the new spelling. Control: whitespace inside a string literal still distinguishes rules. Live on 11.12.6: the reporter's a.mdl then b.mdl gives one rule, diff 'exec would write nothing', exec 'Unchanged entity access'."}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl-executor", "date": "2026-11-17", "refs": ["ako/mxcli#2364"], "ce": ["CE0117"], "symptom": "Under `mdl 1;`, `retrieve $Item from Lm.Item where … limit 1; return $Item;` in a microflow returning Lm.Item passed check (\"Expression types OK\") and exec; mx check reported CE0117 \"Error(s) in expression.\" at End event.", "file": "mdl/executor/validate_microflow_retrieve_single.go checkRetrieveListAsObject (return case) / returnTypeName. Test: mdl/executor/retrieve_list_returned_2364_test.go", "cause": "MDL-RETRIEVE03 knew which variables a database retrieve bound to a list, but only judged `change $L` and `$L/Attr` as object uses; `return $L` against a non-list return type was not one of them.", "insight": "**A list-as-object rule must enumerate every object slot, and `return` is one.** Measured on 11.12.6: `limit 1` returned from a flow returning the entity → CE0117 at End event; `first` → 0 errors. A bare `Module.Name` return type is parsed as an enum-or-entity reference, so formatDataTypeForMDL printed it as \"Unknown\" — name it from EntityRef/EnumRef."}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl-other", "date": "2026-11-17", "refs": ["ako/mxcli#2356"], "ce": ["CE2729"], "symptom": "mxcli lint SEC012 (ReachablePageNotReadable) reported 19 CE2729 errors on an 11.15 project where mx check reported 0: every one was data inside a container with `Visible: roles (…)` limited to module roles that may read it.", "file": "mdl/linter/rules/reachable_page_read_access.go roleVisibility.hidden / restrictsAway / refersTo (unit ids from loadReachModel). Test: mdl/linter/rules/reachable_page_role_visibility_2356_test.go", "cause": "The rule works from catalog refs, which say a page uses an entity or attribute but not in which widget, so a widget's ConditionalVisibilitySettings.ModuleRoles never reached it; mxbuild does not check read access for a widget the user role cannot see.", "insight": "**When a lint rule mirrors an mxbuild check, measure both directions on one page.** 11.12.6: a data grid over an attribute the role may not read, inside a container `visible: roles (Admin)` — mx check 0 errors, SEC012 now 0 (was 1); the same container `visible: roles (Admin, User)` — CE2729 and SEC012 both 1. The catalog cannot answer per-widget questions; the stored widget tree (LintReader.GetRawUnit) can, and the finding is suppressed only when every occurrence is under a restriction that excludes all of the user role's module roles — an unreadable unit or no occurrence keeps the finding."}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl-visitor", "date": "2026-11-17", "refs": ["ako/mxcli#2371"], "ce": ["CE0117"], "symptom": "`alter page … { set ( visible: roles (A, B) ) on cntAdmin }` printed \"Altered page\", describe showed `Visible: [roles (A, B)]`, and mx check reported CE0117 \"Error(s) in expression.\" at the container.", "file": "mdl/visitor/visitor_alter_page.go buildAlterSet; mdl/visitor/visible_roles_split.go splitVisibleRoles; mdl/backend/pagemutator/mutator.go setRawWidgetPropertyMut case visibleroles. Tests: mdl/visitor/alter_visible_roles_2371_test.go, mdl/backend/pagemutator/visible_roles_2371_test.go", "cause": "CREATE PAGE has a grammar alternative for `Visible: roles (…)` and #2319 split `roles (…) and <cond>`; the alter `set` path takes `visible:` as a widget expression, so the roles reached the mutator as VisibleIf text and were written as the visibility expression. The mutator had no case for module roles at all.", "insight": "**A fix to one statement's reading of a property is not a fix to the property.** #2319 fixed `Visible: roles` in CREATE; ALTER reads the same words through a different rule (alterPageAssignment → widget expression) and kept the old defect. When fixing a property spelling, grep every grammar rule that can carry it. Measured on 11.12.6: after the fix both `roles (A, B)` and `roles (A) and 2 = 2` describe back as roles (plus condition) and mx check reports 0 errors."}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "other", "date": "2026-11-17", "refs": ["ako/mxcli#2358"], "ce": [], "symptom": "A script following the resolve-forward-references Placeholder Pattern (placeholder snippet, pages calling it, then create or modify of the real snippet) never ran clean twice: diff reported 'Snippet Admin.Snippet_AdminMenu: rewritten with only element $IDs changed (canonically equal)' on every run.", "file": ".claude/skills/mendix/resolve-forward-references/SKILL.md (placeholder step and both examples)", "cause": "Each run shrank the finished snippet to the placeholder (create or modify), then rebuilt it; the rebuild is reconciled against the placeholder that is now stored, so the original element $IDs cannot be carried back. The skill's own spelling, a plain create, fails outright on a second run ('snippet already exists').", "insight": "**A step that only exists for the first run must be a no-op on every later one: `create snippet|page … if not exists`, which the grammar and executor already supported.** Measured on 11.12.6: with if not exists, run 2 skips the placeholder, '3 documents already in sync', and diff says exec would write nothing; the reporter's create-or-modify placeholder reproduces the ID churn (the control); the skill's plain create fails on run 2. No code change: the fix is the documented pattern."}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "other", "date": "2026-11-17", "refs": ["ako/mxcli#2361"], "ce": [], "symptom": "`mxcli sql --alias shop --describe sales.customers` printed an empty column list and (0 rows), no error; `--describe customers` worked. --tables prints schema and table apart, so the qualified form is the natural next step.", "file": "sql/meta.go DescribeTable / columnsFilter / splitTableName / refuseAmbiguousTable. Test: sql/describe_qualified_2361_test.go (needs MXCLI_TEST_PG_DSN)", "cause": "The PostgreSQL and SQL Server templates compared table_name to the whole argument, so `sales.customers` matched no row; only the Oracle path split the schema off. An empty result was printed as a table with no columns.", "insight": "**Test the unverified case the reporter lists.** The unqualified form was the 'control', but on PostgreSQL 16 with `customers` in two schemas it returned both tables' columns as one (6 rows) — a second, silent defect. Measured: qualified now 3 columns; a missing table and an ambiguous name are errors that name the accepted form or the candidates; the revert gives 0 columns and no errors."}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "other", "date": "2026-11-17", "refs": ["ako/mxcli#2362"], "ce": [], "symptom": "`mxcli sql --alias shop \"delete from sales.orders\"` deleted every row and printed \"(0 rows)\", which reads as an empty select; there was no read-only mode and no affected-row count.", "file": "sql/readonly.go ReadStatement / Run / executeReadOnly; cmd/mxcli/cmd_sql.go (--write). Test: sql/readonly_2362_test.go (needs MXCLI_TEST_PG_DSN)", "cause": "The CLI passed every statement to db.QueryContext; a DELETE returns no rows, so its effect looked like an empty result.", "insight": "**A keyword check is not a read-only mode.** `with d as (delete from t returning id) select * from d` starts with WITH and deletes on PostgreSQL; only the transaction stops it. Measured on PostgreSQL 16: with the read-only, rolled-back transaction the CTE fails and both rows stay; replacing it with a plain query (the revert) deletes them. Keep both layers: the keyword refusal gives the clear message, the transaction holds for what the keyword misses."}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "sdk", "date": "2026-11-17", "refs": ["ako/mxcli#2357"], "ce": [], "symptom": "After upgrading to nightly-20261117, exec/diff of an unchanged script with JavaScript actions rewrote every .js stub: the action's documentation vanished from the JSDoc, the banner lost '- the import list' and gained a 'Special characters' line, optional parameters lost their [brackets], and CRLF became LF.", "file": "sdk/javaactions/jssource.go JSSource.Generate / completeJSImports / jsDocType / jsDocReturn / enumUnion; mdl/backend/modelsdk/javascript_write.go WriteJavaScriptSourceFile / enumerationValueNames. Goldens: sdk/javaactions/testdata/mxbuild/JS_*_11.12.6.js.golden. Tests: sdk/javaactions/jssource_mxbuild_2357_test.go", "cause": "mxcli's JavaScript generator never matched mxbuild's file; the files on disk were mxbuild's, and the #2131 indentation fix made each re-run's user code differ from them, so every run regenerated the file in mxcli's shape.", "insight": "**Measure the generator against the tool that owns the file, for every type, in one build.** mxbuild 11.12.6 --target=deploy on actions mxcli created shows: banner with '- the import list' and no 'Special characters' line, `import { Big } from \"big.js\";` always, the action's documentation first in the JSDoc, `[name]` for an optional parameter, Integer/Long/Decimal as Big (not number), objects MxObject, lists MxObject[], enumerations `undefined|\"Red\"|\"Blue\"`, CRLF. The old generator also mistyped Integer/Long/Decimal as number. Control after the fix: mxcli writes 10 actions, mxbuild regenerates them, all 10 files are byte-identical, and a re-run reports Unchanged."}
27 changes: 15 additions & 12 deletions .claude/skills/mendix/database-connections/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ description: "Connect a Mendix app to an external database over JDBC with the Ex
| lines | section |
|---|---|
| 30-32 | Purpose |
| 33-49 | When to Use This Skill |
| 50-84 | Prerequisites |
| 85-199 | Database Connection Syntax |
| 200-261 | Query Definition Syntax |
| 262-359 | Complete Examples |
| 360-375 | Viewing Connections |
| 376-396 | Best Practices |
| 397-410 | Troubleshooting |
| 411-422 | Related Commands |
| 423-548 | Executing Queries from Microflows |
| 549-563 | Importing Data from External Databases |
| 564-567 | References |
| 33-52 | When to Use This Skill |
| 53-87 | Prerequisites |
| 88-202 | Database Connection Syntax |
| 203-264 | Query Definition Syntax |
| 265-362 | Complete Examples |
| 363-378 | Viewing Connections |
| 379-399 | Best Practices |
| 400-413 | Troubleshooting |
| 414-425 | Related Commands |
| 426-551 | Executing Queries from Microflows |
| 552-566 | Importing Data from External Databases |
| 567-570 | References |

<!-- /skill-index -->
# Skill: Create External Database Connections
Expand All @@ -46,6 +46,9 @@ Create and manage external database connections in Mendix using the External Dat
> SQL source GENERATE CONNECTOR INTO MyModule TABLES (employees, departments) EXEC;
> ```
> For manual exploration, use `sql source show tables;` and `sql source describe tablename;`.
> From the shell, `mxcli sql --alias <alias> "<query>"` is **read-only**: a write is refused
> unless `--write` is passed. Ask the user before passing `--write` to a database you were
> pointed at to explore.

## Prerequisites

Expand Down
24 changes: 13 additions & 11 deletions .claude/skills/mendix/download-marketplace-content/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ description: "The full lifecycle of Mendix Marketplace modules and widgets from
| 45-61 | Prerequisites: Authenticate |
| 62-95 | Step 1 — Discover |
| 96-105 | Step 2 — Download a `.mpk` to disk (optional) |
| 106-225 | Step 3 — Install into a project |
| 226-290 | Step 4 — Repair the model after the install (required, headless) |
| 291-347 | Step 5 — Before updating: has the module been edited? |
| 348-406 | Step 6 — Update an installed module |
| 407-460 | Worked example: the agent-editor stack on a vanilla app |
| 461-482 | Package a module of the project (`marketplace package`) |
| 483-490 | Notes |
| 491-494 | Platform authentication (`mxcli auth login/logout/status/list`) with PAT scheme for marketplace-api |
| 495-498 | Marketplace download/install (`mxcli marketplace download/install`) — the content API now exposes a per-version downloadUrl (303→public CDN); install is type-aware (widget→widgets/, new module→`mx module-import`); existing-module updates are reported, not applied (entity-ID/local-edit safety — see PROPOSAL_marketplace_modules |
| 499-503 | Marketplace drift detection (`mxcli marketplace diff <content-id> -p app.mpr [--to VERSION] [--json]`) |
| 106-227 | Step 3 — Install into a project |
| 228-292 | Step 4 — Repair the model after the install (required, headless) |
| 293-349 | Step 5 — Before updating: has the module been edited? |
| 350-408 | Step 6 — Update an installed module |
| 409-462 | Worked example: the agent-editor stack on a vanilla app |
| 463-484 | Package a module of the project (`marketplace package`) |
| 485-492 | Notes |
| 493-496 | Platform authentication (`mxcli auth login/logout/status/list`) with PAT scheme for marketplace-api |
| 497-500 | Marketplace download/install (`mxcli marketplace download/install`) — the content API now exposes a per-version downloadUrl (303→public CDN); install is type-aware (widget→widgets/, new module→`mx module-import`); existing-module updates are reported, not applied (entity-ID/local-edit safety — see PROPOSAL_marketplace_modules |
| 501-505 | Marketplace drift detection (`mxcli marketplace diff <content-id> -p app.mpr [--to VERSION] [--json]`) |

<!-- /skill-index -->
# Download, Install and Update Marketplace Content
Expand Down Expand Up @@ -221,7 +221,9 @@ version "6.0.0" not found; run 'mxcli marketplace versions <id>' to list availab

`--force` does not help — it overrides a *finding*, and here there is no finding.
`--no-baseline` accepts that the question cannot be answered and updates anyway.
Commit first: local edits to that module go without being named.
Commit first: local edits to that module go without being named. Associations
other modules own into it are still found: the update refuses without `--force`
and `--save-edits <dir>` saves them for replay.

## Step 4 — Repair the model after the install (required, headless)

Expand Down
2 changes: 1 addition & 1 deletion .claude/skills/mendix/migrate-k2-nintex/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ create microflow CRM.SUB_GetManager ($Employee: HR.Employee)
returns HR.Employee as $Manager
begin
retrieve $Manager from HR.Employee
where [HR.Employee_Reports = $Employee];
where [HR.Employee_Reports = $Employee] first;
return $Manager;
end;
```
Expand Down
Loading
Loading