Skip to content

check: refuse a validation feedback on a member the entity does not have (CE1613) - #2695

Merged
ako merged 3 commits into
mainfrom
fix/check-gap-validation-feedback
Nov 30, 2026
Merged

ako merged 3 commits into
mainfrom
fix/check-gap-validation-feedback

Conversation

@ako

@ako ako commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Part of #1258. This is batch 3 of the 9 gaps the check-gap parity sweep found: f25.

The defect: validation feedback $I/Nope message 'x' on a member the entity does not have passed check -p, check -p --references and exec. MxBuild then reported CE1613 "The selected attribute 'Sp.Item.Nope' no longer exists."

There were two causes:

  • The builder's bareFeedbackMember fell back to writing <entity>.<name> when the name resolved to nothing.
  • check --references skips a feedback's target on purpose, because it is a member reference rather than an expression.

The fix: both now ask flowMemberVerdict (with systemDates on), the same question list operations already ask (#1646), and report one shared message (missingMemberRefusal). exec refuses even without the preflight, and no new rule ID is needed.

Measured on MxBuild 11.16.1, one project per case:

target mx check
own attribute, inherited attribute, bare association, createdDate where the root stores it clean
missing name, wrong case (name for Name), createdDate where the root does not store it CE1613

Evidence

  • validation_feedback_member_test.go checks the refused cases and the controls through assertAgree, which runs both check and exec. It also asserts that check and exec give the same message.
  • With the check side stubbed, the tests fail. They also fail with the builder side stubbed.
  • The existing feedback tests still pass. A refused member keeps its old spelling, but it is never stored.
  • mdl-examples/bug-tests/check-gap-validation-feedback-member.mdl holds the accepted forms. It is clean under check, check -p --references, exec and mx check on 11.16.1. It can't be a .fail.mdl because the refusal needs a project.
  • make ci-local passes.

Not covered: change $I (Nope = 1) on an entity the script itself declares still passes check --references. It is recorded in the finding and left out of this PR.


Generated by Claude Code

…ave (CE1613)

check-gap f25: `validation feedback $I/Nope` passed check -p, check -p
--references and exec, and mxbuild reported CE1613. The builder fell back to
writing <entity>.<name>, and check --references skipped a feedback's target.

Both now ask flowMemberVerdict (systemDates on), the question list operations
already ask (#1646), and report one shared message. Measured on 11.16.1: own,
inherited, bare association and stored createdDate are clean; a missing name,
a wrong-case name and an unstored createdDate are CE1613.

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

# Conflicts:
#	mdl-examples/check-gap/README.md
@ako
ako marked this pull request as ready for review November 30, 2026 12:56
…ion-feedback

# Conflicts:
#	mdl-examples/check-gap/README.md
@ako
ako merged commit 343e931 into main Nov 30, 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