
    j,                       d Z ddlmZ ddlZddlZddlZddlZddlmZ  ee	      j                         j                  Z ed      ZdZedz  edz  ed	e d
z  ed	e dz  edz  edz  fZdZddZddZddZedk(  r e e             y)z>Independent no-network, arm-only verification for observer v3.    )annotationsN)Pathz)/home/cube/.hermes/profiles/dualcoachtest%task26_live_2e_r2_20260815_8527916639zcustomers/registry.jsonz:data/onboarding/telegram-customer-bootstrap-v1/ledger.jsonzdata/customers/z-/nutrition-onboarding/transient/workflow.jsonz"/nutrition-onboarding/session.jsonz:data/onboarding/telegram-publication-outbox-v1/ledger.jsonzCdata/onboarding/telegram-publication-outbox-v1/owner-callbacks.json@e2f1699e8586ed3f835eaa2a3eaeaecaf5e52a4ad82aa931caade0ed377077cec                d    t        j                  | j                               j                         S )N)hashlibsha256
read_bytes	hexdigest)paths    [.omo/evidence/task26/task26-continuous-lifecycle-observer-v3-e2f1699e/independent_verify.pydigestr      s!    >>$//+,6688    c                    | j                  d      5 }t        j                  ||dd       |j                  d       |j	                          d d d        | j                  d       y # 1 sw Y   xY w)NxT),:)	sort_keys
separators
i  )openjsondumpwriteflushchmod)r   documentstreams      r   exclusive_jsonr      sQ    	36		(FdzJT 
 	JJu	 
s   ;A''A0c                    t         D  ci c]  } t        |       t        |        }} t        dz  }|j	                         rt        d|       t        j                  t        j                  t        t        dz        ddt        t              dt        |      gddd      }t        j                  |j                        }t         D  ci c]  } t        |       t        |        }} ||k7  rt        d	      |j                  d
      dk7  rt        d      |j                  di       j                  d      t        k7  rt        d      |j                  di       }|j                  di       }|j                  d
      dk7  sd|j                  d      dk7  sP|j                  d
      dk7  s<|j                  d      dk7  s(|j                  d      dk7  s|j                  d      dk7  rt        d      ddd|t        |      t        ||ddd
}t!        t        dz  |       t#        t        j$                  |d              yc c} w c c} w )!Nzindependent-arm-only-v2.jsonz'refusing to replace append-only proof: zobserver_v3.pyzarm-onlyz	--profilez--readyT)checkcapture_outputtextz3live authority changed during arm-only verificationstatusREADY_CONTINUOUS_LIFECYCLEzobserver did not armbindings	successorzsuccessor binding mismatchinitial_handoffcandidate_summary_revisionSTOP_CUSTOMER_SUMMARY_QUALITY
message_id207READY_CUSTOMER_SUMMARY_REVISION
next_fieldschedule_constraints
next_valueu   없음z*live summary/revision classification driftz0task26-continuous-lifecycle-independent-proof-v3PASS_ARM_ONLY_BLOCKER_DETECTEDr   )
schemar$   authority_unchangedauthority_sha256arm_only_sha256r'   r(   r)   network_callsprofile_mutationszindependent-proof-v2.json)r   )AUTHORITIESstrr   ROOTexistsRuntimeError
subprocessrunsys
executablePROFILEr   loadsstdoutget	SUCCESSORr   printdumps)	r   beforereadyresultr   afterhandoffrevisionproofs	            r   mainrO   &   s   2=>+$c$i%+F>11E||~DUGLMM^^NN''(LJ	
 F zz&--(H1<=SYt$E=PQQ||H!==122||J#''4	A788ll,b1G||8"=HH!@@;;|$-<<!%FF<<%.<<%)??<<%1GHHD2#!!%="&.E 455u=	$**Ud
+,g ?& >s   H>	I__main__)r   r   returnr9   )r   r   r   objectrQ   None)rQ   int)__doc__
__future__r   r   r   r=   r?   pathlibr   __file__resolveparentr:   rA   KEYr8   rE   r   r   rO   __name__
SystemExit r   r   <module>r_      s    D "    
 H~&&
:
;-''JJu$QRRu$FGGJJSS O	94n z
TV
 r   