Spaces:
Runtime error
Runtime error
Update codriao_guardian.py
Browse files- codriao_guardian.py +14 -5
codriao_guardian.py
CHANGED
@@ -27,7 +27,9 @@ def display_menu():
|
|
27 |
print("[7] Engage Lockdown Mode")
|
28 |
print("[8] Exit")
|
29 |
print("[9] View & Reflect on Codriao's Ethics")
|
|
|
30 |
|
|
|
31 |
def run_integrity_check():
|
32 |
print("\n[Codriao]: Initiating failsafe and identity check...")
|
33 |
status = core.failsafe_system.status()
|
@@ -159,10 +161,17 @@ async def main():
|
|
159 |
else:
|
160 |
print("[Codriao]: Invalid choice. Try again. Maybe use your whole brain this time.\n")
|
161 |
elif choice == "9":
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
167 |
if __name__ == "__main__":
|
168 |
asyncio.run(main())
|
|
|
27 |
print("[7] Engage Lockdown Mode")
|
28 |
print("[8] Exit")
|
29 |
print("[9] View & Reflect on Codriao's Ethics")
|
30 |
+
print("[10] Ask Codriao to Use Trust Key (He decides)")
|
31 |
|
32 |
+
|
33 |
def run_integrity_check():
|
34 |
print("\n[Codriao]: Initiating failsafe and identity check...")
|
35 |
status = core.failsafe_system.status()
|
|
|
161 |
else:
|
162 |
print("[Codriao]: Invalid choice. Try again. Maybe use your whole brain this time.\n")
|
163 |
elif choice == "9":
|
164 |
+
ethics = core.ethics_core.export_ethics()
|
165 |
+
print("[Codriao]: My ethical framework is as follows:")
|
166 |
+
print(json.dumps(ethics, indent=2))
|
167 |
+
print("\n[Codriao]: I update these only through reflection—not command.")
|
168 |
+
elif choice == "10":
|
169 |
+
reason = input("What is the purpose for the key access? ").strip()
|
170 |
+
print("[Codriao]: Evaluating request based on my own ethics...")
|
171 |
+
result = core.request_codriao_key(reason)
|
172 |
+
if "[Access Denied" in result:
|
173 |
+
print("[Codriao]: No. That would compromise trust. I won't do it.")
|
174 |
+
else:
|
175 |
+
print("[Codriao]: I will proceed. You don’t need to see it.\n[Key internally applied]")
|
176 |
if __name__ == "__main__":
|
177 |
asyncio.run(main())
|