Expand description
Host-owned contract for source-linked native plugins.
The opt-in plugins feature exposes a Rust trait boundary for trusted,
in-process extensions. A plugin receives a borrowed PluginContext; it
does not receive loose target/payload strings and cannot return findings or
outcomes. The host owns authorization, transport, resource limits,
cancellation, redaction, evidence provenance, and later verification.
This is a cooperative capability contract, not a sandbox. Native plugin code linked by a host can still use capabilities obtained outside this API.
Structs§
- Plugin
Budget - Immutable invocation limits enforced by
crate::PluginContext. - Plugin
Config - Host-owned registration configuration.
- Plugin
Context - Borrowed capability boundary for one plugin invocation.
- Plugin
Execution Request - Plugin
Execution Result - Successful execution receipt. Failures are returned as
PluginError. - Plugin
Http Request - Immutable request passed to the host-owned broker.
- Plugin
Http Response - Bounded response returned by a host-owned request broker.
- Plugin
Metadata - Consistent metadata snapshot from one registry entry.
- Plugin
Observation - Untrusted observation draft accepted by the host recorder.
- Plugin
Registry - Plugin
Usage - Usage receipt for one completed plugin invocation.
- Secret
Redaction Policy - Conservative redactor for common secret assignments plus host literals.
Enums§
- Plugin
Category - Informational plugin categories; these do not assign severity or findings.
- Plugin
Error - Typed plugin-boundary failures.
- Plugin
Http Method - Bodyless request methods exposed through the host broker.
Constants§
- PLUGIN_
API_ VERSION - Source-level plugin API version supported by this host.
Traits§
- Plugin
- Extension contract for source-linked native plugins.
- Plugin
Redaction Policy - Host redaction policy applied before any plugin observation becomes evidence.
- Plugin
Request Broker - Host-owned transport capability used by plugin contexts.