Some time ago, I asked for a definition of thermodynamic reversibility without mentioning entropy, and a user came up with the following formal definition of a reversible process:
Definition:
Reversible process means that given the outside controllable mechanical, electrical, magnetic, chemical, etc., macroscopic parameters $\hat x_1,\hat x_1,\hat x_2,...,\hat x_n$ of the surroundings and its temperature $\hat T$ at which heat exchange can also take place any and all internal thermodynamic properties (parameters), say $z$, of the system at any time instant during the process can be written as a function of said external parameters: $z(t) = f(\hat T(t), \hat x_1(t),\hat x_2(t),...,\hat x_n(t))$. Notice the function depends only on the instantaneous values and not on the time rates of the external parameters. The $t$ in the function is just a process index by which the various consecutive stages of the thermodynamic process is marked, i.e., time."
Using this definition, can you come up with an example of irreversible process and explain why it is irreversible, again, using the provided definition or explain why this definition is wrong?