Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
f2e8a7b
check: JavaScript action calls and non-persistent database sources (C…
claude Dec 1, 2026
41fb296
bug-tests: drop the microflow variant of javascript-action-call-persist
claude Dec 1, 2026
e713cf7
Merge pull request #2728 from ako/fix/check-gap-np-js
ako Dec 1, 2026
062363b
check: mapping value types, import-from-mapping input and snippet cal…
claude Dec 1, 2026
81cb963
Merge pull request #2731 from ako/fix/check-gap-mappings-snippets
ako Dec 1, 2026
7da96f4
fix!: a pluggable widget's association has one spelling, Association:
claude Dec 1, 2026
18d812c
test: integration tests write a combo box's association as Association:
claude Dec 1, 2026
44d6120
Bump the CDC major when a tracked element's GUID changes
claude Dec 1, 2026
a10e792
Make drop odata client list and fully drop its external entities
claude Dec 1, 2026
45d32bc
odata: say that ALTER … MetadataUrl does not refresh, and document ho…
claude Dec 1, 2026
9b33274
Stop comparing an association's CDC nullability and length as facts
claude Dec 1, 2026
7dc54b4
Merge pull request #2734 from ako/claude/issue-triage-prioritization-…
ako Dec 1, 2026
64c6731
fix: create or modify association keeps an unstated delete behaviour
claude Dec 1, 2026
b604ba1
Register the entities a bulk external-entity import creates in the check
claude Dec 1, 2026
674d924
check: published REST paths and workflow outcome sets (CE3471, CE0357…
claude Dec 1, 2026
9bc0d06
Merge remote-tracking branch 'origin/main' into fix/check-gap-rest-wo…
claude Dec 1, 2026
fa7a749
Merge pull request #2735 from ako/claude/cdc-major-bump-on-entity-rec…
ako Dec 1, 2026
6f63f78
Merge remote-tracking branch 'origin/main' into claude/cdc-associatio…
claude Dec 1, 2026
e982003
Merge pull request #2736 from ako/claude/2674-drop-odata-client-lists…
ako Dec 1, 2026
c4d653c
Merge remote-tracking branch 'origin/main' into claude/2674-odata-ref…
claude Dec 1, 2026
81840da
Merge remote-tracking branch 'origin/main' into fix/check-gap-rest-wo…
claude Dec 1, 2026
818a2b3
Merge pull request #2739 from ako/claude/2674-check-knows-bulk-import…
ako Dec 1, 2026
7c524a2
Merge pull request #2740 from ako/claude/issue-triage-prioritization-…
ako Dec 1, 2026
6772581
fix: an input's AriaRequired and a text box's autocomplete round-trip
claude Dec 1, 2026
2e792a6
Merge pull request #2738 from ako/claude/cdc-association-nullable-not…
ako Dec 1, 2026
7920334
Merge pull request #2737 from ako/claude/2674-odata-refresh-discoverable
ako Dec 1, 2026
0ae1a06
Merge pull request #2742 from ako/claude/issue-triage-prioritization-…
ako Dec 1, 2026
aefd82a
fix!: an error handler ending in a one-sided if rejoins after the act…
claude Dec 1, 2026
786cc51
Merge pull request #2743 from ako/claude/issue-triage-prioritization-…
ako Dec 1, 2026
593bbea
Merge pull request #2741 from ako/fix/check-gap-rest-workflow-enum
ako Dec 1, 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": "mdl-backend", "date": "2026-12-01", "refs": ["ako/mxcli#2672", "ako/mxcli#2612"], "symptom": "A change data capture service whose 11.17 baseline held IsNullable false (or no IsNullable key) for an association member was rated a Major change by `create or modify` with nothing changed: 'Modified change data capture service', and the entity moved to revision 2.0, a new topic cdc.<App>.<Entity>.2. mx check stayed at 0 errors throughout, so no build flags it.", "file": "mdl/backend/modelsdk/cdc_write.go factsChanged", "cause": "factsChanged compared IsNullable and MaxLength for every member, but mxcli writes an association's as constants (true, 0) and Studio Pro's editor derives neither for an association (getAssociationProperties), reads a stored isNullable back as undefined for an ArrayOfInt64 member (getProperties) and compares a fact only when both sides have one. Any baseline not written by mxcli could hold other values there.", "fix": "An association's only compared fact is its AssociationMultiplicity; IsNullable and MaxLength are still written (true, 0, the stored defaults) so the property set is unchanged.", "insight": "Settle 'is this a fact?' against mxbuild, not by reading code alone: edit the one key in the stored .mxunit (decode, change, re-encode with mongo-driver) and run mx check. On 11.17.0 an association's IsNullable false, the key removed, or MaxLength 7 are all 0 errors, while the same edit on an attribute is CE1585, which is the control that proves mx check compares facts at all. The damage is a version bump, which mxbuild ignores, so only describe's revision/topic line shows it. When editor.js and the metamodel default disagree with a hard-coded value, the hard-coded side must be excluded from comparison, not just from writing.", "test": "mdl/backend/modelsdk/cdc_baseline_1117_2612_test.go TestBumpCdcVersions_AssociationNullabilityIsNotAFact_2672 (with the guard stubbed: source 2.0, service 2.0, want 1.0)"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl-backend", "date": "2026-12-01", "refs": ["ako/mxcli#2672"], "symptom": "After `drop entity` + `create entity` with the same attributes, re-running `create or modify change data capture service` kept the baseline and the source at 1.0 (topic cdc.App.Order.1.{space}) although every GUID the baseline tracks had changed; mx check 11.17.0 reported 0 errors, so nothing flagged it.", "file": "mdl/backend/modelsdk/cdc_write.go bumpCdcVersions / identityChanged", "cause": "bumpCdcVersions matched baseline members to the domain model by exposed name and compared only type and the 11.17 facts; the entity GUID, PropertyGuid and an association's AssociatedEntityGuid were never compared, so a re-created element with the same name read as unchanged.", "insight": "Settle 'which identity does the version rule key on' in Studio Pro's change-data-capture-editor/editor.js, not in mxcli or mx check: getSourceModificationWithImpact / getPropertyModificationWithImpact compare domainCanonicalGuid !== baselineCanonicalGuid and rate it Major, and mxbuild ignores version numbers entirely, so mx check passes the wrong version and cannot be the oracle. Existing bump tests left every GUID empty on both sides, which is why a GUID-blind rule stayed green; a test fixture that zeroes an identity field cannot detect a rule that ignores it."}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area":"mdl/executor","date":"2026-12-01","symptom":"alter consumed odata service ... set (MetadataUrl: ...) printed only 'Altered OData client' and did not re-read $metadata; a user who took it for the refresh then dropped the client to force one, which deleted every external entity","cause":"Only create or modify consumed odata service re-fetches $metadata (refreshCachedMetadata); ALTER stores the URL and nothing said so. The refresh flow was documented only in the odata-data-sharing skill, not in mxcli syntax odata.consume or the docs site","file":"mdl/executor/cmd_odata.go (alterODataClient, printMetadataRefreshHint)","insight":"A discoverability gap, not a code defect: the statement that looks like the refresh is a no-op for the contract, so it is the place to name the real one. Check where a user searches (mxcli syntax refresh matched only microflow REFRESH) before assuming a skill line is enough. ALTER prints the hint rather than re-fetching, so a URL edit stays offline and cannot fail on an unreachable service.","refs":["ako/mxcli#2674"]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl-executor", "date": "2026-12-01", "refs": ["ako/mxcli#2709", "mendixlabs/mxcli#1995"], "ce": ["CE0642"], "symptom": "a combo box bound to an association as `Attribute: Order_Customer` (the spelling describe printed) drew MDL-WIDGET56 'attributeAssociation is required and not set — CE0642' on every describe → check round trip, while exec wrote it and mx check built it; the hint `set attributeAssociation:` was itself refused (MDL-WIDGET01)", "cause": "the association was accepted under two keywords: widget_engine's Association mapping fell back to `Attribute:`, describe printed `Attribute:`, and the required-property check's widgetValueMap read only the `Association` source. requiredSuggestion printed the storage key, not the MDL keyword", "file": "mdl/executor/validate_widgets.go (attributeNamesBoundAssociation, MDL-WIDGET57), widget_engine.go (Association mapping), cmd_pages_describe_parse.go / _output.go (ContentIsAssociation), validate_widget_required.go (mdlKeywordFor), mdl/visitor/visitor_page_v3.go (Association: $Param.Module.Assoc)", "fix": "one spelling: describe prints `Association:`; check and exec refuse `Attribute:` naming the association a widget's mode binds (MDL-WIDGET57, error, message names the rewrite); the MDL-WIDGET56 hint names the MDL keyword; the visitor keeps `Association: $Param.Module.Assoc` as the string the builder reads (it was only reachable through the Attribute alias)", "insight": "an alias is a contract every reader of the script must honour; the check missed it, and that was the whole bug. Removing the alias surfaced a hidden dependency: the parameter-rooted form `$Param.Module.Assoc` parsed as an expression under `Association:` and worked only through the `Attribute:` path, so a visitor test of the new spelling was what caught it. Breaking change by decision: old scripts get an error naming the rewrite", "test": "mdl/executor/validate_attribute_for_association_2709_test.go, mdl/visitor/visitor_widget_attribute_ref_test.go"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl-executor", "date": "2026-12-01", "symptom": "a script that runs `create external entities from M.Client …` and then `retrieve $S from M.Season` is refused by the reference check exec runs first: `microflow 'M.ACT' has reference errors: - entity not found: M.Season (referenced by retrieve)` … `Refusing to execute`; split into two runs it works", "cause": "the script context registered a bulk import only as `externalEntityModules` (a module-level escape) because the entity names live in the contract, not the statement; the association, alter-target and view checks honoured that escape, the microflow entity check (`sc.entities`) never did", "file": "`mdl/executor/validate_bulk_import_entities.go` (`collectBulkImportEntities`), `mdl/executor/cmd_contract.go` (`bulkImportSelection`, `bulkImportType.mendixName`, shared with `createExternalEntities`)", "insight": "A module-wide 'anything goes here' escape is a per-checker opt-in, so it silently misses every checker that forgot it; reading the contract and registering the real names fixes all of them at once and keeps typos in the same module an error. The selection and naming (ENTITIES filter on type OR set name, entity TYPE name, an older import's set-name entity kept) were extracted out of the executor's loop rather than copied, so check and exec cannot drift. The contract the check reads must be the one exec reads: a client created earlier in the script is read from its MetadataUrl via `normalizeMetadataURL` (project-relative), not the stored client's cache. An unreadable or HTTP contract registers nothing and the error keeps a reason, rather than whitelisting the module. Tests `mdl/executor/validate_bulk_import_entities_2674_test.go`", "refs": ["ako/mxcli#2674"]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl-executor", "date": "2026-12-01", "refs": ["ako/mxcli#2713"], "ce": [], "symptom": "`create or modify association M.Order_Customer from M.Order to M.Customer;` with no delete clause, run to set documentation, reset a stored `on delete restrict error message '\u2026'` to DeleteMeButKeepReferences and dropped the message; describe then printed no ON DELETE clause, and mx check stayed clean", "cause": "both OR MODIFY branches of execCreateAssociation (same-module and cross-module) wrote ChildDeleteBehavior unconditionally; the AST could not tell an unstated behaviour from `on delete set null`, because DeleteKeepReferences is the zero value", "file": "mdl/ast/ast_association.go (DeleteBehaviorSet), mdl/visitor/visitor_association.go, mdl/executor/cmd_associations.go (execCreateAssociation OR MODIFY)", "fix": "the visitor sets DeleteBehaviorSet for ON DELETE and DELETE_BEHAVIOR; OR MODIFY replaces the stored behaviour and its message only when it is set, as storage (#704) and export level (#1498) already did", "insight": "a zero-valued enum in the AST cannot carry 'unstated'; every OR MODIFY property whose default is a real value needs a stated flag or a pointer. Storage and export level had been fixed one at a time; enumerate the remaining unconditional writes in an OR MODIFY branch rather than wait for each report. Measured on 11.12.6: before, describe lost the clause; after, it kept it, the second exec reported Unchanged, mx check 0 errors", "test": "mdl/executor/cmd_associations_delete_behavior_test.go (TestCreateOrModifyAssociation_*), mdl/visitor/visitor_association_delete_stated_test.go"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl/executor", "date": "2026-12-01", "symptom": "`DROP ODATA CLIENT M.Client` / `DROP CONSUMED ODATA SERVICE` removes every external entity created from that client without saying so, leaving pages and microflows with dangling references; an entity imported `into` another module is not dropped at all and fails mx check with CE1613 \"The selected consumed OData service 'M.Client' no longer exists.\" at Entity 'Other.Race'", "cause": "`dropODataClient` ran its own cascade instead of `drop entity`'s: it scanned only the client's own module's domain model for `RemoteServiceName == M.Client`, called `Backend.DeleteEntity` directly (skipping `warnEntityReferences`, `associationMemberModules` and `reconcileModulesAccess`) and printed one line for the client", "file": "`mdl/executor/cmd_odata.go` (`dropClientExternalEntities`, `entityAssociationNames`, called from `dropODataClient`); test `mdl/executor/cmd_odata_drop_client_cascade_test.go`; repro `mdl-examples/bug-tests/2674-drop-odata-client-lists-entities.mdl`", "insight": "A cascade that re-implements a statement's delete is a second, quieter copy of it: every guard added to `drop entity` since (reference warning, #1449 access reconcile) never reached the copy. Reuse the statement's helpers and read everything that depends on the associations (referrers, member modules, association names) BEFORE the first delete, since DeleteEntity removes the associations. `RemoteServiceName` is the link, not the module: `into` puts an external entity anywhere, so scan `ListDomainModels`, not the client's module. mx check settles which leftover matters: the orphaned cross-module entity is CE1613 at the entity (the defect); after the fix the only error left is CE1613 at the microflow the warning named (the expected cost of the drop). The reference warning reads the catalog and is silent unless it is built, as for `drop entity`, so measure with `refresh catalog full` first or the fixed output looks no different. Rebuild the binary after editing: a `make build` started before the edit measured the old code as the fix", "refs": ["ako/mxcli#2674", "ako/mxcli#1449"], "ce": "CE1613"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl-executor", "date": "2026-12-01", "refs": ["ako/mxcli#2733", "mendixlabs/mxcli#2007", "#507", "#506"], "ce": [], "symptom": "a custom error handler whose last statement is an `if` with exactly one branch ending in `raise error`/`return` was wired as a retry loop: the continuing branch flowed to a new merge in front of the guarded call/commit, which ran again while it kept failing; describe printed `merge rejoin1; \u2026 join rejoin1;`. check, exec and mx check reported nothing; one statement after `end if` switched it off", "cause": "finishCustomErrorHandler special-cased isRetryLoopErrorHandler (added in #507 for #506, before merge/join existed) and built buildRetryLoopErrorHandler, redirecting the inbound flow through fb.incomingRedirect", "file": "mdl/executor/cmd_microflows_builder_flows.go (finishCustomErrorHandler), cmd_microflows_builder_graph.go, cmd_microflows_builder.go, layout_lanes.go (rejoinsPastRow)", "fix": "removed the heuristic, buildRetryLoopErrorHandler, bodyTerminates and the incomingRedirect field: a handler that does not end in RETURN/RAISE ERROR rejoins after the activity whatever its last statement is; a retry is written with merge/join, which describe already prints for one", "insight": "a shape heuristic that stood in for missing syntax outlived the syntax arriving: once merge/join could state the loop, the guess only fired on handlers that never asked for one. When a construct gains explicit syntax, delete the inference it replaced. Measured on 11.12.6: before, describe showed the loop; after, A (raise) and C (return false, on commit) rejoin forward, the explicit merge/join control still loops, all re-exec Unchanged, mx check 0 errors", "test": "mdl/executor/cmd_microflows_retry_loop_test.go (TestErrorHandlerEndingInOneSidedIfRejoinsAfterTheActivity), cmd_microflows_merge_join_test.go (TestMergeJoin_BackwardReferenceBuildsRetryLoop, control)"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl-executor", "date": "2026-12-01", "refs": ["ako/mxcli#2710", "mendixlabs/mxcli#1996", "ako/mxcli#2519"], "ce": [], "symptom": "a text box Studio Pro set to Aria required = Yes and Autocomplete purpose = PostalCode was described without either; check refused both as MDL-WIDGET52, and any create or modify / drop + create of the snippet stored AriaRequired false and AutocompletePurpose On on every text box. alter snippet kept them", "cause": "widget_write.go hard-coded SetAriaRequired(false) on text box, text area, date picker and radio buttons, and SetAutocomplete(true) / SetAutocompletePurpose(\"On\") on text box; sdk/pages had no fields, the builders and describe never read them, and the native-props read lists did not name them", "file": "sdk/pages/pages_widgets_input.go, mdl/backend/modelsdk/widget_write.go, mdl/executor/input_accessibility.go, cmd_pages_builder_v3_widgets.go, cmd_pages_describe_parse.go, cmd_pages_describe_output.go, widget_native_props.go, validate_widgets.go, input_submit_width.go", "fix": "AriaRequired carried on the four described inputs, Autocomplete and AutocompletePurpose on text box: parsed (purpose matched case-insensitively against the metamodel's AutocompletePurposeType, refused otherwise by check and exec alike, MDL-WIDGET18), written as given with Studio Pro's defaults when unset, described only when not the default", "insight": "third report of the same shape after KeyboardType (#1209) and AutoFocus (#2519): the issue named the text box, but SetAriaRequired(false) was on four widget types; grep the writer for literal Set*(false)/Set*(\"Default\") across all widgets instead of fixing the reported one. Forms$DropDown and Forms$CheckBox were left: the drop-down is never described, and the check box writer omits AriaRequired entirely. Live on 11.12.6: exec, describe prints the values, re-exec Unchanged, a label edit keeps them, mx check 0 errors", "test": "mdl/executor/input_accessibility_2710_test.go (build, describe with default control, check), mdl/backend/modelsdk/input_accessibility_2710_test.go (writer with default control)"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl/executor", "date": "2026-12-01", "symptom": "An import or export mapping value whose JSON type differs from the attribute's (CE5015) or that names an attribute the entity does not have (CE1613), an `import from mapping` fed an Integer, a list or an ordinary object (CE0239), and a snippet call passing an object of a generalization or an unrelated entity (CE0115) all passed check -p; a snippet call leaving out a parameter with no data context to supply it passed check -p and was refused by exec. Check-gap sweep 4 f75 f76 f77 f78 f88 f89", "cause": "MDL107 compared a mapping's member names with the JSON structure but never its value types, and nothing resolved the mapped attribute itself; the import-from-mapping input was never typed; the snippet call's parameters were checked only by exec's page builder (buildSnippetCallParams), not by the page walk check runs", "file": "mdl/executor/validate_mapping_snippet_gaps.go (MDL127, MDL128, checkSnippetCallParams), validate_program.go, validate_widget_attribute_scope.go (walk), validate.go (scriptContext.snippetDecls)", "insight": "The mapping value rule is an exact match, not a widening: a JSON integer does NOT meet a Decimal attribute (CE5015), though the same pairing is legal in an expression. Measure the whole matrix, import and export, before writing the table; 30 one-project measurements settled it. For an exec-only refusal (f88), reuse exec's own words and its own notion of a supplying context (either direction of a generalization), so check and exec cannot disagree on wording or scope.", "refs": ["ako/mxcli#1258"], "ce": ["CE5015", "CE1613", "CE0239", "CE0115"]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area":"mdl/executor","date":"2026-12-01","symptom":"A JavaScript action called from a microflow (CE0009), a JavaScript action argument of the wrong type (CE0117) or a required one left out (CE0115), a data grid / list view / gallery with a database source on a non-persistent entity (CE8812), and a database retrieve of a non-persistent entity (CE0056) all passed check -p and exec; MxBuild 11.16.1 rejected them. Check-gap sweep 4 f83 f84 f85 f91 f92 f93","cause":"The nanoflow validator refused a Java action (MDL091) but nothing refused the mirror case; JavaScript action arguments were matched by name only, and the missing-required check was disabled for them with the comment 'not measured'; nothing read an entity's persistability for a database source or retrieve","file":"mdl/executor/validate_microflow.go (MDL126), validate.go (JavaScript missing required arguments, javaScriptActionMustPass), typecheck.go + exprcheck/adapters/check.go (JavaScript argument types), validate_nonpersistent_sources.go (CE8812, CE0056)","insight":"A comment saying 'not measured' is an invitation, not a fact: one measurement settled it (a required JavaScript parameter left out is CE0115, an optional one is clean) and the existing Java-action machinery then applied unchanged. Name Go test files carefully: a file ending in _js_test.go is built only for GOOS=js, so the new tests were silently excluded and `go test -run` reported 'no tests to run' rather than failing. For persistability, judge only what is established: a script entity's stated kind, or a stored entity's Persistable flag, and never an external or view entity, whose data is read through a database source without a table.","refs":["ako/mxcli#1258"],"ce":["CE0009","CE0117","CE0115","CE8812","CE0056"]}
Loading
Loading