+
    .pÐjö  ã                  óÊ  € R t ^ RIHt ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RI	H
t ^ RIHtHtHtHt ^ RIHt ^ RIHt ^ RIHtHt ^ RIHt ^ R	IHtHt ^ R
IHtHtH t H!t! ^ RI"H#t#H$t$H%t%H&t& ]PN                  ! R4      t(RQR R llt)R R lt*RQR R llt+R R lt,R R lt-R R lt.R R lt/R R lt0RR/R R  llt1R! R" lt2RRt3R# R$ lt4R% R& lt5R' R( lt6R) R* lt7R+t8R,t9R- R. lt:R/ R0 lt;R1 R2 lt<R3 R4 lt= ! R5 R64      t>R7 R8 lt?R9 R: lt@R; R< ltAR= R> ltBR? R@ ltCRA RB ltD] ! RC RD4      4       tERE RF ltFRG RH ltGRI RJ ltHRK RL ltIRM RN ltJ] ! RO RP4      4       tKR# )Sz�Running ONE pre-built child agent: heartbeat, registry entry, workspace seeding,
timeout/failure handling, result-entry assembly and cleanup (``_ChildRun``).)ÚannotationsN)ÚTimeoutError)ÚAnyÚDictÚListÚOptional)Úelide)Úrequest_hard_interrupt)Ú	dataclassÚfield)Ú
file_state)Ú_quietÚ_safe_progress)Ú _capture_gateway_steer_authorityÚ_close_subagent_steeringÚ_register_subagentÚ_unregister_subagent)Ú_extract_output_tailÚ_looks_like_error_outputÚ_stringify_tool_contentÚ_summarize_tool_argumentsztools.delegate_toolc               ó$   € V ^8„  d   QhRRRRRR/# )é   Úvaluer   ÚdefaultÚintÚreturn© )Úformats   "Ú,/opt/hermes/tools/delegate_tool_child_run.pyÚ__annotate__r       s&   € ÷ Fñ F�ð F˜cð F¨#ñ Fó    c                óT   € \        V \        \        34      '       d   \        V 4      # T# )z:int() for counters that may be mocks/None on test doubles.)Ú
isinstancer   Úfloat)r   r   s   &&r   Ú_numr%      s!   € ä# E¬C´¨<×8Ò8Œ3ˆu‹:ÐE¸gÐEr!   c               ó    € V ^8„  d   QhRRRR/# )r   r   r   r   úOptional[str]r   )r   s   "r   r    r        s   € ÷ 5ñ 5˜ð 5 ñ 5r!   c                ó6   € \        V \        4      '       d   V # R # ©N)r#   Ústr)r   s   &r   Ú_str_or_noner+       s   € Ü˜u¤c×*Ò*ˆ5Ð4°Ð4r!   c               ó0   € V ^8„  d   QhRRRRRRRRRR	R
R/# )r   Úidxr   Ústatusr*   ÚerrorÚchildr   Údurationr$   r   údict[str, Any]r   )r   s   "r   r    r    #   s7   € ÷ ñ ˜3ð ¨ð °Cð Àð Èuð Ð]kñ r!   c                ó8   € RV RVRRRVR^ RVR\        VR	R4      /# )
zGResult entry for a child that raised, never finished, or was abandoned.Ú
task_indexr.   ÚsummaryNr/   Ú	api_callsÚduration_secondsÚ_child_roleÚ_delegate_role)Úgetattr)r-   r.   r/   r0   r1   s   &&&&&r   Ú_fabricated_entryr;   #   s8   € ð 	�c˜8 V¨Y¸¸gÀuÈkÐ[\Ø˜H m´W¸UÐDTÐVZÓ5[ðð r!   c               ó$   € V ^8„  d   QhRRRRRR/# )r   Úentryr2   Ú
late_steerr'   r   ÚNoner   )r   s   "r   r    r    *   s&   € ÷ bñ b ð b¸Mð bÈdñ br!   c                óT   € V'       d    WR&   V R;;,          RV R2,          uu&   R# R# )zERecord steer text that won the race with the child's failure/timeout.Úmissed_steerr/   z2 [steer did not land before the subagent stopped: Ú]Nr   )r=   r>   s   &&r   Ú_append_missed_steerrC   *   s-   € çØ *ˆnÑØˆg�ÐOÐS]ÐR^Ð^_Ð`Õa�ñ r!   c               ó$   € V ^8„  d   QhRRRRRR/# )r   r0   r   Úlog_messager*   r   r?   r   )r   s   "r   r    r    0   s!   € ÷ ñ ˜ð ¨#ð °$ñ r!   c                ó´   € \        VRR7      ;_uu_ 4        \        V RR4      p\        V4      '       d   V! 4        RRR4       R#   + '       g   i     R# ; i)zOBest-effort ``child.close()`` (tool sandboxes, browser daemons, httpx clients).T©Úexc_infoÚcloseN)r   r:   Úcallable)r0   rE   rI   s   && r   Ú_close_childrK   0   s:   € ä	� d×	+Ö	+Ü˜˜w¨Ó-ˆÜ�E�?Š?ÙŒG÷ 
,×	+×	+Ò	+ús   –&AÁA	c               ó(   € V ^8„  d   QhRRRRRRRR/# )r   Úparent_agentr   Úopr*   r0   r   r?   r   )r   s   "r   r    r    7   s(   € ÷ :ñ : cð :¨sð :¸3ð :À4ñ :r!   c                óò   € \        V RR4      pV'       d2   V;_uu_ 4        \        V P                  V4      ! V4       RRR4       R# \        V P                  V4      ! V4       R#   + '       g   i     R# ; i)zV``parent_agent._active_children.<op>(child)`` under the parent's lock when it has one.Ú_active_children_lockN)r:   Ú_active_children)rM   rN   r0   Úlocks   &&& r   Ú_with_children_lockrS   7   sV   € ä�<Ð!8¸$Ó?€DßßŠTÜ�L×1Ñ1°2Ô6°uÔ=÷ ‰Tô 	�×-Ñ-¨rÔ2°5Ö9÷ �TˆTús    A%Á%A6	c               ó$   € V ^8„  d   QhRRRRRR/# ©r   rM   r   r0   r   r?   r   )r   s   "r   r    r    @   s!   € ÷ %ñ % ð %¨Cð %°Dñ %r!   c           	     ó°  € \        V R4      '       d   \        V RV4       \        V RR4      RJd   R# \        V RR4      p\        V RR4      pVe   VP                  4       '       d/   \	        Y;'       g    R	\        V R
R4      ;'       g    R	R7       R# \        R4      ;_uu_ 4        VP                  V4       RRR4       R#   + '       g   i     R# ; i)a‹  Register the child for parent interrupt propagation.

``interrupt()`` fans out to a SNAPSHOT of ``_active_children``; a child attached after the stop
landed (a fan-out still building its siblings, a turn that has not reached its iteration check yet)
would otherwise start with no signal and run to completion as an orphan. Mirror a pending stop here
so the whole spawn tree dies with its parent.rQ   ÚappendÚ_interrupt_requestedFTNÚ_interrupt_messageÚ_hard_interrupt_requestedzparent agent interruptedÚ_tool_interrupt_reason)Útool_reasonz/Failed to propagate interrupt to late child: %s)ÚhasattrrS   r:   Úis_setÚ_signal_child_stopr   Ú	interrupt)rM   r0   ÚmessageÚhards   &&  r   Ú_attach_childrc   @   sµ   € ô ˆ|Ð/×0Ò0Ü˜L¨(°EÔ:Üˆ|Ð3°UÓ;À4ÓGÙä�lÐ$8¸$Ó?€GÜ�<Ð!<¸dÓC€DØ‚|�t—{‘{—}’}Ü˜5×"GÐ"GÐ-GÜ'.¨|Ð=UÐW[Ó'\×'zÐ'zÐ`z÷	|ô ÐE×FÕFØ�O‰O˜GÔ$÷ G×F×FÒFús   Â(CÃC	c               ó$   € V ^8„  d   QhRRRRRR/# rU   r   )r   s   "r   r    r    U   s&   € ÷ Kñ K ð K¨Cð K°Dñ Kr!   c                ó´   € \        V R4      '       g   R#  \        V RV4       R#   \        \        3 d"   p\        P                  RT4        Rp?R# Rp?ii ; i)zERemove the child from parent interrupt propagation (no-op if absent).rQ   NÚremovez/Could not remove child from active_children: %s)r]   rS   Ú
ValueErrorÚUnboundLocalErrorÚloggerÚdebug)rM   r0   Úes   && r   Ú_detach_childrl   U   sO   € ä�<Ð!3×4Ò4ÙðKÜ˜L¨(°EÖ:øÜÔ)Ð*ô KÜ�‰ÐFÈ×JÒJûðKús   –% ¥A¶AÁAr\   zparent delegation endedc               ó(   € V ^8„  d   QhRRRRRRRR/# )r   r0   r   Úreasonr*   r\   r   r?   r   )r   s   "r   r    r    ^   s)   € ÷ .ñ .˜cð .¨Cð .¸cð .Ðbfñ .r!   c               óÊ   € \        R4      ;_uu_ 4        V e/   \        V .VO5RV/ '       g   \        V R4      '       d   RV n        RRR4       R#   + '       g   i     R# ; i)zºCooperative interrupt so the child's worker thread can exit cleanly. ``tool_reason`` is the
fixed cause the child's tools see (a pending approval wait reports it instead of a user deny).Nr\   rX   T)r   r	   r]   rX   )r0   r\   rn   s   &$*r   r_   r_   ^   sK   € ô 
���ØÒÔ&<¸UÐ&eÀVÒ&eÐYd×&eÐ&eÜ˜EÐ#9×:Ò:Ø)-ˆEÔ&÷ 
��Šús   ”3AÁA"	c               ó$   € V ^8„  d   QhRRRRRR/# )r   Úframer   Úindentr*   r   ú	list[str]r   )r   s   "r   r    r    h   s&   € ÷ zñ z ð z¨Sð z°Yñ zr!   c                ó¬   € ^ RI pVP                  V 4       UUu. uF-  q3P                  4       P                  R4       F  qA V 2NK
  	  K/  	  upp# u uppi )é    NÚ
)Ú	tracebackÚformat_stackÚrstripÚsplit)rq   rr   Ú
_tracebackÚ
frame_lineÚsubs   &&   r   Ú_format_thread_stackr~   h   sO   € Û"Ø/9×/FÑ/FÀuÔ/MÔyÑ/M ×YjÑYjÓYl×YrÑYrÐswÖYxÐRUˆh�s�eÓÑYxÑÑ/MÒyÐyùÓys   ™3Ac               ó    € V ^8„  d   QhRRRR/# )r   Úlabelr*   r   rs   r   )r   s   "r   r    r    q   s   € ÷ $ñ $˜ð $¨)ñ $r!   c                óf   €  \        V! 4       4      #   \         d   pRT  T R2.u Rp?# Rp?ii ; i)zfLines from ``produce()``, or one ``<label: ...exc>`` line so a broken attribute never aborts the dump.ú  Ú>N)ÚlistÚ	Exception)r€   ÚproduceÚexcs   && r   Ú_diag_sectionrˆ   q   s9   € ð$Ü‘G“I‹ÐøÜô $Ø�U�G˜C˜5 Ð"Ð#Õ#ûð$ús   ‚ ’0�+¥0«0c               ó    € V ^8„  d   QhRRRR/# )r   r0   r   r   rs   r   )r   s   "r   r    r    x   s   € ÷ Mñ M�sð M˜yñ Mr!   c                óf   a € V 3R  lpV 3R lpR.\        RV4      ,           \        RV4      ,           # )c                 ó   <€ \        SR R4      ;'       g    \        SRR4      ;'       g    Rp \        V \        4      pRV'       d   \        V P	                  R4      4      MR 2RV'       d   \        V 4       2.# R 2.# )Úephemeral_system_promptNÚsystem_promptÚ z  system_prompt_bytes: úutf-8zn/az  system_prompt_chars: )r:   r#   r*   ÚlenÚencode)Ú
sys_promptÚis_strr0   s     €r   Ú_promptÚ_diag_sizes.<locals>._prompty   s‰   ø€ Ü˜UÐ$=¸tÓD×sÐsÌÐPUÐWfÐhlÓHm×sÐsÐqsˆ
Ü˜J¬Ó,ˆà%Ï¤c¨*×*;Ñ*;¸GÓ*DÔ&EÐUZÐ%[Ð\Ø%¿¤c¨*£oÐ%KÐLð
ð 	
àEJÐ%KÐLð
ð 	
r!   c            	     ó´   <€ \        SR R4      p V f   . # R\        V 4       2R\        \        P                  ! V \        R7      P                  R4      4       2.# )ÚtoolsNz  tool_schema_count: z  tool_schema_bytes: )r   r�   )r:   r�   ÚjsonÚdumpsr*   r‘   )Útools_schemar0   s    €r   Ú_toolsÚ_diag_sizes.<locals>._tools�   s]   ø€ Ü˜u g¨tÓ4ˆØÒØˆIà#¤C¨Ó$5Ð#6Ð7Ø#¤C¬¯
ª
°<ÌÔ(M×(TÑ(TÐU\Ó(]Ó$^Ð#_Ð`ð
ð 	
r!   z## Prompt / schema sizeszsystem_prompt: <error: ztool_schema: <error: )rˆ   )r0   r”   r›   s   f  r   Ú_diag_sizesr�   x   sG   ø€ õ
õ
ð 'Ð'¬-Ð8QÐSZÓ*[Õ[Ô^kð  mDð  FLó  _Mõ  Mð  Mr!   c               ó    € V ^8„  d   QhRRRR/# )r   Úworker_threadúOptional[threading.Thread]r   rs   r   )r   s   "r   r    r    Œ   s   € ÷ vñ vÐ!;ð vÀ	ñ vr!   c                óX  a a€ ^ RI oR.pSP                  4       pS eU   S P                  4       '       d?   VP                  S P                  4      pTP                  Ve   \        VR4      MR.4       MTP                  S f   RMR4       VV 3R lpVRR	.,           \        R
V4      ,           # )zÀWorker stack plus all other live threads (bounded to 40): the worker is often parked on a helper thread, so a
pre-HTTP wedge is indistinguishable from a slow provider without the full picture.Nz!## Worker thread stack at timeoutr‚   z  <worker frame not available>z  <no worker thread handle>z   <worker thread already exited>c                 óž  <a€ SP                  4       p \        P                  ! 4        Uu/ uF#  qP                  '       g   K  VP                  VbK%  	  ppS	'       d   S	P                  MR o. p\        V3R lV P	                  4        4       4       F´  w  pw  rVV^(8¼  d0   VP                  R\        V 4      V,
          ^,
           R24        V# VP                  V4      pTP                  RV'       d   VP                  MRV 2 V'       d   VP                  '       d   RMR R24       VP                  \        VR	4      4       K¶  	  V# u upi )
Nc              3  óF   <"  € T F  q^ ,          S8w  g   K  Vx € K  	  R# 5i)ru   Nr   )Ú.0ÚfÚworker_idents   & €r   Ú	<genexpr>Ú6_diag_threads.<locals>._all_threads.<locals>.<genexpr>�   s   øé € Ð/b¹>°aÈqÍTÐUaÑMa·²»>ùs   ƒ!—
!z  <z more threads omitted>z  --- zident=z daemonrŽ   z ---z    )Ú_current_framesÚ	threadingÚ	enumerateÚidentÚitemsrW   r�   ÚgetÚnameÚdaemonÚextendr~   )
ÚframesÚthÚby_identÚoutÚdumpedr¬   rq   r¦   Ú_sysrŸ   s
          @€€r   Ú_all_threadsÚ#_diag_threads.<locals>._all_threads˜   s  ù€ Ø×%Ñ%Ó'ˆÜ+4×+>Ò+>Ô+@ÓMÑ+@ RÇHÅH”L�B—H‘H˜b’LÑ+@ˆÐMß.;�}×*Ò*ÀˆØˆÜ&/Ô/b¸6¿<¹<¼>Ó/bÖ&bÑ"ˆF‘N�UØ˜Œ|Ø—
‘
˜S¤ V£¨vÕ!5¸Õ!9Ð :Ð:PÐQÔRØð ˆ
ð —‘˜eÓ$ˆBØ�J‰J˜¯2 §¢°V¸E¸7Ð3CÐD×SUÐZ\×Zc×ZcÐZcÁYÐjlÐDmÐmqÐrÔsØ�J‰JÔ+¨E°6Ó:Ö;ñ 'cð ˆ
ùò Ns   ªE
ÁE
rŽ   z## All thread stacks at timeoutz<all-thread dump failed: )	Úsysr©   Úis_aliver®   r¬   r±   r~   rW   rˆ   )rŸ   Úlinesr²   Úworker_framer¸   r·   s   f    @r   Ú_diag_threadsr¾   Œ   s«   ù€ ó Ø0Ð1€EØ×!Ñ!Ó#€FØÒ  ]×%;Ñ%;×%=Ò%=Ø—z‘z -×"5Ñ"5Ó6ˆØ�‰ÀÒAYÔ)¨,¸Ô=ð  aAð  `Bõ  	Cà�‰°mÒ6KÑ2ÐQsÔtöð �BÐ9Ð:Õ:¼]ÐKfÐhtÓ=uÕuÐur!   c               ó4   € V ^8„  d   QhRRRRRRRRRR	R
RRR/# )r   r0   r   r4   r   Útimeout_secondsr$   r7   rŸ   r    Úgoalr*   r   r'   r   )r   s   "r   r    r    ¨   sF   € ÷ 3ñ 3Øð3Ø"ð3Ø5:ð3ØNSð3à-ð3à58ð3ð ñ3r!   c                óº  a €  ^ RI Hp ^ RIpV! 4       R,          p VP                  RRR7       \        S RR4      ;'       g    RT 2p	TRT	 R	TP                  P                  4       P                  R
4       R2,          p
\        T;'       g    RP                  4       R4      pT 3R lp\        S RR4      pRRTP                  P                  4       P                  4        2RRRT 2RT	 2RT R2RTR R2RRT;'       g    RRR.\        T\        4      ORNRNR\        S RR4      : 2NpT'       dW   TP                  R\        T4       24       \        R4      ;_uu_ 4        TP                  R \!        T4       24       RRR4       TR.\#        S 4      ORNR!N,          pT\%        R"T 3R# l4      ,          pTR.\'        T4      ORNR$NR%NR&NR'NR(N,          pT
P)                  R)P+                  T4      R*R+7       \-        T
4      #   \         d     R# i ; i  + '       g   i     L ; i  \         d"   p\.        P1                  R,T4        Rp?R# Rp?ii ; i)-a1  Structured diagnostic for a subagent that timed out before any API call (otherwise "timed out with no
response", 0 API calls, nothing to inspect): ``~/.hermes/logs/subagent-timeout-<sid>-<ts>.log`` with the
child's config, prompt/schema sizes, activity snapshot and worker stack. Path, or None on failure.)Úget_hermes_homeNÚlogsT)ÚparentsÚexist_okÚ_subagent_idr-   zsubagent-timeout-Ú-z%Y%m%d_%H%M%Sz.logrŽ   iè  c                ó\   <€  R V  R\        SV R4      : 2#   \         d
    R T  R2u # i ; i)r‚   ú: Nz: <unreadable>)r:   r…   )Úattrr0   s   &€r   Ú
_attr_lineÚ5_dump_subagent_timeout_diagnostic.<locals>._attr_line»   sC   ø€ ð1Ø˜D˜6 ¤G¨E°4¸Ó$>Ñ#AÐBÐBøÜô 1Ø˜D˜6 Ð0Ò0ð1ús   ƒ —+ª+Úvalid_tool_namesu.   # Subagent timeout diagnostic â€” issue #14726z# Generated: z
## Timeoutz  task_index:        z  subagent_id:       z  configured_timeout: Úsz  actual_duration:   z.2fz## Goalú(empty)z## Child configz## Toolsetsz  enabled_toolsets:  Úenabled_toolsetsz  loaded tool count: z  loaded tools:      z## Activity summaryz<get_activity_summary failed: c                 ó‚   <€ SP                  4       P                  4        U Uu. uF  w  rR V  RV: 2NK  	  upp # u upp i )r‚   rÊ   )Úget_activity_summaryr­   )ÚkÚvr0   s     €r   Ú<lambda>Ú3_dump_subagent_timeout_diagnostic.<locals>.<lambda>Ï   s:   ø€ ÐSX×SmÑSmÓSo×SuÑSuÔSwÔ6xÑSwÉ4È1¸¸A¸3¸bÀÁ³ÑSwÓ6xùÓ6xs   £;z## NoteszG  This file is written ONLY when a subagent times out with 0 API calls.zI  0-API-call timeouts mean the child never reached its first LLM request.zG  Common causes: oversized prompt rejected by provider, transport hang,z<  credential resolution stuck. See issue #14726 for context.rv   r�   )Úencodingz+Subagent timeout diagnostic dump failed: %s)Úhermes_constantsrÃ   ÚdatetimeÚmkdirr…   r:   ÚnowÚstrftimer   ÚstripÚ	isoformatÚmapÚ_DIAG_CHILD_ATTRSrW   r�   r   Úsortedr�   rˆ   r¾   Ú
write_textÚjoinr*   ri   Úwarning)r0   r4   rÀ   r7   rŸ   rÁ   rÃ   Ú_dtÚlogs_dirÚsubagent_idÚ	dump_pathÚ_goal_previewrÌ   Ú
tool_namesr¼   r‡   s   d$$$$$          r   Ú!_dump_subagent_timeout_diagnosticrì   ¨   s¯  ø€ ð,Ý4ÛÙ"Ó$ vÕ-ˆð	Ø�N‰N 4°$ˆNÔ7ô ˜e ^°TÓ:×PÐPÀÀJÀ<Ð>PˆØÐ!2°;°-¸qÀÇÁ×AQÑAQÓAS×A\ÑA\Ð]lÓAmÐ@nÐnrÐsÕsˆ	Ü˜tŸz˜z r×0Ñ0Ó2°DÓ9ˆõ	1ô ˜UÐ$6¸Ó=ˆ
à<ÀÈcÏlÉl×N^ÑN^ÓN`×NjÑNjÓNlÐMmÐ>nÐprØÐ1°*°Ð>ÐBWÐXcÐWdÐ@eØ$ _Ð$5°QÐ7Ð;PÐQaÐbeÐPfÐfgÐ9hÐjlÐnwØ×&Ð&˜Y¨Ð,=ð	
ô ADÀJÔPaÓ@bð	
ð
 ð
ð
 ð
ð
 "7´w¸uÐFXÐZ^Ó7_Ñ6bÐcð
ˆ÷ Ø�L‰LÐ0´°Z³Ð0AÐBÔCÜ˜—•Ø—‘Ð4´V¸JÓ5GÐ4HÐIÔJ÷ à�"ÐE”{ 5Ó)ÐE¨2ÐEÐ/DÐEÕEˆØ”Ø,Ô.xó
õ 	
ˆð 	�"ð 
”} ]Ó3ð 
°Rð 
¸ð 
ØUð
àWð
ð Vð
ð Kð	
õ 	
ˆð 	×Ñ˜TŸY™Y uÓ-¸ÐÔ@Ü�9‹~ÐøôG ô 	Úð	ú÷, —ûô ô Ü�‰ÐDÀcÔJÝûðúsg   ƒH. œH	 ¯H. ÁA
H. ÂA3H. ÄA#H. Å%HÆBH. È	HÈH. ÈHÈH. ÈH+	È&H. È.IÈ9IÉIç      @gš™™™™™é?c               ó$   € V ^8„  d   QhRRRRRR/# )r   Úidle_secondsr$   Úchild_timeoutr   r*   r   )r   s   "r   r    r    æ   s!   € ÷ ñ  uð ¸Uð Àsñ r!   c                ó   € R V R RVR R2# )z3[delegation budget warning] No progress signal for z.0fz
s of your uy   s inactivity window. Finish the current step and return your summary now â€” the work is discarded if the window elapses.r   )rï   rð   s   &&r   Ú_budget_warning_textrò   æ   s'   € à
=¸lÈ3Ð=OÈzÐZgÐhkÐYlð mð 	ðr!   c               ó(   € V ^8„  d   QhRRRRRRRR/# )r   r0   r   rï   r$   rð   r   r?   r   )r   s   "r   r    r    í   s)   € ÷ =ñ =˜cð =°ð =Àuð =ÐQUñ =r!   c                óÈ   € \        V RR4      p\        V4      '       g   R#  V! \        W4      4       R#   \         d"   p\        P                  RT4        Rp?R# Rp?ii ; i)zeQueue the one-line warning through the child's steer path (delivered at its next iteration boundary).ÚsteerNzbudget warning steer failed: %s)r:   rJ   rò   r…   ri   rj   )r0   rï   rð   rõ   r‡   s   &&&  r   Ú_warn_child_budgetrö   í   sQ   € ä�E˜7 DÓ)€EÜ�E�?Š?Ùð=ÙÔ" <Ó?Ö@øÜô =Ü�‰Ð6¸×<Ò<ûð=ús   ¢5 µA!Á AÁA!c               ó    € V ^8„  d   QhRRRR/# )r   r0   r   r   Útupler   )r   s   "r   r    r    ÷   s   € ÷ 	iñ 	i sð 	i¨uñ 	ir!   c                óÂ   €  V P                  4       ;'       g    / pTP                  R4      TP                  R4      TP                  R4      3#   \         d    Ru # i ; i)u‹  ``(completed calls, current tool, activity clock)`` â€” the progress signals the heartbeat's stale verdict
already watches. A child waiting on an in-flight LLM completion is ALIVE: its activity clock ticks while the
provider works (``direct_api_call``'s 15s heartbeat) and the call itself is bounded by the per-call stale
watchdog, so at the delegation layer it must not read as stuck (#116001).Úapi_call_countÚcurrent_toolÚlast_activity_ts)NNN)rÓ   r…   r®   )r0   r5   s   & r   Ú_child_activity_fingerprintrý   ÷   s`   € ð
"Ø×,Ñ,Ó.×4Ð4°"ˆð �K‰KÐ(Ó)¨7¯;©;°~Ó+FÈÏÉÐTfÓHgÐhÐhøô ô "Ø!Ò!ð"ús   ‚A ™A ÁAÁAc               ó    € V ^8„  d   QhRRRR/# )r   r0   r   r   úOptional[float]r   )r   s   "r   r    r      s   € ÷ ñ  ð ¨ñ r!   c           	     óø   €  V P                  4       ;'       g    / P                  R4      pVe:   \        \        R\        P                  ! 4       \        V4      ,
          4      ^4      # R#   \         d     R# i ; i)zÒSeconds since the child's activity clock last ticked, or None when the child exposes no clock. Reported on a
timeout so an operator can tell a slow-but-live provider from a runaway without transcript forensics.rü   Nç        )rÓ   r®   ÚroundÚmaxÚtimer$   r…   )r0   Útss   & r   Ú_child_last_event_ager    sh   € ðØ×(Ñ(Ó*×0Ð0¨b×5Ñ5Ð6HÓIˆØ>@ºnŒu”S˜œdŸiši›k¬E°"«IÕ5Ó6¸Ó:ÐVÐRVÐVøÜô Úðús   ‚A* ™AA* Á(A* Á*A9Á8A9c                  óD   € ] tR tRtRtR R ltR R ltR R ltR	 tR
t	R# )Ú
_Heartbeati  uC  One child's parent-activity heartbeat via the shared periodic scheduler
(``agent.periodic_scheduler``) â€” not one daemon thread per child. NOT started at construction:
the caller calls ``start()`` inside its ``try`` so a failed schedule (OS thread exhaustion on
first use) leaves ``handle`` None and ``stop()`` is a no-op.c               ó$   € V ^8„  d   QhRRRRRR/# )r   r0   r   rM   r4   r   r   )r   s   "r   r    Ú_Heartbeat.__annotate__  s!   € ÷ =ñ =˜cð =°ð =À#ñ =r!   c                	óž   € WVuV n         V n        V n        R ^ RRRRR^ /V n        RV n        \
        P                  ! 4       V n        RV n        R# )ÚiterÚtoolNr  Ústale)	r0   rM   r4   Ú	last_seenÚhandlerª   ÚEventÚsettledÚstale_threshold_seconds)Úselfr0   rM   r4   s   &&&&r   Ú__init__Ú_Heartbeat.__init__  sR   € Ø9>ÈjÐ6ˆŒ
�DÔ% t¤ð ! ! V¨T°4¸¸wÈÐJˆŒØˆŒô !—’Ó(ˆŒð 9=ˆÖ$r!   c               ó   € V ^8„  d   QhRR/# ©r   r   r?   r   )r   s   "r   r    r
    s   € ÷ ?ñ ?�tñ ?r!   c                	óN   € ^ RI Hp ^ RIHp V! V P                  V4      V n        R# )ru   )Úschedule)Ú_HEARTBEAT_INTERVALN)Úagent.periodic_schedulerr  Útools.delegate_toolr  Útickr  )r  r  r  s   &  r   ÚstartÚ_Heartbeat.start  s   € Ý5Ý;Ù˜tŸy™yÐ*=Ó>ˆŽr!   c               ó   € V ^8„  d   QhRR/# r  r   )r   s   "r   r    r
  #  s   € ÷ 'ñ '�dñ 'r!   c                ó^   € V P                   e   V P                   P                  ^R7       R# R# )z?wait=5 mirrors the old thread join: an in-flight tick finishes.N©Úwait)r  Úcancel©r  s   &r   ÚstopÚ_Heartbeat.stop#  s&   € à�;‰;Ò"Ø�K‰K×Ñ AÐÖ&ñ #r!   c                óf  € ^ RI HpHpHp V P                  V P
                  V P                  V P                  3w  rErgVe   \        VRR4      MRpV'       g   R# RV R2p	 VP                  4       p
V
P                  R4      pV
P                  R^ 4      pV
P                  R^ 4      pV
P                  R	4      pVRJ;'       d    VR
,          RJ ;'       g    WçR
,          8„  pWÇR,          8”  g   W·R,          8w  g	   V'       d   VP                  WË^ R7       Ve   WçR
&   MVR;;,          ^,          uu&   V'       d   TMTpVR,          V8¼  dS   \        P                  RYgR,          T;'       g    R4       VV,          V n        V P                  P!                  4        R# V'       d   RV RV RV R2p	M4V
P                  RR4      '       d   RV
P                  RR4       RV RV R2p	\%        R4      ;_uu_ 4        V! V	4       RRR4       R#   \"         d     L3i ; i  + '       g   i     R# ; i)z,Returning False stops the periodic callback.)r  Ú_HEARTBEAT_STALE_CYCLES_IDLEÚ_HEARTBEAT_STALE_CYCLES_IN_TOOLNÚ_touch_activityzdelegate_task: subagent z workingrû   rú   Úmax_iterationsrü   r  r  r  )r  r  r  r  u`   Subagent %d appears stale (no progress for %d heartbeat cycles, tool=%s) â€” abandoning its waitz<none>Fz delegate_task: subagent running z (iteration Ú/Ú)Úlast_activity_descrŽ   )r  r  r*  r+  r0   rM   r4   r  r:   rÓ   r®   Úupdateri   rå   r  r  Úsetr…   r   )r  r  r*  r+  r0   rM   r4   r  ÚtouchÚdescÚchild_summaryÚ
child_toolÚ
child_iterÚ	child_maxÚchild_activity_tsÚactivity_advancedÚstale_cycless   &                r   r  Ú_Heartbeat.tick(  sC  € çzÑzØ59·Z±ZÀ×ARÑARÐTX×TcÑTcÐei×esÑesÐ5sÑ2ˆ˜ZØBNÒBZ”˜Ð&7¸Ô>Ð`dˆßÙØ)¨*¨°XÐ>ˆð 	Ø!×6Ñ6Ó8ˆMØ&×*Ñ*¨>Ó:ˆJØ&×*Ñ*Ð+;¸QÓ?ˆJØ%×)Ñ)Ð*:¸AÓ>ˆIØ -× 1Ñ 1Ð2DÓ EÐð !2¸Ð =÷ !ð !Ø˜$• 4Ð'×NÐNÐ+<È½Ñ+Nð ð  fÕ-Ô-°ÈÕ?PÔ1P×TeØ× Ñ  jÈÐ ÔKØ$Ò0Ø&7˜d‘Oøà˜'×" aÕ'Ó"ß>HÑ:ÐNjˆLØ˜Õ! \Ô1Ü—‘ØvØ¨'Õ 2°J×4JÐ4JÀ(ôð
 0<Ð>QÕ/Q�Ô,Ø—‘× Ñ Ô"ÙßØ9¸*¸À\ÐR\ÐQ]Ð]^Ð_hÐ^iÐijÐk‘Ø×"Ñ"Ð#7¸×<Ò<Ø1°-×2CÑ2CÐDXÐZ\Ó2]Ð1^Ð^jÐkuÐjvÐvwð  yBð  xCð  CDð  E�ô �D�\�\Ù�$ŒK÷ áøô	 ô 	Ùð	úçŽ\áúsU   Á A H ÃH Ã-H Ä8H Ä;2H Å./H ÆH Æ'H Æ4H ÇH Ç;	HÈHÈHÈH0	)r0   r  r  rM   r  r  r4   N)
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r  r  r'  r  Ú__static_attributes__r   r!   r   r  r    s   † ñDõ
=õ?õ
'ö
+r!   r  c               ó(   € V ^8„  d   QhRRRRRRRR/# )r   r0   r   rM   r4   r   r   r  r   )r   s   "r   r    r    V  s(   € ÷ 7ñ 7˜Cð 7¨sð 7Àð 7È
ñ 7r!   c                ó   € \        WV4      # )z<Build (not start) one child's heartbeat; see ``_Heartbeat``.)r  )r0   rM   r4   s   &&&r   Ú_start_heartbeatrE  V  s   € ä�e¨:Ó6Ð6r!   c               ó4   € V ^8„  d   QhRRRRRRRRRRR	RR
R/# )r   r0   r   rM   rÁ   r*   Úowner_session_idr'   Úowner_transportÚowner_session_recordr   r   )r   s   "r   r    r    Z  sF   € ÷ $ñ $Øð$Ø!ð$Ø),ð$ØCPð$Øcfð$àð$ð ñ$r!   c               ó,  € \        V RR4      p\        V\        4      '       d	   V'       g   R# Vf6   \        R4      ;_uu_ 4        ^ RIHp V! RR4      ;'       g    RpRRR4       V'       d   Ve   Vf   \        V4      w  rE\        V R^4      p\        RTR\        \        V R	R4      4      R
\        V\        4      '       d   \        ^ V^,
          4      M^ RTR\        \        V RR4      4      R\        \        V RR4      4      R\        P                  ! 4       RRR^ RT R\        \        V RR4      ;'       g    R4      ;'       g+    \        \        VRR4      ;'       g    R4      ;'       g    RRVRVRV/4       V#   + '       g   i     EL,; i)zÑRegister the live child in the module registry; return its subagent_id. Test doubles without a stable string
``_subagent_id`` are not registered (None) and the caller skips every registry interaction for them.rÇ   N)Úget_session_envÚHERMES_UI_SESSION_IDrŽ   Ú_delegate_depthrè   Ú	parent_idÚ_parent_subagent_idÚdepthrÁ   Údelegation_idÚ_delegation_idÚmodelÚ
started_atr.   ÚrunningÚ
tool_countÚagentÚowner_agent_session_idÚ_parent_session_idÚ
session_idrG  rH  rI  )r:   r#   r*   r   Úgateway.session_contextrK  r   r   r+   r   r  r  )	r0   rM   rÁ   rG  rH  rI  rÇ   rK  Ú
_raw_depths	   &&&$$$   r   Ú_register_childr]  Z  st  € ô ˜5 .°$Ó7€LÜ�l¤C×(Ò(·ÙØÒÜ�D�\�\Ý?Ù.Ð/EÀrÓJ×RÐRÈdÐ÷ ÷ ˜_Ò4Ð8LÒ8TÜ0PÐQaÓ0bÑ-ˆÜ˜Ð 1°1Ó5€JÜØ�|Ø”\¤'¨%Ð1FÈÓ"MÓNØ¬:°jÄ#×+FÒ+F”�Q˜
 Q�Ô'ÈAØ�Øœ¤g¨eÐ5EÀtÓ&LÓMØ”œg e¨W°dÓ;Ó<Ø”d—i’i“k 8¨Y¸ÀaÈÐRWð 	!Ü”˜Ð3°RÓ8×>Ð>¸BÓ?×}Ð}Ä3ÄwÈ|Ð]iÐkmÓGn×GtÐGtÐrtÓCu×}Ð}Ðy}ð 	Ð,Ø˜?ØÐ 4ð%ô ð( Ð÷5 �\ˆ\ús   ÁFÆF	c               ó$   € V ^8„  d   QhRRRRRR/# )r   rM   r   Úparent_task_idrè   r'   r   )r   s   "r   r    r    €  s"   € ÷ ñ ¨Cð Àð ÐS`ñ r!   c           	     óÐ  € ^ RI HpHp V! 4       '       g   R# \        R4      ;_uu_ 4        ^ RIHp VP                  4       '       g!   \        P                  R4        RRR4       R# Rp\        R4      ;_uu_ 4        ^ RI	H
p V! V4      pRRR4       TP                  T;'       g	    V! V 4      VR7      uuRRR4       #   + '       g   i     L=; i  + '       g   i     R# ; i)zÚOpt-in worktree isolation: own git worktree off the parent's HEAD (the
child's terminal starts there). Git-only, local-backend-only; failures
degrade silently to the shared workspace. Returns the worktree info or None.)Ú_get_worktree_isolationÚ_resolve_workspace_hintNz#worktree isolation setup failed: %s©Úsubagent_worktreez6worktree isolation skipped: non-local terminal backend)Úget_session_cwd)rè   )r  ra  rb  r   r—   rd  Úlocal_backend_activeri   rj   Útools.terminal_toolre  Úcreate_subagent_worktree)rM   r_  rè   ra  rb  rd  Ú_parent_cwdÚ_gscs   &&&     r   Ú_create_isolated_worktreerk  €  s²   € ÷ UÙ"×$Ò$ÙÜ	Ð5×	6Õ	6Ý+Ø ×5Ñ5×7Ò7Ü�L‰LÐQÔRØ÷	 
7Ñ	6ð
 ˆÜ�D�\�\ÝCÙ˜~Ó.ˆK÷ ð !×9Ñ9Ø×@Ð@Ñ2°<Ó@Èkð :ó 
÷ 
7Ò	6÷ �\ú÷ 
7Ö	6ñ ús/   «3CÁ(CÁ=C	ÂCÂ(CÃCÃCÃC%	c               ó$   € V ^8„  d   QhRRRRRR/# )r   r0   r   Úchild_futurer   r?   r   )r   s   "r   r    r    •  s!   € ÷ ñ  cð ¸ð Àñ r!   c                ó   a aaa€ SP                  V 3R l4       \        S RR4      o\        S4      '       g   R# R V3R lloS! R4       \        P                  ! RVV3R l4      pR	Vn        VP                  4        R# )
u�  Hand ``child.close()`` to a Future done-callback and drain its transports.

The interrupt is cooperative: the worker still runs its finally path, so closing now could close SQLite under its
final write â€” the done-callback is the first safe boundary. The abandoned worker is usually parked in an OpenSSL
read; NEVER hard-close that transport from this thread (cross-thread FD release under a live SSL read corrupts
native state) â€” shutdown() the pooled sockets so the read settles with EOF and the worker unwinds. One immediate
sweep + one delayed re-sweep for a connection opened in between; a worker that still won't settle keeps its
resources until process exit.
c                ó   <€ \        SR 4      # )z1Failed to close timed-out child after worker exit)rK   )Ú_doner0   s   &€r   rÖ   Ú,_defer_close_after_timeout.<locals>.<lambda>Ÿ  s   ø€ ´¸eÐExÔ1yr!   Ú#_drain_transports_after_abandonmentNc               ó    € V ^8„  d   QhRRRR/# )r   Úphaser*   r   r?   r   )r   s   "r   r    Ú0_defer_close_after_timeout.<locals>.__annotate__ª  s   € ÷ 7ñ 7˜3ð 7 4ñ 7r!   c                ó†   <€ \        R V RR7      ;_uu_ 4        S! RV  2R7       RRR4       R#   + '       g   i     R# ; i)z+Timed-out child transport drain (%s) failedTrG   Údelegate_timeout_)rn   N)r   )rt  Ú_drains   &€r   Ú_drain_onceÚ/_defer_close_after_timeout.<locals>._drain_onceª  s4   ø€ ÜÐAÀ5ÐSW×XÖXÙÐ-¨e¨WÐ5Õ6÷ Y×X×XÒXús	   ˜/¯A 	Ú	immediaterí   c                 óD   <€ SP                  4       '       d   R # S ! R4      # )NÚresweep)Údone)ry  rm  s   €€r   rÖ   rq  ¯  s"   ø€ ¸,×:KÑ:K×:MÒ:M°$Ð2iÑS^Ð_hÓSiÐ2ir!   T)Úadd_done_callbackr:   rJ   rª   ÚTimerr°   r  )r0   rm  Ú_resweep_timerrx  ry  s   ff @@r   Ú_defer_close_after_timeoutr‚  •  sl   û€ ð ×"Ñ"Ô#yÔzô �UÐAÀ4ÓH€FÜ�F×ÒÙ÷7ð 7ñ �ÔÜ—_’_ SÕ*iÓj€NØ €NÔØ×ÑÖr!   c               ó    € V ^8„  d   QhRRRR/# )r   r0   r   r   ztuple[Any, Optional[str]]r   )r   s   "r   r    r    ³  s   € ÷ &ñ & 3ð &Ð+Dñ &r!   c                óR  aaa€ \        V RR4      pVf   R	# ^ RIHo \        V RR4      oVP                  4       oSeÒ   \	        R4      ;_uu_ 4        \        V3R lVP                  4        4       R4      pS! VS4      '       gX   VP                  S4       \        VV3R lVP                  4        4       R4      pVe   VP                  VP                  4      MRoVe$   \        V R4      '       d   V P                  V4       RRR4       VS3# VS3#   + '       g   i     TS3# ; i)
a%  Lease a credential from the child's pool (if any) and bind it; ``(pool, lease_id)``. The bound entry must
serve the child's endpoint: on a mixed same-provider pool the least-leased pick may target another host, so it is
released and an endpoint-matching entry is leased by id instead (#68237).Ú_credential_poolN)Ú%credential_pool_entry_serves_endpointÚbase_urlz-Failed to bind child to leased credential: %sc              3  óL   <"  € T F  qP                   S8X  g   K  Vx € K  	  R # 5ir)   )Úid)r¤   rk   Úleased_cred_ids   & €r   r§   Ú*_lease_child_credential.<locals>.<genexpr>Á  s   øé € Ð [Ñ,@ qÇDÁDÈNÑDZ§¢Ó,@ùs   ƒ$š
$c              3  ón   <"  € T F*  qP                   R 8w  g   K  S! VS4      '       g   K&  Vx € K,  	  R# 5i)ÚdeadN)Úlast_status)r¤   rk   Ú_entry_serves_endpointr‡  s   & €€r   r§   r‹  Å  s,   øé € ÐxÑ 4˜1¿¹ÈÑ8O”QÑTjÐklÐnv×Tw—Q’QÓ 4ùs   ƒ5š5«
5Ú_swap_credential)NN)r:   Úagent.credential_poolr†  Úacquire_leaser   ÚnextÚentriesÚrelease_leaser‰  r]   r�  )r0   Ú
child_poolÚleased_entryr�  r‡  rŠ  s   &  @@@r   Ú_lease_child_credentialr˜  ³  s  ú€ ô ˜Ð 2°DÓ9€JØÒØÐÝeÜ�u˜j¨$Ó/€HØ×-Ñ-Ó/€NØÒ!ÜÐC×DÕDô  Ô [¨J×,>Ñ,>Ô,@Ó [Ð]aÓbˆLÙ)¨,¸×AÒAØ×(Ñ(¨Ô8Ü#Ýx 
× 2Ñ 2Ô 4ÓxØó �ð O[ÒNf ×!9Ñ!9¸,¿/¹/Ô!JÐlp�ØÒ'¬G°EÐ;M×,NÒ,NØ×&Ñ& |Ô4÷ Eð �~Ð%Ð%ˆ:�~Ð%Ð%÷ EÖDð �~Ð%Ð%ús   ÁB2DÄD&	c               ó(   € V ^8„  d   QhRRRRRRRR/# )	r   Úresultr2   rè   r'   r0   r   r   r?   r   )r   s   "r   r    r    Í  s0   € ÷ lñ l˜nð l¸=ð lÐQTð lÐY]ñ lr!   c                óº   € V'       d   \        W4      MRpV'       d>   V P                  R4      p\        V\        4      '       d   V'       d   V RV 2MTV R&   R# R# )züLinearization boundary for registry steering: from here the child cannot consume another steer. Closing under
the registry lock either rejects a concurrent caller or drains every accepted exact text into the result before
callbacks/result assembly run.NÚpending_steerrv   )r   r®   r#   r*   )rš  rè   r0   ÚlateÚexistings   &&&  r   Ú_merge_late_steerrŸ  Í  sR   € ÷ <GÔ# KÔ7ÈD€DßØ—:‘:˜oÓ.ˆÜ;EÀhÔPS×;TÒ;T×Ya X J¨b°°Ñ"7ÐgkˆˆÓñ r!   c                  ó@   € ] tR tRt$ R]R&   R]R&   R]R&   R]R	&   R
tR# )Ú_SchemaOutcomei×  zOptional[dict[str, Any]]ÚschemazOptional[bool]Úvalidrs   Úerrorsr   Úretriesr   N)r=  r>  r?  r@  Ú__annotations__rB  r   r!   r   r¡  r¡  ×  s   ‡ à$Ó$ØÓØÓØ‡Lr!   r¡  c               ó0   € V ^8„  d   QhRRRRRRRRR	RR
R/# )r   r0   r   rš  r2   r4   r   Úchild_task_idr*   Úrelay_child_textr   r¡  r   )r   s   "r   r    r    Þ  sD   € ÷ (Lñ (LØð(LØ&ð(LØ47ð(LØHKð(LØ_bð(Làñ(Lr!   c           	     óÔ  € \        V RR4      p\        V\        4      '       g   \        VR. ^ 4      # ^ RIHpHp VP                  R4      ;'       g    RpV! W…4      w  ršV	'       g/   VP                  4       '       d   VP                  RR4      '       d   \        WYV
^ 4      # Rp ^ RI	H
p T! \        \        V R	R4      ;'       g    R4      4      ;_uu_ 4        V P                  V! V
4      VVR
7      pRRR4       \        T\        4      '       dò   TP                  R4      ;'       g    RpTP                  4       '       d   YáR&    \!        TP                  R^ 4      ;'       g    ^ 4      \!        TP                  R^ 4      ;'       g    ^ 4      ,           TR&   TP                  R4      p\        T\&        4      '       d9   \        TP                  R4      \&        4      '       d   TR,          T,           TR&   T! Yå4      w  rš\        YYT
^4      #   + '       g   i     EL%; i  \         d"   p\        P                  RY-4        Rp?ELORp?ii ; i  \"        \$        3 d     LÌi ; i)zØValidate the final answer against the attached output_schema with ONE bounded retry. Schema-less children (no
dict on ``child._delegate_output_schema``) take no branch here so their result entry stays byte-identical.Ú_delegate_output_schemaN)Úbuild_retry_messageÚvalidate_outputÚfinal_responserŽ   ÚinterruptedF©Údelegated_child_contextrZ  ©Úuser_messageÚtask_idÚstream_callbackz(Subagent %d schema-retry turn failed: %sr6   Úmessages)r:   r#   Údictr¡  Útools.delegation_output_schemar¬  r­  r®   rÞ   Úagent.delegation_contextr±  r*   Úrun_conversationr…   ri   rå   r   Ú	TypeErrorrg   r„   )r0   rš  r4   r¨  r©  Ú_output_schemar¬  r­  Ú_first_textÚ_schema_validÚ_schema_errorsÚ_retry_resultr±  Ú
_retry_excÚ_retry_textÚ_retry_messagess   &&&&&           r   Ú_validate_child_output_schemarÄ  Þ  s  € ô
 ˜UÐ$=¸tÓD€NÜ�n¤d×+Ò+Ü˜n¨d°B¸Ó:Ð:ßSØ—*‘*Ð-Ó.×4Ð4°"€KÙ$3°KÓ$PÑ!€Mß˜K×-Ñ-×/Ò/°6·:±:¸mÈU×3SÒ3SÜ˜n¸^ÈQÓOÐOð €Mð
[õ 	EÙ$¤S¬°¸ÀbÓ)I×)OÐ)OÈRÓ%P×QÕQØ!×2Ñ2Ù0°Ó@È-Ø 0ð 3ó ˆM÷ Rô �-¤×&Ò&Ø#×'Ñ'Ð(8Ó9×?Ð?¸RˆØ×Ñ×ÒØ'2Ð#Ñ$ð	Ü"% f§j¡j°¸aÓ&@×&EÐ&EÀAÓ"FÌÈ]×M^ÑM^Ð_jÐlmÓMn×MsÐMsÐrsÓItÕ"tˆF�;Ñð (×+Ñ+¨JÓ7ˆÜ�o¤t×,Ò,´¸F¿J¹JÀzÓ<RÔTX×1YÒ1YØ!'¨
Õ!3°oÕ!EˆF�:ÑÙ(7¸Ó(TÑ%ˆÜ˜.¸ÈÓKÐK÷' R×QÐQûô
 ô [Ü�‰ÐAÀ:×ZÒZûð[ûô œ:Ð&ô 	Ùð	úsZ   Â% H$ ÃH$ ÃHÃ4H$ ÅI Å&#I Æ
I ÈH!	ÈH$ È!H$ È$IÈ/IÉIÉI'É&I'c               ó    € V ^8„  d   QhRRRR/# )r   r¶  r   r   zlist[dict[str, Any]]r   )r   s   "r   r    r      s   € ÷ ñ  ð Ð(<ñ r!   c           
     óv  € . p/ p\        V \        4      '       g   V# V  EF•  p\        V\        4      '       g   K  VP                  R4      R8X  d¨   VP                  R4      ;'       g    .  F†  pVP                  R/ 4      pVP                  RR4      pRVP                  RR	4      R
\	        V4      R\        V4      /pVP                  V4       VP                  R4      '       g   K{  WrVR,          &   Kˆ  	  KÙ  VP                  R4      R8X  g   Kñ  \        VP                  RR4      4      pR\	        V4      R\        V4      '       d   RMR/p	VP                  R4      p
V
'       d   VP                  V
4      MRpVe   VP                  V	4       EKr  V'       g   EK}  VR,          P                  V	4       EK˜  	  V# )zrTool trace from the child's conversation messages, pairing parallel
tool calls with their results by tool_call_id.ÚroleÚ	assistantÚ
tool_callsÚfunctionÚ	argumentsrŽ   r  r¯   ÚunknownÚ
args_bytesÚinput_summaryr‰  ÚcontentÚresult_bytesr.   r/   ÚokÚtool_call_idNéÿÿÿÿ)
r#   r„   r·  r®   r�   r   rW   r   r   r1  )r¶  Ú
tool_traceÚtrace_by_idÚmsgÚtcÚfnrË  Úentry_trÏ  Úresult_metaÚtc_idÚtargets   &           r   Ú_build_tool_tracerÝ    su  € ð (*€JØ-/€KÜ�h¤×%Ò%ØÐÜˆÜ˜#œt×$Ò$ÙØ�7‰7�6‹?˜kÔ)Ø—g‘g˜lÓ+×1Ð1¨rÒ1�Ø—V‘V˜J¨Ó+�ØŸF™F ;°Ó3�	à˜BŸF™F 6¨9Ó5°|ÄSÈÃ^Ø#Ô%>¸yÓ%Ið�ð ×!Ñ! 'Ô*Ø—6‘6˜$—<”<Ø,3  4¥Ó)ó 2ð �W‰W�V‹_ Ö&Ü-¨c¯g©g°iÀÓ.DÓEˆGØ)¬3¨w«<¸ÔNfÐgn×NoÒNoÁ7ÐuyÐzˆKØ—G‘G˜NÓ+ˆEß/4�[—_‘_ UÔ+¸$ˆFØÒ!Ø—‘˜k×*ß’Ø˜2•×%Ñ% k×2ñ- ð. Ðr!   c               ó0   € V ^8„  d   QhRRRRRRRRR	R
RR/# )r   r0   r   rš  r2   r4   r   r1   r$   r¢  r¡  r   r   )r   s   "r   r    r    (  sD   € ÷ añ aØðaØ&ðaØ47ðaØCHðaØR`ðaàñar!   c                óš  aaa€ VP                  R4      ;'       g    Rp\        V4      ;'       d    VP                  4       R8g  pRpVP                  RR4      '       dq   RRr˜^ RIHo RVP                  4       R0o\        VVV3R l\        VP                  R	4      ;'       g    . 4       4       R4      p
V
'       d   VP                  4       T
rWMZVP                  R
4      '       g   VP                  R4      '       d   R
Rr˜M(VP                  RR4      '       d   RMRp	V'       d   RMR
p\        V RR4      p\        V RR4      pRTRTRTRVP                  R^ 4      RTR\        \        V RR4      4      RT	RV	R8H  RR\        \        V R^ 4      4      R\        \        V R^ 4      4      /R\        VP                  R	4      ;'       g    . 4      R \        V R!R4      R"\        V\        \        34      '       d   \        T;'       g    R4      MR/p\        VR",          ^4      VR#&   \        V\        4      '       d   V'       d   TMR$VR%&   VR
8X  dJ   VP                  RR&4      VR&   VP                  R'4      p\        V\        4      '       d   V'       d   WíR'&   MV'       d   W}R&   \        VP                   \"        4      '       d¬   \        VP$                  4      VR(&   VP&                  '       d   VP&                  VR)&   VP$                  '       g"   VP(                  '       d   VP(                  VR*&   VP$                  RJ d0   V'       d(   R+VP&                  '       d   R,MR,           R-,           VR.&   VP                  R/4      p\        V\        4      '       d5   VP                  4       '       d   WýR0&   R1V R22pV'       d   V R3V 2MTVR&   V# )4a  Parent-visible result entry (status, exit_reason, tool trace, tokens, cost).
``status``/``exit_reason``/``truncated`` follow the ``_run_single_child`` contract; a structured failure always
wins over the summary-presence heuristic (a fallback for legacy/mock results only).r®  rŽ   rÐ   r¯  F)Úflatten_message_textzOperation interrupted.c              3  ó²   <"  € T FL  qP                  R 4      R8X  g   K  S! VP                  R4      4      P                  4       ;oS9  g   KH  Sx € KN  	  R# 5i)rÇ  rÈ  rÏ  N)r®   rÞ   )r¤   Úmrà  ÚplaceholdersÚts   & €€€r   r§   Ú&_build_result_entry.<locals>.<genexpr>:  sQ   øé € ð gÑ#I˜aÏUÉUÐSYË]Ð^iÑMiœÙ"6°q·u±u¸YÓ7GÓ"H×"NÑ"NÓ"PÐP˜QÐYeÑe÷ šÓ#Iùs   ƒAŸ)AÁ
Ar¶  Úfailedr/   Ú	completedr-  Úsession_estimated_cost_usdr  Úsession_cost_statusNr4   r.   r5   r6   r7   rS  Úexit_reasonÚ	truncatedÚtokensÚinputÚsession_prompt_tokensÚoutputÚsession_completion_tokensrÔ  r8   r9   Ú_child_cost_usdÚcost_usdrÌ  Úcost_statusz$Subagent did not produce a response.Úfailure_reasonÚschema_validÚschema_retriesÚschema_errorsz8Final answer does not satisfy the declared output_schemaz (after 1 retry)u–   ; `summary` is the child's raw, UNVALIDATED final text â€” extract what you need from it yourself (see schema_errors) rather than re-running the task.Úschema_noterœ  rA   uL   [steer did not land â€” the subagent finished before it could be delivered: rB   ú

)r®   ÚboolrÞ   Úagent.message_contentrà  r“  Úreversedr:   r+   r%   rÝ  r#   r   r$   r  r*   r¢  r·  r£  r¥  r¤  )r0   rš  r4   r1   r¢  r5   Úusable_summaryÚinterrupt_noter.   rê  ÚpartialÚ_costÚ_cost_statusr=   Ú_failure_reasonÚ_missed_steerÚ
_miss_noterà  rã  rä  s   &&&&&            @@@r   Ú_build_result_entryr  (  sl  ú€ ð �j‰jÐ)Ó*×0Ð0¨b€Gô ˜'“]×CÐC w§}¡}£¸)Ñ'C€NØ€NØ‡z�z�- ×'Ò'Ø+¨]�õ 	?Ø˜GŸM™M›OÐ-EÐFˆÜö g¤8¨F¯J©J°zÓ,B×,HÐ,HÀbÔ#Ió gØhjólˆçØ&-§m¡m£o°w˜GøØ	�‰�H×	Ò	 §¡¨G×!4Ò!4ð '¨‘ð &,§Z¡Z°¸U×%CÒ%C‘kÐIYˆß .‘°Hˆä�EÐ7¸Ó=€EÜ˜5Ð"7¸Ó>€Lð 	�jØ�&Ø�7Ø�V—Z‘Z ¨QÓ/Ø˜HØ”œg e¨W°dÓ;Ó<Ø�{ð 	�[Ð$4Ñ4ØØ”Tœ' %Ð)@À!ÓDÓEØ”dœ7 5Ð*EÀqÓIÓJð
ð 	Ô'¨¯
©
°:Ó(>×(DÐ(DÀ"ÓEð 	”w˜uÐ&6¸Ó=Ø´*¸UÄSÌ%ÀL×2QÒ2Qœ5 § ¨#Ô.ÐWZð)€Eô. ˜eÐ$5Õ6¸Ó:€Eˆ*ÑÜ+5°lÄC×+HÒ+HÏ\™<Ð_h€Eˆ-ÑØ�ÔØŸ™ GÐ-SÓTˆˆg‰ð !Ÿ*™*Ð%5Ó6ˆÜ�o¤s×+Ò+·Ø&5Ð"Ñ#øß	Ø'ˆg‰ô �&—-‘-¤×&Ò&Ü $ V§\¡\Ó 2ˆˆnÑØ�>�>ˆ>Ø&,§n¡nˆEÐ"Ñ#Ø�|�|ˆ| §§ Ø%+§]¡]ˆE�/Ñ"Ø�<‰<˜5Ó §^àJØ)/¯¯¨Ñ%¸RõAðPõPð �-Ñ ð —J‘J˜Ó/€MÜ�-¤×%Ò%¨-×*=Ñ*=×*?Ò*?Ø -ˆnÑØgÐhuÐgvÐvwÐxˆ
ß;B˜g˜Y d¨:¨,Ñ7È
ˆˆiÑØ€Lr!   c               ó    € V ^8„  d   QhRRRR/# )r   Úrefr*   r   rú  r   )r   s   "r   r    r    Œ  s   € ÷ Bñ B�sð B˜tñ Br!   c                ó$   € V P                  R4      # )úhttp://)r	  zhttps://údata:image/)Ú
startswith)r  s   &r   Ú_is_image_urlr  Œ  s   € Ø�>‰>Ð@ÓAÐAr!   c               ó$   € V ^8„  d   QhRRRRRR/# )r   rÁ   r*   Úimagesrs   r   r   r   )r   s   "r   r    r    �  s!   € ÷ ,ñ , Cð ,°ð ,Àcñ ,r!   c                óì  €  V Uu. uF  q3P                  R4      '       g   K  VNK  	  ppV Uu. uF   p\        V4      '       g   K  W49  g   K  VNK"  	  ppV Uu. uF  p\        V4      '       d   K  VNK  	  pp^ RIHpHp Rp	\        R4      ;_uu_ 4        ^ RIHp
 V
! 4       p	RRR4       T! \        \        VRR4      ;'       g    R4      \        \        VRR4      ;'       g    R4      T	\        \        VRR4      ;'       g    R4      R	7      pVR
8X  d¾   V! WV4      w  rÍV'       d7   \        P                  R\        V4      RP                  VR,          4      4       V'       d/   T;'       g    RRRV /.V Uu. uF  pRRRRV//NK  	  up,           p\        ;QJ d    R V 4       F  '       g   K   RM	  RM! R V 4       4      '       d   V# T # V'       d    \        P                  R\        V4      4       . pV FU  p\        P                   P#                  V4      '       d   VP%                  RV R24       K?  \        P                  RV4       KW  	  VP'                  R V 4       4       V'       g   V # V R,           RP                  V4      ,           R,           # u upi u upi u upi   + '       g   i     EL; iu upi   \(         d    \        P                  RRR7       T u # i ; i)uC  The child's first user message when a task forwards ``images``.

Routing reuses the inbound-image policy (``agent.image_routing``, honouring ``agent.image_input_mode``): a
vision-capable child gets an OpenAI-style content list (text part + one ``image_url`` part per image; local files
as data URLs behind the read guard, http(s)/data URLs verbatim); otherwise the goal gains ``[Image attached â€¦]``
hint lines for ``vision_analyze``. Any failure degrades to the text-only goal so image plumbing never breaks a
spawn â€” logged at warning since the caller asked for the images.
r
  )Úbuild_native_content_partsÚdecide_image_input_modeN)Úload_config_readonlyÚproviderrŽ   rS  Úrequested_provider)r  Únativez>delegate_task: skipped %d unreadable image(s) for subagent: %sú, :Né   NÚtypeÚtextÚ	image_urlÚurlc              3  óH   "  € T F  qP                  R 4      R8H  x € K  	  R# 5i)r  r  N)r®   )r¤   Úps   & r   r§   Ú,_build_child_goal_message.<locals>.<genexpr>­  s   é € ÐLÁeÀ§¡ f£°Ö <Ãeùs   ‚ "TFzLdelegate_task: %d inline data-URL image(s) dropped for a non-vision subagentz[Image attached at: rB   z6delegate_task: image path not found, not forwarded: %sc              3  ó.   "  € T F  pR V R2x € K  	  R# 5i)z[Image attached: rB   Nr   )r¤   Úus   & r   r§   r  ¶  s   é € Ð<±t°!Ð(¨¨¨1Õ-³tùs   ‚rù  rv   z,
Use vision_analyze to inspect these images.z>delegate_task: image forwarding failed; sending text-only goalrG   )r  r  Úagent.image_routingr  r  r   Úhermes_cli.configr  r*   r:   ri   rå   r�   rä   ÚanyÚosÚpathÚisfilerW   r±   r…   )rÁ   r  r0   rÏ   Ú	data_urlsÚurlsÚpathsr  r  Úcfgr  ÚmodeÚpartsÚskippedr   Úhintsr  s   &&&              r   Ú_build_child_goal_messager/  �  s¥  € ð#á &ÓF¡˜1¯,©,°}×*E—Q�Q¡ˆ	ÐFÙ!ÓM™6�a¤]°1×%5”¸!Ñ:L—�™6ˆÐMÙ"Ó;™F�q¬-¸×*:—�™FˆÐ;ß[ØˆÜ�D�\�\Ý>Ù&Ó(ˆC÷ ñ 'Ü”˜˜z¨2Ó.×4Ð4°"Ó5´s¼7À5È'ÐSUÓ;V×;\Ð;\ÐZ\Ó7]Ð_bÜ"¤7¨5Ð2FÈÓ#K×#QÐ#QÈrÓRô
ˆð �8ÔÙ7¸ÀTÓJ‰NˆEßÜ—‘Ð_ÔadÐelÓamÐos×oxÑoxð  zAð  BDõ  zEó  pFô  GßØ×BÐB F¨F°F¸DÐ#AÐ"Bñ  @Ió  GJñ  @IÐz{ÈÐP[Ð]hÐkpÐrsÐjtÓGuñ  @Iñ  GJõ  J�ß›CÑLÁeÓLŸCŸCšCÑLÁeÓL×LÒL�5ÐVÐRVÐVßÜ�N‰NÐiÔknÐoxÓkyÔzØˆÛˆAÜ�w‰w�~‰~˜a× Ò Ø—‘Ð3°A°3°aÐ8Ö9ä—‘ÐWÐYZÖ[ñ	 ð
 	�‰Ñ<±tÓ<Ô<ßØˆKØ�f�}˜tŸy™y¨Ó/Õ/Ð2aÕaÐaùò= GùÚMùÚ;÷ �\ˆ\üò GJøô ô Ü�‰ÐWÐbfˆÔgØŠðúsÃ   ‚K †J$£J$©K ¯J)ÁJ)ÁJ)ÁK ÁJ.Á3J.Á9K ÂJ3Â&"K Ã	K Ã(K ÄA#K Å,K Å5K Æ KÆK Æ%K Æ9K ÇK ÇK ÇK Ç BK É<K É>%K Ê$K Ê3K	Ê>K Ë$K3Ë2K3c                  ó†  € ] tR tRt$ RtR]R&   R]R&   R]R&   R]R	&   R
]R&   R]R&   RtR]R&   ]! ]P                  R7      t
R]R&   RtR]R&   RtR]R&   RtR
]R&   RtR]R&   ]! ]R7      tR]R&   R R ltR R ltR R  ltR! R" ltR#RR$R/R% R& lltR' R( ltR) R* ltR+ R, ltR- R. ltR/ R0 ltR1 R2 ltR3 R4 ltR5tR# )6Ú	_ChildRuni¿  zßState of one child run, shared by every phase of ``_run_single_child``.
``worktree_info`` stays None until isolation engages (``attach_worktree`` is
then a no-op on every early error path); ``seed_workspace`` sets the rest.r   r0   rM   r   r4   r*   rÁ   r'   rè   Úchild_progress_cbNÚ	heartbeat)Údefault_factoryr$   Úchild_startzOptional[dict[str, str]]Úworktree_inforŽ   r¨  r_  r  Ú
wall_startr„   Úparent_reads_snapshotc               ó   € V ^8„  d   QhRR/# )r   r   r$   r   )r   s   "r   r    Ú_ChildRun.__annotate__Ó  s   € ÷ =ñ =˜ñ =r!   c                	ób   € \        \        P                  ! 4       V P                  ,
          ^4      # )r   )r  r  Ú	monotonicr5  r&  s   &r   ÚelapsedÚ_ChildRun.elapsedÓ  s!   € Ü”T—^’^Ó%¨×(8Ñ(8Õ8¸!Ó<Ð<r!   c               ó    € V ^8„  d   QhRRRR/# )r   Údeltar*   r   r?   r   )r   s   "r   r    r:  Ö  s   € ÷ Sñ S ð S¨ñ Sr!   c                óJ   € V'       d   \        V P                  RVR7       R# R# )u×   Stream callback forwarding the child's reply text up the progress relay so gateway watch windows mirror it
live (subagent.text â†’ message.delta). Inert under CLI/TUI: their progress handlers ignore non-tool events.zsubagent.text©ÚpreviewN)r   r2  )r  r@  s   &&r   Ú
relay_textÚ_ChildRun.relay_textÖ  s   € ÷ Ü˜4×1Ñ1°?ÈE×Rñ r!   c               ó    € V ^8„  d   QhRRRR/# )r   Ú
entry_dictr2   r   r   )r   s   "r   r    r:  Ü  s   € ÷ ñ ¨.ð ¸^ñ r!   c                óî   € V P                   pVf   V# ^ RIHp  VP                  V4      VR&   V#   \         d:   p\
        P                  RT4       TP                  TRT 24      TR&    Rp?T# Rp?ii ; i)zWInspect + prune the child worktree, reporting into the entry (no-op without isolation).Nrc  Úworktreezworktree finalize failed: %szfinalize raised: )r6  r—   rd  Úfinalize_subagent_worktreer…   ri   rå   Úunproven_worktree_payload)r  rG  Úinford  rk   s   &&   r   Úattach_worktreeÚ_ChildRun.attach_worktreeÜ  sŒ   € à×!Ñ!ˆØŠ<ØÐÝ+ð	pØ%6×%QÑ%QÐRVÓ%WˆJ�zÑ"ð Ðøô ô 	pô �N‰NÐ9¸1Ô=Ø%6×%PÑ%PÐQUÐYjÐklÐjmÐWnÓ%oˆJ�zÕ"ØÐûð	pús   š0 °A4».A/Á/A4c               ó   € V ^8„  d   QhRR/# r  r   )r   s   "r   r    r:  ë  s   € ÷ vñ v ñ vr!   c                ó  € ^ RI pV P                  ;'       g2    RV P                   RVP                  4       P                  R,           2T n        \        V P                  RR4      V n        \        R4      ;_uu_ 4        ^ RI
HpHpHp V! V P
                  V! V P                  4      4       V! V P
                  V P                  4       RRR4       \        V P                  V P                  V P                  4      V n        V P                  eu   \        R4      ;_uu_ 4        ^ R	I
Hp V! V P
                  V P                  R
,          4       RRR4       ^ RIHp V P$                  V! V P                  4      ,           V n        \&        P&                  ! 4       V n        V P                  '       d1   \+        \,        P.                  ! V P                  4      4      V n        R# . V n        R#   + '       g   i     EL(; i  + '       g   i     L·; i)z–Seed cwd/container aliases and optional worktree isolation for the child;
``goal`` is extended with the worktree contract note when isolation engaged.Nz	subagent-rÈ   ºNé   NÚ_current_task_idzChild cwd seed failed: %s)re  Úrecord_session_cwdÚregister_container_aliaszworktree cwd seed failed: %s)rT  r%  )Úbuild_worktree_context_note)Úuuidrè   r4   Úuuid4Úhexr¨  r:   rM   r_  r   rg  re  rT  rU  rk  r6  Útools.subagent_worktreerV  rÁ   r  r7  r„   r   Úknown_readsr8  )r  Ú_uuidre  rT  rU  Ú_rscrV  s   &      r   Úseed_workspaceÚ_ChildRun.seed_workspaceë  sz  € ó 	Ø!×-Ñ-×fÐf°9¸T¿_¹_Ð<MÈQÈuÏ{É{Ë}×O`ÑO`ÐacÕOdÐNeÐ1fˆÔÜ% d×&7Ñ&7Ð9KÈTÓRˆÔô Ð/×0Õ0ßiÑiÙ˜t×1Ñ1±?À4×CVÑCVÓ3WÔXÙ$ T×%7Ñ%7¸×9LÑ9LÔM÷ 1ô
 7°t×7HÑ7HÈ$×J]ÑJ]Ð_c×_oÑ_oÓpˆÔØ×ÑÒ)ÜÐ6×7Õ7ÝJÙ�T×'Ñ'¨×);Ñ);¸FÕ)CÔD÷ 8õ
 LØŸ	™	Ñ$?À×@RÑ@RÓ$SÕSˆDŒIÜŸ)š)›+ˆŒØZ^×Zm×ZmÐZm¤T¬*×*@Ò*@À×ATÑATÓ*UÓ%VˆÖ"ÐsuˆÖ"÷ 1×0Ð0ú÷ 8×7ús   Á>AG(Ä"+G<Ç(G9	Ç<H	r5   r.   c               ó0   € V ^8„  d   QhRRRRRRRRRRR	R/# )
r   r=   r2   r>   r'   rC  r*   r5   r.   r   r   )r   s   "r   r    r:    s<   € ÷ 
+ñ 
+Ø#ð
+Ø1>ð
+ØLOð
+ØZ]ð
+Ølyð
+à	ñ
+r!   c          	     óž   € \        V P                  RY5;'       g
    VR,          VR,          VR7       \        W4       V P                  V4      # )z°Shared tail of every failure path: emit ``subagent.complete`` (``status`` defaults to the entry's), note
the steer text that won the race with the failure, report the worktree.úsubagent.completer.   r7   )rC  r.   r7   r5   )r   r2  rC   rM  )r  r=   r>   rC  r5   r.   s   &&&$$$r   Úfinish_failedÚ_ChildRun.finish_failed  sO   € ô
 	Ø×"Ñ"Ð$7À×QjÐQjÐ[`ÐaiÕ[jØ"Ð#5Õ6Àõ	
ô 	˜UÔ/Ø×#Ñ# EÓ*Ð*r!   c               ó   € V ^8„  d   QhRR/# )r   r   r'   r   )r   s   "r   r    r:    s   € ÷ dñ d ñ dr!   c                ój   € V P                   '       d!   \        V P                   V P                  4      # R# )zTClose steer acceptance (see ``_merge_late_steer``); returns late steer text, if any.N)rè   r   r0   r&  s   &r   Úclose_steeringÚ_ChildRun.close_steering  s+   € àIM×IY×IYÐIYÔ'¨×(8Ñ(8¸$¿*¹*ÓEÐcÐ_cÐcr!   c               ó(   € V ^8„  d   QhRRRRRRRR/# )	r   r  zthreading.Eventrm  r   rð   rÿ   r   r?   r   )r   s   "r   r    r:    s0   € ÷ $mñ $m¨?ð $mÈ#ð $mÐ^mð $mÐrvñ $mr!   c                óF  € Vf   VP                  4        R# \        P                  ! 4       V,           pWCR\        ,
          ,          ,
          pRp\	        V P
                  4      p \        P                  ! 4       pWH,
          p	V	^ 8:  d   R# \        \        V	4      p
V'       g   \        V
\        WX,
          R4      4      p
VP                  V
R7       VP                  4       '       d   R# \	        V P
                  4      pW·8w  d=   Tp\        P                  ! 4       V,           pWCR\        ,
          ,          ,
          pRpKÜ  V'       d   Kæ  \        P                  ! 4       V8¼  g   EK  Rp\        V P
                  W4\        P                  ! 4       ,
          ,
          V4       EK?  )uÜ  Wait for the worker or the stale verdict, where ``child_timeout`` bounds INACTIVITY, not total runtime.

A configured cap used to be a dispatch-to-death stopwatch, so it only ever killed children the runtime had
already judged healthy: all 75 reported deaths happened while waiting on an in-flight LLM completion, none
mid-tool (#116001). A provider serving multi-minute completions is progress â€” the child's activity clock
ticks during the wait and the request is bounded by the per-call stale watchdog â€” so the budget restarts on
every sign of progress, exactly the signals the heartbeat's stale verdict reads. Genuinely frozen children
keep two authorities: this budget (when configured) and the heartbeat's stale threshold.
Ng      ð?FTr  ©Útimeout)r$  r  r<  Ú_BUDGET_WARNING_FRACTIONrý   r0   ÚminÚ_LIVENESS_POLL_SECONDSr  r^   rö   )r  r  rm  rð   ÚdeadlineÚwarn_atÚwarnedÚfingerprintrÜ   Ú	remainingr$  Úcurrents   &&&&        r   Úwait_liveness_awareÚ_ChildRun.wait_liveness_aware  s*  € ð Ò Ø�L‰LŒNÙÜ—>’>Ó# mÕ3ˆØ¨cÔ4LÕ.LÕMÕMˆØˆÜ1°$·*±*Ó=ˆØÜ—.’.Ó"ˆCØ �ˆIØ˜AŒ~ÙÜÔ-¨yÓ9ˆDßÜ˜4¤ W¥]°CÓ!8Ó9�Ø�L‰L ˆLÔ&Ø�~‰~×ÒÙÜ1°$·*±*Ó=ˆGØÔ%Ø%�ÜŸ>š>Ó+¨mÕ;�Ø"°cÔ<TÕ6TÕ%UÕU�Ø’ß‘V¤§¢Ó 0°G× ;Ø�Ü" 4§:¡:¨}Ì4Ï>Ê>ÓK[Õ@[Õ/\Ð^k×lr!   c               ó   € V ^8„  d   QhRR/# )r   r   z?tuple[Optional[dict[str, Any]], Optional[dict[str, Any]], bool]r   )r   s   "r   r    r:  ;  s   € ÷ L2ñ L2Ð\ñ L2r!   c                ó
  a aaaaa€ ^ RI HpHpHpHp ^ RIHp S P                  S P                  uopV! 4       pV! ^WC! 4       3R7      pRR/o\        \        SRR4      ;'       g    . 4      p	V	'       d   \        S P                  V	S4      MS P                  oVV VV3R lp
VP                  \        P                  ! 4       P                   V
4      pS P"                  e   S P"                  P$                  M\&        P(                  ! 4       oVP+                  V3R l4       Rp S P-                  SW·4       VP/                  4       '       gÐ   \        S P"                  R	R4      pVf   \1        4       h\3        S4       Tp\&        P(                  ! 4       oVP+                  V3R
 l4       SP5                  VR7      '       d   VP/                  4       '       g   \1        4       h\6        P9                  RWm4       VP;                  4       RR3VP=                  RR7       # VP;                  4       RR3VP=                  RR7       #   \>         d   pTp Rp?MRp?ii ; i TP=                  RR7       M  TP=                  RR7       i ; iS PA                  4       p\3        S4       \C        T\0        \D        34      pTe   TMTpS PG                  4       p\6        PI                  RTT'       d   RMR\K        T4      PL                   2T4       ^ p\O        R4      ;_uu_ 4        \Q        SPS                  4       PU                  R^ 4      ;'       g    ^ 4      pRRR4       M  + '       g   i     M; iT;'       d    T^ 8H  pRpT'       df   \W        ST\Y        T;'       g    R4      \Y        T4      SPU                  R4      S P                  R7      pT'       d   \6        PI                  RTT4       T'       g   \[        T4      pM'Te   RT RTR R2pMT'       d   RT R2pM	RT RT R2pT'       d   TRT 2,          pT'       d   RMR pR!TR"TR#RR TR$TR%TR&TR'T'       d   TMRR(T'       d   TMRR)T'       d   R*MT'       d   R+MRR,T'       d   \]        S4      MRR-\        SR.R4      R/T/pS P_                  TTT'       d   R0T R12M
\[        T4      R27       T;'       d    TP/                  4       '       * pT'       d   \a        ST4       RTT3# )3u‚  Run the child's conversation on a daemon worker: ``(result, None, False)`` or ``(None, error_entry,
close_deferred)`` on timeout/exception.

Hard timeout is off by default (``result(timeout=None)``; stuck children are the heartbeat's job). Daemon
worker: an abandoned timed-out child on a non-daemon thread would block interpreter exit at atexit join. The
worker installs a non-interactive approval callback (deny/approve per delegation.subagent_auto_approve) so
dangerous-command prompts never fall back to ``input()`` and deadlock the parent TUI. On failure: steer
acceptance closes BEFORE the stop signal (a concurrent steer is drained into the entry or rejected, never
lost); a 0-API-call timeout gets a diagnostic dump; a worker that still owns the child gets ``child.close()``
via a Future done-callback (``close_deferred=True``) â€” closing here would race its still-unwinding finally
path.
)Ú_STALE_RESULT_GRACE_SECONDSÚ_get_child_timeoutÚ_get_subagent_approval_callbackÚ_set_subagent_approval_cb)ÚDaemonThreadPoolExecutor)Úmax_workersÚinitializerÚinitargsrä  NÚ_delegate_imagesc            	     ó*  <€ \         P                  ! 4       SR &   ^ RIHp  T ! \	        \        SRR4      ;'       g    R4      4      ;_uu_ 4        SP                  SSP                  SP                  R7      uuRRR4       #   + '       g   i     R# ; i)rä  r°  rZ  rŽ   r²  N)	rª   Úcurrent_threadr¹  r±  r*   r:   rº  r¨  rD  )r±  r0   r  r³  Úworker_thread_holders    €€€€r   Ú_run_with_thread_captureÚ7_ChildRun.await_child.<locals>._run_with_thread_captureW  ss   ø€ Ü(1×(@Ò(@Ó(BÐ  Ñ%ÝHÙ(¬¬W°U¸LÈ"Ó-M×-SÐ-SÐQSÓ)T×UÕUØ×-Ñ-Ø!-°t×7IÑ7IÐ[_×[jÑ[jð .ó ÷ V×U×UÓUús   Á(BÂB	c                ó$   <€ SP                  4       # r)   ©r2  )Ú_fr  s   &€r   rÖ   Ú'_ChildRun.await_child.<locals>.<lambda>e  s   ø€ ¨G¯K©K¬Mr!   r  c                ó$   <€ SP                  4       # r)   r‰  )rŠ  Ú
grace_dones   &€r   rÖ   r‹  }  s   ø€ °J·N±NÔ4Dr!   rk  u]   Subagent %d settled inside the %.1fs stale-result grace window â€” collecting its real resultFr#  zSubagent %d %s after %.1fsz	timed outzraised rú   r  )r0   r4   rÀ   r7   rŸ   rÁ   u;   Subagent %d 0-API-call timeout â€” diagnostic written to %sz'Subagent stopped making progress after u!    API call(s) â€” no activity for Úgz@s (heartbeat stale threshold); the pending worker was abandoned.zSubagent timed out after u˜   s without making any API call â€” the child never reached its first LLM request (prompt construction, credential resolution, or transport may be stuck).zs with u®    API call(s) completed â€” no progress in that window (no completed call, tool change, or activity-clock tick): a stalled provider request or an unresponsive network request.z Diagnostic: rl  r/   r4   r.   r5   rê  r6   r7   rÀ   Útimed_out_after_secondsÚtimeout_phaseÚbefore_first_llm_callÚafter_llm_callsÚlast_event_ager8   r9   Údiagnostic_pathzTimed out after rÏ   rB  )1r  rz  r{  r|  r}  Útools.daemon_poolr~  r0   r4   r„   r:   r/  rÁ   ÚsubmitÚcontextvarsÚcopy_contextÚrunr3  r  rª   r  r  rv  r~  ÚFuturesTimeoutErrorr_   r$  ri   rL  rš  Úshutdownr…   rg  r#   r   r=  rå   r  r=  r   r   rÓ   r®   rì   r$   r*   r  rc  r‚  ) r  rz  r{  r|  r}  r~  r4   rð   ÚexecutorÚ_imagesr†  ÚfutureÚstale_afterÚgraceÚwait_excr‡   Ú_late_pending_steerÚ
is_timeoutÚtimeout_causer1   Úchild_api_callsÚbefore_first_callr”  Ú_errr.   Ú_error_entryÚclose_deferredr0   r�  r  r³  r…  s    f                          @@@@@r   Úawait_childÚ_ChildRun.await_child;  sµ  ý€ ÷	
ó 	
õ 	?Ø ŸJ™J¨¯©ÐˆˆzÙ*Ó,ˆÙ+ØÐ'@ÐLkÓLmÐKoô
ˆð HKÈDÀkÐä”w˜uÐ&8¸$Ó?×EÐEÀ2ÓFˆßT[Ô5°d·i±iÀÈ%ÔPÐae×ajÑajˆ÷	ð 	ð —‘¤×!9Ò!9Ó!;×!?Ñ!?ÐAYÓZˆð
 -1¯N©NÒ,F�$—.‘.×(Ò(ÌIÏOÊOÓL]ˆØ× Ñ Ô!9Ô:à'+ˆð"	*Ø×$Ñ$ W¨fÔDØ—;‘;—=’=Ü% d§n¡nÐ6OÐQUÓV�ØÒ&ô .Ó/Ð/ô # 5Ô)Ø3�Ü&Ÿ_š_Ó.�
Ø×(Ñ(Ô)DÔEØ!—‘¨u�×5Ò5¸V¿[¹[¿]º]Ü-Ó/Ð/Ü—‘ØsØôð —}‘}“¨¨eÐ3ð ×Ñ 5ÐÕ)ð —=‘=“? D¨%Ð/ð
 ×Ñ 5ÐÕ)øô	 ô 	*Ø!)�Cûð	*úØð ×Ñ 5ÐÕ)øˆH×Ñ 5ÐÕ)úà"×1Ñ1Ó3ÐÜ˜5Ô!Ü Ô&9¼<Ð%HÓIˆ
à'2Ò'>™ÀMˆØ—<‘<“>ˆÜ�‰Ð3°Z×PZÁÐbiÔjnÐorÓjs×j|Ñj|Ði}Ð`~ð  AIô  	JØˆÜ�D�\�\Ü! %×"<Ñ"<Ó">×"BÑ"BÐCSÐUVÓ"W×"\Ð"\Ð[\Ó]ˆO÷ �\�\ˆ\úð '×?Ð?¨?¸aÑ+?ÐØ)-ˆßÜ?Ø¨
ä % m×&:Ð&:°sÓ ;ÌeÐT\ËoØ2×6Ñ6°sÓ;À$Ç)Á)ô	ˆO÷ Ü—‘Ð\Ð^hÐjyÔzßÜ�s“8‰DØÒ$à9¸/Ð9JÐJkØ˜q�/Ð!aðcñ ÷ à+¨M¨?ð ;mð nñ ð ,¨M¨?¸'À/ÐARð SGð Hð ÷
 Ø�m OÐ#4Ð5Õ5ˆDß(‘¨gˆà˜* h°¸	À4ÈÐRVÐXeÐgmØ˜Ð*<¸hØ·
™}ÀØ%·:¡xÀ4Ø×8IÑ4×dnÑO`Ðtxð ¿jÔ3°EÔ:ÈdØœ7 5Ð*:¸DÓAØ˜ð
ˆð 	×Ñ˜<Ð)<×hrÐHXÐYaÐXbÐbcÑFdÔx{Ð|ó  yAÐô  	BØ#×9Ð9¨F¯K©K«MÔ(9ˆßÜ& u¨fÔ5Ø�\ >Ð1Ð1sC   Ä!B1H= Ç2H= ÈH= È=IÉIÉ
I+ ÉIÉI+ É+I?Ì4MÍM%	c               ó    € V ^8„  d   QhRRRR/# ©r   r=   r2   r   r?   r   )r   s   "r   r    r:  É  s   € ÷ 1ñ 1°>ð 1Àdñ 1r!   c           
     óÐ  € V P                   '       d   V P                  '       g   R# \        RRR7      ;_uu_ 4        \        P                  ! V P                   V P
                  V P                  4      pV'       d3   \        VP                  4        UUu0 uF  q3 F  qDkK  	  K  	  upp4      M. pV'       g    RRR4       R# RRP                  VR,          4      ,           \        V4      ^8”  d   R\        V4      ^,
           R	2MR
,           R,           pVP                  R4      '       d   VR,          V,           VR&   MWQR&   RRR4       R# u uppi   + '       g   i     R# ; i)uÀ   Warn the parent when this child wrote files the parent had already read. Checks writes by ANY non-parent
task_id (not just this child's) so nested orchestratorâ†’worker chains are covered too.Nz%file_state sibling-write check failedTrG   uX   

[NOTE: subagent modified files the parent previously read â€” re-read before editing: r  rQ  z (+z more)rŽ   rB   r5   Ústale_paths)r_  r8  r   r   Úwrites_sincer7  râ   Úvaluesrä   r�   r®   )r  r=   Úsibling_writesr)  r  Ú	mod_pathsÚreminders   &&     r   Úappend_sibling_write_reminderÚ'_ChildRun.append_sibling_write_reminderÉ  s,  € ð ×#×#Ð#¨×(B×(BÐ(BÙÜÐ;Àd×KÖKÜ'×4Ò4°T×5HÑ5HÈ$Ï/É/Ð[_×[uÑ[uÓvˆNß[iœ¨~×/DÑ/DÔ/FÔVÑ/F eÒPUÈ1¢ÑPU¡Ñ/FÒVÔWÐoqˆIßØ÷	 LÑKð mØ—)‘)˜I b�MÓ*õ+ä7:¸9³~ÈÔ7I�Sœ˜Y›¨!Õ+Ð,¨FÑ3ÈrõSð õð ð �y‰y˜×#Ò#Ø#(¨Õ#3°hÕ#>��iÒ à'0�mÑ$÷ LÑKùãV÷ L×KÐKús1   ¼AEÂEÂ%EÂ7EÃA)EÄ,EÅEÅE%	c               ó    € V ^8„  d   QhRRRR/# r­  r   )r   s   "r   r    r:  Þ  s   € ÷ Kñ K°.ð KÀTñ Kr!   c                óÚ  € \        \        V P                  RR4      ;'       g    . 4      pV'       d   W!R&   \        R4      ;_uu_ 4        ^ RIHpHp VP                  V P                  4      pV'       dd   V Uu. uFS  pRVP                  RVP                  R,          R\        \        P                  ! 4       VP                  ,
          4      /NKU  	  upVR	&   VP                  V P                  4      pV'       dJ   V Uu. uF9  pRVP                  RVP                  R,          R
VP                  RV! VR4      /NK;  	  upVR&   RRR4       R# u upi u upi   + '       g   i     R# ; i)a?  Name the child's background processes on the result BEFORE ``cleanup`` kills them: handed-off ones now
belong to the parent (their completion lands in the parent's chat); anything else still running is about to be
terminated, and the parent must hear that from the runtime rather than trust a child's "watcher running".Ú_handed_off_processesNÚhanded_off_processes)Úprocess_registryÚ_output_tailrZ  Úcommand:NéÈ   NÚruntime_secondsÚorphaned_processesÚ	exit_codeÚoutput_tailéX  Úunread_completions)r„   r:   r0   r   Útools.process_registryr»  r¼  Úrunning_owned_byr¨  r‰  r½  r  r  rT  Úunread_completions_owned_byrÁ  )r  r=   Úhandedr»  r¼  ÚleftoverrÏ   Úunreads   &&      r   Úaccount_background_processesÚ&_ChildRun.account_background_processesÞ  s>  € ô ”g˜dŸj™jÐ*AÀ4ÓH×NÐNÈBÓOˆßØ,2Ð(Ñ)Ü�D�\�\ßMØ'×8Ñ8¸×9KÑ9KÓLˆHßñ &ó/'á%˜ð " 1§4¡4¨°A·I±I¸dµOÐEVÔX]Ô^b×^gÒ^gÓ^iÐlm×lxÑlxÕ^xÓXyÓzÙ%ñ/'�Ð*Ñ+ð &×AÑAÀ$×BTÑBTÓUˆFßñ DJó/KáCI¸að " 1§4¡4¨°A·I±I¸dµOÀ[ÐRS×R]ÑR]Ø"¡L°°CÓ$8ó:ÙCIñ/K�Ð*Ñ+÷ ‰\ùò/'ùò
/K÷ �\ˆ\ús1   Á
0EÁ:AEÃ(EÃ<EÄ ?EÄ?EÅ
EÅE*	c               ó(   € V ^8„  d   QhRRRRRRRR/# )r   rš  r2   r=   r1   r$   r   r?   r   )r   s   "r   r    r:  ò  s0   € ÷ !Wñ !W Nð !W¸>ð !WÐUZð !WÐ_cñ !Wr!   c                óð  € V P                   '       g   R# V P                  pVR,          p. p\        R4      ;_uu_ 4        \        \        P
                  ! V P                  4      4      R,          pRRR4       / p\        R4      ;_uu_ 4        \        P                  ! RV P                  . 4      pRRR4       RV'       d
   VR,          MVP                  RR4      RVR,          R	TRV'       d
   VR
,          MVP                  RR4      R\        \        VR^ 4      4      R\        \        VR^ 4      4      R\        \        VR^ 4      4      R\        VR,          4      RTR\        VP                  4        UU	U
u0 uF!  w  r‰W€P                  8X  g   K  V	 F  qªkK  	  K#  	  up
p	p4      R,          R\        V^RR7      /pVP                  R4      '       d   VR,          VR&   \        VRR4      pVe+   \        R4      ;_uu_ 4        \        V4      VR&   RRR4       \!        V P                   R3/ VB  R#   + '       g   i     ELÏ; i  + '       g   i     EL£; iu up
p	pi   + '       g   i     LX; i)z´Fire ``subagent.complete`` with the per-branch observability payload (tokens, cost, files touched,
tool-output tail); every field is optional and degrades gracefully on the client.Nr5   :Né(   NrŽ   rC  :Né    Nr/   r.   r7   :Niô  NÚinput_tokensrî  Úoutput_tokensrð  Úreasoning_tokensÚsession_reasoning_tokensr6   Ú
files_readÚfiles_writtenrÂ  rÃ  )Úmax_entriesÚ	max_charsrô  rè  rò  rb  )r2  r0   r   r„   r   r[  r¨  r°  r7  r®   r%   r:   râ   r­   r   r$   r   )r  rš  r=   r1   r0   r5   Ú_files_readÚ_files_written_mapÚtidr)  r  Úcomplete_kwargsÚ	_cost_usds   &&&&         r   Úemit_completeÚ_ChildRun.emit_completeò  s  € ð ×%×%Ð%ÙØ—
‘
ˆØ˜	Õ"ˆØˆÜ�D�\�\Üœz×5Ò5°d×6HÑ6HÓIÓJÈ3ÕOˆK÷ à#%ÐÜ�D�\�\Ü!+×!8Ò!8¸¸T¿_¹_ÈbÓ!QÐ÷ ð ¯�w˜t–}°U·Y±Y¸wÈÓ5KØ�e˜H•oØ Ø¯�w˜t–}°U·Y±Y¸wÈÓ5KØœD¤¨Ð0GÈÓ!KÓLØœT¤'¨%Ð1LÈaÓ"PÓQØ¤¤W¨UÐ4NÐPQÓ%RÓ SØœ˜e KÕ0Ó1Ø˜+ØœVÐ9K×9QÑ9QÔ9Sõ  %AÑ9S©:¨3ÐWZ×^pÑ^pÑWp¤QÓzÐuv¢QÑz¡QÑ9Só  %Aó  Bð  CFõ  GØÔ/°ÀAÐQTÔUð+
ˆð �9‰9Ð%×&Ò&à05Ð6FÕ0GˆOÐ,Ñ-Ü˜EÐ#?ÀÓFˆ	ØÒ Ü˜—•Ü.3°IÓ.>� 
Ñ+÷ ä�t×-Ñ-Ð/BÑVÀoÔV÷3 �\ˆ\ú÷ �\ˆ\üô %A÷ —ús/   ¿1H6Â#I
Å9I2ÆI2ÈI%È6I	É
I	É%I5	c          
     ó,   € V ^8„  d   QhRRRRRRRRRR	/# )
r   r3  r  r–  r   rŠ  r©  rú  r   r?   r   )r   s   "r   r    r:    s9   € ÷ -Tñ -T Jð -T¸Cð -TÐQTð -TÐfjð -TÐosñ -Tr!   c               ó  € V P                   pVP                  4        V P                  '       d   \        V P                  VR7       Ve2   Ve.   \	        R4      ;_uu_ 4        VP                  V4       RRR4       ^ RIp\        VRR4      p\        V\        4      '       d   \        V4      Vn
        \        V P                  V4       V'       g   \        VR4       \	        R4      ;_uu_ 4        ^ RIHp T! \!        \        VRR	4      ;'       g    R	4      4       RRR4       \	        R
4      ;_uu_ 4        ^ RIHp	 V	P'                  RR7      p
\!        \        VRR	4      ;'       g    R	4      pV	P(                  P+                  V	P-                  4       VR7      pV
e$   V'       d   V'       g   V
P/                  RV/4       RRR4       R#   + '       g   i     ELb; i  + '       g   i     LÌ; i  + '       g   i     R# ; i)uW  Finally-path teardown (idempotent, never raises). Order matters: stop heartbeat â†’ drop registry entry â†’
release credential lease â†’ restore the parent's process-global tool names â†’ detach from the parent's
interrupt list â†’ close the child (unless a timed-out worker still owns it) â†’ pop the child's Relay scope if
no turn is active.)rW  Nz&Failed to release credential lease: %sÚ_delegate_saved_tool_namesz,Failed to close child agent after delegationz0Failed to dispose child execute_code kernels: %s)Ú$shutdown_kernels_for_delegated_childrZ  rŽ   z4Failed to close child Relay session after delegation)Úrelay_runtimeF)Úcreate)Úprofile_keyrZ  Úchild_session_id)r0   r'  rè   r   r   r•  Úmodel_toolsr:   r#   r„   Ú_last_resolved_tool_namesrl   rM   rK   Útools.code_kernelrã  r*   rW  rä  Úget_runtimeÚSESSION_COORDINATORÚhas_active_turnÚcurrent_profile_keyÚunregister_subagent)r  r3  r–  rŠ  r©  r0   rè  Úsaved_tool_namesrã  rä  Úruntimerç  Úchild_turn_is_actives   &$$$$        r   ÚcleanupÚ_ChildRun.cleanup  s¤  € ð
 —
‘
ˆØ�‰Ôð ××ÐÜ  ×!1Ñ!1¸Õ?àÒ! nÒ&@ÜÐ@×AÕAØ×(Ñ(¨Ô8÷ Bó
 	Ü" 5Ð*FÈÓMÐÜÐ&¬×-Ò-Ü48Ð9IÓ4JˆKÔ1ä�d×'Ñ'¨Ô/÷ Ü˜Ð NÔOô ÐF×GÕGÝNÙ0´´W¸UÀLÐRTÓ5U×5[Ð5[ÐY[Ó1\Ô]÷ Hô ÐJ×KÕKÝ+Ø#×/Ñ/°uÐ/Ó=ˆGÜ"¤7¨5°,ÀÓ#C×#IÐ#IÀrÓJÐØ#0×#DÑ#D×#TÑ#TØ)×=Ñ=Ó?ÐL\ð $Uó $Ð ð Ò"×'7×@TØ×+Ñ+Ð-?ÐAQÐ,RÔS÷ LÑK÷1 B×AÐAú÷$ H×Gú÷ L×KÐKús1   Á!GÃ/-G Ä7A/G3Æ'G3Æ/G3ÇG	Ç G0	Ç3H	)r¨  rÁ   r8  r_  r7  r6  )r=  r>  r?  r@  rA  r¦  r3  r   r  r<  r5  r6  r¨  r_  r7  r„   r8  r=  rD  rM  r^  rc  rg  rv  rª  rµ  rË  rÞ  ró  rB  r   r!   r   r1  r1  ¿  sâ   ‡ ñRð ƒJØÓØƒOØ
ƒIØÓØÓØ€IˆsÓÙ¨t¯~©~Ô>€K�Ó>Ø.2€MÐ+Ó2Ø€M�3ÓØ$(€N�MÓ(Ø€J�ÓÙ"'¸Ô"=Ð˜4Ó=õ=õSõõvð4
+Ø`bð
+ð }A÷
+õdõ$mõLL2õ\1õ*Kõ(!W÷F-Tñ -Tr!   r1  )ru   )rS  r  Úapi_moder‡  r-  Ú
quiet_modeÚskip_memoryÚskip_context_filesÚplatformr9   rM  )LrA  Ú
__future__r   Úloggingr—  r˜   r$  rª   r  Úconcurrent.futuresr   rš  Útypingr   r   r   r   Úagent.compression_markerr   Úagent.interrupt_compatr	   Údataclassesr
   r   r—   r   Útools.delegate_tool_progressr   r   Útools.delegate_tool_registryr   r   r   r   Útools.delegate_tool_resultsr   r   r   r   Ú	getLoggerri   r%   r+   r;   rC   rK   rS   rc   rl   r_   r~   rá   rˆ   r�   r¾   rì   ro  rm  rò   rö   rý   r  r  rE  r]  rk  r‚  r˜  rŸ  r¡  rÄ  rÝ  r  r  r/  r1  r   r!   r   Ú<module>r     sh  ðñPõ #ã Û Û Û 	Û Û Ý Bß ,Ó ,Ý *Ý 9ß (Ý ß ?÷ó ÷ó ð 
×	Ò	Ð0Ó	1€÷Fõ5÷õbõõ:õ%õ*Kð.ÐD]÷ .õzðÐ õ
$õMõ(võ83ðr Ð ð Ð õõ=õ	iõ÷Hñ HõV7õ$õLõ*õ<&õ4lð ÷ð ó ðõ(LõTõ@aõHBõ,ð^ ÷BTð BTó òBTr!   