
     j.                        d Z ddlmZ ddlZddlZddlmZ  ee      j                         j                  d   Zd
dZ edd      Zd	 Zy)u   tests/regression/test_done_escalated_coexistence.py — Group 7 (1건).

task-2472 regression: .done + .done.escalated 동시 존재 → DONE reject.

23. test_done_and_done_escalated_coexistence_rejects_done
    )annotationsN)Path   c                4   t         |z  }t        j                  j                  | t	        |            }||j
                  
J d|        t        j                  j                  |      }|t        j                  | <   |j
                  j                  |       |S )Nu   spec load 실패: )
WORKTREE	importlibutilspec_from_file_locationstrloadermodule_from_specsysmodulesexec_module)mod_namerelpathspecmods        G/home/jay/workspace/tests/regression/test_done_escalated_coexistence.py_loadr      s    c>D>>11(CIFD 7T;MdV9TT7
..
)
)$
/CCKKKKC J    silent_corruption_guard_g7z utils/silent_corruption_guard.pyc                Z   d}| dz  dz  }|j                  dd       || dz  }|j                  dd	       || d
z  }|j                  dd	       t        j                  ||       }|d   du sJ d       |d   d   du sJ |d   d   du sJ d|d   v sd|d   j	                         v sJ |j                          t        j                  ||       }|d   du sJ d       |j                          |j                  dd	       t        j                  ||       }|d   du sJ d       y)u[   .done + .done.escalated 둘 다 존재하면 check_done_escalated_coexistence → ok=False.ztask-coexist-23memoryeventsT)parentsexist_okz.donedonezutf-8)encodingz.done.escalatedz{"reason":"test","ts":"2026-05-07T00:00:00Z","task_id":"task-coexist-23","source":"test","blocking_condition":"test","evidence_path":"/dev/null"})	workspaceokFuP   .done + .done.escalated 동시 존재 시 DONE 인정 불가 — ok=False 필수detaildone_existsescalated_existsu   동시 존재reasoncoexistu   .done만 있으면 PASS 필수xu(   .done.escalated만 있으면 PASS 필수N)mkdir
write_textscg check_done_escalated_coexistencelowerunlink)tmp_pathtask_id
events_dir	done_pathescalated_pathresult	result_okresult_escalated_onlys           r   5test_done_and_done_escalated_coexistence_rejects_doner7   !   s   G H$x/JTD1 y..I'2  WI_"==N	S   11'X1NF$<5  Z  (M*d222(./4777fX..)vh?O?U?U?W2WWW 44W4QIT?d"D$DD" cG4@@T\@] &$.Z0ZZ.r   )r   r   r   r   )__doc__
__future__r   importlib.utilr   r   pathlibr   __file__resolver   r   r   r+   r7    r   r   <module>r?      sP    #  
 >!!#++A. (*LM'[r   