Skip to content

S1: Deterministic Rhai surface (sandbox + claims/effects) #173

@flyingrobots

Description

@flyingrobots

Context

  • Rhai is the intended authoring layer, but it must not punch holes in determinism (no HostTime/IO without Views/claims).

Goal

  • Define and implement a minimal deterministic Rhai embedding surface that routes side effects through Echo Views.

Scope

  • Define feature mask / allowed Rhai features for determinism.
  • Define host modules as Views (clock, rng, kv, net emit) that produce replay-safe claims/decision records.
  • Optional: fiber model (yield/await with claim/effect receipts).

Exit Criteria

  • A simple Rhai script can run in the sandbox and produce deterministic state changes + receipts.

Links

  • docs/spec-concurrency-and-authoring.md
  • docs/spec-time-streams-and-wormholes.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureFeature umbrella (epic)runtimeRuntime corespecSpec/Design document

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions