Upload core/global_workspace.py with huggingface_hub
Browse files- 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 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 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
|