feat: add DecisionPort semantic judgement capability - #2
Merged
Merged
Conversation
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.
Summary
DecisionPort::evaluate(DecisionRequest)seam for structured semantic judgement without routing throughModelPortCapability::Decision,CompositionView::decision()), withMultipleDecisionsfail-fast cardinalityScriptedDecisionPorttestkit support and focused conformance/composition testsCompatibility
ExtensionManifestgains adecisionsfield. Direct record literals must adddecisions: []; callers usingExtensionManifest::empty(...)remain source-compatible.Validation
Verified from an exact
main@e4fa4b07fe2b581dbee952d831009c322a906909source snapshot using the official MoonBit toolchain (moon 0.1.20260915,moonc v0.10.13+cbb11c36f).moon clean: 505/505moon fmt --check: passmoon check --target native --output-json: 0 errorsmoon info: pass, generated.mbtichecked in and cleanThe formal branch is a single commit directly on
main; temporary environment/bootstrap files are not part of the PR.