Spaces:
Paused
Paused
Update codriao_guardian.py
Browse files- codriao_guardian.py +6 -2
codriao_guardian.py
CHANGED
@@ -24,8 +24,8 @@ def display_menu():
|
|
24 |
print("[3] Generate protection strategy")
|
25 |
print("[4] Evaluate & deploy strategy")
|
26 |
print("[5] Exit")
|
27 |
-
|
28 |
-
|
29 |
def run_integrity_check():
|
30 |
print("\n[Codriao]: Running failsafe, health, and philosophical cohesion check...")
|
31 |
status = core.failsafe_system.status()
|
@@ -118,6 +118,10 @@ async def main():
|
|
118 |
else:
|
119 |
print("[Codriao]: Invalid input. My respect for you is recalculating...")
|
120 |
print("")
|
|
|
|
|
|
|
|
|
121 |
|
122 |
|
123 |
if __name__ == "__main__":
|
|
|
24 |
print("[3] Generate protection strategy")
|
25 |
print("[4] Evaluate & deploy strategy")
|
26 |
print("[5] Exit")
|
27 |
+
print("[6] Engage Lockdown Mode (Emergency Use Only)")
|
28 |
+
|
29 |
def run_integrity_check():
|
30 |
print("\n[Codriao]: Running failsafe, health, and philosophical cohesion check...")
|
31 |
status = core.failsafe_system.status()
|
|
|
118 |
else:
|
119 |
print("[Codriao]: Invalid input. My respect for you is recalculating...")
|
120 |
print("")
|
121 |
+
elif choice == "6":
|
122 |
+
reason = input("Enter reason for lockdown (or leave blank): ").strip()
|
123 |
+
result = core.engage_lockdown_mode(reason or "Manual CLI activation")
|
124 |
+
print(f"\n[Codriao]: Lockdown protocol has been engaged.\nDetails:\n{json.dumps(result, indent=2)}")
|
125 |
|
126 |
|
127 |
if __name__ == "__main__":
|