+
    lHàj›  ã                  ó2   € R t ^ RIHt RtRRR/R R llltR# )aF  The terminal result of a batch clarify, shared by every registry that holds one.

A batch (``clarify`` server request with question ids) is answered per question with ``clarify.lock``
and ends one of four ways: the last lock, a closing response frame, a timeout, or an interrupt/cancel.
Main's TUI sidecar (``tui_gateway/server_requests.py``) and the session owner
(``gateway/session_server_requests.py``) both settle batches; each used to compute ``{answers, outcome}``
itself and they drifted. Both call :func:`settle_batch`, so the model is told the same thing on every
surface.
)ÚannotationsNÚendedc               ó$   € V ^8„  d   QhRRRRRR/# )é   ÚlockedÚdictr   z
str | NoneÚreturn© )Úformats   "Ú8/home/ubuntu/.hermes/hermes-agent/tools/clarify_batch.pyÚ__annotate__r      s"   € ÷ =ñ =˜ð =¸Jð =ÐRVñ =ó    c               óB  € Ve   R\        V 4      RV\        9   d   V/# R/# \        V\         4      '       d[   \        VP                  R4      \         4      '       d6   VP                  R4      p/ VCR/ V CVR,          CRV\        9   d   V/C# R/C# R\        V 4      RR/# )a™  ``{answers, outcome}`` for a batch whose locks so far are *locked*.

- ``ended`` (``"timed_out"`` / ``"cancelled"``): the wait ended with no frame (timeout, interrupt,
  a ``cancel()``), or ``"submitted"`` for the last lock. The locked answers stand.
- Otherwise *frame_result* is the closing frame's ``result``. A dict with an ``answers`` dict lays
  those answers over the locks (the frame wins per question) and keeps the frame's own outcome when it
  names a known one (main's classic CLI reports ``timed_out``), else ``submitted``. Anything else (Ink
  Esc / Desktop Skip send ``{}``; an error frame gives ``None``) is a cancel-all: locks kept, ``cancelled``.
ÚanswersÚoutcomeÚ	cancelledÚ	submitted)r   ÚOUTCOMESÚ
isinstanceÚget)r   Úframe_resultr   r   s   &&$ r   Úsettle_batchr      s¾   € ð ÒØœ4 ›<¨¸UÄhÔ=N°EÐ`Ð`ÐT_Ð`Ð`Ü�,¤×%Ò%¬*°\×5EÑ5EÀiÓ5PÔRV×*WÒ*WØ×"Ñ" 9Ó-ˆðL�,ð L 	Ð+P¨fÐ+P¸ÀYÕ8OÐ+PØ g´Ô&9˜7ñLð 	LØ?JñLð 	Là”t˜F“| Y°Ð<Ð<r   )r   Ú	timed_outr   )N)Ú__doc__Ú
__future__r   r   r   r	   r   r   Ú<module>r      s%   ðñõ #à2€ñ=È÷ =ò =r   