Learning task structure and optimal behavior from examples within a single forward pass, without parameter updates.