
    B2j                       d Z ddlmZ ddlZddlmc mZ ddl	Z	ddl
mZ  ee      j                         j                  d   Z ee      e	j"                  vr#e	j"                  j%                  d ee             n\e	j"                  d    ee      k7  rD	 e	j"                  j'                   ee             e	j"                  j%                  d ee             dZe	j,                  j/                  d      Z eedd      xs d	Z eed
g       Zeduxr edz   ev xs  ed eD              Z e       ZerM e e	j,                  jC                               D ]*  Z"e"dk(  se"jG                  d      sejI                  e"       , e	j,                  j/                  d      Z% ee%dd      xs d	Z&e%duxr edz   e&v Z'e'rM e e	j,                  jC                               D ]*  Z"e"dk(  se"jG                  d      sejI                  e"       , h dZ(ejS                  e(       eD ]  Z"e	j,                  jU                  e"d         ddl+m,Z- edz  dz  Z.edz  dz  Z/e.ja                         r=e/ja                         r+de	j,                  vs7ejc                          ee	j,                  j/                  d      dd	      xs d	vrp e-jd                  d ee.       eedz        g      Z3e3Ie3jh                  = e-jj                  e3      Z6e6e	j,                  d<   	 e3jh                  jo                  e6       de	j,                  vrg e-jd                  d ee/            Z9e9Ke9jh                  > e-jj                  e9      Z:e:e	j,                  d<   	 e9jh                  jo                  e:       yyyyyy# e$ r Y w xY w# e8$ r Y w xY w# e8$ r e	j,                  jU                  dd       Y yw xY w)uQ  conftest.py for callback_authority_gate regression tests.

Ensures worktree root is on sys.path so that task-2646 utils modules
are loaded from the worktree, not from live workspace.

This conftest is loaded before test modules are collected, ensuring
that worktree-local dispatch and utils packages take priority over
live workspace versions.

Path layout (relative to this file):
  conftest.py  ←→  parents[0] = callback_authority_gate/
                    parents[1] = regression/
                    parents[2] = tests/
                    parents[3] = worktree root (task-2646-dev3/)
    )annotationsN)Path   z/home/jay/workspaceutils__file__ __path__/utilsc              #  D   K   | ]  }t         d z   t        |      v   yw)r
   N)_live_workspacestr).0ps     b/home/jay/workspace/.worktrees/task-2646-dev3/tests/regression/callback_authority_gate/conftest.py	<genexpr>r   2   s     I)SV3Is    zutils.dispatchz	/dispatchz	dispatch.>   utils.callback_registration"utils.callback_authority_validator#utils.callback_source_cross_checkerz__init__.pyz"normal_fallback_callback_helper.py)submodule_search_locationsz(dispatch.normal_fallback_callback_helper);__doc__
__future__r   builtins@py_builtins_pytest.assertion.rewrite	assertionrewrite
@pytest_arsyspathlibr   r   resolveparents_WORKTREE_ROOTr   pathinsertremove
ValueErrorr   modulesget
_utils_modgetattr_utils_file_utils_pathany_utils_from_liveset	_to_clearlistkeysk
startswithadd_dispatch_mod_dispatch_file_dispatch_from_live_task_2646_modulesupdatepopimportlib.utilutil_ilu_worktree_dispatch_init_worktree_helper_modexistsas_posixspec_from_file_location	_spec_pkgloadermodule_from_spec_pkgexec_module	Exception_spec_helper_helper     r   <module>rO      s   #   
  h'')11!4 ~chh&HHOOAs>*+XXa[C''N+, HHOOAs>*+ ([[__W%
j*d39rj*b1d ("k1 	JI[II	  E	#++""$% <1<<1MM!
 
+
D9?R 8+%7  #++""$% 
?all;7MM!
 
 
  # $	 AKKOOAt  (:5E %
25YY !!#(<(C(C(E$(?(?(A
+Z<B) 1D00'((+NZ,G(H'I
	
  Y%5%5%A(4((3D&*CKK
#  ,,T2 2D3t336$%
 #(;(;(G+d++L9GFMCKKBCR##//8	 )H# E) )F#Q  n     R  JDQRs6   !N! N-  N8 !N*)N*-N54N58!OO