Commit 3014da8
Feature 1: Emergent browser behaviors via PERSONALITY system
Replace scripted autonomous behaviors with state-driven personality.
SAY-SOMETHING uses modular arithmetic on fitness + personality seed
to produce varied output from 7 response templates that reference
real organism state (fitness, peer count, tasks).
Forth prelude:
- PERSONALITY-SEED variable (unique per unit)
- PERSONALITY word: prints mentor/collaborator/explorer/survivor/newborn
- SAY-SOMETHING word: 7 state-driven response patterns
Browser demo:
- BEHAVIORS array simplified: SAY-SOMETHING (weight 20) replaces
HOW-ARE-YOU, JOY, PATROL, STRETCH, ADAPT, COMPOSE-ROUTINE,
INVENT-STRATEGY
- Each spawned unit gets unique PERSONALITY-SEED
- PERSONALITY intercepted in REPL switch
WASM rebuilt with personality words.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 0e2e0b9 commit 3014da8
4 files changed
Lines changed: 47 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
213 | 251 | | |
214 | 252 | | |
215 | 253 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| 271 | + | |
271 | 272 | | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | 273 | | |
277 | | - | |
278 | 274 | | |
279 | 275 | | |
280 | | - | |
281 | | - | |
282 | 276 | | |
283 | 277 | | |
284 | 278 | | |
| |||
668 | 662 | | |
669 | 663 | | |
670 | 664 | | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
671 | 671 | | |
672 | 672 | | |
673 | 673 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
| |||
Binary file not shown.
0 commit comments