Skip to main content

Module script

Module script 

Source

Structs§

ScriptFailure
One per-script failure observation from a batch run_scripts invocation. code is a kebab-case symbol mirroring the wire envelope of catch-each result cells (so emacs / cli / web clients render script failures the same shape regardless of whether the script raised inside catch-each or surfaced at the outer batch boundary). message is the engine’s diagnostic.
ScriptRunReport
Aggregate output of a batch run_scripts call. state is the final TransactionState after every script that succeeded was applied; failures lists every script that errored (in execution order). Failures don’t abort the run — successive scripts still see the state mutations from previous successful ones.
TransactionState

Functions§

load_transaction_state
Builds a TransactionState for a single transaction id by fetching the transaction, its splits, and any existing note tag through the public server::command::* API. Used by the batch-script runner to feed a per-transaction state to run_scripts without re-implementing the read path.