paracosm 0.9.1105 → 0.9.1107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/dashboard/dist/assets/{index-PUWULm3v.js → index-DpBAMPda.js} +17 -17
- package/dist/dashboard/dist/index.html +1 -1
- package/dist/dashboard/dist/llms-full.txt +2 -2
- package/dist/dashboard/landing.html +6 -6
- package/dist/runtime/io/output-writer.d.ts +22 -0
- package/dist/runtime/io/output-writer.d.ts.map +1 -1
- package/dist/runtime/io/output-writer.js +1 -1
- package/dist/runtime/io/output-writer.js.map +1 -1
- package/dist/runtime/orchestrator/index.d.ts +42 -26
- package/dist/runtime/orchestrator/index.d.ts.map +1 -1
- package/dist/runtime/orchestrator/index.js +131 -33
- package/dist/runtime/orchestrator/index.js.map +1 -1
- package/dist/runtime/world-model/index.d.ts +28 -18
- package/dist/runtime/world-model/index.d.ts.map +1 -1
- package/dist/runtime/world-model/index.js +25 -15
- package/dist/runtime/world-model/index.js.map +1 -1
- package/dist/server/routes/library-import.d.ts +6 -0
- package/dist/server/routes/library-import.d.ts.map +1 -1
- package/dist/server/routes/library-import.js +25 -3
- package/dist/server/routes/library-import.js.map +1 -1
- package/dist/server/routes/platform-api.d.ts +6 -0
- package/dist/server/routes/platform-api.d.ts.map +1 -1
- package/dist/server/routes/platform-api.js +51 -48
- package/dist/server/routes/platform-api.js.map +1 -1
- package/dist/server/services/run-artifact-file.d.ts +29 -0
- package/dist/server/services/run-artifact-file.d.ts.map +1 -0
- package/dist/server/services/run-artifact-file.js +82 -0
- package/dist/server/services/run-artifact-file.js.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -84,11 +84,11 @@ console.log(trunk.fingerprint, branch.fingerprint);
|
|
|
84
84
|
|
|
85
85
|
```typescript
|
|
86
86
|
const replay = await wm.replay(storedArtifact);
|
|
87
|
-
console.log(replay.matches); // true when
|
|
88
|
-
console.log(replay.divergence); // first
|
|
87
|
+
console.log(replay.matches); // true when each between-turn step reproduces the state the run saved after it
|
|
88
|
+
console.log(replay.divergence); // first path that differs, from the artifact's root, when matches=false
|
|
89
89
|
```
|
|
90
90
|
|
|
91
|
-
Replay restores the kernel from each
|
|
91
|
+
With `captureSnapshots: true` the turn loop saves, beside each turn's end-of-turn snapshot, the state its first between-turn step starts from and the state right after each turn's step, before the turn's decisions move it. Replay restores the kernel from the state each step started from, re-runs the step (ageing, dose, deaths, births, food and morale), and compares the result with the state the run saved after it. It calls no model, so it is fast and free. It does not re-apply a turn's decisions. A run saved before the turn loop kept those snapshots gets a `WorldModelReplayError` saying replay cannot verify it, never a match or a mismatch ([#235](https://github.com/framerslab/paracosm/issues/235)). What replay checks, what the seed fixes and what the model decides: [FAQ](docs/FAQ.md#what-does-replay-do).
|
|
92
92
|
|
|
93
93
|
---
|
|
94
94
|
|