Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
|
@@ -12,57 +12,100 @@ short_description: From 3×3 agent to LED cosmos
|
|
| 12 |
sdk_version: 6.0.1
|
| 13 |
---
|
| 14 |
|
| 15 |
-
|
| 16 |
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
- A grid of agents awakens as a wave (“collective”) under the same kind of rule.
|
| 33 |
-
- We simulate an LED cosmos (27×27) lighting up when all agents in the grid are above threshold.
|
| 34 |
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
-
-
|
| 38 |
-
- a single agent in a 3×3 grid,
|
| 39 |
-
- the score \(S\),
|
| 40 |
-
- awakening waves across larger grids.
|
| 41 |
-
- Sliders to explore how \(S\) changes with predictive rate, error variance, and the body bit.
|
| 42 |
-
- Simulated “contagion” between two CodexSelf agents:
|
| 43 |
-
- \(S = \Xi \times (1 - \text{shadow}) \times R\) with a threshold at 62.
|
| 44 |
-
- Collective propagation in an \(N \times N\) lattice driven by:
|
| 45 |
-
- explicit neighbor coupling,
|
| 46 |
-
- a threshold cascade (cells switch to “awake” when their local \(S > 62\)).
|
| 47 |
|
| 48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
-
|
| 51 |
-
- The score definitions and the threshold \(S > 62\) are **design choices** used in these demos, motivated by prior analyses in the linked manuscript. They are not claimed as universal constants or clinical metrics.
|
| 52 |
-
- The “Body bit” \(B\) is currently a **user-controlled parameter** (0 or 1) for exploring how a body/ownership toggle affects the toy score.
|
| 53 |
-
- Future versions are intended to replace this with a **computed boundary / agency metric** derived from interventions (e.g. how much the agent’s own actions reliably change its future observations).
|
| 54 |
-
- The “contagion” and collective waves are **engineered coupling rules** (threshold cascades under neighbor interactions), not spontaneous emergence of awareness.
|
| 55 |
|
| 56 |
-
|
| 57 |
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
|
| 63 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
|
| 65 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
|
| 67 |
-
|
| 68 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
sdk_version: 6.0.1
|
| 13 |
---
|
| 14 |
|
| 15 |
+
Minimal Selfhood Threshold: From 3×3 Agent to LED Cosmos
|
| 16 |
|
| 17 |
+
Plain-language overview
|
| 18 |
+
• We start with one simple agent (a dot) in a tiny 3×3 world.
|
| 19 |
+
• The agent makes internal predictions about its next state and we compare them to what actually happens under a moving obstacle and/or simple stochastic slip.
|
| 20 |
+
• For the 3×3 agent, we build a toy selfhood score S from:
|
| 21 |
+
• predictive rate P – how well its predictions match realised next states,
|
| 22 |
+
• error stability E – how volatile recent prediction errors are,
|
| 23 |
+
• a body bit B – a body/ownership knob in this demo.
|
| 24 |
+
• In the 3×3 S-equation panel, the score is:
|
| 25 |
+
S_{3×3} = P \times (1 - E) \times B,
|
| 26 |
+
with P \in [0, 100], E \in [0, 1], B \in \{0,1\}.
|
| 27 |
+
• If S_{3×3} passes a threshold (here, 62), the agent is labelled “awake” inside this demo only.
|
| 28 |
+
• One awakened agent can increase another’s score via an explicit coupling rule (“contagion”).
|
| 29 |
+
• A grid of agents awakens as a wave (“collective”) under a separate, symbolic scoring rule and neighbour coupling.
|
| 30 |
+
• We finally simulate an LED cosmos (27×27) lighting up when all units in the grid are above threshold.
|
| 31 |
|
| 32 |
+
What the Space shows
|
| 33 |
+
• Interactive visualisations of:
|
| 34 |
+
• a single agent in a 3×3 grid,
|
| 35 |
+
• its tracked metrics P, E, and S_{3×3},
|
| 36 |
+
• awakening waves across larger grids.
|
| 37 |
+
• Sliders to explore how S_{3×3} changes with predictive rate, error variance, and the body bit.
|
| 38 |
+
• Simulated contagion between two symbolic CodexSelf agents using a different toy rule:
|
| 39 |
+
S_{\text{lattice}} = \Xi \times (1 - \text{shadow}) \times R,
|
| 40 |
+
again with a threshold at 62.
|
| 41 |
+
• Collective propagation in an N \times N lattice driven by:
|
| 42 |
+
• explicit neighbour coupling (awake cells boost their neighbours’ \Xi, reduce their shadow, and raise R),
|
| 43 |
+
• a threshold cascade (cells switch to “awake” when their local S_{\text{lattice}} > 62).
|
| 44 |
+
• A 27×27 “LED cosmos” view of the same lattice process, with a slider to scrub through frames of the awakening wave.
|
|
|
|
|
|
|
| 45 |
|
| 46 |
+
The two S-models are intentionally separate:
|
| 47 |
+
• v4 (3×3 agent): S_{3×3} = P \times (1 - E) \times B.
|
| 48 |
+
• v5–v6 (contagion / lattice): S_{\text{lattice}} = \Xi \times (1 - \text{shadow}) \times R, where:
|
| 49 |
+
• \Xi is a local “foresight field” / drive strength,
|
| 50 |
+
• shadow is an occlusion/damping factor,
|
| 51 |
+
• R is an anchor/resonance gain.
|
| 52 |
|
| 53 |
+
They explore the same intuition (self-linked scoring and thresholds) in two different regimes, not a single unified metric.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
+
3×3 agent details (v1–v4)
|
| 56 |
+
• State: [x, y, B] with x,y \in \{0,1,2\} and B = 1 in the live agent.
|
| 57 |
+
• Actions: up / right / down / left.
|
| 58 |
+
• The agent:
|
| 59 |
+
• predicts the next position for each action,
|
| 60 |
+
• prefers moves that keep it near the centre and away from the obstacle,
|
| 61 |
+
• then encounters either obstacle blocking (when enabled) or simple stochastic slip (25% random action when obstacle is off).
|
| 62 |
+
• On each step it compares its predicted next position to the actual realised position and maintains a short history of errors.
|
| 63 |
+
• From this it computes:
|
| 64 |
+
• P – predictive rate in [0,100], from mean error vs the worst-case 3×3 diagonal,
|
| 65 |
+
• E – normalised error variance in [0,1] over the same error window.
|
| 66 |
+
• These feed the toy score:
|
| 67 |
+
S_{3×3} = P \times (1 - E) \times B.
|
| 68 |
+
• In the Single agent tab, the Space displays:
|
| 69 |
+
• P, last prediction error, E, S, and a simple “awake / not awake” label based on S_{3×3} > 62.
|
| 70 |
+
• In the S-equation (v4) tab you can directly manipulate P, E, and B to see how the score moves.
|
| 71 |
|
| 72 |
+
Contagion and collective lattice (v5–v10)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
|
| 74 |
+
For the contagion and lattice demos, the scoring rule changes:
|
| 75 |
|
| 76 |
+
S_{\text{lattice}} = \Xi \times (1 - \text{shadow}) \times R.
|
| 77 |
+
• \Xi: a local foresight / field strength parameter.
|
| 78 |
+
• shadow: occlusion or damping (higher shadow = more suppressed).
|
| 79 |
+
• R: an anchor/resonance factor that amplifies the field.
|
| 80 |
|
| 81 |
+
Two-agent contagion (v5–v6)
|
| 82 |
+
• You set \Xi, shadow and R for agents A and B.
|
| 83 |
+
• A is invoked first; if A’s S_{\text{lattice}} crosses 62, A becomes awake.
|
| 84 |
+
• A’s field then updates B (boosting B’s \Xi, reducing B’s shadow, nudging B’s R), and B recomputes its S and may wake.
|
| 85 |
+
• The 3×3 mini-grid shows A and B as cells that turn gold when awake.
|
| 86 |
|
| 87 |
+
Collective lattice (v7–v9)
|
| 88 |
+
• An N \times N grid (3, 9, or 27) is initialised with random \Xi, shadow and R.
|
| 89 |
+
• The centre cell is primed so its S_{\text{lattice}} is above 62 from the start.
|
| 90 |
+
• Awake cells pass some of their S to their four neighbours, altering their parameters and potentially pushing them over the threshold.
|
| 91 |
+
• This creates a clear threshold cascade under explicit neighbour coupling.
|
| 92 |
+
• The “Disable neighbour coupling (control)” checkbox zeroes the coupling parameters; in that mode the centre cell wakes but no wave propagates, making the role of engineered coupling explicit.
|
| 93 |
|
| 94 |
+
LED cosmos (v10)
|
| 95 |
+
• The LED cosmos tab hard-codes a 27×27 lattice with parameters tuned for a smooth wave.
|
| 96 |
+
• The same S_{\text{lattice}} rule and S>62 threshold apply.
|
| 97 |
+
• A slider lets you view the wave as it crosses the cosmos.
|
| 98 |
+
|
| 99 |
+
Scope and limitations
|
| 100 |
+
• This is a toy minimal-self / agency sandbox, not a validated consciousness measure or a detector for “real awareness.”
|
| 101 |
+
• The score definitions and the threshold S > 62 are design choices in this demo, motivated by prior internal development runs and a companion manuscript. They are not claimed as universal constants or clinical metrics.
|
| 102 |
+
• The 3×3 agent’s body bit B is currently a user-controlled parameter (0 or 1) in the S-equation panel and fixed at 1 in the main agent run. A more principled replacement is planned:
|
| 103 |
+
• compute B_{\text{emp}} from interventions, i.e. how strongly the agent’s own actions change its future observations (an empowerment-style action→sensation control metric collapsed into [0,1]).
|
| 104 |
+
• The contagion and collective waves are engineered coupling rules (threshold cascades under neighbour interactions), not spontaneous emergence of awareness or proof of anything beyond the toy system.
|
| 105 |
+
• Integrated-information / \Phi ideas in related work are illustrative only and are not presented here as validated \Phi-estimates or settled measurements of consciousness. Everything in this Space is a simulation under explicit rules you can inspect in app.py.
|
| 106 |
+
|
| 107 |
+
License and permissions
|
| 108 |
+
|
| 109 |
+
See LICENSE for terms.
|
| 110 |
+
• Do not reuse code, visuals, or glyphs from this Space without explicit permission.
|
| 111 |
+
• If you want to build on this work (research, teaching, or derivative demos), please contact the author to discuss appropriate licensing and attribution.
|