You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ce86e37
Browse filesBrowse the repository at this point in the historyBrowse files
feat(as/policy): switch to RegoVM suspendable host-await, drop spawn_blocking
Replace the synchronous regorus Extension + tokio::task::spawn_blocking
evaluation path with RegoVM's suspendable execution model. Builtins that
need async I/O (query_reference_value, query_artifact_server) now suspend
the VM via __builtin_host_await and are resumed by the host once the
future resolves, so policy evaluation no longer requires a blocking
runtime thread.
- Enable regorus 'rvm' and 'arc' features; add postcard transitive dep
- Drop tokio/rt from policy-rvps (only tokio/time still needed)
- Rewrite query_reference_value/query_artifact_server extensions as
RegoVmHostAwaitFunction closures returning pinned futures
- build_extensions() appends per-builtin host-await wrapper to policy
source; dispatch() routes suspended VM arguments to resolvers
- Gate REFERENCE_QUERY_TIMEOUT and tokio::time::timeout off wasm32
(?Send futures, no tokio time support)
- Move is_valid_policy_id to module scope; fix tests for the new path
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Kun Lai <laikun@linux.alibaba.com>
0 commit comments