fix: skip reference checks for excluded microflows#313
Open
hjotha wants to merge 2 commits intomendixlabs:mainfrom
Open
fix: skip reference checks for excluded microflows#313hjotha wants to merge 2 commits intomendixlabs:mainfrom
hjotha wants to merge 2 commits intomendixlabs:mainfrom
Conversation
Studio Pro allows excluded documents to keep stale references because they are not part of the runnable app. The reference validator still walked excluded microflow bodies and reported missing microflow, page, or java-action references. That made project audits fail on intentionally excluded legacy scaffolding instead of actionable included-model errors. Skip reference collection for excluded `CreateMicroflowStmt` values while keeping included microflows validated normally. Tests cover both sides: excluded missing references are ignored, and included missing references still report errors.
AI Code ReviewCritical Issues
Moderate Issues
Minor Issues
What Looks Good
RecommendationApprove the PR. The change is correct, well-tested, and maintains consistency with the project's architecture and guidelines. No further action is required. Automated review via OpenRouter (Nemotron Super 120B) — workflow source |
…tion Adds an MDL script under mdl-examples/bug-tests/ pairing an excluded microflow with a broken call against an included microflow with a valid call. `mxcli check --references` must pass; removing `@excluded` makes the same script surface the broken call as an error. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
AI Code ReviewCritical IssuesNone found. Moderate IssuesNone found. Minor IssuesNone found. What Looks Good
RecommendationApprove the PR. The fix is correct, well-tested, and maintains consistency with the project's architecture and guidelines. No changes are needed. Automated review via OpenRouter (Nemotron Super 120B) — workflow source |
34 tasks
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 #332.
Fixes #312.
Summary
Reference validation now skips excluded microflows. Included microflows are still validated normally.
Root cause
The validator walked every microflow body and collected missing microflow/page/java-action references without considering the microflow's excluded flag.
Fix
Skip reference collection for excluded
CreateMicroflowStmtvalues. This aligns validation with writer behavior and Studio Pro's treatment of excluded documents.Tests
Added paired regression tests:
Validation
make buildmake testmake lint-gomake test-integrationAgentic Code Testing
Test plan