pub enum PollOutcome {
Pending {
latest_assembly: Option<Vec<u8>>,
progress: Option<f32>,
stage: Option<String>,
score: Option<ScoreReport>,
},
Checkpoint {
latest_assembly: Option<Vec<u8>>,
progress: Option<f32>,
stage: Option<String>,
score: Option<ScoreReport>,
},
Cancelled {
assembly: Vec<u8>,
score: Option<ScoreReport>,
},
Final {
assembly: Vec<u8>,
score: Option<ScoreReport>,
},
Error {
code: String,
message: String,
details: HashMap<String, String>,
},
}Expand description
Outcome of a PollStream call. Native-Rust mirror of
proto::plugin::PollStreamResponse’s oneof.
Variants§
Pending
Stream still running. latest_assembly is the working state at
poll time; not authoritative until promoted on Final /
Cancelled.
Fields
score: Option<ScoreReport>Warm score of latest_assembly, if the plugin scores it.
Checkpoint
Accepted intermediate the host should commit into canonical state
while the stream keeps running. Same payload as Pending, but the
host commits it rather than treating it as a discardable preview;
unlike a terminal it does not end the op (more checkpoints or a
terminal follow), so the poll loop keeps going.
Fields
score: Option<ScoreReport>Warm score of latest_assembly, if the plugin scores it.
Cancelled
Stream stopped at host request (the host sent CancelStream and
the plugin returned its working pose). Same downstream handling
as Final: the orchestrator promotes assembly into canonical
state. Distinguished from Final only so the host can tell
“the algorithm reached its endpoint” from “the user asked it
to stop”; for open-ended ops (wiggle, shake) this IS the
success terminal.
Fields
score: Option<ScoreReport>Warm score of assembly, if the plugin scores it.
Final
Stream finished successfully. assembly is the definitive output
the orchestrator promotes into canonical state.
Fields
score: Option<ScoreReport>Warm score of assembly, if the plugin scores it.
Error
Op-level failure. Distinct from a transport-level error.