doc(agent): Explain why we manually publish state