The context of this question is related to proving the first incompleteness by alternative ways related to Rosser's trick. So, for a proof by negation, we assume that $T$ is complete, and fulfills Gödel's criteria of effectively capturing all computable functions, etc..
Can $T$ decide on sentence $\sigma$ defined below?
$\sigma \iff \\\forall k (\operatorname {Proof}_T(k, \ulcorner \sigma \urcorner) \to \\\forall s: \exists x [\operatorname {Proof}_T(x,\ulcorner s \urcorner) \land x \leq k] \lor \exists y [\operatorname {Proof}_T(y, \operatorname {neg} (\ulcorner s\urcorner)) \land y \leq k])$
In English this reads as: This sentence is only provable at lengths such that every sentence is either provable or disprovable below (non-strictly) it.
The idea is that, as defined, $\sigma$ can only be provable by proofs having non-standard Gödel codes, meaning that if $T$ is complete then $\sigma$ must be false, i.e. we have $T \vdash \neg \sigma$.
So, if we assume $T$ to be complete, then this criterion, I think, would separate standard from non-standards, so if a code of a proof doesn't fulfill that feature, i.e. not every sentence is decidable below it, then this code is standard!
However, I'm not sure of this later feature, that's why I'm not sure of the decidability of $\neg \sigma$ in $T$.
Of course this can be settled brutally by defining a minimal for such proofs, i.e. for example define:
${\frak K} = \min k : \forall s \, (\exists x [\operatorname {Proof}_T(x,\ulcorner s \urcorner) \land x \leq k] \lor \exists y [\operatorname {Proof}_T(y, \operatorname {neg} (\ulcorner s\urcorner)) \land y \leq k])$
Then define the diagonal $\pi$ as:
$\pi \iff \forall x (\operatorname {Proof}_T(x,\ulcorner \pi \urcorner) \to x \geq {\frak K})$
And clearly $\pi$ would be undecidable in $T$.
What is the status of $\sigma $ in $T$ should we assume that $T$ is complete and fulfill Gödel's criteria.