Repository navigation
fix: refuse validation feedback on a primitive variable (unloadable project) - #2766
Merged
Merged
Conversation
…roject)
`validation feedback $S/Name` with $S a String passed check -p, and exec
stored the feedback's attribute as the bare name `Name`: there is no entity
to qualify it with. A stored attribute reference is Module.Entity.Attribute,
so MxBuild 11.16.1 could not load the project ("The text 'Name' is not a
valid AttributeIdentifier"). Check-gap sweep 6, f142.
- check (MDL118) and exec refuse validation feedback on a variable of a
primitive type, in one message.
- exec also refuses, as a backstop, any feedback attribute it would store
unqualified, whatever left the entity unknown.
Re-run end to end on the f142 fixture: check -p rejects it and exec refuses
it, so nothing unloadable is written. Over the 11 example scripts with
validation feedback, check and exec are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
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 21:40
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.
Check-gap sweep 6, f142 (#1258). Exec wrote this one into a project that MxBuild could not load.
The defect
With
$Sa String,validation feedback $S/Name message 'x'passedcheck -p. Exec then stored the feedback's attribute as the bare nameName, because exec qualifies a bare member with the variable's entity and a String has none. A stored attribute reference isModule.Entity.Attributeand nothing else. MxBuild 11.16.1 therefore failed while loading the project, before any validation ran:Fix
check(MDL118, alongside delete/commit/rollback of a primitive) andexecrefuse validation feedback on a variable of a primitive type, with one shared message.execalso refuses any feedback attribute it would store unqualified, whatever left the entity unknown. An unqualified reference can never load, so the writer refuses that shape rather than only today's cause.Evidence
TestValidationFeedbackOnPrimitiveasserts thatcheck -pandexecrefuse with the same words, for a String parameter and a declared Integer. Its control, feedback on an object, passes both.check -pand refused byexec, so nothing is written.checkover every example script reports nothing new.execof the 11 example scripts with validation feedback is unchanged.make ci-localpassed.Generated by Claude Code