+
    lHàj]  ã                   óÖ   a € R t0 t R t^ RIt]P                  ! RRR7      t] ^ k RtR R ltR R	 ltR
 R ltR R lt	]P                  ! RRR7      t
] ^k R R ltR R ltR R ltR# )a¢  Skill write-origin provenance: a ContextVar separating background-review skill writes from foreground
user-directed writes (the curator only curates skills the self-improvement review fork created; skills a user
asked for belong to the user). run_agent.py binds the origin before each tool loop, mirroring
AIAgent._memory_write_origin: ``token = set_current_write_origin(...)`` / ``reset_current_write_origin(token)``.NÚskill_write_originÚ
foreground)ÚdefaultÚbackground_reviewc                óZ   € V ^8„  d   QhR\         R\        P                  \         ,          /# )é   ÚoriginÚreturn)ÚstrÚcontextvarsÚToken)Úformats   "Ú;/home/ubuntu/.hermes/hermes-agent/tools/skill_provenance.pyÚ__annotate__r      s%   € ÷ 5ñ 5¤Sð 5¬[×->Ñ->¼sÕ-Cñ 5ó    c                 ó@   € \         P                  T ;'       g    R 4      # )r   )Ú_write_originÚset)r   s   &r   Úset_current_write_originr      s   € Ü×Ñ˜V×3Ð3 |Ó4Ð4r   c                óR   € V ^8„  d   QhR\         P                  \        ,          RR/# ©r   Útokenr	   N)r   r   r
   )r   s   "r   r   r      s%   € ÷ ñ ¤k×&7Ñ&7¼Õ&<ð Àñ r   c                 ó0   € \         P                  V 4       R # ©N)r   Úreset©r   s   &r   Úreset_current_write_originr      s   € Ü×Ñ˜Ör   c                ó$   € V ^8„  d   QhR\         /# ©r   r	   )r
   )r   s   "r   r   r      s   € ÷ ñ ¤#ñ r   c                 ó*   € \         P                  4       # )zk"foreground" for any regular agent (CLI, gateway, cron, subagent); "background_review" for the review fork.)r   Úget© r   r   Úget_current_write_originr"      s   € ä×ÑÓÐr   c                ó$   € V ^8„  d   QhR\         /# r   ©Úbool)r   s   "r   r   r      s   € ÷ ;ñ ;œdñ ;r   c                  ó$   € \        4       \        8H  # r   )r"   ÚBACKGROUND_REVIEWr!   r   r   Úis_background_reviewr(      s   € Ü#Ó%Ô):Ñ:Ð:r   Úreview_attendedFc                óZ   € V ^8„  d   QhR\         R\        P                  \         ,          /# )r   Úattendedr	   )r%   r   r   )r   s   "r   r   r   #   s%   € ÷ 0ñ 0¤$ð 0¬;×+<Ñ+<¼TÕ+Bñ 0r   c                 ó>   € \         P                  \        V 4      4      # r   )Ú_review_attendedr   r%   )r+   s   &r   Úset_review_attendedr.   #   s   € Ü×Ñ¤ X£Ó/Ð/r   c                óR   € V ^8„  d   QhR\         P                  \        ,          RR/# r   )r   r   r%   )r   s   "r   r   r   '   s%   € ÷ "ñ "¤×!2Ñ!2´4Õ!8ð "¸Tñ "r   c                 ó0   € \         P                  V 4       R # r   )r-   r   r   s   &r   Úreset_review_attendedr1   '   s   € Ü×Ñ˜5Ö!r   c                ó$   € V ^8„  d   QhR\         /# r   r$   )r   s   "r   r   r   +   s   € ÷ Añ Aœdñ Ar   c                  óX   € \        4       ;'       d    \        P                  4       '       * # r   )r(   r-   r    r!   r   r   Úis_unattended_reviewr4   +   s    € ÜÓ!×@Ð@Ô*:×*>Ñ*>Ó*@Ô&@Ð@r   c                ó¼   € V ^8„  d   Qh/ ^ \         9   d   \        P                  \        ,          ;R&   ^\         9   d   \        P                  \        ,          ;R&   # )r   r   r-   )Ú__conditional_annotations__r   Ú
ContextVarr
   r%   )r   s   "r   r   r      sL   € ÷ tñ t÷ pÒ oŒ{×%Ñ%¤cÕ*Ñ oñt÷> jÒ i”+×(Ñ(¬Õ.Ñ iò?tr   )r6   Ú__doc__r   r7   r   r'   r   r   r"   r(   r-   r.   r1   r4   r   )r6   s   @r   Ú<module>r9      sl   øðötó
 à-8×-CÒ-CÐDXÐbnÔ-o€Ó oØ'Ð õ5õõõ
;ð 2=×1GÒ1GÐHYÐchÔ1iÐ Ó iõ0õ"÷Ar   