+
    jj4!  c                      R t ^ RIHt ^ RIt^ RIHu Ht ^ RI	t	^ RI
t
^ RIt^ RIt^ RIHt ^ RIt^ RIt^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt  ! R	 R
4      tR tR R ltR R ltR# )z,Tests for compiler/stages/capture_import.py.)annotationsN)Path)import_capture)build_index)retrieve)FakeProvider)load_capturec                  .    ] tR t^tRRRR/R R lltRtR# )_HashEmbeddershow_progress_barFnormalize_embeddingsc               (    V ^8  d   QhRRRRRRRR/# )   	sentencesz	list[str]r
   boolr   returnz
np.ndarray )formats   "K/Users/jameslopez/projects/MentorCore/tests/compiler/test_capture_import.py__annotate___HashEmbedder.__annotate__   s2        	
 # 
    c               	   . pV F  p\         P                  ! VP                  4       4      P                  4       pV^,          R,          p\        P
                  ! V\        P                  R7      P                  \        P                  4      R,
          pV'       d/   \        P                  P                  V4      p	V	^ 8  d	   W,          pVP                  V4       K  	  \        P                  ! V4      # )r   :N    N)dtypeg      `@)hashlibsha256encodedigestnp
frombufferuint8astypefloat32linalgnormappendstack)
selfr   r
   r   vecsshrawvecr$   s
   &&$$      r   r   _HashEmbedder.encode   s     Aqxxz*113Aq5#,C--2884;;BJJG%OC#yy~~c*!8KCKK  xx~r   r   N)__name__
__module____qualname____firstlineno__r   __static_attributes__r   r   r   r	   r	      s      #(	
 &+ r   r	   c                Z#  a""   V R ,          pVR,          pVP                  RR7       VP                  R\        V4      4       \        V4       \	        R4      pV R,          pVR,          pVR,          pVP                  RR7       VP                  RR7       VR,          P                  R	R
R7       VR,          P                  \        P                  ! RR/4      R,           R
R7       \        RR./V\        4       RR7       V R,          o"\        S"RR7       R V"3R llp\        P                  ! R4      p	\        VVV	\        4       VR7      G Rj  xL
 p
VR,          P                  R
R7      pVP                  pRq! V4      q'       g   RRR\         P"                  ! 4       9   g   \$        P&                  ! V4      '       d   \$        P(                  ! V4      MRR\$        P(                  ! V4      R \$        P(                  ! V4      R!\$        P(                  ! V4      /,          p\+        \$        P,                  ! V4      4      hR;p;rR"pVV9   pV'       g   \$        P.                  ! RFV3RGVV34      R#\$        P(                  ! V4      R$R\         P"                  ! 4       9   g   \$        P&                  ! V4      '       d   \$        P(                  ! V4      MR/,          pR%R&V/,          p\+        \$        P,                  ! V4      4      hR;ppR'pVV9   pV'       g   \$        P.                  ! RFV3RGVV34      R#\$        P(                  ! V4      R$R\         P"                  ! 4       9   g   \$        P&                  ! V4      '       d   \$        P(                  ! V4      MR/,          pR%R&V/,          p\+        \$        P,                  ! V4      4      hR;ppV
P0                  pRpVV8H  q'       g   \$        P.                  ! RHV3RIVV34      RR(\         P"                  ! 4       9   g   \$        P&                  ! V
4      '       d   \$        P(                  ! V
4      MR(R\$        P(                  ! V4      R&\$        P(                  ! V4      /,          pR)R*V/,          p\+        \$        P,                  ! V4      4      hR;p;ppR"pV
P0                  pVV9  pV'       g   \$        P.                  ! RJV3RKVV34      R#\$        P(                  ! V4      R$R(\         P"                  ! 4       9   g   \$        P&                  ! V
4      '       d   \$        P(                  ! V
4      MR(R&\$        P(                  ! V4      /,          pR)R*V/,          p\+        \$        P,                  ! V4      4      hR;p;ppV
P2                  p^pVV8H  q'       g   \$        P.                  ! RHV3RLVV34      RR(\         P"                  ! 4       9   g   \$        P&                  ! V
4      '       d   \$        P(                  ! V
4      MR(R\$        P(                  ! V4      R&\$        P(                  ! V4      /,          pR)R*V/,          p\+        \$        P,                  ! V4      4      hR;p;ppV
P4                  p^pVV8H  q'       g   \$        P.                  ! RHV3RMVV34      RR(\         P"                  ! 4       9   g   \$        P&                  ! V
4      '       d   \$        P(                  ! V
4      MR(R\$        P(                  ! V4      R&\$        P(                  ! V4      /,          pR)R*V/,          p\+        \$        P,                  ! V4      4      hR;p;ppVR,          P                  4       P7                  4        Uu. uF1  pVP9                  4       '       g   K  \        P:                  ! V4      NK3  	  ppV^ ,          R+,          pRpVVJ pV'       gz   \$        P.                  ! RNV3ROVV34      R#\$        P(                  ! V4      R \$        P(                  ! V4      /,          pR,R!V/,          p\+        \$        P,                  ! V4      4      hR;p;ppV^ ,          R,          pR-pVV8H  pV'       gz   \$        P.                  ! RHV3RPVV34      R#\$        P(                  ! V4      R \$        P(                  ! V4      /,          pR,R!V/,          p\+        \$        P,                  ! V4      4      hR;p;pp\        P:                  ! VR.,          P                  4       4      pVR/,          p^pVV8H  pV'       gz   \$        P.                  ! RHV3RPVV34      R#\$        P(                  ! V4      R \$        P(                  ! V4      /,          pR,R!V/,          p\+        \$        P,                  ! V4      4      hR;p;ppVR0,          p^pVV8H  pV'       gz   \$        P.                  ! RHV3RPVV34      R#\$        P(                  ! V4      R \$        P(                  ! V4      /,          pR,R!V/,          p\+        \$        P,                  ! V4      4      hR;p;ppVR1,          P                  4       P7                  4        Uu. uF1  pVP9                  4       '       g   K  \        P:                  ! V4      NK3  	  pp\=        V4      p^pVV8H  pV'       Eg   \$        P.                  ! RHV3RQVV34      RR2\         P"                  ! 4       9   g!   \$        P&                  ! \<        4      '       d   \$        P(                  ! \<        4      MR2R#R/\         P"                  ! 4       9   g   \$        P&                  ! V4      '       d   \$        P(                  ! V4      MR/R$\$        P(                  ! V4      R!\$        P(                  ! V4      /,          pR3R4V/,          p\+        \$        P,                  ! V4      4      hR;p;ppV^ ,          R5,          pVP                  pR6pV! V4      pV'       g   R7R#\$        P(                  ! V4      R$\$        P(                  ! V4      R&\$        P(                  ! V4      R*\$        P(                  ! V4      /,          p\+        \$        P,                  ! V4      4      hR;p;p;pp\>        P@                  ! VR8,          R9,          P                  4       4      pVR:,          pR;pVV8H  pV'       gz   \$        P.                  ! RHV3RPVV34      R#\$        P(                  ! V4      R \$        P(                  ! V4      /,          pR,R!V/,          p\+        \$        P,                  ! V4      4      hR;p;ppVR<,          pR=pVV8H  pV'       gz   \$        P.                  ! RHV3RPVV34      R#\$        P(                  ! V4      R \$        P(                  ! V4      /,          pR,R!V/,          p\+        \$        P,                  ! V4      4      hR;p;pp\C        VR>,          4      pVPD                  q! 4       q'       g   R?RR>\         P"                  ! 4       9   g   \$        P&                  ! V4      '       d   \$        P(                  ! V4      MR>R\$        P(                  ! V4      R \$        P(                  ! V4      /,          p\+        \$        P,                  ! V4      4      hR;r\F        PH                  ! \        V4      R@4      ;_uu_ 4       pVPJ                  q! 4       p^ pVV8  q'       g   \$        P.                  ! RRV3RSVV34      RRA\         P"                  ! 4       9   g   \$        P&                  ! V4      '       d   \$        P(                  ! V4      MRAR\$        P(                  ! V4      R \$        P(                  ! V4      R*\$        P(                  ! V4      /,          pRBRCV/,          p \+        \$        P,                  ! V 4      4      hR;p;p;ppRRR4       \M        RDV^\        4       RE7      p!V!^ ,          R5,          pVP                  pR6pV! V4      pV'       g   R7R#\$        P(                  ! V4      R$\$        P(                  ! V4      R&\$        P(                  ! V4      R*\$        P(                  ! V4      /,          p\+        \$        P,                  ! V4      4      hR;p;p;ppV!^ ,          R,          pRDpVV8H  pV'       gz   \$        P.                  ! RHV3RPVV34      R#\$        P(                  ! V4      R \$        P(                  ! V4      /,          pR,R!V/,          p\+        \$        P,                  ! V4      4      hR;p;ppR#  EL7u upi u upi   + '       g   i     EL; i5i)Tcapturesfixture-captureT)parentsMENTORCORE_CAPTURES_ROOTbuildstyleindexz
profile.mdz7# Tone
Machine tone.

# Style Summary
Machine summary.
utf-8encodingzexemplars.jsonltextzMachine exemplar.
machinez1An unrelated passage about structure and routine.)embedder	overwritezfixture.wavg       @)secondsc                    V ^8  d   QhRRRR/# )r   	voice_dirr   r   r   )r   s   "r   r   Itest_capture_import_merges_profile_quotes_and_voice.<locals>.__annotate__K   s      d t r   c                   < S# )Nr   )	referencerE   fixture_wavs   &&r   fake_downloaderLtest_capture_import_merges_profile_quotes_and_voice.<locals>.fake_downloaderK   s	    r   z0I hold to this worldview myself, stated plainly.)providerrA   reference_downloaderNz# Capture PhilosophyzLassert %(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.startswith
}(%(py4)s)
}py0profilepy2py4py6zFixture worldview.py1py3zassert %(py5)spy5z# Machine Extractionresultzassert %(py7)spy7	syntheticzassert %(py6)sAnswer in the capture voice.zquote_stats.jsonverified_quotesskipped_model_memory_quoteszverified_quotes.jsonllenzassert %(py8)spy8chunk_idzquote:zLassert %(py7)s
{%(py7)s = %(py3)s
{%(py3)s = %(py1)s.startswith
}(%(py5)s)
}voice
voice.yamlenginef5policycloned-personalreference_audiozAassert %(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.exists
}()
}rbwfzassert %(py9)spy9Virtue is the only good.)top_krA   )in)z%(py1)s in %(py3)s)==)z5%(py2)s
{%(py2)s = %(py0)s.style_summary
} == %(py5)s)not in)z9%(py1)s not in %(py5)s
{%(py5)s = %(py3)s.style_summary
})z7%(py2)s
{%(py2)s = %(py0)s.verified_quotes
} == %(py5)s)zC%(py2)s
{%(py2)s = %(py0)s.skipped_model_memory_quotes
} == %(py5)s)is)z%(py1)s is %(py4)s)z%(py1)s == %(py4)s)z0%(py3)s
{%(py3)s = %(py0)s(%(py1)s)
} == %(py6)s)>)zH%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.getnframes
}()
} > %(py7)s)'mkdirsetenvstr_write_capture_treer   
write_textjsondumpsr   r	   
_write_wavr   singler   	read_text
startswith@py_builtinslocals
@pytest_ar_should_repr_global_name	_safereprAssertionError_format_explanation_call_reprcomparestyle_summaryrZ   r[   
splitlinesstriploadsr\   yaml	safe_loadr   existswaveopen
getnframesr   )#tmp_pathmonkeypatchcapture_rootcapture_dircapture	build_dir	style_dir	index_dirrJ   rL   rV   rO   @py_assert1@py_assert3@py_assert5@py_format7@py_assert0@py_assert2@py_format4@py_format6@py_assert4@py_format8line	exemplars@py_format5quote_statsrZ   @py_format9@py_assert6voice_configre   rg   @py_format10	retrievedrI   s#   &&                                @r   3test_capture_import_merges_profile_quotes_and_voicer   )   s
    j(L!22Kd#13|3DE$,-G7"IG#IG#IOODO!OODO!))F *  ""..

F/01D8 / 
 	HIJ	 ]*K{C(  ""#UVH!, F <'22G2DG545455555555575555755555545555555555*7*****7*********7****7********!,!W,,,,,!W,,,!,,,,,,W,,,,W,,,,,,,,U#UU#UUUUUU#UUUUUUU6UUUU6UUUUUU#UUUUUUUUU;v';';;';;;;;;';;;;;;;;;;v;;;;v;;;';;;;;;;;;!!&Q&!Q&&&&&!Q&&&&&&6&&&&6&&&!&&&Q&&&&&&&&--22-22222-222222622226222-22222222222 !22==?JJLLD::< 	

4L  
 Q<$,,$,,,,,$,,,$,,,,,,,,,,,Q<A#AA#AAAAAA#AAAAAAA#AAAAAAAAA**i*<<GGIJK().Q.)Q.....)Q...)...Q........45::5:::::5:::5::::::::::: !88CCEPPRRD::< 	

4R  
 $1$1$$$$$1$$$$$$3$$$$3$$$$$$$$$$$$$$$$$1$$$$$$$$1j)>)44>X>4X>>>>>>)>>>4>>>X>>>>>>>>>>>>>9w#6#E"P"P"RSL!)T)!T)))))!T)))!)))T))))))))!6%66!%666666!%6666!666%666666666<(9:;O!!#!#########?####?###!##########	3'	.	."}}"}"""""""""""""r""""r"""}"""""""""""""" 
/ "	I Q<
#8#..8x8.x888888#888.888x88888888888Q<=#==#======#=======#=========i" 
/	.	.s  EAF+AF
A0AF+C;AF+AAF+A'AF+B8AF+>BAF+A'AF+<CAF+C&AF+4B"AF+AF3AFB=AF+CAF+BAF+$B&AF+
AF'AFA2AF+4AAF+B(AF+/CAF+BAF+C!AF+:BAF+A2AFBAF@C3AF+D	BAF+F
AF+FAF(	F"	AF+c                    V ^8  d   QhRRRR/# )r   r   r   r   Noner   )r   s   "r   r   r      s     q qT qd qr   c                   V R ,          P                  RRR7       V R,          P                  RRR7       V R,          P                  RRR7       V R,          P                  \        P                  ! R	^R
RRRRRRRRRRRRRRRRRRRRR/R R!7      RR7       V R",          P                  R#P                  \        P
                  ! R$R%R&R'R(R)R*RR+R,.R-R.R/R0R1R/4      \        P
                  ! R$R2R&R3R(R)R*RR+R4.R-R5R/RR1R/4      .4      R#,           RR7       V R6,          P                  \        P
                  ! R$R7R8R9R:R;R+R.R<R=R>R?/4      R#,           RR7       V R@,          P                  \        P                  ! RARRBRCRDRERFRGRHRIRJ.RKRL/.RMRNRORPRQRRR//R R!7      RR7       V RS,          P                  \        P
                  ! R$RTR8RURVRWRERX/4      R#,           RR7       R# )Yzphilosophy.mdz]# Identity

Fixture worldview.

## Core worldview

Fixture worldview. Keep the answer short.
r;   r<   zstyle.mdz!# Register

Measured and direct.
z
sources.mdz# Sources

1. Fixture source.
zcapture.yamlschema_versionslugr5   display_namezFixture Captureborni  diedNvoice_policyrd   captured_byzgpt-5-codexcaptured_atz
2026-07-17capture_modehybridcapture_focusfixture
confidencemediumnotesz!Fixture capture for import tests.F)	sort_keyszquotes.jsonlr?   idq001r>   ri   sourcezFixture sourcedatetopicsvirtue
provenanceverified
verify_urlzhttps://example.com/verifiedcontextq002zThe model remembers this line.memoryzmodel-memoryzqa-exemplars.jsonlx001questionzHow should I respond?answerrY   rX   Tregisterzcoaching-debriefr`   rc   
referencesurlzhttps://example.com/referencekind	interviewtitlezFixture Referenceclean_segmentsz00:00-00:01quality_noteszFixture segment.pacing_noteszMeasured and direct.stylized_fallbackdescriptionzFixture fallback.kokoro_voicepack_hintzeval-questions.jsonle001zWhat matters most?expectzA fixture answer.zcore-belief)rt   r   	safe_dumpjoinru   rv   )r   s   &r   rs   rs      s   ?"..:  /  :)). *  <++,OZa+b>!-- !) 1 1}|h< 	
" % . ( >!--		

f : "2 8*$j$&D!4	 

f @ "2 8*$n$d!4		
8 9	: = . @ ''33

f389+T.		
 
	  4  <+++>!4(=/');  6#!#6+T&" %	
( + , . ))55

f0-		
 	  6 r   c               $    V ^8  d   QhRRRRRR/# )r   pathr   rC   floatr   r   r   )r   s   "r   r   r      s!      T u  r   c                  R p\        W!,          4      p\        P                  ! RV R2.^ .V,          O5!  p\        P                  ! \        V 4      R4      ;_uu_ 4       pVP                  ^4       VP                  ^4       VP                  V4       VP                  V4       RRR4       R#   + '       g   i     R# ; i)i>  <r*   wbN)
intstructpackr   r   rr   setnchannelssetsampwidthsetframeratewriteframes)r   rC   sample_raten_framespcmrg   s   &$    r   rw   rw      s    K;()H
++(1o
9!x
9C	3t9d	#	#r


$
s	 
$	#	#	#s    AB//C 	) __doc__
__future__r   builtinsr{   _pytest.assertion.rewrite	assertionrewriter}   r   ru   r   r   pathlibr   numpyr   r   compiler.stages.capture_importr   compiler.stages.indexr   runtime.conversation.retrievalr   runtime.providers.faker   shared.capturer   r	   r   rs   rw   r   r   r   <module>r      sP    2 "          9 - 3 / ' *Z>zqhr   