Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
01e6433
feat(layout): re-attach association lines to the facing sides, straig…
claude Nov 23, 2026
a53f401
feat(layout): keep cross-module association lines out of other boxes
claude Nov 24, 2026
50fbb82
feat(layout): put each lookup next to what uses it
claude Nov 24, 2026
281f358
feat(widgets): decide hidden properties by running editorConfig getPr…
claude Nov 24, 2026
d96f259
Merge remote-tracking branch 'origin/main' into claude/issue-triage-p…
claude Nov 24, 2026
a0b8059
fix(widgets): keep the template of a required unset data source (Tree…
claude Nov 24, 2026
285ea1d
style: gofmt unset_datasource_templates_test.go
claude Nov 24, 2026
78642f9
Merge pull request #2546 from ako/claude/issue-triage-prioritization-…
ako Nov 24, 2026
45d4029
Merge remote-tracking branch 'origin/main' into claude/issue-triage-p…
claude Nov 24, 2026
17f03da
Merge remote-tracking branch 'origin/main' into claude/happy-albattan…
claude Nov 24, 2026
04785b2
Merge pull request #2547 from ako/claude/issue-triage-prioritization-…
ako Nov 24, 2026
aa16d0c
feat(layout): order each column for the fewest crossings, and report …
claude Nov 24, 2026
c6bbad8
feat(lint): MPR021 reports a domain model line through an entity it d…
claude Nov 24, 2026
e082744
fix(canon): keep TabIndex and label parameters MDL does not state (#2…
claude Nov 24, 2026
20bdaad
fix(lint SEC005): explain strict mode as Mendix does, suggest current…
claude Nov 24, 2026
2e845ff
Merge pull request #2552 from ako/claude/issue-triage-prioritization-…
ako Nov 24, 2026
de94412
fix(widgets): exec evaluates editorConfig with the bound values, not …
claude Nov 24, 2026
3b1bb3a
Merge pull request #2553 from ako/claude/issue-triage-prioritization-…
ako Nov 24, 2026
4f1ba81
fix(test): --attach runs tests that call a microflow (#2331)
claude Nov 24, 2026
082e189
docs: refresh the test-microflows skill index
claude Nov 24, 2026
7a042d2
Merge pull request #2554 from ako/claude/issue-triage-prioritization-…
ako Nov 24, 2026
129269f
fix(widgets): a property is hidden only when both editorConfig target…
claude Nov 24, 2026
607d946
feat(layout): compact layouts: unconnected entities beside the graph,…
claude Nov 24, 2026
e698fd0
Merge pull request #2556 from ako/claude/issue-triage-prioritization-…
ako Nov 24, 2026
5932385
Rename and move update agent document references; lint MPR022
claude Nov 24, 2026
5398b21
feat(cdc): read entity change data capture services
claude Nov 24, 2026
094ecef
Merge pull request #2558 from ako/claude/issue-triage-prioritization-…
ako Nov 24, 2026
7d8f759
feat(cdc): read entity change data capture services (#2557)
ako Nov 24, 2026
25f5b17
docs(kafka): record what a running app measured, and fix the fixture …
claude Nov 24, 2026
b736837
Merge pull request #2545 from ako/claude/happy-albattani-n64mx1
ako Nov 24, 2026
9788c36
Merge pull request #2551 from ako/claude/gifted-fermi-2udffj
ako Nov 24, 2026
6447b32
docs(kafka): record what a running app measured, and fix the fixture …
ako Nov 24, 2026
06235c2
feat(cdc): parse CREATE/DROP CHANGE DATA CAPTURE SERVICE (part C1)
claude Nov 24, 2026
0d22d87
feat(cdc): author change data capture services (part C2/C3)
claude Nov 24, 2026
244dbcc
feat(cdc): author change data capture services in MDL (part C) (#2567)
ako Nov 24, 2026
b86cbc7
docs(skills): a change-data-capture skill, from what this work measured
claude Nov 24, 2026
9d12be2
docs(skills): a change-data-capture skill, from what this work measur…
ako Nov 24, 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
3 changes: 2 additions & 1 deletion .claude/commands/mendix/lint.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ mxcli lint -p app.mpr --baseline lint-baseline.json
| MPR013 | correctness | SnippetCallAppearance - Class/Style/DynamicClasses/design properties on a snippet call never reach the page (it renders no element) |
| MPR014 | correctness | AgentWithoutSelectedModel - an agent with no selected model, which Agent Editor 2.2+ refuses at startup, stopping the import of every agent (not reported for AgentEditorCommons before 2.2) |
| MPR015 | correctness | ConsumedMCPServiceWithoutEndpoint - a consumed MCP service with no endpoint constant, which Agent Editor skips at startup |
| MPR022 | correctness | AgentDocumentDanglingReference - an agent, model, knowledge base or MCP service names a document the project does not have; mx check does not see it, Studio Pro reports it on open (needs the full catalog) |
| SEC001 | security | NoEntityAccessRules - Persistent entities need access rules |
| SEC002 | security | WeakPasswordPolicy - Password minimum length should be 8+ |
| SEC003 | security | DemoUsersActive - Demo users should be off at Production security |
Expand All @@ -68,7 +69,7 @@ These are loaded automatically from `.claude/lint-rules/`:
| Rule | Category | Description |
|------|----------|-------------|
| SEC004 | security | GuestAccessEnabled - Review anonymous user entity access |
| SEC005 | security | StrictModeDisabled - XPath constraint enforcement off |
| SEC005 | security | StrictModeDisabled - client API not restricted (Production, React client) |
| SEC006 | security | PIIAttributesExposed - PII-sounding attributes need access rules |
| SEC007 | security | UnconstrainedAnonymousEntityRead - DIVD-2022-00019 detection |
| SEC008 | security | PIIUnconstrainedRead - PII entities readable without row scoping |
Expand Down
31 changes: 23 additions & 8 deletions .claude/lint-rules/sec_strict_mode.star
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
# SEC005: Strict Mode Disabled
#
# Strict mode enforces additional XPath constraint validation at runtime.
# When disabled, certain XPath constraint bypass attacks are possible
# (related to CVE-2023-23835 - XPath Constraint Bypass in Mendix Runtime).
# Strict mode restricts the client API: data.action, data.create, data.commit,
# data.remove and data.rollback are disabled in the runtime, and data.get works
# only by GUID. Data access then follows the pages, widgets, microflows and
# nanoflows in the model, so a user cannot fetch or change objects from the
# browser console or a JavaScript action beyond what the app offers — a
# backstop for access rules that are wider than intended.
#
# https://cert-portal.siemens.com/productcert/html/ssa-097435.html
# It can be enabled at the Production security level with the React client
# only, so the rule is silent elsewhere.
#
# https://docs.mendix.com/refguide/strict-mode/

RULE_ID = "SEC005"
RULE_NAME = "StrictModeDisabled"
DESCRIPTION = "Strict security mode is disabled - enables additional XPath constraint enforcement"
DESCRIPTION = "Strict mode is off: the client API may read and change any object the user's role can access"
CATEGORY = "security"
SEVERITY = "warning"

Expand All @@ -20,12 +26,21 @@ def check():
if sec.strict_mode:
return []

# Only warn at Production level - not relevant for dev/prototype
# Strict mode exists at Production level only.
if sec.security_level != "CheckEverything":
return []

# ...and with the React client only: under the classic client it cannot
# be turned on, so there is nothing to fix.
settings = project_settings()
if settings != None and settings.web_client == "No":
return []

return [violation(
message="Strict mode is disabled. This weakens XPath constraint enforcement and is relevant to CVE-2023-23835.",
message="Strict mode is disabled, so the client API (data.get, data.commit, data.remove and others) " +
"may read and change any object the user's role can access, not only what the app's pages and flows offer.",
location=location(module="", document_type="security", document_name="ProjectSecurity"),
suggestion="Enable it with: ALTER PROJECT SECURITY STRICT MODE ON; (or in Studio Pro under Project Security).",
suggestion="Enable it with: alter app security ( StrictMode: true ); (or in Studio Pro under App Security). " +
"Check first that no JavaScript action calls those APIs (use a nanoflow instead); " +
"File Uploader's delete and Web Actions' Take picture do not work in strict mode.",
)]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "cmd/mxcli/testrunner", "date": "2026-11-24", "symptom": "`mxcli test --attach` ran no test once a test called a microflow: the incremental build reported CE0108 (message not shown), the fallback cold build passed but asked for a runtime restart, which --attach cannot do; exit 1 and no Total (mendixlabs/mxcli#1874, reproduced on 11.16.1).", "cause": "The generated test microflow gave every call an ON ERROR handler that read the raised message into a variable ($MxTestErrorMessage_1 = call MxTest.Test_ErrorMessage) and used it. mxbuild --serve's incremental build rejects any USE of a variable created inside an error handler with CE0108 'defined but not in scope'; a full build accepts the same model. Measured on the dev serve with variants: the handler as generated fails, the same handler returning the variable fails, defining it without using it builds, and no variable builds.", "file": "cmd/mxcli/testrunner/generator_endpoint.go (rewriteBodyForVerdict, rewriteBodyForThrows, GenerateTestFlows), cmd/mxcli/testrunner/client.go (toResult), cmd/mxcli/docker/serve_recovery.go (recheckIncrementalErrors prints the errors)", "fix": "The endpoint path generates no handler: the error leaves the test microflow, the endpoint (which already caught it) returns its message, and toResult makes it FAIL 'exception during execution: <msg>' or, for @throws, PASS/FAIL against the annotation (MDL-literal apostrophes undone). The serve recovery now prints the incremental build's CE0108 lines, document and message.", "insight": "Printing the suppressed error was the cheapest step and the decisive one: 'Variable MxTestErrorMessage_1 ... not in scope' named mxcli's own generated variable, which turned an 'mxbuild state' story into a reproducible shape that four handler variants against the live dev serve (curl POST /build) narrowed in minutes. Separately observed and NOT fixed here: after an --attach run whose builds fell back to a separate serve process, the dev serve's next build reports restartRequired=true for an unchanged model (then false), so a second --attach run can be refused with 'an entity or association changed'.", "refs": ["ako/mxcli#2331", "mendixlabs/mxcli#1874", "ako/mxcli#2064", "ako/mxcli#2100"], "test": "testrunner: generator_endpoint_test TestGenerateTestFlowsLeavesCallsToTheEndpoint (fails against the old generator), client_test TestToResult_ThrownTestMicroflow, throws_test; live on 11.16.1: the repro's call test PASSes under --attach, and four tests give verdicts identical to the old handler's (--local, main build)"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "lint-rules", "date": "2026-11-24", "symptom": "SEC005 said strict mode enforces XPath constraints and is relevant to CVE-2023-23835, suggested the deprecated `ALTER PROJECT SECURITY STRICT MODE ON;`, and fired on classic-client projects where strict mode cannot be enabled", "cause": "the rule's rationale was written from a CVE name rather than Mendix's strict mode page; strict mode restricts the client API (data.action/create/commit/remove/rollback, data.get except by GUID) and exists only with the React client at Production level. CVE-2023-23835 is fixed by a runtime update. The suggestion was not updated when `alter app security` moved to a property list (MDL-DEPR554)", "file": "`.claude/lint-rules/sec_strict_mode.star`, `cmd/mxcli/cmd_lint.go`, `.claude/commands/mendix/lint.md`, `docs-site/src/tools/starlark-rules.md`", "insight": "A rule's remedy text is code nobody runs: pin the suggested statement in a test so a syntax deprecation breaks it. Check a security rule's rationale against the vendor's page for the setting, not the CVE it is named after — the security report had the right explanation all along, and the two had never been compared", "refs": ["ako/mxcli#2550"], "rules": ["SEC005"], "test": "TestSEC005StrictMode"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl/backend/modelsdk rename sweep", "date": "2026-11-24", "symptom": "rename/move of a microflow an agent uses as a tool left the agent naming the old microflow, and `rename … dry run` did not list the agent; mx check stayed green (ako/mxcli#2265).", "cause": "CustomBlobDocuments$CustomBlobDocument keeps every reference as {\"documentId\",\"qualifiedName\"} inside one JSON string (Contents). RenameReferences and UpdateQualifiedNameInAllUnits match whole BSON string values, so the JSON string never equals the old name; Studio Pro re-syncs it through the agent-editor extension, which mx and mxbuild never load.", "file": "mdl/types/blob_rename.go (RewriteBlobQualifiedNames); mdl/backend/modelsdk/infrastructure_write.go (rewriteBlobContents, replaceQNInDocCounted, UpdateQualifiedNameInAllUnits)", "fix": "For a CustomBlobDocument, rewrite each \"qualifiedName\" value in Contents that equals the old name or starts with it plus '.', in place (documentId, key order and indentation kept byte for byte), count it as a hit, and keep Contents out of the expression sweep so prompt text is not rewritten. Lint MPR022 reports a stored reference that resolves to nothing (refs from agent sources whose target is not in objects; System names skipped).", "insight": "A reference sweep over string values misses every format that nests a payload in one string — check the doc types with a JSON/XML Contents property, not only the BSON tree. The catalog already had these edges (builder_agent_refs.go), so the hit list was knowable all along; a sweep that consulted CATALOG.REFS would have caught it. Measured on 11.14.0: a dangling agent tool reference gives mx check 0 errors, so the lint rule is the only headless signal.", "refs": ["ako/mxcli#2265"], "test": "mdl/types/blob_rename_test.go; mdl/backend/modelsdk/rename_agent_2265_test.go (fails with the fix reverted: dry run lists nothing, move updates no unit); mdl/linter/rules/agent_dangling_reference_2265_test.go; live on TestApp: dry run lists SupportAgent, rename and move rewrite the tool, lint MPR022 fires only on the copy whose tool was dropped"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl/backend/widgetobj", "date": "2026-11-24", "symptom": "A Tree node (3.4.0) created without a data source failed mx check 11.16.1 with CE0463 'definition of this widget has changed' instead of the CE0642 'Data source is required' that check's MDL-WIDGET56 warning predicts; mx update-widgets changed only headerCaption's TextTemplate, null -> empty ClientTemplate. With a data source set the page built clean on main too.", "cause": "NullTemplatesOfUnsetDataSources (#1967) nulled every unset TextTemplate bound to an unset data source, but #1967 was measured on an OPTIONAL data source (required=\"false\"); Tree node's datasource declares no required attribute, so it is required, and for a required one Studio Pro keeps the empty template. The #1967 finding even notes TreeNode binds to a required data source, without the code checking it.", "file": "mdl/backend/widgetobj/unset_datasource_templates.go", "fix": "Skip the nulling when the bound data source's PropertyTypeIDEntry is Required.", "insight": "Found by placing every generated widget example on a page and labelling each CE0463 with docker check's update-widgets re-check, then bson dump page before/after mx update-widgets on a copy: one TextTemplate differed. A rule measured on one widget's shape (optional data source) generalised past what was measured; when a finding names the cases it did NOT cover, the code should refuse those cases, not just the prose.", "refs": ["ako/mxcli#1967", "mendixlabs/mxcli#1745"], "test": "mdl/backend/widgetobj/unset_datasource_templates_test.go TestNullTemplatesOfUnsetDataSources_RequiredDataSourceKeepsItsTemplate (failed before the guard); #1967's own case still nulls; live: Tree node example 1 CE0463 -> CE0642 only, with a data source 0 errors"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl/executor", "date": "2026-11-24", "symptom": "Regression from #2546: exec stored TextTemplate null for script-set labels of a widget whose editorConfig hides them only while an ATTRIBUTE is unbound (EvaluationBar textMaterial/textEngine, MoveList textBrilliant..textBlunder, KnightShift); the labels rendered blank, while check, docker check and mx check all passed (ako/mxcli#2548).", "cause": "Build step 4.10 ran getProperties with builder.PrimitiveValues() only, so an attribute (or expression, action) the statement binds reached it as unset and `!isSet(values.evaluation)` fired; the hidden-property resets and check passed configurationValues(stored, script) and disagreed.", "file": "mdl/executor/widget_engine.go (Build, step 4.10)", "fix": "Step 4.10 evaluates configurationValues(builder.PrimitiveValues(), scriptValues), the same configuration as the resets and check.", "insight": "Three consumers asked the same question with three value sets; the one that writes BSON had the narrowest. When a decision is computed per consumer, the values each passes are part of the contract — the #2546 unit tests used only primitive conditions (a boolean, an expression's text), which is why none of them could see it. The reporter's diff against a nightly-written model (exec writing a change where none was made) was the signal; a describe of the page after exec on a copy shows the labels gone on main and kept with the fix.", "refs": ["ako/mxcli#2548", "ako/mxcli#1776", "ako/mxcli#2546"], "test": "mdl/executor/editorconfig_eval_2548_test.go TestEvaluatedVisibility_BuildSeesTheBoundAttribute (failed before the fix); live: KnightShift 28-play-match-page.mdl on a copy, main rewrites Play.Match_View and drops 7 labels, fixed build: 7 documents in sync"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl/executor", "date": "2026-11-24", "symptom": "A pluggable widget property the editor hides was unknown to mxcli whenever the widget's editorConfig.js hid it in a shape the static reader could not lift: check passed a non-default hidden value and exec wrote a hidden text template with its default text, both CE0463 (Image 1.5.0 `iconSize: 20` in imageUrl mode, mx check 11.16.1), and a widget with its own hide helper (ChessClock) had no rule at all. A guard on Studio's `target` was read as if it held in Studio Pro (TreeNode, Maps, charts), so Studio Pro-visible properties were treated as hidden.", "cause": "Hide rules were lifted from the bundle's source one JavaScript shape at a time (editorconfig_extract.go); 96 of 170 widget versions had hide calls it could not state, and `target` was never part of a rule.", "file": "modelsdk/widgets/editorconfig/editorconfig.go, mdl/executor/editorconfig_eval.go, mdl/executor/widget_engine.go, mdl/executor/validate_widgets.go, mdl/executor/validate_widget_required.go, mdl/executor/widget_describe.go, mdl/types/widget_visibility.go", "fix": "Run getProperties(values, defaultProperties, \"desktop\") in goja for the widget's actual values and replace the top-level lifted rules with always/never rules for that configuration (evaluatedVisibilityRules); lifted rules remain the fallback and the only source for object-list item properties.", "insight": "The spike that settled it was cheap: one Go program over every .mpk on the machine, calling getProperties with defaults and diffing against the lifted rules at the same defaults. It showed both kinds of miss in one table, and the static-only column (properties the reader called hidden that the function shows) was the surprise: all of it came from `target === \"web\"` branches. Pass the tree as real JS objects (JSON.parse inside the VM): a Go slice wrapped by goja does not survive the helpers' filter/splice, which is what 74 of the first 96 failures were. Regression guard: every TestApp (77) and PedApp (16) page rebuilt with create or replace stays byte-equal ('in sync'), and the 42 generated widget examples give the same CE0463 set as main.", "refs": ["ako/mxcli#1776", "ako/mxcli#2507", "ako/mxcli#1762", "ADR-0016"], "test": "modelsdk/widgets/editorconfig/editorconfig_test.go (own helper, desktop target, no getProperties, hostile bundles, cache); mdl/executor/editorconfig_eval_1776_test.go (check reports with a control that the reader lifted 0 rules, build nulls a hidden template with a shown control, rule merge, describe example); revert proof: evaluation disabled fails the check and build tests"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "modelsdk/widgets/editorconfig", "date": "2026-11-24", "symptom": "Regression from #2546: check and exec refused `treenode … (advancedMode: true)` on a web page with MDL-WIDGET10 (error, CE0463 claimed), though the page builds with 0 errors and renders (ako/mxcli#2549).", "cause": "The evaluator ran getProperties with target \"desktop\" only. TreeNode's bundle hides advancedMode unless target is \"web\" (and for \"web\" hides animate/icons while advancedMode is off). The \"desktop\" choice was an assumption from the pluggable-widgets typings, never measured against mxbuild.", "file": "modelsdk/widgets/editorconfig/editorconfig.go (Targets, Hidden)", "fix": "Run getProperties for both \"web\" and \"desktop\" and count a property hidden only when both hide it.", "insight": "Measured on 11.16.1, TreeNode 3.4.0, TestApp: advancedMode true (hidden for desktop) and animate false with advancedMode off (hidden for web) both pass mx check with 0 errors, and mx update-widgets resets neither — mxbuild enforces neither target-dependent branch — while a target-independent hide (Image iconSize outside icon mode) is CE0463. Two pages, each hidden under exactly one target, settle which target a tool uses in one mx check; the #2546 trial compared against static rules, which shared the same unmeasured premise, so it could not catch it.", "refs": ["ako/mxcli#2549", "ako/mxcli#2546", "ako/mxcli#1776", "ADR-0016"], "test": "modelsdk/widgets/editorconfig/editorconfig_test.go TestHiddenRequiresBothTargets; live: both TreeNode pages pass check, the Image iconSize control is still refused"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "modelsdk/canon", "date": "2026-11-24", "symptom": "describe page -> exec reported 'Replaced page' for unchanged Marketplace pages (AgentCommons 4.4.0 AgentImport_SelectVersionAndModel, MCPView_New, MCPView_New_EditDisplayNames; MxGenAIConnector 7.4.0 ConfigurationStringImport_NewEdit) on Mendix 11.16.1; a second exec was Unchanged. ako/mxcli#2106 listed the same pages from FactoryManagement.", "cause": "Two values MDL does not state: a widget's TabIndex (Studio Pro stores 1 on a footer button and -1 on a combo box, as int64; the writer writes int32 0), and the parameters of an input widget's LabelTemplate (describe prints a check box label '{1}' as text only, so the rebuild wrote no parameter and the label would read '{1}').", "file": "modelsdk/canon/unexpressed.go (carryTabIndex, carryLabelParameters)", "fix": "CarryUnexpressed keeps a stored non-zero TabIndex over a written 0, and a stored LabelTemplate's Parameters when the written template has the same text and none.", "insight": "FactoryManagement itself is not reachable from a cloud session, but most of #2106's pages are Marketplace modules: `mxcli marketplace install` of AgentCommons, ConversationalUI, MxGenAIConnector, GenAICommons and MCPClient into a TestApp copy (plus the Markdown viewer widget their pages use) reproduced 4 rewrites in one describe->exec sweep. The first carry did nothing live although its unit test passed: Studio Pro stores TabIndex as int64 and the fixture used int32 — a value's BSON width is part of what a carry has to match.", "refs": ["ako/mxcli#2106", "ako/mxcli#1897"], "test": "modelsdk/canon/unexpressed_tabindex_labelparams_test.go (TabIndex int32 and int64, label parameters, and a control that changed text or parameters still land); live: 47 Marketplace pages, 77 TestApp, 16 PedApp all 'in sync' after one exec"}
Loading
Loading