pub struct HookStatusSpec {
pub version: u32,
pub endpoint: String,
pub token: String,
pub mission_id: String,
pub run_id: String,
}Expand description
Everything kranz hook-status needs to report one signal, written by
the backend at spawn time into the session-private scratch root. The
hook command line carries ONLY this file’s path (mirroring the
hook-gate lane: no new env or credential channel — the session’s
already-cleared env is the whole channel).
The token is a per-RUN capability that authorizes exactly one thing —
writing this run’s projection entry — never the serve mutation token
(serve.token is mutation authority and must stay unreadable inside
sandboxes; a worker-readable file can only ever carry a token whose
forgery ceiling is lying about its own run’s status).
Fields§
§version: u32SPEC_VERSION at write time.
endpoint: StringThe full signal POST URL (e.g. http://127.0.0.1:4560/api/hook-status).
token: StringThe per-run capability token (registered server-side as a hash).
mission_id: String§run_id: StringImplementations§
Trait Implementations§
Source§impl Clone for HookStatusSpec
impl Clone for HookStatusSpec
Source§fn clone(&self) -> HookStatusSpec
fn clone(&self) -> HookStatusSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more