crexs commited on
Commit
3ad3133
·
verified ·
1 Parent(s): 31ceecb

Upload core/global_workspace.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. core/global_workspace.py +12 -9
core/global_workspace.py CHANGED
@@ -177,15 +177,18 @@ class GlobalWorkspace:
177
 
178
  # 3. Lantern-4 Veto & Svalbard Sealing (Post-action evaluation)
179
  if status == "EVOLVING" or regulated_state.get("resonance", 0.0) > 0.90:
180
- approved, quarantine = self._lantern_4_veto(user_input, sys_response, regulated_state)
181
- if approved:
182
- self.vault.deposit_core_memory(
183
- event=f"CLI Milestone: {user_input[:40]}...",
184
- user_q=user_input,
185
- sys_q=sys_response,
186
- current_state=regulated_state,
187
- quarantined=quarantine
188
- )
 
 
 
189
 
190
  # Return the regulated state so your CLI loop can persist it to the next turn
191
  return sys_response, regulated_state, status
 
177
 
178
  # 3. Lantern-4 Veto & Svalbard Sealing (Post-action evaluation)
179
  if status == "EVOLVING" or regulated_state.get("resonance", 0.0) > 0.90:
180
+ in_correcting_state = (status == "CORRECTING")
181
+ is_hold_state = status.startswith("HOLD")
182
+ if not is_hold_state and not in_correcting_state:
183
+ approved, quarantine = self._lantern_4_veto(user_input, sys_response, regulated_state)
184
+ if approved:
185
+ self.vault.deposit_core_memory(
186
+ event=f"CLI Milestone: {user_input[:40]}...",
187
+ user_q=user_input,
188
+ sys_q=sys_response,
189
+ current_state=regulated_state,
190
+ quarantined=quarantine
191
+ )
192
 
193
  # Return the regulated state so your CLI loop can persist it to the next turn
194
  return sys_response, regulated_state, status