Log inGet started
Package

persist.module

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

persist.origin

Provenance / origin-context layer for the persist (create-flow) system.

The problem persist must solve: when the agent freezes live play state into scene.json, it must capture only the things that would not otherwise be reproduced on the next load — i.e. creations whose stack root is the agent's ad-hoc execute() context. Anything created by onLoad / the scene loader or by a component callback re-runs on every load, so freezing it would duplicate it.

This layer tags each live creation with its origin context (via wrappers installed over the entity API) and exposes the current origin, so the serializer can keep execute-origin entities and drop the rest. See docs/specs/multiplayer/candidate-c-persist-flow.md.