*Continent · 2 territory* ## Summary Two test files from Apr 6, 2026 sit beside a Mar 22, 2026 account of a duplicated engine: a contract-test template at test/world-policy.test.ts that teams copy to assert BLOCK/ALLOW, and parity tests at test/simulation-parity.test.ts pinning the boundary between simulateWorld() and evaluateGuard(). ## Explanation - On Apr 6, 2026, a contract test template ships at test/world-policy.test.ts that teams can copy to assert "this intent must always BLOCK/ALLOW" against their world, with 11 assertions covering safety, roles, levels and defaults. - A contract test template is added at test/world-policy.test.ts that teams can copy to assert "this intent must always BLOCK/ALLOW" against their world, shippin… - Golden policy tests enforce the BLOCK/ALLOW/PAUSE contracts, and the template is a copy-and-adapt starting point for teams to write enforceable contract tests of their own. - Golden policy tests enforce the BLOCK/ALLOW/PAUSE contracts. - Policy golden tests are a contract test template in `test/world-policy.test.ts` that teams can copy. - In Neuroverseos-governance:doc:CHANGELOG.md, the source said test/world-policy.test.ts is a copy-and-adapt template for teams to write enforceable contract tests such as 'this intent must always BLOCK/ALLOW'. - test/world-policy.test.ts is a copy-and-adapt template for teams to write enforceable contract tests such as 'this intent must always BLOCK/ALLOW'. - 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, validating simulation mechanics, and explicitly testing the divergence that simulate has no safety layer, no roles and no level constraints. - 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… - 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 - A contract test template at test/world-policy.test.ts that teams copy to assert "this intent must always BLOCK/ALLOW". - test/world-policy.test.ts is a copy-and-adapt template for teams to write enforceable contract tests such as 'this intent must always BLOCK/ALLOW'. - A contract test template is added at test/world-policy.test.ts that teams can copy to assert "this intent must always BLOCK/ALLOW" against their world, shippin… - Golden policy tests enforcing the BLOCK/ALLOW/PAUSE contracts. - Golden policy tests enforce the BLOCK/ALLOW/PAUSE contracts. - Policy golden tests are a contract test template in `test/world-policy.test.ts` that teams can copy. - 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… - A copy-pasted reimplementation in simulate.html that diverged from the real engine. - simulate.html shipped a copy-pasted reimplementation of simulateWorld(), parseWorldMarkdown(), evaluateOperator() and applyEffect(), 330 lines of duplicated lo… ## What's still open What replaced the duplicated simulate.html logic, 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… ## Two sides A copy-and-adapt template at test/world-policy.test.ts is offered to teams while simulate.html shipped a copy-pasted reimplementation that diverged from the real engine. - One side - A contract test template is added at test/world-policy.test.ts that teams can copy to assert "this intent must always BLOCK/ALLOW" against their world, shippin… - test/world-policy.test.ts is a copy-and-adapt template for teams to write enforceable contract tests such as 'this intent must always BLOCK/ALLOW'. - The other side - simulate.html shipped a copy-pasted reimplementation of simulateWorld(), parseWorldMarkdown(), evaluateOperator() and applyEffect(), 330 lines of duplicated lo… ## Consultant **Where it shows up** — The copy-and-adapt idea keeps coming up: test/world-policy.test.ts is offered as a template teams copy to assert "this intent must always BLOCK/ALLOW", and simulate.html shows what copying without adapting produced — 330 lines that diverged from simulateWorld(). **A way forward** — Keep the 11 assertions in test/world-policy.test.ts as the worked example, and add one line to its header naming what a team must change for their own world. ## Ideas - Teams should be able to copy a template and adapt it to write enforceable contract tests of their own policy, such as 'this intent must always BLOCK/ALLOW'. - 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. ## Territories - [[Bevia/World/Territories/Parity tests for the simulate-evaluateGuard boundary|Parity tests for the simulate/evaluateGuard boundary]] - [[Bevia/World/Territories/Contract test template for BLOCK-ALLOW policy|Contract test template for BLOCK/ALLOW policy]]