Repository navigation
Sync ako/mxcli: send rest request error handlers, pop-up Cancel, user-role XPath refs, Data Widgets install, and a domain-model layout gate - #1930
Merged
Conversation
on error [without rollback] begin … end error on send rest request passed check, and exec stored Rollback with no handler; describe never printed the block. All three sites skipped the action on the strength of an unmeasured CE6035. Measured on 10.24.11, 11.12.6 and 11.16.1: no clause and both custom handlers build; only on error continue is CE6035, now refused by MDL076. The writer emits ErrorHandlingType, and two skills that taught the old claim are corrected. Closes #2534 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
…rioritization-24rqgv # Conflicts: # CHANGELOG.md
TestGetActionErrorHandlingType_RestOperationCallIsExcluded pinned the unmeasured CE6035 premise that #2534 overturns; it now pins the measured behaviour, both custom handlers reported. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
minimum/maximum/sum/average BY a DateTime or String attribute passed check and exec; mxbuild fails it with CE0016. check and the builder now refuse it with one shared message. Measured on 11.12.6: the eight combinations are CE0016, an Integer control builds. Closes #2528 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
An entity named Owner, Type, Object, Context, CreatedDate and the rest of types.IsPlatformReserved passed check and exec and failed mx check with CE7247. create entity, create view entity and rename entity now refuse it (MDL021), in check and exec. Measured on 11.12.6: check names the same 17 of 22 entities mx refuses. Closes #2531 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
textbox (AutoFocus: true) was refused by check (MDL-WIDGET52) and the writer hard-coded false, so describe -> exec cleared Auto focus on a Studio Pro text box. It is now carried end to end like Password, and described only when on. Closes #2519 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
The #2519 change read AutoFocus in the builder but did not list it in staticWidgetKnownProps, so check would have warned MDL-WIDGET07 on it; TestStaticWidgetKnownProps_CoverSourceVocabulary caught it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
The #2531 refusal is the same reserved-word rule as for attributes, so MDL021 is registered as deliberately shared. Two rename tests renamed an entity to New — the Java keyword new, CE7247 as an entity name — for paths unrelated to the name; they now use Renamed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
customEditability on an association combo box passed check and failed the build with CE0463: MDL-WIDGET10 judged the rule on source, which the statement never states and exec writes from the template, so it read as undeterminable. The #2523 template fill is now shared by both checks. Measured on 11.16.1 against three pages; check and mx agree on each. Closes #2522 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
…24rqgv fix(microflows): send rest request keeps its custom error handler
…rioritization-24rqgv
The merge of main placed them under the release cut while this branch was open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
Proposal adopting the readability rules from the domain-model-layout skill attached to mendixlabs#1929 into `mxcli layout`: label-sized column gaps, target-aligned rows, recomputed association anchors, a free band for cross-module associations, and a crossing count plus lint rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82s49BaVGmKAnsWx6iR
transient is a Java keyword; an entity named Transient is CE7247 on 11.12.6 (measured with transient, volatile, native, synchronized, new and package — all six refused). #2531's MDL021 caught it; the example now uses Scratch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
…24rqgv Batch L: aggregate types, reserved entity names, text box AutoFocus, hidden combo box values
'[%UserRole_X%]' in a retrieve, data source or access rule is CE1613 once the role is dropped, and check and exec let the drop through. Both now scan the stored units for the exact token and name each document; check follows documents the script drops first. Measured on 11.12.6: the pre-fix drop gives two CE1613, at the two places the refusal names. Part of #2529 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
Each '[%UserRole_X%]' in a recorded XPath constraint is now an xpath edge to USER_ROLE X (for roles the project has), so show references to and show impact of list the retrieves, data sources and access rules that use the role. Part of #2529 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
search "%UserRole_X%" was an FTS5 syntax error reported as no matches; any character outside FTS5's barewords now separates terms, as / . - : already did. Closes #2529 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
TestEveryObjectTypeConstantIsInAPublishedList caught the new type missing from RefTargetObjectTypes; the lint-rule skill lists it for rule authors. Part of #2529 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
…24rqgv fix: a user role named by its XPath token is found, and kept from being dropped
Agents create linked entities without @position and skip `mxcli layout`, and nothing stopped them: MPR016 only fires on overlapping boxes, which Place now avoids, and it is a warning, which `lint` and `verify` pass. MPR020 is an error. Its signature (dmlayout.NotLaidOut) is an entity on an exact grid slot other than the origin, linked to another entity in the module, that Plan would not place there. Studio Pro positions do not land on those coordinates, so hand-arranged diagrams are not reported, and anything `mxcli layout` placed is excluded by construction: the command the finding names always clears it (a fixture where Plan lands on GridSlot(12) by arithmetic pins that). Each guard was stubbed in turn and its test failed. On a copy of testdata/pedapp a three-entity script fires it (lint exit 1), `mxcli layout` clears it (exit 0); the pedapp, testapp-views, v1-project and expr-checker fixtures report nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82s49BaVGmKAnsWx6iR
At the end of a program, each domain model the script modified is checked with dmlayout.NotLaidOut (the MPR020 signature), and a module with linked entities still on the placement grid gets one line naming the command: "Domain model Shop is not laid out: 2 linked entities are on the default placement grid (Order, OrderLine). Run: mxcli layout --module Shop". The agent sees it when the script that needs it runs, not only when the gate does. Printed in module order, once per module; not with --quiet, and not for Marketplace modules, which `mxcli layout` skips. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82s49BaVGmKAnsWx6iR
MPR020 is now DomainModelNotLaidOut. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82s49BaVGmKAnsWx6iR
…i-n64mx1 # Conflicts: # CHANGELOG.md
The skill asked for "position annotations on all entities" and to "position thoughtfully", which contradicted the syntax reference's own advice to write no positions and run `mxcli layout`, and its validation steps named a Node linter that does not exist in this repo. Now: write no @position, check with `mxcli check --references`, then exec, `mxcli layout --module <M>` (dry run first) and confirm MPR020 and MPR016 are clean, in the same turn as the exec. For a few entities added to a module someone arranged by hand, where layout would move the rest, give only the new ones @position beside their partners instead. The syntax reference's "Entity Positioning" section says the same. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82s49BaVGmKAnsWx6iR
… skill The skill rewrite removed old-syntax MDL examples, so its two files now carry fewer tolerated findings (SKILL.md 9 -> 8, reference/syntax.md 10 -> 8). The gate requires the list to shrink when it can; this is `make conformance-shrink`'s output. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82s49BaVGmKAnsWx6iR
… REPL The skill pointed at packages/mendix-repl/... (reserved-keyword doc, linter proposal, shop and pet-store example scripts, a standalone linter test) and quoted that old linter's error messages. None of it is in this repository. - Step 4 quotes what `mxcli check --references` prints for its three cases, captured on a copy of testdata/pedapp: MDL020 (CreatedDate), MDL-DUPNAME (entity named like an enumeration, CE0065) and MDL030 (ORDER BY without LIMIT in a view entity). - References name `mxcli syntax domain-model`, the skill's own reference files and `mxcli lint --list-rules -p`. - The worked e-commerce example in reference/patterns.md drops its @position lines and says to run `mxcli layout`, and its hand-placement formula section now points at the command, matching step 5. The example execs, lays out and lints clean on a project copy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82s49BaVGmKAnsWx6iR
…osal Two Studio Pro screenshots, measured against stored values: TestApp's Mappings module at 100 % (four entity positions agree on one scale factor, 1.59) and a Fulfilment module at 50 %, whose entities sit exactly on dmlayout.GridSlot's pitch at half that factor. - Box width is a fixed 150; height is max(84, 36 + 16 x attributes). dmlayout's estimate is 18-24 px short for 0-2 attributes, so a new Phase 0 corrects boxSize before anything builds on it. - Labels are about 5 px per character plus ~12; Phase 1 uses 5.5. - A cross-module line runs from the left side of each local end to the diagram's left edge, the TARGET included (ViewAssociations' persistent_order is drawn in Mappings' diagram), and through whatever sits to its left. Phase 3 is unblocked and collects band entities from every module's cross associations. Spacing of several lines on one entity stays open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82s49BaVGmKAnsWx6iR
Studio Pro 11.16.1's beta viewer, measured on ako/PizzaV1 (Fulfilment at 75 %, Catalog at 100 %) against the positions in the repository: - Box width is fixed at 158 (150 in the classic viewer); height is max(~76, 28 + 16 x attributes) (classic max(84, 36 + 16 x n)). Phase 0 now takes the larger of the two in each dimension: 160 and max(84, 36 + 16 x n). - n cross-module lines on one entity sit at i / (n + 1) of its height: Order 3 at 25/50/75 %, Product 2 at 33/67 %, Option 5. That closes the spacing question for Phase 3's free band. - A red label border is not only "does not fit" (OrderAccess_User is red with room to spare), so the proposal no longer reads it as one. MPR020 reports Catalog, Fulfilment, PizzaChat and Shop on a copy of the project, every one of whose entities is on GridSlot; Core and Simulation are not reported. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82s49BaVGmKAnsWx6iR
cancel changes stored ClosePage false, so a pop-up's Cancel left it open. The bare form now closes; with (ClosePage: false) keeps the page open, and describe spells both values explicitly. Every save and cancel button in a Studio Pro-built app (31 of 31 in TestApp) stores ClosePage true. Closes #2536 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
Installing a module that bundles Datagrid and its filters (Excel Importer 11.2.2 ships 3.8.1) moved them past the installed Data Widgets module, whose themesource styling stayed behind: every Data grid 2 collapsed into one column with no error. Such a widget is now held at its styling module's version, reported with the update that moves both. Closes #2537 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
boxSize guessed 60-66 px for an entity with 0-2 attributes where Studio Pro draws 84, so Plan stacked boxes tighter than its gutter intended and MPR016 missed overlaps of up to 24 px. Width grew 8 px per character of the longest name, where Studio Pro draws every entity the same width and cuts long names off. Measured on screenshots of the classic viewer (TestApp Mappings; a grid-placed Fulfilment module) and the 11.16 beta viewer (ako/PizzaV1 Fulfilment and Catalog), each calibrated against the stored positions: width 150 classic / 158 beta, height max(84, 36 + 16n) classic / max(~76, 28 + 16n) beta. The estimate takes the larger of the two: width 160, height max(84, 40 + 16n), 4 px over the classic header for measurement error. boxsize_test.go asserts every measured height is covered and none overestimated by more than a row; it fails against the old estimate. The MPR020 fixture where Plan lands on a grid slot by arithmetic is recomputed for the new heights (GridSlot(18)), and still fails with the Plan exemption stubbed out. No MPR016 findings on PizzaV1 either way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82s49BaVGmKAnsWx6iR
…24rqgv Pop-up Cancel closes; bundled widgets stay in step with Data Widgets' styling
An activity's documentation had no MDL spelling, so describe left it out and an activity replaced by create or modify lost it with no way to carry it from the script. @documentation 'text' sets it on an action, decision or loop and describe prints it; left out, create or modify keeps the stored text, as it keeps a node's position. Closes #2328 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
A page or microflow reachable only by its URL read as referenced by nothing in show impact and was listed by graph_dead_assets. The catalog gains MarkAsUsed (flows, pages) and a microflow URL, graph_dead_assets leaves such documents out, and the no-references message names the entry point. Schema 51, which also rebuilds caches lacking #2529's USER_ROLE edges. Closes #2241 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
session-report applied its error-line heuristic to every Bash call, so a sed or mxcli syntax read quoting an error counted as a failed call and the next as a retry. The heuristic now skips commands whose every segment is orientation; is_error still counts for all. Closes #2525 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
Domain model layout: MPR020, exec reminder, skill, measured box sizes, readable-layout proposal
…on names Phase 1 of PROPOSAL_domain_model_readable_layout.md. Plan stacked every column from the top on its own, so a referrer rarely shared its target's row and most lines ran diagonally; and the gap between columns was a fixed 90 px, which cuts off any association name over about 10 characters in Studio Pro (rule 5 of mendixlabs#1929). - Each entity goes on the row of its primary target (the placed entity it has most associations to, ties by name), or the nearest free y below when that row is taken in its column. - The gap after each layer is the gutter, or the longest name of an association between that layer and the next plus both 1/* markers: 5.5 px per character + 12, + 40, from the Studio Pro measurements. Lines spanning several layers do not size a gap; their labels sit over a column whatever the gap, which is a crossing (phase 4). Each behaviour was stubbed in turn and its test failed (gaps, row alignment, most-linked target, collision handling). The existing Plan tests (no overlap, determinism, locality, layering) pass unchanged. On a copy of ako/PizzaV1 (Catalog, Fulfilment, Shop, PizzaChat), every horizontal line now has room for its label, 16 of 16 against 1 of 16, and more lines run straight across (Fulfilment 3 -> 4, PizzaChat 1 -> 3). Diagrams with long names are wider (Catalog +268 px). Lines from several referrers still meet at one point on the target: that is the anchor work of phase 2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82s49BaVGmKAnsWx6iR
govulncheck fails build-and-test on main and on every PR with GO-2026-6278: github.com/gorilla/websocket v1.5.3 uses a cryptographically weak PRNG for the WebSocket mask key. It is an indirect dependency of github.com/jpillora/chisel, reached from the tunnel code. No tagged release carries the fix, so the requirement moves to the pseudo-version govulncheck names as fixed, v1.5.4-0.20240701034025-d67f41855da4. govulncheck v1.9.0 (Go 1.27.4) reports GO-2026-6278 without this change and no vulnerabilities with it; the build and the cmd/mxcli/docker and tunnelhub tests pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82s49BaVGmKAnsWx6iR
# Conflicts: # CHANGELOG.md
Re-creating a Studio Pro flow from its own describe output recomputed loop boxes, shrank 90x60 merges to 40x40, rebuilt a type split's merge on its first branch when one case returned, and built a merge shared by an if and its nested if twice, stacked. - @merge(x, y, w, h) and @SiZe(w, h) (loop box, while-true head merge, merge <label>), described only when not the default - type/enum splits look for the merge over the cases that continue - collapseCoincidentMerges folds a merge whose only exit is a merge at the same position and size Closes #2369 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
…ithub.com/ako/mxcli into claude/issue-triage-prioritization-24rqgv
feat(layout): rows aligned to targets, gaps sized to names; deps: gorilla/websocket for GO-2026-6278
…24rqgv Batch M: @documentation on activities, URL/Mark-as-used entry points, session-report reads, drop + create geometry
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Syncs
ako/mxcli:maininto upstream: 27 commits since the v0.33.1 release — eight fixes for things that passedcheckandexecand then failed the build or lost data in a round trip, and a domain-model layout gate.Fixes #1921, fixes #1923, fixes #1924, fixes #1926, fixes #1927, fixes #1928. Refs #1929.
Microflows and pages
send rest requestkeeps its custom error handler (SEND REST REQUEST drops ON ERROR handler in describe and exec #1926).on error [without rollback] begin … end errorpassed check, exec stored the default handling with no handler, and describe never printed the block, so a describe → exec round trip deleted it. Both directions now carry it;on error continue, the one form Mendix refuses here (CE6035), is refused at check time (MDL076). Measured on 10.24, 11.12 and 11.16.save changes/cancel changescloses the page (Pop-up Cancel doesn't close. #1927). It stored ClosePage false, so a pop-up's Cancel left the pop-up open. Every save and cancel button in a Studio Pro-built app (31 of 31 in the test app) stores true;(ClosePage: false)keeps the page open, and describe spells both values.AutoFocusis written and described (TEXTBOX has noAutoFocusproperty; every text box mxcli writes gets AutoFocus false #1921). It was refused by check and hard-coded off, so a round trip cleared it on a Studio Pro text box.checkreports a value written into a combo box property its mode hides.customEditabilityon an association combo box passed check and failed the build with CE0463; the hide rules are now judged with the values exec writes for unset properties (MDL-WIDGET10).Check
minimum/maximum/sum/averageby a DateTime or String attribute was CE0016 at build time.Owner,Type,Object,CreatedDateand the rest passed check and exec, quoted or not, and failed with CE7247.User roles
'[%UserRole_X%]'in a retrieve, data source or access rule is now a reference:show references toandshow impact oflist it, anddrop user roleis refused while a token names the role (it was CE1613).search "%UserRole_X%"no longer fails on the punctuation.Marketplace
marketplace installkeeps Data Widgets' widgets in step with their styling (Marketplace install updates widgets without the Data Widgets module. #1928). A module that bundles Datagrid and its filters (Excel Importer 11.2.2 ships 3.8.1) moved them past the installed Data Widgets module, whose styling stayed behind, and every Data grid 2 collapsed into one column with no error. Such a widget is now held at its styling module's version, and the update that moves both is reported.Domain model layout
MPR020: a domain model that was never laid out. Linked entities still on the placement grid mxcli gives an entity created without@positionare an error, namingmxcli layout --module <M>. Hand-arranged diagrams and anythingmxcli layoutplaced are not reported.execsays when a module the script changed is not laid out, once per module, so the agent sees it when the script runs.generate-domain-modelskill runsmxcli layoutafter exec, and a proposal (docs/11-proposals/) adopts the readability rules from the layout skill attached to Domain model layout skill #1929, with Studio Pro measurements