fn append_notice(state: &AppState, block_id: &str, line: &str)
Appends one notice line to the block’s output and its transcript zone.