Background: Suppose $E=TM$ is the tangent bundle to some differentiable manifold $M^n$. If we specify some subbundle $D\subset TM$ (distribution of $k$-planes) then there are two natural situations that arise. We may have that at some point $p$ there is an immersed submanifold $N^k\subset M^n$ passing through $p$ such that for all $q\in N$, $T_q N=D_q$. If this is true then we say $D$ is a integrable at $p$. Otherwise it is non-intregrable.
Frobenius Integrability states that every involutive distribution is completely integrable, i.e. $M$ is foliated by integral manifolds. One way of phrasing involutivity is to require that any lie bracket of vector fields lying in $D$ stay in $D$. There is another version, which is the one that I prefer, using differential forms. Note that any $k$-distribution is cut out locally by $n-k$ independent 1-forms $\theta_1,\ldots,\theta_{n-k}$. Call $\Theta$ the ideal generated by these, then we say $\Theta$ is involutive if $d\Theta\subset \Theta$,i.e. it is a differential ideal.
Situation: This last version generalizes to arbitrary vector bundles (with connection) easily. Suppose $E$ is a rank $N>n$ vector bundle over $M^n$. Then I can specify any sub-vector-bundle $D\subset E$ by $$D_x:=\lbrace v\in E_x | \theta_1(v)=\ldots=\theta_{n-k}(v)=0\rbrace $$
for some collection of 1-forms, i.e. sections of the dual bundle $E^*$. I can extend the above definition of involutive distribution to this subbundle in the obvious way. Let me take this as a definition of integrable subbundle.
Question: If the geometric concept associated to an integrable subbundle of $TM$ is a foliation, what is the geometric concept associated to an integrable subbundle of $E$?
I am only beginning to dig into exterior differential systems, so any well articulated answer/exposition is appreciated.
EDIT: The differential one gets from a connection actually just lands in vector valued forms, i.e. the Twisted de Rham complex. So the complex one would like to get (which looks like a Koszul complex possibly) is not obtained in a canonical way with a connection. Other differential operators would be needed.