The answer here makes sense to me, in the sense that the stochastic integral does not preserve the local martingale property if the integrand is not predictable, but I am confused as to why. I have been taught the following definition of the stochastic integral:
We first define the quadratic variation for a RCLL martingale, $M$, to be $$ Q(M,t) \equiv \lim_{n \rightarrow \infty} \sum_{i=1}^\infty(M_{\sigma_{i+1} \wedge t}-M_{\sigma_{i} \wedge t})^2$$ where $\sigma_0 \equiv 0$ and $$ \sigma_{i+1} \equiv \inf \left(t > \sigma_i : |M_t - M_{\sigma_i}| \ge 2^{-n} \text{ or } |M_{t-} - M_{\sigma_i}| \ge 2^{-n} \right) $$ This limit is shown to converge uniformly on compact sets almost surely from first principles in this excellent pedagogical paper. The limit is shown to be non-decreasing, RCLL, etc. Now for any bounded RCLL martingale $M$, and any (predictable, but where does this argument rely on predictability?) process $H$ such that $$\mathbb{E} \left(\int_0^\infty H_s^2 Q(M,ds) \right) < \infty $$ we define the following mapping from the Hilbert space of bounded RCLL martingales to $\mathbb{R}$:
$$J(N) \equiv \mathbb{E} \left(\int_0^\infty H_s Q(M,N,ds) \right),$$
where $Q(M,N,t)$ is the quadratic covariation $$Q(M,N,t) \equiv \frac{1}{2} \Big(Q(M+N,t) - Q(M,t) - Q(N,t) \Big).$$
Since $J$ is a linear map, Riesz representation gives us a unique element $L$ which is in the space of bounded RCLL martingales which is such that $$\textbf{(1)} \qquad \qquad J(N) = \mathbb{E}(L_{\infty} N_{\infty})$$ and we define this $L$ to be the stochastic integral of $H$ with respect to $M$.
I know that it is typical (as in Protter's text) to define the stochastic integral first and then obtain its quadratic variation afterward, hence my confusion. Since $L$ is by construction a RCLL martingale, this seems to contradict the notion that lack of predictability of $H$ is a problem with respect to preserving the (local) martingale property of the stochastic integral, so my questions are as follows: where in this argument is the predictability (or frankly, because my knowledge is so utterly and depressingly poor, adaptedness) of $H$ used? What am I missing/where does everything fall apart?
Any and all help in understanding this would be massively appreciated, and I thank you for even just reading through this ''mini -essay''.