Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit61a33237e0

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.