OverWindowRelief typedef

OverWindowRelief = Future<List<Message>?> Function(List<Message> overWindowMessages)

Emergency over-window relief (issue #387): called by the loop's over-window guard when a request is about to be refused (gross mid-turn overflow). The host runs ONE synchronous compaction and returns the relieved transcript to retry with — or null when nothing hideable remains (the loop then surfaces the verbatim guard error). The argument is the loop's live transcript; the returned list REPLACES it for the rest of the run.

Implementation

typedef OverWindowRelief =
    Future<List<Message>?> Function(List<Message> overWindowMessages);