aKode fase 5: rinomina interna (crate akode-*, akode-rs/, akode-cli/, binario akode, AKODE_*, ~/.akode, snapshot)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
12
akode-rs/ext/extension-api/src/turn_admission.rs
Normal file
12
akode-rs/ext/extension-api/src/turn_admission.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
//! Lets Core turn-input submissions participate in a host's shutdown drain.
|
||||
|
||||
/// A host-provided gate checked before Core starts a turn-input submission.
|
||||
///
|
||||
/// Implementations return a permit for work admitted before shutdown and
|
||||
/// Core retains it through submission. `None` skips the start without consuming
|
||||
/// pending input. Steering an existing turn does not acquire a new permit.
|
||||
/// Memory-only mailbox wakeups and parent-delegated subagent input bypass this
|
||||
/// gate so delegated work can finish before exit. Automatic starts remain gated.
|
||||
pub trait TurnStartAdmission: std::fmt::Debug + Send + Sync {
|
||||
fn admit_turn_start(&self) -> Option<Box<dyn Send>>;
|
||||
}
|
||||
Reference in New Issue
Block a user