feat(ocap-kernel): add evaluate RPC method for vat REPL#817
Draft
rekmarks wants to merge 2 commits intorekm/system-vats-reduxfrom
Draft
feat(ocap-kernel): add evaluate RPC method for vat REPL#817rekmarks wants to merge 2 commits intorekm/system-vats-reduxfrom
rekmarks wants to merge 2 commits intorekm/system-vats-reduxfrom
Conversation
Member
Author
|
Warning This PR is part of a stack and targets branch Stack
Managed by gh-stack |
Contributor
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Add an `evaluate` RPC method to VatSupervisor that evaluates code in a vat's isolated compartment, enabling REPL functionality while maintaining security isolation from the supervisor.
Key changes:
- New evaluate.ts RPC spec and handler
- VatSupervisor creates a separate eval compartment with vat exports in scope
- VatHandle.evaluate() method for kernel-side API
- Result serialization for JSON-RPC transport (handles functions, symbols, bigints)
- Errors return as { success: false, error } without crashing the vat
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Surface the vat REPL evaluate capability through the full stack: - Add evaluateVat to VatManager, Kernel, and KernelFacet - Add evaluateVat RPC handler in kernel-browser-runtime - Add Vat REPL tab to kernel-ui with vat selector and code input - Add useEvaluate hook for the UI Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
48ff5d1 to
31868d8
Compare
c6c235c to
6a5a0f4
Compare
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.
Add an
evaluateRPC method to VatSupervisor that evaluates code in a vat's isolated compartment, enabling REPL functionality while maintaining security isolation from the supervisor.Key changes:
Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com