Repository navigation
check: type view entity columns over script-declared and inherited source attributes (CE6770) - #2760
Merged
Merged
Conversation
…urce attributes (CE6770) A view entity column reading a source entity the same script declares, or an attribute the source inherits, was left untyped, so check -p passed any declared type and MxBuild 11.16.1 reported CE6770 "View Entity is out of sync with the OQL Query.". The column's source attribute is now read from the script's declaration (while check types the view) and through the source's generalizations. Only the view's last declaration is judged against the script: one a later `create or modify` restates is gone before the build. All nine measured cases agree with mx; over the example scripts the findings are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
ako
marked this pull request as ready for review
December 2, 2026 12:38
…e-types # Conflicts: # CHANGELOG.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
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.
Found while measuring check-gap sweep 5 (#1258). A view entity column reading a source entity the same script declares, or an attribute the source inherits, was left untyped.
check -ptherefore passed any declared type, and MxBuild 11.16.1 reported CE6770 "View Entity is out of sync with the OQL Query."Change
checktypes a view entity's columns, a source entity the script declares answers from its declaration, throughExecContext.viewSourceScript, set only aroundvalidateViewEntityTypes. This follows thescriptFlowsprecedent.viewSourceAttributeType). The retrieve and XPath checks keep their existing lookup.create or modify, is gone before the build.01-domain-model-examples.mdlwidens a source and then the view in two steps, and judging the first step was a false positive.Measured on MxBuild 11.16.1, one project per case
A view column must match its source attribute exactly:
Evidence
check -pfindings are identical before and after.make ci-localpassed.Generated by Claude Code