Skip to main content

Module zone_naming

Module zone_naming 

Source
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 if definition_id is invalid; callers should check is_valid_definition_id first (or use validate_and_current) in release.
is_valid_definition_id
Returns true if s matches [A-Za-z0-9_-]+. Rejects empty.
validate_and_current
Convenience: validate + build the current-zone string. Returns Err with a stable error prefix on bad input so RPC callers see a consistent message.