In this question I will work in ACA. Take any formal system $S$ with a proof verifier program that interprets classical arithmetic. Then $S$ is (arithmetically-)consistent iff some specific program $c$ (that searches for a proof of "$0=1$" over $S$) does not halt. So consistency corresponds directly to non-halting on $1$ input. Of course, it cannot correspond to halting on $1$ input, because $S$ proves the execution of every given program on an input if it halts. By the incompleteness theorem $S$ cannot prove the non-halting of $c$, which is a $Π_1$-sentence.
What about halting on all inputs? Consider the following program:
f(x):
Set m := "0".
For each pair of strings p,g of length at most |x|:
If p is a valid proof over S that g is a total program:
Set m := m+g(x).
Return m.
Clearly if $S$ is $Π_2$-sound then $f$ only runs total programs, and hence $f$ itself is total. Furthermore, $f$ dominates every function $g$ that $S$ can prove total, because $f(x)$ for sufficiently long $x$ will find that proof of totality of $g$ and hence output a longer string than $g(x)$. This also implies that $S$ cannot prove $f$ total.
Notice that this yields the incompleteness theorem for every $Π_2$-sound formal system. Also note that $f$ is computable from $S$ in the sense that there is a uniform computable translation from the proof verifier for $S$ to $f$.
Now my question is:
Is there a program computable from $S$ that is total and dominates every function that $S$ proves total, if $S$ is $Σ_1$-sound, or better still merely consistent?
If I am not mistaken, for soundness the hierarchy is $Σ_2 ⇒ Π_2 ⇒ Σ_1 ⇒ Π_1$, with $Π_1$-soundness equivalent to consistency, so there are only two levels in the hierarchy below that of $f$.
My motivation is that I am interested to know what kind of functions on natural numbers have their existence contingent on consistency or soundness of some formal system, given that we only assume predicative classical arithmetic. If $S$ has proof-theoretic ordinal $k$ with an explicit reduction function $r$ such that $\sup_{n \in ω} succ(r(x,n)) = \sup_{y \in x} y$ for every $x \in k$, then we can write a program that is provably total given that $r$ is well-founded, but dominates every function that $S$ proves total. For example, we can do this for ACA with proof-theoretic ordinal $ε_{ε_0}$, so we would have a program that is total iff ACA is consistent. But this is ad-hoc, and I want rather a uniform result for arbitrary $S$.
Edit: Sorry I actually meant to ask for functions that are not only total but also dominates all provably total functions. That was the original reason for my construction, because I read about the connection between the fast-growing hierarchy and proof-theoretic ordinals. So I have edited my question. Thanks for Noah Schweber's quick answer to my original unintended question!