RFTSystems commited on
Commit
b53bd66
·
verified ·
1 Parent(s): b813f94

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +195 -0
README.md CHANGED
@@ -11,4 +11,199 @@ license: other
11
  short_description: Multi‑agent drift & stability simulator.
12
  ---
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
11
  short_description: Multi‑agent drift & stability simulator.
12
  ---
13
 
14
+ ---
15
+
16
+ RFT Agent Simulation Engine — MVP Release
17
+
18
+ A symbolic multi‑agent simulation engine built to model drift, stability, coherence, and emergent behaviour in complex systems.
19
+ Developed as the first operational software implementation of the Rendered Frame Theory (RFT) agent architecture.
20
+
21
+ This MVP provides a clean, modular, reproducible simulation environment that runs entirely in Python and is fully compatible with Google Colab and Hugging Face Spaces.
22
+
23
+ ---
24
+
25
+ 🚀 Features
26
+
27
+ ✔ Multi‑Agent Simulation
28
+
29
+ Each agent evolves over time through:
30
+
31
+ • Awareness field updates (Φ)
32
+ • Collapse‑torque dynamics (τ_eff)
33
+ • Mutation
34
+ • Drift
35
+ • Fitness scoring
36
+ • Tier‑independent behaviour
37
+
38
+
39
+ ✔ System‑Level Metrics
40
+
41
+ The engine computes:
42
+
43
+ • Coherence (average Φ across agents)
44
+ • Stability (variance of Φ)
45
+ • Emergent divergence patterns
46
+
47
+
48
+ ✔ Full Visualization Suite
49
+
50
+ Automatically generates and saves:
51
+
52
+ • phi_plot.png
53
+ • tau_plot.png
54
+ • fitness_plot.png
55
+ • coherence_plot.png
56
+ • stability_plot.png
57
+
58
+
59
+ All plots are high‑resolution (300 dpi).
60
+
61
+ ✔ JSON Export
62
+
63
+ Final agent states are exported to:
64
+
65
+ • final_agent_states.json
66
+
67
+
68
+ ✔ One‑Click Packaging
69
+
70
+ A built‑in ZIP builder creates:
71
+
72
+ • rft_simulation_engine.zip
73
+ containing all project files and generated artifacts.
74
+
75
+
76
+ ✔ Colab‑Optimized Dev Mode
77
+
78
+ When running in Google Colab:
79
+
80
+ • Gradio UI is bypassed
81
+ • Simulation runs automatically
82
+ • Plots display inline
83
+ • All files save to disk
84
+
85
+
86
+ ---
87
+
88
+ 📦 Project Structure
89
+
90
+ agent.py # RFTAgent class
91
+ simulation.py # RFTSimulation engine
92
+ visualization.py # Plotting utilities
93
+ utils.py # JSON export + ZIP builder
94
+ app.py # Gradio UI + Colab dev mode
95
+ test_runner.py # Automated test simulation
96
+ requirements.txt # Dependencies
97
+ README.md # Documentation
98
+
99
+
100
+ ---
101
+
102
+ ▶️ Running the Simulation (Colab)
103
+
104
+ To run the engine in Google Colab:
105
+
106
+ from test_runner import run_test_simulation
107
+ run_test_simulation()
108
+
109
+
110
+ This will:
111
+
112
+ • Run a 3‑agent, 100‑step simulation
113
+ • Display all plots inline
114
+ • Save all PNGs
115
+ • Export final_agent_states.json
116
+ • Print file paths
117
+
118
+
119
+ ---
120
+
121
+ 🌐 Running the Gradio App (Hugging Face Space)
122
+
123
+ When deployed on Hugging Face:
124
+
125
+ python app.py
126
+
127
+
128
+ The UI allows you to configure:
129
+
130
+ • Number of agents
131
+ • Number of steps
132
+ • Mutation rate
133
+ • Drift rate
134
+ • Random seed
135
+
136
+
137
+ And outputs:
138
+
139
+ • All plots
140
+ • JSON export
141
+ • Downloadable results
142
+
143
+
144
+ ---
145
+
146
+ 🧪 Example Output
147
+
148
+ The engine produces:
149
+
150
+ • Divergent agent trajectories
151
+ • Torque evolution curves
152
+ • Fitness progression
153
+ • System coherence decay
154
+ • Stability variance growth
155
+
156
+
157
+ These behaviours emerge naturally from the agent update rules.
158
+
159
+ ---
160
+
161
+ 📁 Packaging the Project
162
+
163
+ To generate a ZIP containing all files and outputs:
164
+
165
+ from utils import zip_project
166
+ zip_project()
167
+
168
+
169
+ This creates:
170
+
171
+ • rft_simulation_engine.zip
172
+ ready for download or distribution.
173
+
174
+
175
+ ---
176
+
177
+ 🛠 Requirements
178
+
179
+ numpy
180
+ matplotlib
181
+ gradio
182
+
183
+
184
+ ---
185
+
186
+ 📣 About This Project
187
+
188
+ This MVP demonstrates the first operational implementation of the RFT agent architecture.
189
+ It is designed for:
190
+
191
+ • AI researchers
192
+ • Complex systems modellers
193
+ • Simulation engineers
194
+ • Worldbuilders
195
+ • Anyone exploring emergent behaviour
196
+
197
+
198
+ Future versions will introduce:
199
+
200
+ • Agent packs
201
+ • Mutation packs
202
+ • Universe packs
203
+ • Codex integration
204
+ • Long‑run simulations
205
+ • Advanced metrics
206
+
207
+
208
+ ---
209
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference