Harden LLRT capability execution - #17
Merged
Merged
Conversation
Rationale: LLRT is becoming the default codemode runtime, so host access must be explicit and manifest-bound instead of flowing through loose function globals or raw bridge globals. This adds data-only and capability executor contracts, validates data-only inputs, binds LLRT host capabilities by declared namespace/method, and versions LLRT/codemode for release. Rejected: Keeping function globals as the main capability path was rejected because guest code could observe the raw LLRT host bridge and synthesize callback names. Keeping CNAP on implicit codemode executor selection was rejected because capability-capable execution should be explicit. Risk: Legacy execute() with function globals is still supported, but now routes through a private manifest namespace. CNAP integration cannot be fully verified until @robinbraemer/llrt@0.2.0 and @robinbraemer/codemode@0.4.0 are published and consumed. Tested: mise exec -- pnpm run ci Not-tested: CNAP focused check against the new package version; blocked until the npm releases are available or locally linked into that worktree.
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
callJsonWithHostmanifest execution that binds host methods without exposingglobalThis.__llrtHostCall@robinbraemer/llrt@0.2.0+@robinbraemer/codemode@0.4.0Security notes
Verification
mise exec -- pnpm run ciRelease / handoff
@robinbraemer/llrt@0.2.0publish with the main package.@robinbraemer/codemode@0.4.0after@robinbraemer/llrt@0.2.0is available.@robinbraemer/codemode@^0.4.0and@robinbraemer/llrt@^0.2.0, then run the focused codemode domain check there.