Skip to main content

SelfSignalDeclaration

Struct SelfSignalDeclaration 

Source
pub struct SelfSignalDeclaration {
    pub name: String,
    pub kind: SelfSignalKind,
    pub effect: SelfSignalEffect,
    pub anchored_to: SignalAnchor,
    pub cadence: Option<SignalCadence>,
    pub domain: Option<String>,
    pub note: Option<String>,
}
Expand description

A declared periodic or event-driven behavior that shapes an external surface.

Fields§

§name: String

Stable identifier for this declared behavior, such as codex_keepalive.

§kind: SelfSignalKind

Signal classification. Busy participates in drain quiescence; the remaining kinds are descriptive for operators and analysts.

§A Busy GAUGE COUNTS WORK THE DRAIN CAN AFFECT, AND NOTHING ELSE

The daemon waits for every declared Busy gauge to reach zero before tearing a module down, up to the drain ceiling. That wait is only worth anything for work whose RESULT WOULD BE DELIVERED if it finished during the drain.

The test: if this request completed one millisecond before the teardown, would anyone receive its answer? If no, it does not belong in a Busy gauge, and counting it makes the daemon wait out its whole ceiling for something that cannot usefully complete.

The case that names the rule (CEREB, 2026-09-19): cerebellum’s management requests can park for up to 300 s awaiting a HUMAN’s consent decision. Those were counted as in-flight, so a drain begun while a prompt was open waited on a person until the 30 s ceiling expired – and the pending answer dies with the process either way, so the wait bought nothing. The fix splits the accounting: executing counts toward Busy, awaiting_consent is reported as its own informational gauge.

The same shape exists anywhere a request blocks on an external party the restart invalidates – a human, a peer seat, a vendor call whose reply has nowhere to land. Those are legitimately IN FLIGHT and are not legitimately Busy.

§effect: SelfSignalEffect

Whether the signal only observes the surface or changes it.

§anchored_to: SignalAnchor

The cadence, event, or health gauges that anchor this signal.

§cadence: Option<SignalCadence>

The effective cadence in force at HELLO time.

Use SignalCadence::Literal when a compile-time constant is the effective value. Use SignalCadence::Derived when configuration or another runtime input resolves the effective value, naming the source so the declaration cannot silently drift from that resolution.

§domain: Option<String>

The external surface this behavior shapes, such as provider-usage.

§note: Option<String>

Trait Implementations§

Source§

impl Clone for SelfSignalDeclaration

Source§

fn clone(&self) -> SelfSignalDeclaration

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SelfSignalDeclaration

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for SelfSignalDeclaration

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for SelfSignalDeclaration

Source§

impl PartialEq for SelfSignalDeclaration

Source§

fn eq(&self, other: &SelfSignalDeclaration) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for SelfSignalDeclaration

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for SelfSignalDeclaration

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.