pub fn write_session_state(
filestore: &FileStore,
definition_id: &str,
content: &[u8],
) -> Result<(), String>Expand description
Write content to output.state.json in agent:<defId>:current.
Idempotent — creates the file if missing, overwrites otherwise.