Skip to content

check: six page mistakes the build rejects (CE0551, CE0552, CE0117, CE5600, CE0899, CE0529) - #2717

Merged
ako merged 7 commits into
mainfrom
fix/check-gap-pages
Dec 1, 2026
Merged

ako merged 7 commits into
mainfrom
fix/check-gap-pages

Conversation

@ako

@ako ako commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Part of #1258. This is the pages batch of the third check-gap sweep (#2715): f51, f52, f53, f54, f56 and f57. Each passed check -p and exec, and MxBuild 11.16.1 rejected the project.

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

check rejected accepted
data source shape list view or data grid on a microflow returning an object, a String or nothing: CE0551; data view on one returning a list, a String or nothing: CE0552 list into list view, object into data view
visible: / editable: a single String, Integer or enumeration attribute: CE0117 a Boolean attribute, $currentObject/Qty > 1
button arguments Decimal to Integer, Integer to String, 'abc' to Integer: CE0117 Integer to Decimal (the call-argument matrix)
MDL122 page URL the same URL on two pages: CE5600; a URL starting with /: CE0899 same and Same (case-sensitive)
MDL123 home page a home page that takes a parameter, the default or a role's: CE0529 a login page with a parameter

Code changes

  • The data-source, condition and argument checks run in the widget walk (attributeScopeValidator), which already resolved the data context and attribute types. flowSignature gains ReturnShape/ReturnName, and flowParam a primitive Kind.
  • MDL122 and MDL123 are in ValidateProgram, so exec refuses too. They cover the script's pages and the project's.

Evidence

  • All 23 measured cases agree with mx.
  • check_gap_pages_test.go has the reported cases and controls. Stubbing each of the five checks fails exactly its own cases.
  • I swept the doctype and bug-test examples under check -p. It found one false positive, which is now fixed: a page the script defines twice was compared with itself for URL duplicates (12-styling-examples.mdl). Each page's last definition now stands. It also found one real defect: language-970-authoring-language.mdl used a page with a parameter as its home page (CE0529). That example tests captions, so its home page is now a page without parameters.
  • Fixtures: check-gap-pages.fail.mdl gives MDL122 ×2 and MDL123; mx reports exactly CE5600, CE0899 and CE0529 for it. The control check-gap-pages.mdl is clean under mx.
  • Finding recorded, CHANGELOG updated, and make ci-local passes. The README marks for f51–f57 will follow once check-gap: third parity sweep, f51-f73 on MxBuild 11.16.1 #2715 is merged.

Generated by Claude Code

…E5600, CE0899, CE0529)

Check-gap sweep 3, the page batch (f51-f57): each passed check -p and exec,
and MxBuild 11.16.1 rejected the project.

- A data source's return shape: a list widget needs a list (CE0551), a
  data view an object (CE0552). flowSignature now carries ReturnShape.
- visible:/editable: on a non-Boolean attribute, enumerations included
  (CE0117).
- A widget action argument of the wrong type (CE0117), by the call-argument
  matrix. flowParam now carries the primitive Kind.
- MDL122: a duplicated page URL (CE5600) or one starting with a slash
  (CE0899).
- MDL123: a home page that takes a parameter (CE0529).

All 23 measured cases agree with mx.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
…e page

A page the script defines twice (create, then create or modify) was compared
with itself and reported as a duplicate URL (12-styling-examples.mdl). Each
page's last definition now stands, and only different pages are compared.

language-970-authoring-language.mdl made a page that takes a parameter the
home page, which MDL123 now refuses (CE0529). The example tests navigation
captions, so its home page is now a page without parameters.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
# Conflicts:
#	CHANGELOG.md
#	mdl/executor/validate_program.go
@ako
ako marked this pull request as ready for review December 1, 2026 09:15
@ako
ako merged commit 6895692 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