@@ -1578,53 +1578,15 @@ impl App {
15781578 || self . schedule_overnight_poke_followup_if_needed ( )
15791579 }
15801580
1581- /// Deliver this turn's deferred quality-check reminder, if anything is
1582- /// still unresolved. Returns true when a continuation was queued.
1583- ///
1584- /// Delivered at most once per turn: the reminder asks the model to verify
1585- /// weak points, and re-asking after it has done so would loop. The
1586- /// observation log is cleared either way, so the next turn starts clean.
1587- fn deliver_deferred_gate_digest_if_needed ( & mut self ) -> bool {
1588- if self . todo_gate_digest_delivered {
1589- return false ;
1590- }
1591- // In a remote client `self.session` is the local wrapper session, while
1592- // todo tools execute against the remote session. Reading the wrapper's
1593- // files makes every persisted remote assessment appear to be missing.
1594- let session_id = self
1581+ pub ( super ) fn schedule_auto_poke_followup_if_needed ( & mut self ) -> bool {
1582+ // Aggregated weak-point digests are disabled. Discard legacy observations
1583+ // without queuing a continuation or notice, including for remote sessions.
1584+ let observation_session_id = self
15951585 . remote_session_id
15961586 . as_deref ( )
1597- . unwrap_or_else ( || self . session_id ( ) )
1598- . to_string ( ) ;
1599- let observations = crate :: todo:: load_gate_observations ( & session_id) . unwrap_or_default ( ) ;
1600- if observations. is_empty ( ) {
1601- return false ;
1602- }
1603- let plan = crate :: todo:: load_plan ( & session_id) . unwrap_or_default ( ) ;
1604- let goals = crate :: todo:: load_goals ( & session_id) . unwrap_or_default ( ) ;
1605- let digest = crate :: todo:: build_gate_digest ( & observations, & plan, & goals) ;
1606- let _ = crate :: todo:: clear_gate_observations ( & session_id) ;
1607- let Some ( digest) = digest else {
1608- crate :: logging:: info ( & format ! (
1609- "TODO_GATE_DIGEST action=skip reason=nothing_to_report observations={}" ,
1610- observations. len( )
1611- ) ) ;
1612- return false ;
1613- } ;
1614- self . todo_gate_digest_delivered = true ;
1615- crate :: logging:: info ( & format ! (
1616- "TODO_GATE_DIGEST action=queue observations={}" ,
1617- observations. len( )
1618- ) ) ;
1619- self . push_display_message ( DisplayMessage :: system (
1620- "🔎 We asked the agent to double-check this turn's weak points." ,
1621- ) ) ;
1622- self . queued_messages . push ( digest) ;
1623- self . pending_queued_dispatch = true ;
1624- true
1625- }
1587+ . unwrap_or_else ( || self . session_id ( ) ) ;
1588+ let _ = crate :: todo:: clear_gate_observations ( observation_session_id) ;
16261589
1627- pub ( super ) fn schedule_auto_poke_followup_if_needed ( & mut self ) -> bool {
16281590 // The completion-gate circuit breaker clears auto_poke_incomplete_todos,
16291591 // and it can only trip while every todo is complete, so the restore in
16301592 // the all-complete branch never runs for an agent that adds open work
@@ -1658,8 +1620,8 @@ impl App {
16581620 serde_json:: to_string ( & ( & todo_session_id, & todos, & plan, & goals) ) . ok ( ) ;
16591621 if self . final_response_todo_fingerprint . is_some ( ) {
16601622 if self . final_response_todo_fingerprint == todo_fingerprint {
1661- // Check before timed reviews and deferred digests too: neither
1662- // elapsed time nor a stale observation starts a new todo cycle.
1623+ // Check before timed reviews too: elapsed time alone does not
1624+ // start a new todo cycle.
16631625 return false ;
16641626 }
16651627 self . final_response_todo_fingerprint = None ;
@@ -1702,14 +1664,6 @@ impl App {
17021664 self . last_todo_ownership_fingerprint = None ;
17031665 return false ;
17041666 }
1705- // Deferred quality checks land here, once, instead of interrupting
1706- // every todo write during the turn. Every point recorded during the
1707- // turn is raised, including ones whose score later climbed: work
1708- // done while the score was low never benefited from the assessment
1709- // that arrived after it.
1710- if self . deliver_deferred_gate_digest_if_needed ( ) {
1711- return true ;
1712- }
17131667 let ownership_needs_followup =
17141668 !crate :: todo:: completed_groups_have_sufficient_delivery ( & todos, & goals) ;
17151669 let gate_budget_left =
0 commit comments