Expand description
Zone-name validation + builders for agent session zones.
Functionsยง
- agent_
archive_ zone agent:<definition_id>:archive:<ts_ms>.- agent_
current_ zone agent:<definition_id>:current. Panics in debug ifdefinition_idis invalid; callers should checkis_valid_definition_idfirst (or usevalidate_and_current) in release.- is_
valid_ definition_ id - Returns true if
smatches[A-Za-z0-9_-]+. Rejects empty. - validate_
and_ current - Convenience: validate + build the current-zone string. Returns
Errwith a stable error prefix on bad input so RPC callers see a consistent message.