before_model(
self,
state: AgentState[Any],
runtime: Runtime[ContextT]
) Persist a current goal-state notice into checkpointed history.
This is the durable half of the notice mechanism; the transient
counterpart in wrap_model_call re-pins the notice into a request whose
persisted notice has scrolled out of the model-visible window.