pre_execute runs once per line, before any of it runs, and post_execute
once the line ends, with its output. TypeScript spells each method and field in camelCase (preExecute, ctx.exitCode).
Context
commands is read before the line runs, so a word only the run can expand
($X) is not resolved there yet. Every ctx also carries the session fields.
pre_execute
python3 /jobs/train.py runs on the workspace’s box
machine. See
Route Machine.
post_execute
output truncated at limit (100 lines); .... A Deny here drops the
output: exit 126 and a decision record.