feat(ILO-393): World multi-world composition — world-and / world-or#658
Merged
danieljohnmorris merged 3 commits intoMay 22, 2026
Merged
Conversation
feat(ILO-391): static World capability enforcement (world-no-net + ILO-T044)
Add two builtins for composing World capability tokens: - `world-and w1:W w2:W > W` — intersection (each cap is w1.cap AND w2.cap) - `world-or w1:W w2:W > W` — union (each cap is w1.cap OR w2.cap) The verifier propagates static knowledge through both ops: world-and statically denies a cap if either input statically denies it; world-or statically denies only when both inputs statically deny it, enabling ILO-T044 to fire correctly for composed worlds. 23 regression tests + examples/world-compose.ilo added. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
world-and w1:W w2:W > W— intersection of two World tokens; each cap isw1.cap AND w2.capworld-or w1:W w2:W > W— union of two World tokens; each cap isw1.cap OR w2.captests/regression_world_multi_compose.rsexamples/world-compose.iloExtends ILO-68 (#622), ILO-391 (#652), ILO-392 (feature/world-sub-masking, in-flight).
Test plan
cargo test --test regression_world_multi_compose— 23/23 passcargo test --test regression_world_sub_masking— 23/23 pass (no regression)examples/world-compose.iloruns and prints correct cap values🤖 Generated with Claude Code