Skip to content

check: Java action argument types, association ends, scheduled event microflows, Binary constants - #2720

Merged
ako merged 6 commits into
mainfrom
fix/check-gap-domain-microflow
Dec 1, 2026
Merged

ako merged 6 commits into
mainfrom
fix/check-gap-domain-microflow

Conversation

@ako

@ako ako commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Part of #1258. This is the domain and microflow batch of the third check-gap sweep (#2715): f58, f62, f67, f68 and f72. Each passed check -p and exec, and MxBuild 11.16.1 rejected the project.

What check now reports (each case measured on 11.16.1, one project per case):

check rejected accepted
call java action argument type 'abc' or 1.5 to Integer, Integer to String, 'true' to Boolean: CE0117 Integer to Integer or Decimal
association set in create/change to an object of an unrelated entity, or of the entity's own type: CE0117 to the other end, or a specialization of it
retrieve over an association from an entity that isn't one of its ends: CE0020 (+CE0136) from either end
MDL124 scheduled event a microflow with a String or object parameter: CE7247 no parameters; any return type
MDL125 constant type Binary: CE0046 long and the other constant types

How

  • Java action arguments: the called action's primitive parameters are declared to the expression checker as a flow's (declareJavaActionParams), from the script and the project. The check adapter then checks call java action arguments against the existing call-argument matrix, so there's no new rule; the measured cases agree with it one for one.
  • Associations: associationSetValue and retrieveAssociationStart sit in the reference pass's flow member walk and reuse associationHop and the catalog's association ends. An association set is judged only on its FROM end.
  • MDL124 and MDL125 are in ValidateProgram, so exec refuses too.

Evidence

  • All 21 measured cases agree with mx.
  • check_gap_domain_microflow_test.go has the reported cases and controls. The project tier includes TypeCheckProgram, which agreeCheck doesn't run. Stubbing each of the five pieces fails exactly its own cases.
  • No doctype or bug-test example triggers the new reports under check -p. The Java-argument sweep was first run with a broken grep pattern (bash expanded $[...]); I re-ran it with a single-quoted pattern after confirming it matches the known case.
  • check-gap-domain-microflow.fail.mdl gives MDL124 and MDL125, and mx reports exactly CE7247 and CE0046 for it. The control check-gap-domain-microflow.mdl is clean under mx.
  • Finding recorded and CHANGELOG updated. make ci-local passed. After the last merge of main, which only conflicted on the CHANGELOG, the build and the full executor test package pass.

Generated by Claude Code

…microflows, Binary constants

Check-gap sweep 3, the domain and microflow batch (f58 f62 f67 f68 f72):
each passed check -p and exec, and MxBuild 11.16.1 rejected the project.

- A Java action argument of the wrong type (CE0117): the called action's
  primitive parameters are declared to the expression checker as a flow's,
  so the call-argument matrix applies.
- A create or change setting an association to an object of the wrong
  entity (CE0117).
- A retrieve over an association from an entity that is not an end of it
  (CE0020).
- MDL124: a scheduled event whose microflow takes a parameter (CE7247).
- MDL125: a constant of type Binary (CE0046).

All 21 measured cases agree with mx.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
@ako
ako marked this pull request as ready for review December 1, 2026 11:21
@ako
ako merged commit 26b20db into main Dec 1, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants