Take some state variable $X(t)$, which follows the law of motion
$$ \dot X(t) = f(t)X(t) $$
where $f(t)$ is a policy function, and determines the growth rate of $X(t)$. As a second shock, we have $\psi$, which is iid. The agent defaults whenever
$$ g(X(t), \psi) \leq 0$$
Allow the agent to borrow some money that he will have to repay continuously. Let's compute the risk premium. The probability of default at $t+\epsilon$ is
$$Prob(g(X(t+\epsilon), \psi) \leq 0) $$
As the lending has to be repaid continuously, the interest rate, given some risk-free interest rate $r^*$ and risk-neutral lenders, is given by
$$ r^* = r \cdot \lim_{\epsilon\to 0} \left(1 - Prob(g(X(t+\epsilon), \psi) \leq 0)\right)$$
However, as the law of motion for $X(t)$ is continuous, in the limit, this becomes
$$ r^* = r \cdot \left(1-Prob(g(X(t), \psi) \leq 0) \right)$$
This would mean that the agent's risk premium is independent of what he is doing: his policy $f(t)$ does not appear anymore.
But since $f(t)$ affects the state $X(t)$ and the latter the default probability, I feel it should. What's my mistake here?
References are fine. Most of continuous time finance references I know are much too deep for this rather simple question.