Skip to content

check: workflow call microflow signatures and decision conditions (CE6678, CE0117, CE0078) - #2721

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

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

Conversation

@ako

@ako ako commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Part of #1258. This is the workflow batch of the third check-gap sweep (#2715): f59 and f60. Each passed check -p and exec, and MxBuild 11.16.1 rejected the project.

What check -p now reports (measured on 11.16.1, one workflow per case, context entity Sp.Ctx):

check rejected accepted
return type of a workflow call microflow's microflow String, Integer, an object: CE6678 Boolean, nothing
that microflow's parameters $S: String or $O: Other, unmapped: CE0117 $C: Ctx, the context object, passed implicitly
workflow decision condition a String or Integer attribute: CE0078 a Boolean attribute, $WorkflowContext/Qty > 1

A microflow that returns an enumeration also needs outcomes that match it (CE6686). That's a separate rule and isn't judged here; it's the one expected mismatch in the agreement run (12 of 13 agree).

How

  • checkCallMicroflowSignature and checkDecisionCondition run in the existing workflow signature checker, which already resolved microflow signatures from the script and the project.
  • sdkFlowSignature now sets ReturnKind, so return-type rules can judge a project microflow, not only one the script declares. This also widens the existing multi-user completion check (CE5012) to project microflows. The workflow and data-source tests still pass.

Evidence

  • check_gap_workflows_test.go: seven reported cases and five controls, run against PedApp (11.13.0). Stubbing either check fails exactly its own cases.
  • No doctype or bug-test example that mentions a workflow triggers the new reports under check -p.
  • mdl-examples/bug-tests/check-gap-workflows.mdl is the control, clean under check, check -p and mx. The checks need a project, so there's no .fail.mdl.
  • The check-gap README marks f59 and f60. Finding recorded, CHANGELOG updated. make ci-local passed. After the latest merge of main, which only conflicted on the CHANGELOG, the build, the full executor package and the conformance gate pass.

Generated by Claude Code

…6678, CE0117, CE0078)

Check-gap sweep 3, the workflow batch (f59 f60): each passed check -p and
exec, and MxBuild 11.16.1 rejected the project.

- A workflow call microflow returning a String, Integer or object (CE6678).
  It must return a Boolean, an enumeration or nothing.
- A call microflow parameter other than the context object with no mapping
  (CE0117). The context object is passed implicitly.
- A decision on a String or Integer attribute (CE0078).

sdkFlowSignature now sets ReturnKind, so return-type rules judge project
microflows too. 12 of 13 measured cases agree with mx. The 13th, an
enumeration return with unmatched outcomes (CE6686), is left unjudged on
purpose.

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