RFTSystems commited on
Commit
9a9cb14
·
verified ·
1 Parent(s): 9669ef4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -2
app.py CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  from modules.agent_spawner import spawn_agent
2
  from modules.mutation_engine import mutate_agent
3
  from modules.field_visualizer import render_fields
@@ -6,9 +10,20 @@ from modules.codex_logger import log_artifact
6
  from modules.codex_viewer import load_codex
7
 
8
  def run_simulation(agent_id, mutation_profile):
 
9
  agent = spawn_agent(agent_id)
 
 
10
  mutated = mutate_agent(agent, mutation_profile)
11
- fields = render_fields(mutated)
 
 
 
 
12
  score, hash_val = run_falsifiability(mutated)
 
 
13
  log_artifact(mutated, score, hash_val)
14
- return fields, score, hash_val
 
 
 
1
+ # app.py
2
+ # Author: Liam Grinstead
3
+ # RFT simulation runner
4
+
5
  from modules.agent_spawner import spawn_agent
6
  from modules.mutation_engine import mutate_agent
7
  from modules.field_visualizer import render_fields
 
10
  from modules.codex_viewer import load_codex
11
 
12
  def run_simulation(agent_id, mutation_profile):
13
+ # Spawn base agent
14
  agent = spawn_agent(agent_id)
15
+
16
+ # Apply mutation profile
17
  mutated = mutate_agent(agent, mutation_profile)
18
+
19
+ # Render fields (optional, but keep for visualization)
20
+ _ = render_fields(mutated)
21
+
22
+ # Run falsifiability scoring
23
  score, hash_val = run_falsifiability(mutated)
24
+
25
+ # Log artifact
26
  log_artifact(mutated, score, hash_val)
27
+
28
+ # Return mutated agent and hash (interface.py expects this)
29
+ return mutated, hash_val