colmugx/posoco/runtime does not have a README file

    Runtime

    The public effect-execution contract. Mirrors the internal boundary 1:1; Posoco adapts it mechanically (a thin shim packs/unpacks EffectContext), so this trait never grows semantics the internal loop does not have.

    Implementors usually wrap PortRuntime and override only the methods they need (typically execute_tool + cancel_effects); see docs/RUNTIME.md.

    EffectContext

    Stable execution context for a single tool effect. effect_id is the reducer-allocated identity of the ExecuteTool effect — the same id the runtime later receives in cancel_effects. Runtimes that propagate cancellation MUST key their in-flight execution state (e.g. an AbortController) by effect_id, not by execution order or call content.

    EffectContext::EffectContext

    Hosts forwarding an effect must forward this context unchanged. This constructor requires the operation-captured provider and call context.

    EnqueueOutcome

    pub(all) enum EnqueueOutcome {
    Accepted(command_id~ : String)
    RejectedStale(reason~ : String)
    RejectedQueueFull(depth~ : Int)
    AbortAlreadyRequested
    RejectedQueueFailure(reason~ : String)
    } derive(Eq,
    Debug
    )

    Pure result returned by Agent-owned host control operations.

    EnqueueOutcome::equal

    automatically derived

    EnqueueOutcome::not_equal

    fn EnqueueOutcome::not_equal(x : EnqueueOutcome, y : EnqueueOutcome) -> Bool
    automatically derived

    EnqueueOutcome::output

    fn EnqueueOutcome::output(self : EnqueueOutcome, logger : &Logger) -> Unit

    Default implementation for Show::output, uses Show::to_string.

    EnqueueOutcome::to_repr

    automatically derived

    EnqueueOutcome::to_string

    fn EnqueueOutcome::to_string(self : EnqueueOutcome) -> String

    PortRuntime

    pub struct PortRuntime {
    // private fields
    }

    PortRuntime::PortRuntime

    PortRuntime::cancel_effects

    Route cancellation to providers that registered a cancellable facet for the effect. Unregistered ids — plain providers, or effects that already settled — report NotPropagated, preserving the ports-only contract. A facet failure propagates to core cleanup; its registration is retained for shutdown retry rather than silently reported as a normal disposition.

    PortRuntime::execute_tool