pub struct ScreenStateReport {
pub state: String,
pub rule: String,
pub seq: u64,
pub at: String,
pub ttl_ms: Option<u64>,
pub answerable: Option<AnswerablePrompt>,
}Expand description
The stored form of one screen-manifest verdict (the fallback rung of the
badge lattice: pane-exit > hook > screen-manifest > liveness). Written only
by the daemon’s scrape sweep, and ONLY for rows with no inside_leg
authority (per-capability arbitration: a hook-bearing agent is never
scraped). state is the manifest vocabulary (working/idle/blocked -
note idle, not the hook’s done); rule is the matched
crate::manifest::ManifestRule id, kept for the detect explain
surface; seq is per-row monotonic so verdict history orders; at is the
registry’s YYYY-MM-DDThh:mm:ssZ stamp and ttl_ms bounds reader trust
exactly like inside_leg.received_at/ttl_ms (the sweep refreshes at
before it lapses, so a live daemon keeps a steady verdict fresh; a dead
daemon’s last verdict ages out instead of pinning a stale badge). Mirrored
in Python’s AgentEntry as screen_state: Optional[dict] (X3 passthrough).
Fields§
§state: String§rule: String§seq: u64§at: String§ttl_ms: Option<u64>§answerable: Option<AnswerablePrompt>(x-c929) The answerable-prompt payload when this blocked verdict came
from a rule with an [answer] grammar and the region yielded a clean
numbered menu; None for every other state or a focus-only blocked
prompt. Rides the badge to the sideline (JSON passthrough); the mux
server re-verifies its fingerprint before injecting a picked answer.
Implementations§
Source§impl ScreenStateReport
impl ScreenStateReport
Sourcepub fn is_live_at(&self, now_secs: u64) -> bool
pub fn is_live_at(&self, now_secs: u64) -> bool
True while this verdict is trustworthy at now_secs - the same aging
discipline as InsideLegReport::is_live_at: no ttl_ms never
self-ages; a TTL’d verdict expires once at + ttl_ms passes; an
unparseable at fails CLOSED (expired, liveness-only).
Trait Implementations§
Source§impl Clone for ScreenStateReport
impl Clone for ScreenStateReport
Source§fn clone(&self) -> ScreenStateReport
fn clone(&self) -> ScreenStateReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more