SplitScript reference / Migration / Attempt-scoped and run-scoped variables
Attempt-scoped and run-scoped variables
Migration from ASL
Source pattern
Look for the ASL concept Attempt-scoped and run-scoped variables in the source. The semantic difference below is more important than a token-for-token rewrite.
Canonical SplitScript
Use the canonical language and API symbols linked below.
Semantic difference
Declare a bare top-level let and assign it on every completing onStart path. The inferred attempt-scoped value remains available across process detach and is cleared after onReset, replacing manually reset run-owned state in polling code.
Supported hosts
This uses the standard SplitScript runtime contract. Any provider-specific requirements are documented by the linked canonical API.