Effect sets on function signatures (ILO-361 Phase 3 MVP)#672
Merged
Conversation
|
bda26b8 to
ac26ffe
Compare
Introduces optional `^variant|variant` effect-set annotations on Result-returning function signatures. The verifier infers which error literals propagate from each function body and emits ILO-E001 warnings when the declared set is narrower than the inferred set. The new `ilo check --show-effects` flag prints inferred (and declared) effect sets for all functions in a file. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ac26ffe to
9af3e3c
Compare
Collaborator
Author
|
mini pc is reviewing this |
danieljohnmorris
added a commit
that referenced
this pull request
May 22, 2026
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
^variant|varianteffect-set clause to function signatures, written after the return type:process order:order > R order t ^invalid|timeout^exprpositions in Result-returning function bodies and emitsILO-E001warning when the declared set is narrower than the inferred setilo check --show-effectsflag prints inferred (and declared) effect sets for every function in a fileMVP shape
This is the inference + annotation surface only. Full enforcement (superset check at call sites, integration with Phase 2 fix plans) is filed as follow-up per the ticket scope.
f x:n>R n t ^invalid|timeout;body^sigil mirrors existing^errmatch-arm syntaxILO-E001warning when declared set misses an inferred variant--show-effectsCLI flag for auditing and annotation authoringTest plan
cargo test— all 4,773 tests pass, 0 failuresilo check examples/effect-sets.ilo --show-effects— shows correct inferred setsCloses ILO-361
🤖 Generated with Claude Code