Spaces:
Sleeping
Sleeping
Create registry_viewer.py
Browse files- registry_viewer.py +22 -0
registry_viewer.py
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Author: Liam Grinstead
|
| 2 |
+
# Displays all logged simulations from Codex_Registry.json
|
| 3 |
+
|
| 4 |
+
from registry_utils import read_registry
|
| 5 |
+
|
| 6 |
+
def display_registry():
|
| 7 |
+
entries = read_registry()
|
| 8 |
+
if not entries:
|
| 9 |
+
return "No simulations logged yet."
|
| 10 |
+
output = "📜 **Codex Simulation Registry**\n\n"
|
| 11 |
+
for e in entries[::-1]: # newest first
|
| 12 |
+
output += (
|
| 13 |
+
f"🧠 Agent: {e['agent_id']}\n"
|
| 14 |
+
f"⚙️ Torque: {e['collapse_torque']}\n"
|
| 15 |
+
f"📐 Tier: {e['tier_drift']}\n"
|
| 16 |
+
f"💓 Resonance: {e['emotional_resonance']}\n"
|
| 17 |
+
f"📊 Score: {e['fitness_score']}\n"
|
| 18 |
+
f"🔐 Hash: `{e['hash']}`\n"
|
| 19 |
+
f"🕒 Timestamp: {e['timestamp']}\n"
|
| 20 |
+
f"👤 Author: {e['author']}\n\n"
|
| 21 |
+
)
|
| 22 |
+
return output
|