[Fix] Rework Slipstream Plugin Framework - #4272
Draft
dgrkotsonis wants to merge 17 commits into
Draft
Conversation
dgrkotsonis
marked this pull request as draft
May 21, 2026 14:52
dgrkotsonis
commented
May 22, 2026
| [dependencies.snarkvm] | ||
| workspace = true | ||
|
|
||
| [dependencies.slipstream-plugin-postgres] |
…ure out hanging issue
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.
Slipstream Plugins: migrate to static plugin loading, remove runtime management endpoints
Motivation
The original Slipstream Plugins implementation used
from_config_files()which loaded plugins as .so/.dylib files at runtime via libloading and exposed REST endpoints to allow one to load and unload plugins dynamically while the node was running. We have since reevaluated this need, so this PR goes hand-in-hand with the corresponding snarkVM PR, which changes the plugin manager to now use static linking with inventory self-registration.New plugin flow
Plugins self-register at link time via inventory::submit!. At startup, snarkOS reads each JSON5 config file specified in the startup command flags, extracts the name field, and looks up the corresponding PluginRegistration via inventory::iter. The plugin is instantiated via its factory function and initialized via on_load before consensus starts. Adding a new plugin just requires adding it as an optional dependency under the slipstream-plugins feature in node/Cargo.toml.
Changes
/slipstream/plugins/{name} (unload) endpoints and their handlers. GET /slipstream/plugins (list) remains. DELETE removed from CORS allowed methods (not used for anything else)