*Territory · 4 understandings*
## Summary
On Apr 6, 2026, test/simulation-parity.test.ts documents and tests the architectural boundary between simulateWorld() and evaluateGuard(), and the changelog records 14 tests added there proving determinism and explicitly testing that simulate has no safety layer, no roles and no level constraints.
## Explanation
- On Apr 6, 2026, test/simulation-parity.test.ts documents and tests the architectural boundary between simulateWorld() and evaluateGuard().
- test/simulation-parity.test.ts documents and tests the architectural boundary between simulateWorld() and evaluateGuard().
- The changelog records 14 tests added at test/simulation-parity.test.ts documenting the architectural boundary between simulateWorld() and evaluateGuard(), proving determinism, validating simulation mechanics, and explicitly testing the divergence that simulate has no safety layer, no roles and no level constraints.
- 14 tests are added at test/simulation-parity.test.ts documenting the architectural boundary between simulateWorld() and evaluateGuard(), proving determinism, v…
- On Mar 22, 2026, simulate.html shipped a copy-pasted reimplementation of simulateWorld(), parseWorldMarkdown(), evaluateOperator() and applyEffect(), 330 lines of duplicated logic that diverged from the real engine, missing the `in` operator and missing *_dynamic effects, with no conditional effects, no secondary_check and no rule sorting by order.
- simulate.html shipped a copy-pasted reimplementation of simulateWorld(), parseWorldMarkdown(), evaluateOperator() and applyEffect(), 330 lines of duplicated lo…
- The parity tests at test/simulation-parity.test.ts and the duplicated simulate.html logic both concern the same simulateWorld() engine, one testing its boundary with evaluateGuard() and the other reimplementing it.
- test/simulation-parity.test.ts documents and tests the architectural boundary between simulateWorld() and evaluateGuard().
- 14 tests are added at test/simulation-parity.test.ts documenting the architectural boundary between simulateWorld() and evaluateGuard(), proving determinism, v…
- simulate.html shipped a copy-pasted reimplementation of simulateWorld(), parseWorldMarkdown(), evaluateOperator() and applyEffect(), 330 lines of duplicated lo…
- What the duplicated simulate.html logic was replaced with, and whether the parity tests cover the missing `in` operator and *_dynamic effects, is not stated.
- 14 tests are added at test/simulation-parity.test.ts documenting the architectural boundary between simulateWorld() and evaluateGuard(), proving determinism, v…
- simulate.html shipped a copy-pasted reimplementation of simulateWorld(), parseWorldMarkdown(), evaluateOperator() and applyEffect(), 330 lines of duplicated lo…
## Threads
- Parity tests at test/simulation-parity.test.ts pinning the boundary between simulateWorld() and evaluateGuard()
- test/simulation-parity.test.ts documents and tests the architectural boundary between simulateWorld() and evaluateGuard().
- 14 tests are added at test/simulation-parity.test.ts documenting the architectural boundary between simulateWorld() and evaluateGuard(), proving determinism, v…
- The simulate.html copy of the engine that drifted, missing the `in` operator and *_dynamic effects
- simulate.html shipped a copy-pasted reimplementation of simulateWorld(), parseWorldMarkdown(), evaluateOperator() and applyEffect(), 330 lines of duplicated lo…
## How it formed
On Mar 22, 2026, simulate.html carried 330 lines of duplicated engine logic that diverged from the real engine; by Apr 6, 2026, test/simulation-parity.test.ts documented and tested the boundary between simulateWorld() and evaluateGuard() with 14 tests.
- simulate.html shipped a copy-pasted reimplementation of simulateWorld(), parseWorldMarkdown(), evaluateOperator() and applyEffect(), 330 lines of duplicated lo…
- test/simulation-parity.test.ts documents and tests the architectural boundary between simulateWorld() and evaluateGuard().
- 14 tests are added at test/simulation-parity.test.ts documenting the architectural boundary between simulateWorld() and evaluateGuard(), proving determinism, v…
## What's still open
Whether the parity tests cover the `in` operator and *_dynamic effects the simulate.html copy dropped is not stated.
- 14 tests are added at test/simulation-parity.test.ts documenting the architectural boundary between simulateWorld() and evaluateGuard(), proving determinism, v…
- simulate.html shipped a copy-pasted reimplementation of simulateWorld(), parseWorldMarkdown(), evaluateOperator() and applyEffect(), 330 lines of duplicated lo…
## Consultant
**Where it shows up** — The simulateWorld() engine keeps coming up: test/simulation-parity.test.ts tests its boundary with evaluateGuard(), and simulate.html once carried 330 lines of copy-pasted logic that dropped the `in` operator and *_dynamic effects.
**A way forward** — Keep the parity tests beside the engine and add a case for each thing the simulate.html copy dropped — the `in` operator, *_dynamic effects, conditional effects, secondary_check and rule sorting by order.
## Ideas
- A duplicated reimplementation of the engine drifts from the real one, so the boundary between simulation and guard evaluation needs tests that pin the divergence.
## Understandings
- Simulation parity tests document the boundary between `simulateWorld()` and `evaluateGuard()`. — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance #93 v0.5.0 — World signing, schema migratio|NeuroverseOS/Neuroverseos-governance #93 v0.5.0 — World signing, schema migratio]] — 2026-04-06
- test/simulation-parity.test.ts documents and tests the architectural boundary between simulateWorld() and evaluateGuard(). — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance- CHANGELOG|NeuroverseOS/Neuroverseos-governance: CHANGELOG]] — 2026-04-06
- 14 tests are added at test/simulation-parity.test.ts documenting the architectural boundary between simulateWorld() and evaluateGuard(), proving determinism, validating simulation mechanics, and explicitly testing the divergence that simulate has no safety layer, no roles, no level constraints. — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance #92 Add golden policy tests, simulation par|NeuroverseOS/Neuroverseos-governance #92 Add golden policy tests, simulation par]] — 2026-04-06
- simulate.html shipped a copy-pasted reimplementation of simulateWorld(), parseWorldMarkdown(), evaluateOperator() and applyEffect(), 330 lines of duplicated logic that diverged from the real engine, missing the `in` operator, missing *_dynamic effects, with no conditional effects, no secondary_check and no rule sorting by order. — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance #47 Fix engine drift- simulate.html now use|NeuroverseOS/Neuroverseos-governance #47 Fix engine drift: simulate.html now use]] — 2026-03-22
## Who, where and what
Things: [[Bevia/World/Things/-_dynamic|*_dynamic]], [[Bevia/World/Things/applyEffect()|applyEffect()]], [[Bevia/World/Things/evaluateGuard()|evaluateGuard()]], [[Bevia/World/Things/evaluateOperator()|evaluateOperator()]], [[Bevia/World/Things/in|in]], [[Bevia/World/Things/parseWorldMarkdown()|parseWorldMarkdown()]], [[Bevia/World/Things/secondary_check|secondary_check]], [[Bevia/World/Things/simulate.html|simulate.html]], [[Bevia/World/Things/simulateWorld()|simulateWorld()]], [[Bevia/World/Things/test-simulation-parity.test.ts|test/simulation-parity.test.ts]]