Bach in August

It’s hot, and I appreciate the coolness of this P&F in E major from WTCII.  The first thing that strikes me as I play through it is the presentation of sonata form, which I’ve given little thought to until now.  When did Bach start presenting music in what would become sonata form?  On July 31 I wrote about the forward-looking features of both the last Prelude and the Fugue of WTCI in B minor.  I missed the fact that Prelude No. 24 WTCI is written in two sections, with complete cadences and repeat signs, the first section ending in the dominant key (F# major), the second section beginning in F# minor (still the v, although minor) and ending appropriately back in the tonic of B minor.  This overall I-V-I quality, with definite markers in the center like cadences and repeat signs, marks the sonata form.  I’ve read that Bach can be considered the “father” of sonata form.  What didn’t this guy accomplish?