@@ -744,7 +744,10 @@ test("dashboard status reads the exact-review handoff model from the durable que
744744 } ) ;
745745
746746 assert . ok ( status ) ;
747+ assert . match ( status . generated_at , / ^ \d { 4 } - \d { 2 } - \d { 2 } T / ) ;
747748 assert . equal ( status . pending , 2 ) ;
749+ assert . equal ( status . ready_pending , 1 ) ;
750+ assert . equal ( status . admissible_pending , 1 ) ;
748751 assert . equal ( status . dispatching , 0 ) ;
749752 assert . equal ( status . leased , 2 ) ;
750753 assert . equal ( status . handoff_health . status , "healthy" ) ;
@@ -778,6 +781,8 @@ test("dashboard status reads the exact-review handoff model from the durable que
778781 assert . equal ( typeof status . lanes . review . oldest_pending_at , "string" ) ;
779782 assert . equal ( status . lanes . review . oldest_pending_key , "openclaw/gogcli#597" ) ;
780783 assert . equal ( typeof status . lanes . review . next_attempt_at , "string" ) ;
784+ assert . equal ( status . pressure . status , "idle" ) ;
785+ assert . equal ( status . pressure . reason , "capacity_available" ) ;
781786 assert . equal ( await exactReviewQueueStatusSnapshot ( { } ) , null ) ;
782787} ) ;
783788
@@ -6140,6 +6145,9 @@ test("dashboard hero treats apply and exact-review handoff health as attention",
61406145 reconcilers : { running : 1 , waiting : 0 } ,
61416146 } ,
61426147 exact_review_queue : {
6148+ pending : 4 ,
6149+ ready_pending : 3 ,
6150+ admissible_pending : 2 ,
61436151 lanes : {
61446152 review : {
61456153 pending : 4 ,
@@ -6199,6 +6207,15 @@ test("dashboard hero treats apply and exact-review handoff health as attention",
61996207 } ,
62006208 } ,
62016209 } ,
6210+ pressure : {
6211+ status : "congested" ,
6212+ reason : "capacity_full_with_backlog" ,
6213+ capacity : 28 ,
6214+ active : 28 ,
6215+ pending : 4 ,
6216+ ready_pending : 3 ,
6217+ admissible_pending : 2 ,
6218+ } ,
62026219 handoff_health : {
62036220 status : "healthy" ,
62046221 message : "Dispatch-to-claim handoffs are within the expected window." ,
@@ -6335,6 +6352,8 @@ test("dashboard hero treats apply and exact-review handoff health as attention",
63356352 assert . match ( elementFor ( "exact-review-handoff" ) . innerHTML , / D i s p a t c h i n g / ) ;
63366353 assert . match ( elementFor ( "exact-review-handoff" ) . innerHTML , / 2 o f 2 8 e x a c t - r e v i e w s l o t s o p e n / ) ;
63376354 assert . match ( elementFor ( "exact-review-handoff" ) . innerHTML , / h e a l t h - b a d g e h e a l t h y / ) ;
6355+ assert . match ( elementFor ( "exact-review-handoff" ) . innerHTML , / p r e s s u r e c o n g e s t e d / ) ;
6356+ assert . match ( elementFor ( "exact-review-handoff" ) . innerHTML , / 4 t o t a l  · 3 r e a d y  · 2 a d m i s s i b l e / ) ;
63386357 assert . match ( elementFor ( "exact-review-lanes" ) . innerHTML , / R e v i e w a d m i s s i o n / ) ;
63396358 assert . match ( elementFor ( "exact-review-lanes" ) . innerHTML , / 5 2 r e v i e w a d m i s s i o n s l o t s o p e n / ) ;
63406359 assert . match ( elementFor ( "exact-review-lanes" ) . innerHTML , / R e s u l t p u b l i c a t i o n / ) ;
@@ -6396,13 +6415,15 @@ test("dashboard hero treats apply and exact-review handoff health as attention",
63966415
63976416 status . recent . apply_health . items = [ ] ;
63986417 status . exact_review_queue . handoff_health . status = "stalled" ;
6418+ status . exact_review_queue . pressure . status = "saturated" ;
63996419 status . exact_review_queue . handoff_health . message =
64006420 "A dispatched review has not been claimed within the expected handoff window." ;
64016421 context . renderDashboard ( status , "" ) ;
64026422
64036423 assert . equal ( elementFor ( "hero-dot" ) . className , "hero-dot red" ) ;
64046424 assert . match ( elementFor ( "hero-headline" ) . textContent , / ^ N e e d s a t t e n t i o n / ) ;
64056425 assert . match ( elementFor ( "exact-review-handoff" ) . innerHTML , / h e a l t h - b a d g e s t a l l e d / ) ;
6426+ assert . match ( elementFor ( "exact-review-handoff" ) . innerHTML , / p r e s s u r e s a t u r a t e d / ) ;
64066427
64076428 Object . assign ( status , { exact_review_queue : null } ) ;
64086429 status . diagnostics . exact_review_queue_error = "exact-review queue timed out" ;
0 commit comments