Repository navigation
check: event handler signatures and attribute defaults the build rejects (MDL120, MDL121) - #2699
Merged
Merged
Conversation
…cts (MDL120, MDL121) Check-gap sweep 2, f40/f41/f46: each passed check and exec, and MxBuild 11.16.1 rejected the project. MDL120: a handler's microflow must take exactly one parameter, the entity or an entity it extends (none for before create), and every before handler must return Boolean (CE7247). MDL121: an attribute default the type does not accept (CE7247), or an enumeration value the enumeration does not have (CE1613). Each rule is measured one project per case; all 57 measured cases agree with mx. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
…events # Conflicts: # CHANGELOG.md
ako
marked this pull request as ready for review
November 30, 2026 21:41
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.
Part of #1258. This is batch A of the gaps from the second check-gap parity sweep (#2698): f40, f41 and f46. Each passed
checkandexec, and MxBuild 11.16.1 rejected the project.MDL120: entity event handler signature (CE7247)
raise error. After handlers may return anything.MDL121: attribute default (CE7247 / CE1613)
Attribute defaults are stricter than constant defaults (MDL113). Measured accepted and rejected values:
True(stored as "true")Evidence
checkreports MDL120/121 exactly wheremxreported an error, and nowhere else.validate_domain_events_defaults_test.gohas the reported cases and controls. Stubbing MDL120 fails 13 subtests and stubbing MDL121 fails 20.check-gap-events-defaults.fail.mdlgives 3× MDL120 and 4× MDL121. On that filemxshows only the CE1613, which masks the rest; without that line it shows the six CE7247s. The controlcheck-gap-events-defaults.mdlis clean undermx.make ci-localpasses.Generated by Claude Code