On the elliptic-hyperbolic coupling. I. The advection-diffusion equation via the $\chi$-formulation