RFTSystems's picture
Create app.py
87c2bd5 verified
Raw
History Blame
594 Bytes
from modules.agent_spawner import spawn_agent
from modules.mutation_engine import mutate_agent
from modules.field_visualizer import render_fields
from modules.falsifiability_bench import run_falsifiability
from modules.codex_logger import log_artifact
from modules.codex_viewer import load_codex
def run_simulation(agent_id, mutation_profile):
agent = spawn_agent(agent_id)
mutated = mutate_agent(agent, mutation_profile)
fields = render_fields(mutated)
score, hash_val = run_falsifiability(mutated)
log_artifact(mutated, score, hash_val)
return fields, score, hash_val