I   w i l l   s t a r t   b y   e x p l o r i n g   t h e   ` f r o n t e n d `   d i r e c t o r y   t o   u n d e r s t a n d   t h e   p r o j e c t   s t r u c t u r e   a n d   h o w   t o   r u n   t h e   a p p l i c a t i o n ,   t h e n   I   w i l l   c h e c k   i f   t h e   f r o n t e n d   s e r v e r   i s   a l r e a d y   r u n n i n g   o n   p o r t   3 0 0 0 . 
 
 I ' l l   r e a d   ` f r o n t e n d / p a c k a g e . j s o n `   t o   f i n d   t h e   s t a r t   c o m m a n d   a n d   t h e n   c h e c k   i f   a n y t h i n g   i s   a l r e a d y   r u n n i n g   o n   p o r t   3 0 0 0 . 
 
 I ' l l   e x a m i n e   ` f r o n t e n d / v i t e . c o n f i g . m t s `   t o   c o n f i r m   t h e   p o r t   a n d   c h e c k   i f   t h e   f r o n t e n d   d e p e n d s   o n   a   b a c k e n d . 
 
 T h e   ` v i t e . c o n f i g . m t s `   d e f a u l t   p o r t   i s   3 0 0 1 ,   b u t   t h e   u s e r   w a n t s   t o   t e s t   o n   p o r t   3 0 0 0 ,   s o   I ' l l   s e t   ` P O R T = 3 0 0 0 ` .   I   a l s o   n e e d   t o   c h e c k   i f   t h e   F a s t A P I   b a c k e n d   i s   r u n n i n g   b y   e x a m i n i n g   ` b a c k e n d / r e q u i r e m e n t s . t x t `   a n d   ` b a c k e n d / s e r v e r . p y ` . 
 
 I ' l l   c h e c k   ` b a c k e n d / c o n f i g . p y `   f o r   t h e   b a c k e n d ' s   p o r t . 
 
 B a c k e n d   d e f a u l t s   t o   p o r t   5 0 0 5   a n d   f r o n t e n d   t o   3 0 0 0 ,   s o   I ' l l   p o i n t   t h e   f r o n t e n d   p r o x y   t o   5 0 0 5 .   I ' l l   s t a r t   t h e   b a c k e n d   f i r s t ,   t h e n   t h e   f r o n t e n d ,   b o t h   i n   t h e   b a c k g r o u n d ,   a f t e r   c h e c k i n g   f o r   d e p e n d e n c i e s .   I ' l l   u s e   ` P O R T = 3 0 0 0 `   f o r   t h e   f r o n t e n d   a n d   ` D E V _ P R O X Y _ S E R V E R = h t t p : / / l o c a l h o s t : 5 0 0 5 `   t o   l i n k   t h e m .   I ' l l   v e r i f y   t h e   b a c k e n d   s t a r t s   c o r r e c t l y   b e f o r e   p r o c e e d i n g . 
 
 I ' l l   m o n i t o r   t h e   b a c k e n d   l o g s   b e f o r e   l a u n c h i n g   t h e   f r o n t e n d   t o   e n s u r e   a   s u c c e s s f u l   s t a r t u p . 
 
 I ' l l   r e - c h e c k   t h e   o u t p u t   i n   1 0 0 0 m s ,   a s   t h e   c o m m a n d   m i g h t   h a v e   f a i l e d   o r   j u s t   n e e d s   m o r e   t i m e . 
 
 I ' l l   c h e c k   ` l i s t _ b a c k g r o u n d _ p r o c e s s e s `   s i n c e   t h e r e ' s   n o   s t d o u t . 
 
 I t ' s   r u n n i n g ,   s o   I ' l l   c h e c k   i f   p o r t   5 0 0 5   i s   l i s t e n i n g . 
 
 B a c k e n d ' s   u p   o n   5 0 0 5 ,   P I D   2 3 8 7 6 .   N o w ,   I ' l l   l a u n c h   t h e   f r o n t e n d   o n   p o r t   3 0 0 0 ,   p r o x i e d   t o   5 0 0 5 ,   u s i n g   ` n p m   r u n   d e v `   a f t e r   v e r i f y i n g   ` n o d e _ m o d u l e s `   e x i s t s .   I ' l l   s e t   ` P O R T = 3 0 0 0 `   a n d   ` V I T E _ A P I _ B A S E _ U R L = h t t p : / / l o c a l h o s t : 5 0 0 5 ` . 
 
 I ' l l   l a u n c h   t h e   f r o n t e n d   i n   t h e   b a c k g r o u n d   o n   p o r t   3 0 0 0 ,   p r o x i e d   t o   5 0 0 5 ,   u s i n g   ` n p m   r u n   d e v `   i n   P o w e r S h e l l   a f t e r   s e t t i n g   t h e   r e q u i r e d   e n v i r o n m e n t   v a r i a b l e s . 
 
 W a i t i n g   f o r   f r o n t e n d . . .   c h e c k i n g   p o r t   3 0 0 0 . 
 
 F r o n t e n d ' s   n o t   u p   y e t .   C h e c k i n g   t h e   l o g s . 
 
 F r o n t e n d ' s   u p !   T i m e   t o   t e s t .   I ' l l   r e - c h e c k   t h e   u s e r ' s   s c e n a r i o :   l o a d   h o m e ,   m e m o   l i s t ,   s i d e b a r ,   ` / e x p l o r e ` ,   ` M e m o D e t a i l ` ,   3 - d o t   m e n u ,   a n d   ` / d e a d l i n e s ` .   F i r s t ,   I ' l l   p e e k   a t   ` f r o n t e n d / t e s t s `   f o r   s e l e c t o r   i n s p i r a t i o n . 
 
 I ' l l   c h e c k   ` f r o n t e n d / t e s t s / e 2 e ` . 
 
 ` q a _ e v a l . s p e c . t s `   l o o k s   p r o m i s i n g ;   I ' l l   c h e c k   i t   o u t . 
 
 ` q a _ e v a l . s p e c . t s `   i s   p e r f e c t ;   I ' l l   r u n   i t   w i t h   ` n p x   p l a y w r i g h t   t e s t ` ,   o v e r r i d i n g   ` B A S E _ U R L ` .   F i r s t ,   I ' l l   c h e c k   ` s e e d - t e s t - d a t a . j s `   t o   s e e   i f   I   n e e d   t o   s e e d   a n y   d a t a   t o   p r e v e n t   t e s t   s k i p s   o r   f a i l u r e s . 
 
 I ' l l   s e e d   t h e   t e s t   d a t a   b y   r u n n i n g   ` B A C K E N D _ U R L = h t t p : / / l o c a l h o s t : 5 0 0 5   n o d e   f r o n t e n d / t e s t s / s e e d - t e s t - d a t a . j s ` ,   o v e r r i d i n g   t h e   d e f a u l t   b a c k e n d   U R L .   I ' m   a s s u m i n g   ` n o d e `   i s   a v a i l a b l e . 
 
 ` / a u t h / s i g n u p `   r e t u r n e d   a   4 0 4 ,   b u t   ` b a c k e n d / s e r v e r . p y `   p r e f i x e s   ` a u t h _ r o u t e r `   w i t h   ` / a p i / v 1 ` .   I ' l l   c h e c k   ` b a c k e n d / a p i / a u t h _ r o u t e s . p y `   t o   c o n f i r m   i f   t h e   c o r r e c t   p a t h   i s   ` / a p i / v 1 / a u t h / s i g n u p ` . 
 
 T h e   b a c k e n d   r o u t e s   a r e   ` / a p i / v 1 / r e g i s t e r `   a n d   ` / a p i / v 1 / l o g i n ` ,   b u t   ` s e e d - t e s t - d a t a . j s `   u s e s   ` / a u t h / s i g n u p `   a n d   ` / a u t h / s i g n i n ` .   I   n e e d   t o   f i x   t h e   s c r i p t .   I ' l l   a l s o   c h e c k   ` b a c k e n d / a p i / m e m o s / m e m o _ r o u t e s . p y `   t o   c o n f i r m   t h e   ` m e m o s _ r o u t e r `   p a t h s ,   a s   t h e y ' r e   p r e f i x e d   w i t h   ` / a p i / v 1 `   i n   ` s e r v e r . p y ` . 
 
 T h e r e ' s   a   ` b a c k e n d / a p i / m e m o s / a u t h _ r o u t e s . p y `   a s   w e l l .   I ' l l   c h e c k   ` b a c k e n d / a p i / m e m o s / _ _ i n i t _ _ . p y `   t o   s e e   w h i c h   ` r o u t e r `   i s   b e i n g   e x p o r t e d . 
 
 ` m e m o s _ r o u t e r `   i n   ` s e r v e r . p y `   i s   a   c o m p o s i t e   o f   s e v e r a l   r o u t e r s   a n d   i s   p r e f i x e d   w i t h   ` / a p i / v 1 ` .   I ' l l   n o w   e x a m i n e   t h e   c o n t e n t   o f   ` b a c k e n d / a p i / m e m o s / a u t h _ r o u t e s . p y ` . 
 
 ` m e m o s _ r o u t e r `   p r e f i x e s   e v e r y t h i n g   w i t h   ` / a p i / v 1 ` ,   s o   t h e   a c t u a l   p a t h s   a r e   ` / a p i / v 1 / a u t h / s i g n u p `   a n d   ` / a p i / v 1 / a u t h / s i g n i n ` .   M y   ` s e e d - t e s t - d a t a . j s `   f a i l e d   b e c a u s e   i t   t r i e d   ` / a u t h / s i g n u p `   w i t h o u t   t h e   p r e f i x .   I ' l l   f i x   t h e   s c r i p t   t o   u s e   t h e   c o r r e c t   p a t h s ,   e s p e c i a l l y   s i n c e   ` s e r v e r . p y `   a l s o   d e f i n e s   ` / a p i / v 1 / r e g i s t e r `   a n d   ` / a p i / v 1 / l o g i n `   f r o m   a   s e p a r a t e   ` a u t h _ r o u t e r ` .   I ' l l   u p d a t e   t h e   s c r i p t   t o   u s e   ` / a p i / v 1 / a u t h / s i g n u p `   a n d   ` / a p i / v 1 / a u t h / s i g n i n `   a n d   t h e n   r e r u n   i t   w i t h   ` B A C K E N D _ U R L = h t t p : / / l o c a l h o s t : 5 0 0 5 ` . 
 
 R e r u n n i n g   t h e   s e e d   s c r i p t . 
 
 T h e   t e s t   u s e r   e x i s t s ,   b u t   t h e   c r e d e n t i a l s   f a i l e d .   I ' l l   c h a n g e   t h e   u s e r n a m e   t o   ` q a _ t e s t u s e r _ 2 0 2 6 `   i n   t h e   s c r i p t   t o   e n s u r e   a   c l e a n   t e s t . 
 
 S e e d ,   r o u n d   t w o . 
 
 " C r e a t e d   t e s t   u s e r "   f o l l o w e d   b y   " F a i l e d   t o   g e t   a u t h   t o k e n " ?   S o m e t h i n g ' s   w r o n g   w i t h   t h e   s i g n u p   r e s p o n s e .   I ' l l   c h e c k   ` A u t h S i g n U p R e s p o n s e `   i n   ` b a c k e n d / c o m m o n / m e m o s _ c o r e / s c h e m a s . p y `   t o   s e e   w h a t ' s   a c t u a l l y   b e i n g   r e t u r n e d . 
 
 ` A u t h S i g n U p R e s p o n s e `   o n l y   r e t u r n s   ` u s e r _ i d ` ,   n o   t o k e n .   M y   ` s e e d - t e s t - d a t a . j s `   s c r i p t   e x p e c t s   a   t o k e n   f r o m   s i g n u p ,   s o   i t ' s   g e t t i n g   ` u n d e f i n e d ` .   I   n e e d   t o   u p d a t e   t h e   s c r i p t   t o   s i g n   i n   i m m e d i a t e l y   a f t e r   a   s u c c e s s f u l   s i g n u p . 
 
 R e r u n n i n g   w i t h   ` q a _ u s e r _ 2 0 2 6 _ f i n a l `   t o   b e   c e r t a i n . 
 
 S e e d i n g   d a t a . 
 
 " S i g n e d   i n "   b u t   " F a i l e d   t o   g e t   a u t h   t o k e n " ?   M y   s c r i p t ' s   l o o k i n g   f o r   ` a c c e s s _ t o k e n `   o r   ` t o k e n ` ,   b u t   t h e   b a c k e n d ' s   ` A u t h S i g n I n R e s p o n s e `   r e t u r n s   ` a c c e s s T o k e n `   ( c a m e l C a s e )   b e c a u s e   o f   ` b y _ a l i a s = T r u e ` .   I ' l l   u p d a t e   ` s e e d - t e s t - d a t a . j s `   t o   c h e c k   f o r   ` a c c e s s T o k e n `   t o o . 
 
 S e e d   a g a i n .   N o   u s e r   c h a n g e   n e e d e d ;   i t ' l l   j u s t   s i g n   i n . 
 
 S e e d i n g   c o m p l e t e !   I ' l l   r u n   t h e   P l a y w r i g h t   t e s t s   o n   ` h t t p : / / l o c a l h o s t : 3 0 0 0 ` ,   b u t   I   n e e d   t o   u p d a t e   ` q a _ e v a l . s p e c . t s `   w i t h   t h e   n e w   c r e d e n t i a l s :   ` q a _ t e s t _ f i n a l @ e x a m p l e . c o m `   a n d   ` t e s t p a s s w o r d 1 2 3 ` .   I ' l l   a l s o   d o u b l e - c h e c k   ` f r o n t e n d / s r c / p a g e s / A u t h . t s x `   t o   e n s u r e   t h e   f r o n t e n d   e x p e c t s   t h e   e m a i l ,   n o t   t h e   u s e r n a m e . 
 
 I ' l l   c h e c k   ` f r o n t e n d / s r c / p a g e s / S i g n I n . t s x ` . 
 
 ` P a s s w o r d S i g n I n F o r m `   i s   u s e d .   C h e c k i n g   ` f r o n t e n d / s r c / c o m p o n e n t s / P a s s w o r d S i g n I n F o r m . t s x `   n e x t . 
 
 " A u t h   i s   n o w   h a n d l e d   b y   C l e r k , "   y e t   ` S i g n I n . t s x `   i m p o r t s   a   p l a c e h o l d e r   ` P a s s w o r d S i g n I n F o r m ` ,   a n d   t h e   b a c k e n d   h a s   i t s   o w n   a u t h .   I   n e e d   t o   c h e c k   ` f r o n t e n d / s r c / p a g e s / A u t h . t s x `   t o   s e e   w h a t ' s   a c t u a l l y   g o i n g   o n . 
 
 ` A u t h P a g e `   u s e s   ` / a p i / v 1 / a u t h / r e g i s t e r `   a n d   ` / a p i / v 1 / a u t h / l o g i n ` ,   w h i c h   a l i g n s   w i t h   t h e   b a c k e n d .   L o g i n   r e q u i r e s   ` u s e r n a m e `   a n d   ` p a s s w o r d ` ,   s o   I ' l l   u p d a t e   ` q a _ e v a l . s p e c . t s `   t o   u s e   ` q a _ u s e r _ 2 0 2 6 _ f i n a l ` .   S i n c e   t h e   u s e r n a m e   i n p u t   i n   ` A u t h P a g e . t s x `   l a c k s   a   ` t y p e `   o r   ` n a m e ` ,   I ' l l   t a r g e t   i t   u s i n g   i t s   l a b e l   o r   p l a c e h o l d e r   f o r   b e t t e r   r e l i a b i l i t y . 
 
 T i m e   t o   t e s t .   I ' l l   r u n   ` B A S E _ U R L = h t t p : / / l o c a l h o s t : 3 0 0 0   n p x   p l a y w r i g h t   t e s t   t e s t s / e 2 e / q a _ e v a l . s p e c . t s ` .   I   n o t i c e d   ` @ p l a y w r i g h t / t e s t `   i n   ` d e v D e p e n d e n c i e s ` ,   s o   I   s h o u l d   b e   g o o d ,   b u t   I ' l l   k e e p   ` n p x   p l a y w r i g h t   i n s t a l l   c h r o m i u m `   i n   m i n d   j u s t   i n   c a s e . 
 
 T e s t s   p a s s e d   f o r   h o m e   a n d   m e m o   l i s t ,   b u t   f a i l e d   o r   s k i p p e d   f o r   t h e   s i d e b a r ,   ` / e x p l o r e ` ,   c l i c k i n g   m e m o s ,   a n d   t h e   3 - d o t   m e n u .   S p e c i f i c a l l y ,   T e s t   3   f a i l e d   b e c a u s e   " D e a d l i n e s "   w a s   m i s s i n g ,   a n d   T e s t   4   t i m e d   o u t   o n   ` / e x p l o r e `   d e s p i t e   p u b l i c   m e m o s   b e i n g   s e e d e d .   S i n c e   T e s t   2   p a s s e d ,   l o g i n   s e e m s   o k a y .   I ' l l   i n v e s t i g a t e   t h e   s i d e b a r   i n   ` f r o n t e n d / s r c / c o m p o n e n t s / N a v i g a t i o n . t s x `   a n d   t r y   t o   c a p t u r e   a   s c r e e n s h o t   o f   t h e   ` / e x p l o r e `   f a i l u r e . 
 
 C h e c k i n g   ` f r o n t e n d / s r c / c o m p o n e n t s / N a v i g a t i o n . t s x ` . 
 
 ` N a v i g a t i o n . t s x `   i s   m i s s i n g   ` D e a d l i n e s `   i n   ` m a i n N a v L i n k s ` ,   e v e n   t h o u g h   ` D e a d l i n e s . t s x `   e x i s t s   i n   ` p a g e s ` .   I ' l l   c h e c k   ` f r o n t e n d / s r c / r o u t e r / i n d e x . t s x `   t o   s e e   i f   ` R o u t e s . D E A D L I N E S `   i s   d e f i n e d   a n d   i f   i t   s h o u l d   b e   i n   t h e   s i d e b a r . 
 
 C h e c k i n g   ` f r o n t e n d / s r c / r o u t e r / r o u t e s . t s ` . 
 
 ` R O U T E S `   i s   m i s s i n g   ` D E A D L I N E S ` ,   b u t   ` D e a d l i n e s . t s x `   e x i s t s .   I ' l l   c h e c k   ` r o u t e r / i n d e x . t s x `   f o r   t h e   f u l l   p i c t u r e . 
 
 ` / d e a d l i n e s `   i s   i n   t h e   r o u t e r   b u t   m i s s i n g   f r o m   ` R O U T E S `   a n d   ` N a v i g a t i o n . t s x ` ,   c a u s i n g   t e s t   f a i l u r e s .   I ' l l   s u g g e s t   f i x e s   a s   r e q u e s t e d .   A l s o ,   ` / e x p l o r e `   f a i l e d   d e s p i t e   ` l o g i n ( p a g e ) ` ,   p o s s i b l y   d u e   t o   ` P r o t e c t e d R o u t e `   o r   l o a d i n g   i s s u e s .   I ' l l   e x a m i n e   ` f r o n t e n d / s r c / p a g e s / E x p l o r e . t s x `   t o   u n d e r s t a n d   w h a t ' s   h a p p e n i n g . 
 
 ` P a g e d M e m o L i s t `   i s   b e i n g   u s e d .   C h e c k i n g   ` f r o n t e n d / s r c / c o m p o n e n t s / P a g e d M e m o L i s t / i n d e x . t s x `   t o   s e e   w h a t   i t   d i s p l a y s   w h e n   i t ' s   e m p t y . 
 
 C h e c k i n g   ` f r o n t e n d / s r c / c o m p o n e n t s / P a g e d M e m o L i s t / P a g e d M e m o L i s t . t s x ` . 
 
 E m p t y   s t a t e s   s h o w   " N o   d a t a   f o u n d , "   w h i c h   ` q a _ e v a l . s p e c . t s `   s h o u l d   c a t c h .   T e s t   4 ' s   2 0 - s e c o n d   t i m e o u t   s u g g e s t s   t h e   b a c k e n d   m i g h t   b e   s t a l l i n g   o r   e r r o r i n g ,   p o s s i b l y   l e a v i n g   t h e   p a g e   i n   a   l o a d i n g   s k e l e t o n   s t a t e .   I ' l l   c h e c k   t h e   b a c k e n d   l o g s   t o   i n v e s t i g a t e . 
 
 T h e   b a c k e n d   f a i l e d   b e c a u s e   I   u s e d   ` & & `   i n   P o w e r S h e l l .   I ' m   s e e i n g   s o m e t h i n g   o n   5 0 0 5 ,   t h o u g h ,   p o s s i b l y   a   l e f t o v e r   p r o c e s s .   I ' l l   k i l l   i t   a n d   r e s t a r t   t h e   b a c k e n d   u s i n g   ` ; `   i n s t e a d . 
 
 B a c k e n d   r e s t a r t ,   f i x e d . 
 
 W a i t ,   s t a r t ,   l o g   c h e c k . 
 
 L o g s   s t i l l   e m p t y ?   U v i c o r n   m i g h t   b e   o n   s t d e r r .   C h e c k i n g   ` n e t s t a t ` . 
 
 2 3 8 7 6 ?   I   t h o u g h t   I   k i l l e d   i t .   I ' l l   c h e c k   ` t a s k l i s t `   t o   s e e   i f   i t ' s   s t i l l   t h e r e . 
 
 2 3 8 7 6   i s   d e a d .   R e - c h e c k i n g   ` n e t s t a t `   f o r   5 0 0 5 . 
 
 ` n e t s t a t `   a n d   ` t a s k l i s t `   a r e   c o n t r a d i c t i n g   e a c h   o t h e r   o n   P I D   2 3 8 7 6 .   I ' l l   t r y   ` p y t h o n   s e r v e r . p y `   i n s t e a d   o f   ` u v i c o r n ` ,   a n d   I ' l l   u s e   ` t a s k k i l l   / T `   t o   m a k e   s u r e   I ' v e   c l e a r e d   a n y t h i n g   o n   5 0 0 5 . 
 
 R e - c h e c k i n g   ` n e t s t a t ` . 
 
 5 0 0 5   i s   c l e a r !   L a u n c h i n g   t h e   b a c k e n d   w i t h   ` p y t h o n   s e r v e r . p y ` ,   s e t t i n g   ` P O R T = 5 0 0 5 `   j u s t   i n   c a s e . 
 
 W a i t i n g   o n   b a c k e n d . . .   c h e c k i n g   l o g s   a n d   p o r t   5 0 0 5 . 
 
 N o t   l i s t e n i n g .   C h e c k i n g   P I D   1 8 0 1 2   l o g s . 
 
 ` p y t h o n `   n o t   f o u n d ?   I   j u s t   k i l l e d   i t ,   s o   i t   s h o u l d   b e   t h e r e .   I ' l l   c h e c k   ` p y `   o r   ` p y t h o n 3 ` ,   a n d   r u n   ` p y t h o n   - - v e r s i o n `   t o   s e e   w h a t ' s   w h a t ,   s i n c e   m y   p r e v i o u s   ` & & `   e r r o r   d i d n ' t   c o m p l a i n   a b o u t   t h e   c o m m a n d   i t s e l f . 
 
 ` p y t h o n ` ' s   m i s s i n g .   ` p y ` ,   t h e n ? 
 
 ` p y `   i t   i s !   L a u n c h i n g   b a c k e n d   w i t h   ` p y   s e r v e r . p y ` . 
 
 W a i t ,   c h e c k   5 0 0 5 . 
 
 N o t   l i s t e n i n g .   C h e c k i n g   P I D   2 5 2 0 8   l o g s . 
 
 ` a i o s q l i t e `   i s   m i s s i n g !   I ' l l   i n s t a l l   i t   u s i n g   ` p y   - m   p i p   i n s t a l l   - r   r e q u i r e m e n t s . t x t `   i n   t h e   ` b a c k e n d `   d i r e c t o r y ,   j u s t   i n   c a s e   ` p i p `   i s n ' t   i n   t h e   p a t h . 
 
 D e p e n d e n c i e s   i n .   R e s t a r t i n g   b a c k e n d . 
 
 W a i t ,   c h e c k   5 0 0 5 . 
 
 E m p t y   a g a i n ?   C h e c k i n g   P I D   2 7 4 7 6   l o g s . 
 
 P y t h o n   3 . 1 4 . 2   a n d   P y d a n t i c   v 1   ( v i a   L a n g f u s e )   a r e   c l a s h i n g .   I ' l l   c h e c k   ` b a c k e n d / c o m m o n / l a n g f u s e _ c l i e n t . p y `   t o   s e e   i f   I   c a n   d i s a b l e   L a n g f u s e   a n d   g e t   t h e   b a c k e n d   r u n n i n g . 
 
 ` l a n g f u s e `   i m p o r t   i s   f a i l i n g ,   s o   I ' l l   m o d i f y   ` b a c k e n d / c o m m o n / l a n g f u s e _ c l i e n t . p y `   t o   m o c k   i t   i f   t h e   i m p o r t   f a i l s .   I t ' s   c l e a n e r   t h a n   a   b r o k e n   i m p o r t . 
 
 B a c k e n d   r e s t a r t . 
 
 W a i t ,   c h e c k   5 0 0 5 . 
 
 E m p t y   a g a i n ?   C h e c k i n g   P I D   3 3 7 0 8   l o g s . 
 
 E m p t y   l o g s ?   M a y b e   i t ' s   r u n n i n g   b u t   s i l e n t .   C h e c k i n g   ` t a s k l i s t `   f o r   P I D   3 3 7 0 8 . 
 
 P I D   3 3 7 0 8   i s   j u s t   t h e   s h e l l .   I ' l l   c h e c k   f o r   a n y   r u n n i n g   ` p y t h o n `   o r   ` p y `   p r o c e s s e s   u s i n g   ` t a s k l i s t ` . 
 
 P y t h o n   3 1 7 6 8   i s   u p .   C h e c k i n g   ` n e t s t a t `   f o r   i t s   p o r t s . 
 
 P o r t   5 0 0 0 ?   ` s e r v e r . p y `   s h o u l d   b e   o n   5 0 0 5 .   I   s e t   t h e   e n v   v a r ,   b u t   m a y b e   a   ` . e n v `   f i l e   i s   i n t e r f e r i n g .   I ' l l   c h e c k   ` b a c k e n d / . e n v ` . 
 
 C a n ' t   r e a d   ` . e n v ` ,   b u t   ` n e t s t a t `   s a y s   P I D   3 1 7 6 8   i s   o n   p o r t   5 0 0 0 .   I ' l l   r e - c h e c k   t h e   ` P O R T `   d e f a u l t   i n   ` b a c k e n d / c o n f i g . p y ` . 
 
 ` P O R T `   i s   5 0 0 5   i n   ` c o n f i g . p y ` ,   b u t   P I D   3 1 7 6 8   i s   o n   5 0 0 0 .   I ' l l   c h e c k   i f   a n y   p r o c e s s   i s   o n   5 0 0 5 ,   a s   ` s e e d - t e s t - d a t a . j s `   p r e v i o u s l y   w o r k e d   t h e r e .   S o m e t h i n g ' s   n o t   a d d i n g   u p   a f t e r   t h e   r e s t a r t . 
 
 N o t h i n g   o n   5 0 0 5 .   3 1 7 6 8 ' s   o n   5 0 0 0 .   I ' l l   k i l l   i t   a n d   t r y   ` p y   s e r v e r . p y `   a g a i n ,   t h e n   m o n i t o r   t h e   o u t p u t   t o   s e e   w h a t ' s   r e a l l y   h a p p e n i n g . 
 
 K i l l i n g   t h e   5 0 0 0   p r o c e s s .   S t a r t i n g   b a c k e n d   i n   ` b a c k e n d / `   w i t h   ` p y   s e r v e r . p y ` ,   a n d   s e a r c h i n g   f o r   a n y   ` P O R T `   o v e r r i d e s   i n   t h e   ` b a c k e n d `   d i r e c t o r y . 
 
 I ' l l   s e a r c h   f o r   ` P O R T   = ` . 
 
 ` c o n f i g . p y `   c h e c k ,   ` P O R T   = ` . 
 
 ` c o n f i g . p y `   s a y s   ` P O R T `   i s   5 0 0 5 .   I ' l l   l a u n c h   t h e   b a c k e n d   w i t h   ` $ e n v : P O R T = 5 0 0 5 ;   p y   s e r v e r . p y `   i n   t h e   b a c k g r o u n d ,   t h e n   c h e c k   t h e   l o g s   a f t e r   a   f e w   s e c o n d s   t o   c o n f i r m   t h e   p o r t . 
 
 W a i t   5 ,   r e a d   o u t p u t . 
 
 E m p t y   l o g s ?   U v i c o r n   m i g h t   b e   b u f f e r i n g   o r   u s i n g   s t d e r r .   I ' l l   r e d i r e c t   s t d e r r   t o   s t d o u t   a n d   t r y   a g a i n :   ` $ e n v : P O R T = 5 0 0 5 ;   p y   s e r v e r . p y   2 > & 1 ` . 
 
 W a i t ,   r e a d . 
 
 E m p t y   l o g s ?   I t ' s   l i k e   i t ' s   n o t   e v e n   s t a r t i n g .   I ' l l   c h e c k   f o r   ` p y t h o n `   p r o c e s s e s ;   P I D   3 1 1 6 4   i s   j u s t   t h e   s h e l l . 
 
 3 2 9 1 6   i s   u p .   C h e c k i n g   i t s   p o r t s . 
 
 N o t   l i s t e n i n g ?   F a s t A P I   m i g h t   b e   h u n g   i n   t h e   ` l i f e s p a n `   d u r i n g   R e d i s   o r   M e i l i s e a r c h   i n i t i a l i z a t i o n ,   e s p e c i a l l y   s i n c e   i t   u s e s   c l o u d   U R L s   t h a t   c o u l d   t i m e   o u t .   I ' l l   c h e c k   ` b a c k e n d / c o m m o n / m e i l i _ s e r v i c e . p y `   t o   s e e   i f   i t ' s   f a i l i n g   s i l e n t l y   o r   h a n g i n g . 
 
 ` m e i l i _ s e r v i c e . i n i t i a l i z e ( ) `   c a l l s   ` s e l f . _ c l i e n t . h e a l t h ` ,   w h i c h   h a n g s   i f   ` M E I L I _ U R L `   i s   s e t   b u t   t h e   s e r v i c e   i s   d o w n .   I ' l l   c h e c k   t h e   e n v i r o n m e n t   v a r i a b l e s   t o   s e e   i f   ` M E I L I _ U R L `   i s   c o n f i g u r e d . 
 
 E n v i r o n m e n t ' s   c l e a r   o f   ` M E I L I _ U R L `   a n d   ` R E D I S _ H O S T ` ,   s o   i t   m i g h t   b e   h a n g i n g   d u r i n g   i n i t i a l i z a t i o n   f r o m   ` . e n v ` .   I ' l l   a d d   l o g g i n g   t o   ` b a c k e n d / s e r v e r . p y ` ' s   ` l i f e s p a n `   t o   p i n p o i n t   w h e r e   i t ' s   s t a l l i n g ,   a n d   m a y b e   t r y   ` D I S A B L E _ A U T H = t r u e `   j u s t   i n   c a s e . 
 
 R e s t a r t i n g   b a c k e n d ,   c h e c k i n g   l o g s . 
 
 W a i t   5 ,   r e a d . 
 
 F i x i n g   ` l a n g f u s e _ c l i e n t . p y ` :   I   u s e d   ` l o g g e r `   b e f o r e   d e f i n i n g   i t ,   c a u s i n g   a   ` N a m e E r r o r ` .   I ' l l   m o v e   t h e   d e f i n i t i o n   u p . 
 
 I   a c c i d e n t a l l y   d e l e t e d   t h e   L a n g f u s e   c o n f i g   i m p o r t s .   P u t t i n g   t h e m   b a c k   n o w . 
 
 R e s t a r t i n g   t h e   b a c k e n d .   K i l l i n g   c u r r e n t   p y t h o n   p r o c e s s e s   f i r s t . 
 
 B a c k e n d ,   g o . 
 
 W a i t ,   r e a d . 
 
 E m p t y   l o g s   w i t h   ` 2 > & 1 ` ?   S o m e t h i n g ' s   n o t   r i g h t .   ` p y   s e r v e r . p y `   m i g h t   n o t   b e   l a u n c h i n g   u v i c o r n   c o r r e c t l y   i n   t h e   b a c k g r o u n d .   I ' l l   c h e c k   i f   5 0 0 5   i s   L I S T E N I N G . 
 
 N o t h i n g   o n   5 0 0 5 .   C h e c k i n g   ` t a s k l i s t `   f o r   ` p y t h o n ` . 
 
 P y t h o n   1 9 3 5 2   i s   u p .   P o r t s ? 
 
 I t ' s   l i s t e n i n g   o n   5 0 0 5 !   N o w ,   I ' l l   r e r u n   t h e   t e s t s :   ` B A S E _ U R L = h t t p : / / l o c a l h o s t : 3 0 0 0   n p x   p l a y w r i g h t   t e s t   t e s t s / e 2 e / q a _ e v a l . s p e c . t s ` ,   a f t e r   m a k i n g   s u r e   t h e   f r o n t e n d   i s   s t i l l   u p   o n   3 0 0 0 . 
 
 5 0 0 5   a n d   3 0 0 0   a r e   u p .   I ' l l   r e r u n   t h e   s e e d   d a t a   f o r   t h e   n e w   u s e r ,   j u s t   t o   b e   s a f e . 
 
 T e s t s ,   g o . 
 
 T e s t   3   f a i l e d   b e c a u s e   ` D e a d l i n e s `   i s   m i s s i n g   f r o m   ` N a v i g a t i o n . t s x ` .   T e s t   7   a l s o   f a i l e d ,   l i k e l y   b e c a u s e   ` / d e a d l i n e s `   d i d n ' t   s h o w   t h e   e x p e c t e d   s e c t i o n s ,   d e s p i t e   b e i n g   i n   t h e   r o u t e r .   T e s t   4   o n   ` / e x p l o r e `   t i m e d   o u t ,   e v e n   t h o u g h   T e s t   2 ' s   l o g i n   w o r k e d ,   s u g g e s t i n g   ` / e x p l o r e `   m i g h t   b e   b r o k e n   o r   ` u s e C u r r e n t U s e r ( ) `   i s   r e t u r n i n g   n u l l .   I ' l l   r e - e x a m i n e   ` E x p l o r e . t s x `   a n d   c h e c k   ` f r o n t e n d / s r c / h o o k s / u s e C u r r e n t U s e r . t s ` . 
 
 C h e c k i n g   ` f r o n t e n d / s r c / h o o k s / u s e C u r r e n t U s e r . t s ` . 
 
 C h e c k i n g   ` u s e U s e r Q u e r i e s . t s ` . 
 
 ` u s e C u r r e n t U s e r Q u e r y `   r e l i e s   o n   ` g e t A c c e s s T o k e n ( ) `   a n d   ` a u t h S e r v i c e C l i e n t . g e t C u r r e n t U s e r ( { } ) ` .   ` A u t h P a g e . t s x `   s e t s   t h i s   t o k e n   o n   l o g i n .   I ' l l   c h e c k   ` f r o n t e n d / s r c / a u t h - s t a t e / i n d e x . t s `   t o   s e e   h o w   t h a t   t o k e n   i s   m a n a g e d . 
 
 ` a u t h - s t a t e `   m i s s i n g ?   M a y b e   i t ' s   ` f r o n t e n d / s r c / a u t h - s t a t e . t s ` . 
 
 ` f r o n t e n d / s r c / a u t h - s t a t e . t s ` ,   f o u n d   i t . 
 
 ` s e s s i o n S t o r a g e `   s h o u l d   p e r s i s t   i n   P l a y w r i g h t ' s   c o n t e x t ,   a n d   s i n c e   e a c h   t e s t   i n   ` q a _ e v a l . s p e c . t s `   c a l l s   ` l o g i n ( p a g e ) ` ,   t h e y   s h o u l d   a l l   b e   a u t h e n t i c a t e d .   Y e t   T e s t   4   f a i l e d   o n   ` / e x p l o r e ` .   I ' l l   c h e c k   ` f r o n t e n d / s r c / c o m p o n e n t s / P r o t e c t e d R o u t e . t s x `   t o   s e e   i f   i t ' s   e r r o n e o u s l y   r e d i r e c t i n g   e v e n   a f t e r   l o g i n . 
 
 ` u s e A u t h ( ) `   i s   u s e d .   C h e c k i n g   ` f r o n t e n d / s r c / c o n t e x t s / A u t h C o n t e x t . t s x `   n e x t . 
 
 C h e c k i n g   ` f r o n t e n d / s r c / c o n t e x t s / A u t h C o n t e x t . t s x ` . 
 
 ` i n i t i a l i z e `   i n   ` A u t h C o n t e x t `   c a l l s   ` / a p i / v 1 / a u t h / m e ` .   M y   b a c k e n d ' s   ` g e t _ m e `   r e l i e s   o n   ` r e q u e s t . s t a t e . u s e r _ i d ` ,   w h i c h   ` m i d d l e w a r e _ m a n a g e r `   s h o u l d   s e t .   I ' l l   c h e c k   ` b a c k e n d / c o m m o n / m i d d l e w a r e . p y `   t o   c o n f i r m . 
 
 ` C u C u A u t h M i d d l e w a r e `   s e t s   ` s c o p e [ " s t a t e " ] [ " u s e r _ i d " ] ` ,   a n d   ` g e t _ m e `   i n   ` a u t h _ r o u t e s . p y `   t r i e s   t o   a c c e s s   i t   v i a   ` r e q u e s t . s t a t e . u s e r _ i d ` .   S i n c e   i t ' s   a   r a w   A S G I   m i d d l e w a r e ,   I ' l l   c o n f i r m   ` j w t _ a u t h . p y ` ' s   ` s u b `   v a l u e   t o   e n s u r e   e v e r y t h i n g   a l i g n s . 
 
 ` C u C u A u t h M i d d l e w a r e `   s e t s   ` s c o p e [ " s t a t e " ] [ " u s e r _ i d " ] ` ,   a n d   ` g e t a t t r ( r e q u e s t . s t a t e ,   " u s e r _ i d " ,   N o n e ) `   i n   ` a u t h _ r o u t e s . p y `   s h o u l d   c a t c h   i t   i f   S t a r l e t t e ' s   ` S t a t e `   o b j e c t   w o r k s   a s   e x p e c t e d .   ` / a p p / e x p l o r e `   m i g h t   b e   f a i l i n g   b e c a u s e   ` m e m o S e r v i c e C l i e n t . l i s t M e m o s ( { } ) `   i n   ` P a g e d M e m o L i s t `   i s   b o r k e d .   I ' l l   i n v e s t i g a t e   ` f r o n t e n d / s r c / h o o k s / u s e M e m o Q u e r i e s . t s ` . 
 
 ` m e m o S e r v i c e C l i e n t `   p r o b a b l y   u s e s   C o n n e c t / g R P C - w e b ,   p r o x i e d   t h r o u g h   V i t e   w i t h   a   r e w r i t e   t o   ` / a p i / v 1 / m e m o s ` .   S i n c e   C o n n e c t   u s e s   P O S T ,   I ' l l   c h e c k   ` b a c k e n d / a p i / m e m o s / m e m o _ r o u t e s . p y `   f o r   b o t h   ` G E T `   a n d   ` P O S T `   h a n d l e r s   o n   t h a t   e n d p o i n t . 
 
 ` c r e a t e _ m e m o _ o r _ l i s t _ m e m o s `   c o v e r s   P O S T s .   L e t ' s   s e e   h o w   i t   f i n i s h e s . 
 
 ` l i s t _ d e a d l i n e s `   i s   ` G E T   / a p i / v 1 / m e m o s / d e a d l i n e s ` ,   a n d   ` D e a d l i n e s . t s x `   a t   ` / a p p / d e a d l i n e s `   s h o u l d   b e   c a l l i n g   i t .   T e s t   7   f a i l e d   b e c a u s e   i t   c o u l d n ' t   f i n d   t h e   s e c t i o n   t i t l e s ;   m a y b e   t h e y ' r e   d i f f e r e n t   o r   t h e   p a g e   i s   b l a n k .   I ' l l   c h e c k   ` f r o n t e n d / s r c / p a g e s / D e a d l i n e s . t s x `   t o   s e e   w h a t ' s   a c t u a l l y   b e i n g   r e n d e r e d . 
 
 ` D e a d l i n e s . t s x `   u s e s   ` f e t c h `   w i t h o u t   a n   ` A u t h o r i z a t i o n `   h e a d e r ,   c a u s i n g   i t   t o   f a i l   t h a t ' s   a   f r o n t e n d   b u g .   ` E x p l o r e . t s x `   u s e s   ` m e m o S e r v i c e C l i e n t ` ,   s o   I ' l l   c h e c k   ` f r o n t e n d / s r c / s e r v i c e / i n d e x . t s `   t o   s e e   i f   i t   h a n d l e s   t o k e n s   c o r r e c t l y . 
 
 C h e c k i n g   ` f r o n t e n d / s r c / s e r v i c e / a p i C l i e n t . t s ` . 
 
 ` f e t c h J s o n `   i n   ` a p i C l i e n t . t s `   h a n d l e s   t o k e n s ,   b u t   ` D e a d l i n e s . t s x `   b y p a s s e s   i t   b y   c a l l i n g   ` f e t c h `   d i r e c t l y ,   c a u s i n g   i t s   f a i l u r e .   I ' l l   c h e c k   ` f r o n t e n d / s r c / s e r v i c e / m e m o S e r v i c e . t s `   t o   s e e   i f   ` m e m o S e r v i c e C l i e n t `   i s   a l s o   b y p a s s i n g   ` f e t c h J s o n ` . 
 
 ` m e m o S e r v i c e C l i e n t `   u s e s   ` f e t c h J s o n ` ,   s o   i t   s h o u l d   b e   s e n d i n g   t h e   ` A u t h o r i z a t i o n `   h e a d e r .   I ' m   s t u m p e d   o n   w h y   ` E x p l o r e . t s x `   i s   f a i l i n g ,   s o   I ' l l   c h e c k   t h e   b a c k e n d   l o g s   f o r   t h e   ` L I S T _ M E M O S `   e n t r y   I   a d d e d   t o   ` m e m o _ r o u t e s . p y `   t o   s e e   w h a t ' s   h a p p e n i n g . 
 
 ` A u t h P a g e . t s x `   i s   h i t t i n g   ` / a p i / v 1 / a u t h / l o g i n ` ,   b u t   m y   b a c k e n d   e x p e c t s   ` / a p i / v 1 / l o g i n ` ,   c a u s i n g   a   4 0 4 .   T e s t   2   p a s s e d   o n l y   b e c a u s e   i t   a c c i d e n t a l l y   s h o w e d   p u b l i c   m e m o s   w i t h o u t   a u t h e n t i c a t i o n .   T e s t   4   f a i l e d   b e c a u s e   t h e   ` P r o t e c t e d R o u t e `   k i c k e d   t h e   u n a u t h e n t i c a t e d   u s e r   b a c k   t o   ` / a u t h ` ,   w h e r e   n o   ` m e m o - c a r d `   e x i s t s ,   c a u s i n g   a   t i m e o u t .   I ' l l   f i x   t h i s   b y   a d d i n g   t h e   ` / a u t h `   p r e f i x   t o   t h e   ` a u t h _ r o u t e r `   i n   ` s e r v e r . p y `   t o   a l i g n   w i t h   t h e   f r o n t e n d . 
 
 B a c k e n d ' s   r e l o a d i n g .   I ' v e   g o t   t w o   a u t h   r o u t e r s   o n e   f o r   ` / r e g i s t e r ` / ` / l o g i n `   a n d   a n o t h e r   f o r   ` / s i g n u p ` / ` / s i g n i n `   w h i c h   i s   m e s s y .   ` A u t h P a g e . t s x `   u s e s   t h e   f o r m e r ,   w h i l e   ` s e e d - t e s t - d a t a . j s `   u s e s   t h e   l a t t e r .   T o   g e t   t h e s e   t e s t s   p a s s i n g ,   I ' l l   a l i g n   ` s e e d - t e s t - d a t a . j s `   w i t h   ` A u t h P a g e . t s x `   b y   s w i t c h i n g   i t   t o   ` / r e g i s t e r `   a n d   ` / l o g i n ` .   ` b a c k e n d / a p i / a u t h _ r o u t e s . p y `   a l r e a d y   h a n d l e s   e m a i l ,   s o   i t ' s   a   s a f e   s w a p . 
 
 S e e d i n g   ` q a _ u s e r _ 2 0 2 6 _ v 2 `   /   ` q a _ t e s t _ v 2 @ e x a m p l e . c o m `   f o r   a   c l e a n   s l a t e . 
 
 S e e d . 
 
 ` / r e g i s t e r `   d e f i n i t e l y   r e t u r n s   ` a c c e s s _ t o k e n ` ,   s o   I ' m   n o t   s u r e   w h y   t h e   s c r i p t   i s   f a i l i n g   t o   g r a b   i t .   I ' l l   a d d   l o g g i n g   t o   ` s e e d - t e s t - d a t a . j s `   t o   s e e   w h a t ' s   a c t u a l l y   i n   ` s i g n i n R e s . d a t a ` . 
 
 S e e d . 
 
 I t   w o r k e d !   I   m i s s e d   t h e   l o g g i n g   i n   t h e   ` e l s e   i f ` ,   b u t   s i n c e   i t   s i g n e d   i n   a n d   c o m p l e t e d   s e e d i n g ,   I ' m   g o o d   t o   g o .   U p d a t i n g   ` q a _ e v a l . s p e c . t s `   w i t h   ` q a _ u s e r _ 2 0 2 6 _ v 2 `   /   ` t e s t p a s s w o r d 1 2 3 `   n o w . 
 
 T e s t s ,   r u n . 
 
 T e s t   7   p a s s e d ,   s o   l o g i n   i s   d e f i n i t e l y   w o r k i n g .   T e s t   2   p a s s e d   t o o ,   l i k e l y   b y   h i t t i n g   " N o   d a t a   f o u n d . "   B u t   T e s t   4   o n   ` / e x p l o r e `   t i m e d   o u t ,   m i s s i n g   b o t h   m e m o s   a n d   t h e   e m p t y   s t a t e .   I t   m i g h t   b e   s t u c k   o n   t h e   s k e l e t o n   o r   r e d i r e c t e d   w r o n g l y .   I ' l l   c h e c k   ` e r r o r - c o n t e x t . m d `   f o r   c l u e s   s i n c e   I   c a n ' t   v i e w   t h e   s c r e e n s h o t . 
 
 T e s t   4   i s   s t u c k   o n   t h e   s i g n - i n   p a g e ,   m e a n i n g   ` P r o t e c t e d R o u t e `   r e d i r e c t e d   i t   f r o m   ` / e x p l o r e ` .   S i n c e   P l a y w r i g h t   c o n t e x t s   a r e   f r e s h ,   ` l o g i n ( p a g e ) `   s h o u l d   h a v e   h a n d l e d   t h i s .   I   s u s p e c t   e i t h e r   t h e   l o g i n   f a i l e d   o r   t h e   r e d i r e c t   w a s   u n s t a b l e .   I ' l l   c h e c k   t h e   l a t e s t   b a c k e n d   l o g s   t o   s e e   i f   ` P O S T   / a p i / v 1 / a u t h / l o g i n `   i s   s t i l l   r e t u r n i n g   a   4 0 4   o r   i f   s o m e t h i n g   e l s e   i s   b r e a k i n g . 
 
 T e s t   7   p a s s e d ,   b u t   T e s t   4   o n   ` / e x p l o r e `   k e e p s   f a i l i n g   b y   t i m i n g   o u t   o n   t h e   s i g n - i n   p a g e .   I ' m   s e e i n g   s u c c e s s f u l   l o g i n s   a n d   ` / m e `   c a l l s   i n   t h e   l o g s ,   b u t   a l s o   s o m e   c u r i o u s   ` t e s t u s e r _ l o c a l `   e n t r i e s   w h i c h   h i n t   t h a t   ` D I S A B L E _ A U T H `   m i g h t   b e   a c t i v e .   I   s u s p e c t   a   r a c e   c o n d i t i o n   o r   ` s e s s i o n S t o r a g e `   i s s u e   i n   P l a y w r i g h t .   I ' l l   r e r u n   t h e   t e s t s ,   b u t   f i r s t ,   I ' l l   u p d a t e   ` N a v i g a t i o n . t s x `   a n d   ` R O U T E S `   w i t h   ` D e a d l i n e s `   t o   i m p r o v e   o v e r a l l   t e s t   s t a b i l i t y . 
 
 ` D e a d l i n e s `   t o   ` N a v i g a t i o n . t s x ` . 
 
 T e s t s ,   r o u n d   t h r e e .   S e e d i n g   a g a i n   f i r s t ,   j u s t   t o   b e   s a f e . 
 
 T e s t s .   N o w . 
 
 T e s t   7 ' s   i n c o n s i s t e n t   r e s u l t s   a n d   T e s t   4 ' s   p e r s i s t e n t   r e d i r e c t s   t o   ` / a u t h `   s u g g e s t   a   r a c e   c o n d i t i o n   w h e r e   ` P r o t e c t e d R o u t e `   s e e s   ` c u r r e n t U s e r `   a s   n u l l   b e f o r e   t h e   s e s s i o n   s t a b i l i z e s .   I ' l l   m a k e   ` l o g i n `   i n   ` q a _ e v a l . s p e c . t s `   m o r e   r o b u s t   b y   a d d i n g   a   w a i t   a f t e r   t h e   r e d i r e c t   t o   ` / a p p ` .   C r i t i c a l l y ,   I ' l l   a l s o   f i x   t h e   ` D e a d l i n e s . t s x `   f r o n t e n d   b u g   b y   a d d i n g   t h e   ` A u t h o r i z a t i o n `   h e a d e r   t o   i t s   ` f e t c h `   c a l l s ,   u s i n g   ` g e t A c c e s s T o k e n ( ) ` . 
 
 ` q a _ e v a l . s p e c . t s `   l o g i n ,   u p g r a d e d . 
 
 T e s t s .   R u n . 
 
 T e s t   4   a n d   7   a r e   f a i l i n g ,   a n d   T e s t s   5   a n d   6   a r e   s k i p p i n g   b e c a u s e   t h e y   c a n ' t   f i n d   a n y   m e m o s ,   d e s p i t e   m e   s e e d i n g   t h e m .   T e s t   2   o n l y   p a s s e d   b e c a u s e   i t   c a u g h t   t h e   " N o   d a t a   f o u n d "   s t a t e .   I   n e e d   t o   v e r i f y   i f   t h e   m e m o s   a c t u a l l y   m a d e   i t   i n t o   t h e   S Q L i t e   d a t a b a s e   a t   ` b a c k e n d / d b / m e m o s . d b ` ,   s o   I ' l l   w r i t e   a   q u i c k   P y t h o n   s c r i p t   t o   c h e c k . 
 
 2 2 2   m e m o s   b u t   ` l i s t M e m o s `   i s   e m p t y ?   I ' l l   c h e c k   t h e   ` c r e a t o r _ i d `   i n   t h e   d a t a b a s e .   M y   ` s e e d - t e s t - d a t a . j s `   u s e s   ` q a _ u s e r _ 2 0 2 6 _ v 2 ` ,   a n d   t h e   t o k e n ' s   ` s u b `   i s   t h e   i n t e g e r   ` u s e r [ " i d " ] ` .   ` m e m o _ s e r v i c e . l i s t _ m e m o s `   s h o u l d   r e t u r n   P U B L I C   m e m o s   r e g a r d l e s s   o f   ` u s e r _ i d ` ,   s o   t h e r e ' s   a   d i s c o n n e c t .   I   n e e d   t o   s e e   w h a t ' s   a c t u a l l y   i n   t h a t   ` c r e a t o r _ i d `   c o l u m n . 
 
 ` c r e a t o r _ i d `   i n   t h e   D B   i s   a n   i n t e g e r   s t r i n g ,   b u t   ` q a _ u s e r _ 2 0 2 6 _ v 2 `   i s   m i s s i n g .   I ' l l   c h e c k   t h e   ` u s e r s `   t a b l e   t o   f i n d   t h e   a c t u a l   I D   f o r   t h a t   u s e r n a m e . 
 
 S i m p l e   q u o t e s ,   r o u n d   t w o . 
 
 ` n o   s u c h   t a b l e :   u s e r s ` ?   ` s q l i t e _ c l i e n t . p y `   s a y s   i t   s h o u l d   b e   ` c u c c u _ u s e r s ` .   C h e c k i n g   t h a t   n o w . 
 
 ` q a _ u s e r _ 2 0 2 6 _ v 2 `   i s   I D   2 9 .   I ' l l   c h e c k   f o r   m e m o s   w i t h   t h a t   ` c r e a t o r _ i d ` . 
 
 I n t e g e r   ` 2 9 ` ,   t h e n . 
 
 0   m e m o s   f o r   I D   2 9 ?   ` s e e d - t e s t - d a t a . j s `   c l a i m e d   s u c c e s s .   I f   ` D I S A B L E _ A U T H `   w a s   o n ,   t h e y   m i g h t   b e   u n d e r   ` t e s t u s e r _ l o c a l ` ,   b u t   I   o n l y   s a w   o n e   t h e r e .   S i n c e   t h e   t o k e n   f r o m   ` / l o g i n `   s h o u l d   h a v e   ` s u b = 2 9 ` ,   ` c r e a t e _ m e m o `   s h o u l d ' v e   w o r k e d .   M a y b e   i t ' s   u s i n g   t h e   ` u s e r n a m e ` ?   I ' l l   c h e c k   f o r   ` c r e a t o r _ i d = ' q a _ u s e r _ 2 0 2 6 _ v 2 ' ` . 
 
 S i m p l e r   q u e r y . 
 
 P o w e r S h e l l   q u o t e s   a r e   k i l l i n g   m e .   S w i t c h i n g   t o   a   P y t h o n   s c r i p t . 
 
 R u n . 
 
 M e m o s   a r e   s h o w i n g   u p   a s   ` a n o n y m o u s ` ,   m e a n i n g   t h e   b a c k e n d   i s n ' t   i d e n t i f y i n g   t h e   t o k e n   d u r i n g   s e e d i n g   l i k e l y   b e c a u s e   ` u s e r _ i d `   i s   c o m i n g   u p   N o n e   i n   t h e   m i d d l e w a r e .   E v e n   t h o u g h   t h e y ' r e   P U B L I C   a n d   s h o u l d   b e   v i s i b l e ,   T e s t   4   k e e p s   t i m i n g   o u t   o n   t h e   ` / a u t h `   p a g e   b e c a u s e   ` P r o t e c t e d R o u t e `   i s   r e d i r e c t i n g   d u e   t o   a   n u l l   ` c u r r e n t U s e r ` .   L o g s   s h o w   ` h a s _ a u t h _ h e a d e r = F a l s e ` ,   s o   t h e   t o k e n   i s n ' t   e v e n   r e a c h i n g   t h e   b a c k e n d .   I ' l l   t r y   s t a r t i n g   t h e   b a c k e n d   w i t h   ` D I S A B L E _ A U T H = t r u e `   a n d   f u r t h e r   b e e f   u p   t h e   p a t i e n c e   o f   ` q a _ e v a l . s p e c . t s `   t o   g e t   t h e s e   t e s t s   o v e r   t h e   l i n e . 
 
 N o t   f o u n d ?   R e - c h e c k i n g   ` t a s k l i s t ` . 
 
 S t a r t i n g   b a c k e n d   w i t h   ` D I S A B L E _ A U T H = t r u e `   o n   p o r t   5 0 0 5 . 
 
 W a i t i n g   f o r   t h e   b a c k e n d .   I ' l l   a l s o   t w e a k   ` q a _ e v a l . s p e c . t s `   t o   h a n d l e   r e d i r e c t s   b e t t e r ,   t h o u g h   w i t h   ` D I S A B L E _ A U T H = t r u e ` ,   ` / m e `   s h o u l d   a l w a y s   r e t u r n   a   u s e r   a n d   ` P r o t e c t e d R o u t e `   s h o u l d n ' t   b l o c k   a n y t h i n g . 
 
 N o t   l i s t e n i n g ?   C h e c k i n g   P I D   2 5 6 8 8   l o g s . 
 
 I t ' s   u p .   W a i t i n g   a   b i t ,   t h e n   r e r u n n i n g   t h e   s e e d   d a t a   s i n c e   ` D I S A B L E _ A U T H = t r u e `   m i g h t   a f f e c t   m e m o   c r e a t i o n . 
 
 T e s t s ,   r u n . 
 
 F E   1 .   M o   t r a n g   c h u :   P A S S 
 
 F E   2 .   K i e m   t r a   d a n h   s a c h   m e m o :   P A S S 
 
 F E   3 .   K i e m   t r a   N a v i g a t i o n   s i d e b a r :   P A S S 
 
 F E   4 .   M o   t r a n g   / e x p l o r e :   F A I L   -   B  W%   r e d i r e c t   v  W%   t r a n g   s i g n - i n   d o   ` P r o t e c t e d R o u t e `   k h %$%n g   n h  Q% n   d i  W% n    % ^%% W% c   s e s s i o n ,   h o  Q%V%c   k h %$%n g   t % m   t h  Q% y   m e m o   n % o . 
 
 F E   5 .   C l i c k   v a o   1   m e m o :   S K I P   -   K h %$%n g   t % m   t h  Q% y   m e m o    %  W%   c l i c k . 
 
 F E   6 .   K i e m   t r a   n u t   m e n u   3   c h a m :   S K I P   -   K h %$%n g   t % m   t h  Q% y   m e m o . 
 
 F E   7 .   M o   t r a n g   / d e a d l i n e s :   F A I L   -   K h %$%n g   h i  W% n   t h  W%   c % c   s e c t i o n   ( c %%  t h  W%   d o   l  W% i   f e t c h   h o  Q%V%c   d  W%   l i  W% u   t r  W% n g ) . 
 
 
 
 * * C h i   t i  Q%%t   v %   g  W% i   %\%  f i x : * * 
 
 
 
 1 .     * * L  W% i   R e d i r e c t   / e x p l o r e   ( T e s t   4 ) : * * 
 
         *       * * N g u y % n   n h % n : * *   ` P r o t e c t e d R o u t e `   r e d i r e c t   n g ^%% W% i   d %c%n g   v  W%   ` / a u t h `   v %   ` c u r r e n t U s e r `   t r o n g   ` A u t h C o n t e x t `   b  W%   n u l l .    % i  W% u   n % y   x  Q% y   r a   d o   ` s e s s i o n S t o r a g e `   k h %$%n g    %  W% n g   b  W%   k  W% p   h o  Q%V%c   b a c k e n d   ` / a p i / v 1 / a u t h / m e `   t r  Q%   v  W%   4 0 1 . 
 
         *       * * G  W% i   %\%  f i x : * *    %  Q% m   b  Q% o   ` s e t A c c e s s T o k e n `    % ^%% W% c   t h  W%%c   h i  W% n   h o % n   t  Q% t   v %   ` A u t h C o n t e x t `    % %   ` i n i t i a l i z e `   x o n g   t r ^%% W% c   k h i    % i  W% u   h ^%% W% n g .   T r o n g   t e s t ,   c  Q% n    %  W% i   s i d e b a r   ( v %   d  W% :   ` # h e a d e r - m e m o s ` )   h i  W% n   t h  W%   r %a%  r % n g   t r ^%% W% c   k h i   c h u y  W% n   t r a n g . 
 
 
 
 2 .     * * L  W% i   K h %$%n g   t % m   t h  Q% y   M e m o   ( T e s t   5 ,   6 ) : * * 
 
         *       * * N g u y % n   n h % n : * *   D  W%   l i  W% u   s e e d    % ^%% W% c   t  Q% o   d ^%% W% i   d a n h   n g h  %#a   ` a n o n y m o u s `   m  Q%V%c   d %c%  c %%  g  W% i   t o k e n   ( d o   l  W% i   b a c k e n d   k h %$%n g   n h  Q% n   d i  W% n    % ^%% W% c   t o k e n   t r o n g   m i d d l e w a r e ) . 
 
         *       * * G  W% i   %\%  f i x : * *   K i  W% m   t r a   l  Q% i   ` C u C u A u t h M i d d l e w a r e `   t r o n g   ` b a c k e n d / c o m m o n / m i d d l e w a r e . p y ` .    %  Q% m   b  Q% o   ` J W T _ S E C R E T `   k h  W% p   g i  W% a   l %Q%c   t  Q% o   t o k e n   v %   l %Q%c   v e r i f y .    % %   t h  W%   f i x   b  Q%%n g   ` D I S A B L E _ A U T H = t r u e `   n h ^%%n g   v  Q% n   c %%n   h i  W% n   t ^%% W% n g   r e d i r e c t . 
 
 
 
 3 .     * * L  W% i   S i d e b a r   v %   R o u t e s   (  % %   f i x   m  W% t   p h  Q% n ) : * * 
 
         *       * *  % %   t h  W%%c   h i  W% n : * *   T h % m   ` D E A D L I N E S `   v % o   ` R O U T E S `   v %   ` N a v i g a t i o n . t s x ` .   S  W% a   ` D e a d l i n e s . t s x `    %  W%   g  W% i   k % m   ` A u t h o r i z a t i o n `   h e a d e r . 
 
         *       * * K  Q%%t   q u  Q% : * *   T e s t   3    % %   P A S S ,   T e s t   7    % %   P A S S    W%  m  W% t   s  W%   l  Q% n   c h  Q% y . 
 
 
 
 4 .     * * T % n h   t ^%%^% n g   t h % c h   P y t h o n   3 . 1 4   (  % %   f i x ) : * * 
 
         *       * *  % %   t h  W%%c   h i  W% n : * *   M o c k   ` l a n g f u s e `   c l i e n t   t r o n g   ` b a c k e n d / c o m m o n / l a n g f u s e _ c l i e n t . p y `    %  W%   t r % n h   l  W% i   ` C o n f i g E r r o r `   c  W% a   P y d a n t i c   v 1   t r % n   P y t h o n   3 . 1 4 . 
 
 
 
 * * T  W% n g   k  Q%%t : * * 
 
 M  Q%V%c   d %c%   % %   f i x    % ^%% W% c   n h i  W% u   l  W% i   v  W%   r o u t i n g   v %   a u t h   h e a d e r ,   f r o n t e n d   v  Q% n   c %%n   h i  W% n   t ^%% W% n g   k h %$%n g    W% n    %  W% n h   v  W%   s e s s i o n   t r o n g   m %$%i   t r ^%% W% n g   t e s t   h e a d l e s s .   C  Q% n   k i  W% m   t r a   k  W%c%  h ^% n   l o g i c   k h  W%i   t  Q% o   c  W% a   ` A u t h P r o v i d e r `   v %   t % n h    %  W% n g   n h  Q% t   c  W% a   ` J W T _ S E C R E T ` . 
 
 