After two rakahs, a person starts rising without the first sitting but is still physically nearer the seated position. The person returns and recites tashahhud.
Because the sitting remains recoverable at that stage, its obligation is fulfilled rather than treating it as a completed omission.