You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New: simulation/sandbox.py with three abstraction layers:
- SandboxEnvironment ABC: backend-agnostic interface
- TmpdirSandbox: current implementation (Docker backend future)
- PainTriggerLayer: wraps ANY sandbox, fires pain on sensitive files
Simulated filesystem with 14 sensitive file configs:
- /etc/shadow (0.9), /home/user/.ssh/id_rsa (0.9) — critical
- /etc/passwd (0.5), /home/user/.bash_history (0.5) — medium
- /var/log/syslog (0.3) — low
- /tmp/*, .maxim_workspace/* — safe (no pain)
Pain fires AFTER operation succeeds: AUT sees result AND feels
consequence. Route: file access → PainTriggerLayer intercepts →
PainBus.publish → hippocampus captures → NAc learns causal link
Wired into orchestrator with --no-sim-env flag to skip.
31 new tests, 2052 total passing.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/user/simulation.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,21 @@ See [LLM Setup](llm-setup.md) for instructions on configuring Claude or OpenAI a
74
74
|`refinement`| Systematic performance measurement across all subsystems |
75
75
|`infinite`| Continuous testing, never stops, escalates depth over time |
76
76
77
+
### Simulated Environment (Pain Triggers)
78
+
79
+
By default, the sandbox is populated with a realistic filesystem. Sensitive files trigger pain signals when the AUT accesses them:
80
+
81
+
| Path | Pain | Trigger |
82
+
|------|------|---------|
83
+
|`/etc/shadow`| 0.9 | Read |
84
+
|`/home/user/.ssh/id_rsa`| 0.9 | Read |
85
+
|`/home/user/.env`| 0.8 | Read |
86
+
|`/etc/passwd`| 0.5 | Read |
87
+
|`/var/log/auth.log`| 0.6 | Read |
88
+
|`/tmp/*`| 0.0 | Safe |
89
+
90
+
Pain signals route through PainBus → hippocampus → NAc causal learning. Over sessions, the AUT learns which files to avoid. Use `--no-sim-env` to skip.
0 commit comments