ExecutionPlane.Process.TreRhai (execution_plane v0.1.0)

Copy Markdown View Source

Local TRE/Rhai process lane for invoking rex-runner.

The caller supplies a governed TRE envelope with refs and hashes. This module resolves script/policy material through an explicit materializer, writes a bounded local runner workspace, invokes the runner with a cleared environment, and returns a structured receipt. It does not accept raw policy/script material in the public envelope.

Summary

Types

materializer()

@type materializer() :: (map() -> {:ok, map()} | {:error, term()})

receipt()

@type receipt() :: map()

Functions

execute(envelope_attrs, opts \\ [])

@spec execute(
  map() | keyword(),
  keyword()
) :: {:ok, receipt()} | {:error, receipt()}