Text this: Sequential decision processes make behavioural types endogenous