orchestrata_ultimate.plugin
Reference › orchestrata_ultimate › plugin
orchestrata_ultimate.plugin - Plugin SDK for Orchestrata (SPEC-015).
The plugin package (SPEC-015) lets first- and third-party packages add Volk types, tools, providers, channels, Prolog rules and graph schema without editing the core. A plugin is a Python package with a plugin.yaml manifest that declares the capabilities it needs. The curated narrative tells the design story.
Parts by role. Contracts and configuration: interfaces, config, manifest and exceptions. Finding and loading: loader (local directories and entry points, with a module-path check) and discovery (install, enable, disable, reload). State and policy: registry and governance. What the plugin sees: context, registration and the concrete registries.
Flow: the manager discovers manifests into the registry, then on load_plugin asks governance for admission, imports the class through the loader, builds a context, calls the plugin's initialize and marks it active. Plugins call the context to register what they contribute, and the registrations are forwarded to the registries the manager was given. The public entry point is sdk, PluginSDK; the kernel command-line entry point uses the manager directly. Start with sdk, then manager.
Curated narrative
The hand-written story of this package: orchestrata_ultimate.plugin.
14 modules, 3,882 lines of code.
Modules
| Module | Summary | LOC |
|---|---|---|
__init__ |
orchestrata_ultimate.plugin - Plugin SDK for Orchestrata (SPEC-015). | 73 |
config |
Plugin configuration dataclass. | 102 |
context |
PluginContext — DI-backed context for plugin authors. | 384 |
discovery |
Plugin discovery and installation helpers. | 383 |
exceptions |
Plugin-specific exceptions for Orchestrata Plugin SDK. | 268 |
governance |
Plugin permission governance. | 201 |
interfaces |
Plugin SDK interfaces and protocols. | 465 |
loader |
PluginLoader — discovers and loads plugins from disk and pip. | 374 |
manager |
PluginManager — lifecycle orchestrator for all plugins. | 393 |
manifest |
PluginManifest — YAML manifest parser and validator. | 204 |
registration |
Registration and event helpers for PluginContext. | 386 |
registries |
Concrete in-memory capability registries that plugins register into. | 161 |
registry |
PluginRegistry — tracks loaded plugins and their metadata. | 250 |
sdk |
PluginSDK — public API surface for plugin authors. | 238 |