Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
359e0b2
check: refuse a validation feedback on a member the entity does not h…
claude Nov 30, 2026
8bc84ae
Merge remote-tracking branch 'origin/main' into fix/check-gap-validat…
claude Nov 30, 2026
9f4d44d
Merge remote-tracking branch 'origin/main' into fix/check-gap-validat…
claude Nov 30, 2026
80a3692
check: report a change/create member a script-declared entity does no…
claude Nov 30, 2026
7ed0fd3
check-gap: second parity sweep, f31-f50 on MxBuild 11.16.1
claude Nov 30, 2026
343e931
Merge pull request #2695 from ako/fix/check-gap-validation-feedback
ako Nov 30, 2026
c575b8a
Merge remote-tracking branch 'origin/main' into fix/change-member-scr…
claude Nov 30, 2026
4efc373
Merge pull request #2697 from ako/fix/change-member-script-entity
ako Nov 30, 2026
41def7a
Merge pull request #2698 from ako/test/check-gap-sweep-2
ako Nov 30, 2026
5bf62bb
check: event handler signatures and attribute defaults the build reje…
claude Nov 30, 2026
d47b5d3
Merge remote-tracking branch 'origin/main' into fix/check-gap-domain-…
claude Nov 30, 2026
b93b19c
check: missing call arguments, XPath literal types, aggregate express…
claude Nov 30, 2026
91a392f
check: do not report a misspelled call argument twice
claude Nov 30, 2026
3b82e6c
check: refuse add attribute on an external entity the script creates …
claude Nov 30, 2026
e056372
fix: a column ELSE is measured once, so a decision chain describes in…
claude Nov 30, 2026
efd788c
check-gap: third parity sweep, f51-f73 on MxBuild 11.16.1
claude Nov 30, 2026
b9d2d47
Merge pull request #2712 from ako/claude/issue-triage-prioritization-…
ako Nov 30, 2026
ac1dcbc
check: six page mistakes the build rejects (CE0551, CE0552, CE0117, C…
claude Nov 30, 2026
c02b164
Merge pull request #2699 from ako/fix/check-gap-domain-events
ako Nov 30, 2026
91c0c88
Merge remote-tracking branch 'origin/main' into fix/check-gap-calls-e…
claude Nov 30, 2026
a8d9800
check: compare page URLs between distinct pages; fix an example's hom…
claude Nov 30, 2026
b48cdc5
fix: a queued error handler is deferred only past reads of its own ou…
claude Nov 30, 2026
caa5ba7
check-gap pages: canonical editable spelling in the control; test it too
claude Nov 30, 2026
926a84f
Merge remote-tracking branch 'origin/main' into fix/check-gap-pages
claude Nov 30, 2026
10ad20c
Merge pull request #2716 from ako/claude/issue-triage-prioritization-…
ako Nov 30, 2026
fabca50
Merge remote-tracking branch 'origin/main' into fix/check-gap-pages
claude Nov 30, 2026
0a3e09f
Merge pull request #2700 from ako/fix/check-gap-calls-expressions
ako Dec 1, 2026
8e65061
Merge remote-tracking branch 'origin/main' into fix/external-entity-a…
claude Dec 1, 2026
41197aa
check: Java action argument types, association ends, scheduled event …
claude Dec 1, 2026
7644592
check-gap domain/microflow: fixtures, finding, changelog
claude Dec 1, 2026
db3eb12
Merge remote-tracking branch 'origin/main' into fix/check-gap-pages
claude Dec 1, 2026
abc21f3
Merge remote-tracking branch 'origin/main' into fix/check-gap-domain-…
claude Dec 1, 2026
371f727
Merge pull request #2711 from ako/fix/external-entity-add-attr-script
ako Dec 1, 2026
e423e6f
check: workflow call microflow signatures and decision conditions (CE…
claude Dec 1, 2026
4a33da1
fix: a generic Java action's result takes the entity its type paramet…
claude Dec 1, 2026
ed640b2
Merge remote-tracking branch 'origin/main' into fix/check-gap-pages
claude Dec 1, 2026
d80a6c8
Merge remote-tracking branch 'origin/main' into fix/check-gap-domain-…
claude Dec 1, 2026
c69da6c
Merge pull request #2719 from ako/claude/issue-triage-prioritization-…
ako Dec 1, 2026
14b81f9
Merge remote-tracking branch 'origin/main' into fix/check-gap-workflows
claude Dec 1, 2026
26b370d
Merge pull request #2715 from ako/test/check-gap-sweep-3
ako Dec 1, 2026
b76eb11
Merge remote-tracking branch 'origin/main' into fix/check-gap-workflows
claude Dec 1, 2026
6895692
Merge pull request #2717 from ako/fix/check-gap-pages
ako Dec 1, 2026
e8ff7de
check-gap README: f59 and f60 are now caught by check -p
claude Dec 1, 2026
ae85fc9
Merge remote-tracking branch 'origin/main' into fix/check-gap-domain-…
claude Dec 1, 2026
f472369
Merge remote-tracking branch 'origin/main' into fix/check-gap-workflows
claude Dec 1, 2026
132f2ee
check-gap README: f51-f54, f56, f57 are now caught by check
claude Dec 1, 2026
4689334
check-gap README: f58, f62, f67, f68, f72 are now caught by check
claude Dec 1, 2026
c30cbb0
check-gap: fourth parity sweep, f75-f98 on MxBuild 11.16.1
claude Dec 1, 2026
f777409
fix: a carrying-on error handler skips list operations on the output …
claude Dec 1, 2026
26b20db
Merge pull request #2720 from ako/fix/check-gap-domain-microflow
ako Dec 1, 2026
da87720
Merge remote-tracking branch 'origin/main' into fix/check-gap-workflows
claude Dec 1, 2026
9206eec
Merge remote-tracking branch 'origin/main' into docs/check-gap-readme…
claude Dec 1, 2026
e1754ef
Merge pull request #2727 from ako/claude/issue-triage-prioritization-…
ako Dec 1, 2026
4b64658
Merge remote-tracking branch 'origin/main' into fix/check-gap-workflows
claude Dec 1, 2026
7f54e1c
Merge pull request #2721 from ako/fix/check-gap-workflows
ako Dec 1, 2026
fcbe4c1
Merge pull request #2722 from ako/docs/check-gap-readme-pages
ako Dec 1, 2026
26bf683
Merge pull request #2723 from ako/test/check-gap-sweep-4
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/executor","date":"2026-11-30","symptom":"A call microflow/nanoflow leaving out a parameter (CE0115), a retrieve constraint comparing an attribute with a literal of another type such as [Qty = 'abc'] or [Name = 5] (CE0161), and an aggregate's expression form over a non-number such as `average $L of $currentObject/Name` or a bare `of Qty` (CE0117) all passed check -p and exec; MxBuild 11.16.1 rejected them. Check-gap sweep 2 f34, f37, f48","cause":"Each had a sibling check that stopped one step short: the flow-call argument check reported an argument naming no parameter but never the reverse, and skipped a call with no arguments at all; the literal-versus-attribute table (literalTypeProblem) existed only for access rules, retrieves comparing only with variables; the aggregate type check (CE0016) judged only the `by Attr` form, never `of <expression>`","file":"mdl/executor/validate.go (missingFlowCallArgs, scriptContext.enumerationValues), validate_retrieve_operand_types.go, validate_access_rule_xpath.go (xpathLiteralTypeProblem), validate_flow_member_refs.go (aggregateExpressionType)","insight":"Before writing a new rule, look for the sibling that answers the same question for a neighbouring form: all three gaps were one step past an existing measured check, and the access rule's 11.14.0 literal matrix predicted every one of the nine retrieve cases measured on 11.16.1. In an aggregate's expression a bare attribute name is CE0117 even for an Integer attribute: only $currentObject/Attr reaches the item. When an agreement check against mx says every new rule misses, check the binary's timestamp first: a sweep that runs `make build >/dev/null` in the background can leave a stale binary in place.","refs":["ako/mxcli#1258"],"ce":["CE0115","CE0161","CE0117"]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area":"mdl/executor","date":"2026-11-30","symptom":"`change $I (Nope = 1)` and `create Sp.Item (Nope = 1)` on an entity the script itself declares passed check -p --references; mxbuild reported CE1613 \"The selected attribute 'Sp.Item.Nope' no longer exists.\" A wrong-case name (`name` for `Name`) passed the same way","cause":"checkMembers asked only the project (resolveMemberOnEntity), and an entity the project does not have yet resolves to memberUnknown, which is silent; the script's own declarations were consulted only through `authored`, which folds case","file":"mdl/executor/validate_member_refs.go (checkMembers)","insight":"The script-aware member walk already existed for expressions (scriptMemberModel: declared attributes, generalizations, associations in the module, altered entities left unknown); change and create just were not asking it. The case-folded `authored` set is a convenience for add-then-populate scripts, not a member model, so consulting it first hid the wrong-case CE1613. The builder is deliberately not taught to refuse: a change item's member is not judged at exec time even for project entities, and a builder refusal would reject an `alter entity … add attribute` that comes after the microflow, which builds clean.","refs":["ako/mxcli#1258"],"ce":["CE1613"]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl/executor", "date": "2026-11-30", "symptom": "with `flows: preset: true-right-false-down`, describe microflow took time that doubled with every nested decision; a chain of 58 `if … then return …; else if …` never finished (describe module --all stopped at it)", "cause": "measureIf measured the ELSE body twice under IfElseColumn: measureBranch (whose result the column measurement then replaced) and measureColumn; both recurse into the nested IF, so a chain of N cost 2^N. Only the column style measured both, which is why the default style stayed at 0.3s", "file": "mdl/executor/layout.go (measureIf)", "fix": "measure the ELSE body once: as a column under IfElseColumn, else as a branch; describe output unchanged (diffed old vs new)", "insight": "pprof via MXCLI_CPUPROFILE put 86% under layoutMeasurer.measureIf/measureColumn at N=20, which named the doubling at once. A deadline test at depth 40 separates 2^N from linear without timing noise; a timing assertion would flake. A second measurement whose result is discarded is invisible in output and only shows as cost", "refs": ["ako/mxcli#2704", "mendixlabs/mxcli#1989"], "test": "mdl/executor/flowlayout_column_chain_2704_test.go"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area":"mdl/executor","date":"2026-11-30","symptom":"An entity event handler calling a microflow with the wrong parameter (a String, a specialization, a list, none, two) or a before handler returning non-Boolean, and an attribute default the build rejects (Decimal 'abc', Integer 3000000000, DateTime '2025-01-01T00:00:00', Boolean 'True', a missing enumeration value), all passed check and exec; MxBuild 11.16.1 reported CE7247 (or CE1613 for the enumeration). Check-gap sweep 2 f40, f41, f46","cause":"No check judged a handler microflow's signature (only its existence, under --references), and the constant-default rule MDL113 was never extended to attribute defaults","file":"mdl/executor/validate_domain_events_defaults.go (MDL120 ValidateEntityEventHandlerSignatures, MDL121 ValidateAttributeDefaults)","insight":"Measure each rule instead of assuming it: a before-commit handler must return Boolean even WITHOUT raise error, and every before handler does (create, commit, delete, rollback), while after handlers return anything. A generalization is a valid handler parameter, a specialization is not. Attribute defaults are stricter than constant defaults for the same type: Boolean must be lower-case, and DateTime takes 'yyyy-mm-dd [hh:mm[:ss]]', not the ISO 'T' form constants require; '.5' is a valid constant Decimal but not an attribute one. One fixture that holds several defects will show only the CE1613, which masks the CE7247s: measure one defect per project, and count every rule ID check reports, not just the new ones (a microflow named Void was MDL116 all along).","refs":["ako/mxcli#1258"],"ce":["CE7247","CE1613"]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area":"mdl/executor","date":"2026-11-30","symptom":"`create external entity M.E from odata client …` followed by `alter entity M.E add attribute X: String` in the same script passed check -p, while exec refused the alter with the CE6612 message (an external entity's attributes are the contract's)","cause":"validateViewEntityAttributeSet judged an external entity only when it was stored in the project; it skips every entity in sc.entities, and a script-created external entity was recorded there like any other","file":"mdl/executor/validate.go (scriptContext.externalEntities, validateViewEntityAttributeSet)","insight":"A backlog note can go stale without anyone fixing it on purpose: 'add attribute on an external entity passes plain check -p' stopped being true for stored entities when -p began to imply --references. Re-checking it first turned a supposed gap into a narrower one, the script-created case, which exec already refused, so check and exec disagreed rather than both missing it.","refs":["ako/mxcli#2477","ako/mxcli#1258"],"ce":["CE6612"]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl-executor", "date": "2026-11-30", "refs": ["ako/mxcli#2708", "mendixlabs/mxcli#1994", "ako/mxcli#2421"], "ce": ["CE0108"], "symptom": "`$A = call … on error … end error; $B = call … on error … end error; log … $B`: the first call's handler rejoined after the second call, so on its error path the second call was skipped and the log read $B where it does not exist. check and exec passed; mx check CE0108. Without a handler on the second call, or without the read, or with a commit instead, the rejoin was right", "cause": "buildFlowGraph computed the skip-var look-ahead (statementsReferenceVar(rest, skipVar)) once, for the ACTIVE handler's variable, and addPendingErrorHandlerFlowForStatement applied that boolean to every pending handler, the queued one whose variable ($A) nothing reads included", "file": "mdl/executor/cmd_microflows_builder_flows.go (addPendingErrorHandlerFlowForStatement), cmd_microflows_builder_graph.go", "fix": "pass the remaining statements and compute the look-ahead per pending handler from its own skipVar, as settleBranchFlow already did for branches", "insight": "the reporter's four-variant matrix pinned it: only the variant where a SECOND handler existed (so the first was queued, not active) AND its variable was read later failed. A flag computed for one element of a queue and applied to all of it is the shape to grep for; the branch path had the per-element form already, so the two disagreed", "test": "mdl/executor/error_handler_rejoin_next_handler_2708_test.go"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area":"mdl/executor","date":"2026-11-30","symptom":"Six page mistakes passed check -p and exec, and MxBuild 11.16.1 rejected each: a list view or data grid whose data-source microflow returns an object, a String or nothing (CE0551); a data view whose data source returns a list, a String or nothing (CE0552); `visible:`/`editable:` on a non-Boolean attribute (CE0117); a button argument of the wrong type (CE0117); two pages with one URL (CE5600) or a URL starting with a slash (CE0899); a home page that takes a parameter (CE0529). Check-gap sweep 3 f51-f57","cause":"The page walk already resolved data-source signatures, the data context, attribute types and action arguments, but used them only for names (missing parameter, missing member). Nothing compared the shape or type: flowSignature carried no return shape and flowParam no primitive kind","file":"mdl/executor/validate_page_gaps.go (checkDataSourceShape, checkBooleanConditions, checkActionArgTypes, MDL122 ValidatePageURLs, MDL123 ValidateHomePageParameters), validate_datasource_args.go (flowSignature.ReturnShape, flowParam.Kind)","insight":"Measured details that are easy to guess wrong: an enumeration attribute is not a valid visible condition (CE0117), only a Boolean; page URLs are compared case-sensitively ('same' and 'Same' build clean); a home page with a parameter is CE0529 but a login page with one is clean. The button-argument matrix is the microflow call one: Integer to Decimal widens, Integer to String does not. A data grid's own column errors masked nothing here, but a fixture with several defects should still be measured one defect per project.","refs":["ako/mxcli#1258"],"ce":["CE0551","CE0552","CE5012","CE0117","CE5600","CE0899","CE0529"]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area":"mdl/executor","date":"2026-11-30","symptom":"`validation feedback $I/Nope message 'x'` on a member the entity does not have passed check -p, check -p --references and exec; mxbuild then reported CE1613 \"The selected attribute 'Sp.Item.Nope' no longer exists.\" (check-gap parity sweep f25)","cause":"bareFeedbackMember fell back to writing `<entity>.<name>` when the name resolved to neither an attribute nor an association, and statementAttributePaths deliberately skips a feedback's target (it is a member reference, not an expression), so check --references never asked about it","file":"mdl/executor/cmd_microflows_builder_calls.go (bareFeedbackMember), mdl/executor/validate_flow_member_refs.go (feedbackMember), mdl/executor/member_verdict.go (missingMemberRefusal)","insight":"The question was already answered for list operations (#1646): flowMemberVerdict, with systemDates on. Measured on 11.16.1 that is exactly mxbuild's rule for a feedback target too: an inherited attribute, a bare association and createdDate where the root stores it are clean; a wrong-case name and createdDate where the root does not store it are CE1613. Reusing the verdict and the message in both the builder and check made exec and check say the same thing without a new rule ID. The builder keeps returning the old spelling because existing tests pin it; the recorded refusal stops the write before it is stored. Still open: `change $I (Nope = 1)` on an entity the script itself declares, which checkMembers deliberately leaves memberUnknown.","refs":["ako/mxcli#1258"],"ce":["CE1613"]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area":"mdl/executor","date":"2026-12-01","symptom":"Five mistakes passed check -p and exec, and MxBuild 11.16.1 rejected each: a call java action argument of the wrong type, such as 'abc' or 1.5 for an Integer or an Integer for a String (CE0117); a create or change setting an association to an object of another entity (CE0117); a retrieve over an association from an entity that is not an end of it (CE0020, CE0136); a scheduled event whose microflow takes a parameter (CE7247); a constant of type Binary (CE0046). Check-gap sweep 3 f58 f62 f67 f68 f72","cause":"The expression checker's call-argument matrix covered call microflow and call nanoflow only, because the catalog declares flow parameters and not Java action ones; the member walk resolved an association set or retrieve by name but never compared ends; nothing read a scheduled event's microflow signature or a constant's type","file":"mdl/executor/typecheck.go (declareJavaActionParams), mdl/exprcheck/adapters/check.go (CallJavaActionStmt), mdl/executor/validate_flow_member_refs.go (associationSetValue, retrieveAssociationStart), mdl/executor/validate_domain_events_defaults.go (MDL124, MDL125)","insight":"Reuse the existing slot instead of writing a parallel check: declaring a Java action's primitive parameters to the reader as a flow's made the measured call-argument matrix apply with no new rule, and the measurements agreed with it case for case. A test that exercises the type-checking tier has to call TypeCheckProgram itself, because agreeCheck runs ValidateProgram and the reference pass only. And when sweeping for a new message with grep, single-quote the pattern: in double quotes bash expands `$[...]` as arithmetic, and the sweep silently matched nothing.","refs":["ako/mxcli#1258"],"ce":["CE0117","CE0020","CE0136","CE7247","CE0046"]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl-executor", "date": "2026-12-01", "refs": ["ako/mxcli#2696", "ako/mxcli#2708", "ako/mxcli#2421"], "ce": ["CE0108"], "symptom": "`$Rows = <action> on error without rollback begin … end error; $Row = head $Rows; if $Row != empty then …` in a flow with `returns … as $X`: check and exec passed; mx check CE0108 'Variable Rows is defined but not in scope' at the Head (and at a `count $Rows` aggregate)", "cause": "two gaps in the skip-var deferral of a carrying-on handler: (1) errorHandlerStatementVarRefs had no case for ListOperationStmt, AggregateListStmt, CastObjectStmt, RollbackStmt, ShowPageStmt or the enum/inheritance splits, so `head $Rows` did not count as reading $Rows; (2) outputDerivedVariable knew only `declare`, and the move of the skip onto the derived variable ran only in flows WITHOUT a declared return value, so after `$Row = head $Rows` the handler rejoined before the reader of $Row", "file": "mdl/executor/cmd_microflows_builder_flows.go (errorHandlerStatementVarRefs, outputDerivedVariable, addPendingErrorHandlerFlowForState), cmd_microflows_builder.go (isDeclaredReturnVariable)", "fix": "add the missing readers; list op/aggregate/cast derive their output; the skip moves to a derived variable in every flow except onto the declared return variable (which the final return reads)", "insight": "the unit test harness (buildFlowFromMDL) builds a flow with no return type, so the first fix passed every unit test and still failed mx check live: the reporter's flow declares `returns DateTime as $Since`, and that took a different branch. Measure against mx check before trusting a builder harness, and test both with and without a declared return when a builder branch reads hasDeclaredReturnValue", "test": "mdl/executor/error_handler_skips_list_ops_2696_test.go"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl-executor", "date": "2026-12-01", "refs": ["ako/mxcli#2701", "mendixlabs/mxcli#1986", "ako/mxcli#1777"], "ce": ["CE0015", "CE1613"], "symptom": "`$R = call java action RetrieveFor(ObjectList = $Customers, RetrieveEntity = 'Sales.Order')` (RetrieveFor<InputType, ResultType> returns List of ResultType): exec typed $R as List of Sales.Customer and refused `sum $R by Amount`, after check passed; with only `entity <ResultType>` the result was untyped and the aggregate was written `sum $R by ;` (CE0015)", "cause": "javaActionResultType typed a `List of T` return as the first list ARGUMENT's type, whichever type parameter that list binds, and never read an `entity <T>` argument; an object-of-T return was not typed at all", "file": "mdl/executor/cmd_microflows_builder_calls.go (javaActionResultType, returnTypeParameter, javaActionArgTypes), cmd_alter_flow.go (storedEntityTypeResult)", "fix": "match the return's type parameter (ListType.TypeParameter/ID or TypeParameter) against the parameter that binds it: entity <T> → its entity, List of T → its list's entity, T → its object's entity; the first-list fallback is kept only for a definition whose type parameter is unnamed; the stored-call typing in alter reads an entity <T> binding from the stored mapping", "insight": "the read side already carried the type parameter's name and ID on ListType (fixed for describe earlier); the write-side typing never used it. A heuristic that is right for the one-type-parameter `List of T in, List of T out` shape is wrong as soon as a second type parameter exists. Note: a fresh container wipes the generated parser and the mxbuild cache; `make -C mdl/grammar bootstrap` then ANTLR4_TOOLS_ANTLR_VERSION=4.13.2 make grammar, and `mxcli new` re-downloads mxbuild", "test": "mdl/executor/javaaction_result_type_param_2701_test.go"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area":"mdl/executor","date":"2026-12-01","symptom":"A workflow call microflow activity whose microflow returns a String, an Integer or an object (CE6678), or takes a parameter other than the context entity with no mapping (CE0117), and a workflow decision on a String or Integer attribute (CE0078), all passed check -p and exec; MxBuild 11.16.1 rejected them. Check-gap sweep 3 f59 f60","cause":"The workflow signature checker judged user-task pages, targeting and completion microflows, but not the call-microflow activity's microflow or the decision condition. A stored microflow's signature also carried no ReturnKind (only the script's did), so return-type rules could not judge a project microflow at all","file":"mdl/executor/validate_workflow_call_signature.go (checkCallMicroflowSignature, checkDecisionCondition, sdkReturnKind), validate_workflow_task_signature.go, validate_datasource_args.go (sdkFlowSignature sets ReturnKind)","insight":"The context entity's parameter is passed implicitly (an unmapped $C: Ctx builds clean) while any other unmapped parameter is CE0117: judge the parameter by type, not by whether a mapping exists. An enumeration return is legal for the call microflow but needs matching outcomes (CE6686), a separate rule left unjudged; the agreement run shows it as the one expected mismatch. Filling ReturnKind for stored signatures widens every return-type rule that reads flowSignature, so run the rules that already used it (the multi-user completion microflow, CE5012) before trusting the change.","refs":["ako/mxcli#1258"],"ce":["CE6678","CE0117","CE0078"]}
Loading
Loading