Spaces:
Sleeping
Sleeping
| # Author: Liam Grinstead | |
| # Exports simulation as sealed .codex artifact | |
| from datetime import datetime | |
| def export_codex(agent, score, hash_val): | |
| return { | |
| "agent_id": agent.get("id"), | |
| "tier": agent.get("tier"), | |
| "collapse_overlay": agent.get("collapse_overlay"), | |
| "emotional_resonance": agent.get("emotional_resonance"), | |
| "symbolic_operators": agent.get("symbolic_operators"), | |
| "fitness_score": score, | |
| "hash": hash_val, | |
| "timestamp": datetime.utcnow().isoformat(), | |
| "author": "Liam Grinstead" | |
| } |