As long as JFK-SFO does not not have the available space it doesn't matter that DCA-(JFK)-SFO has availability. This is what AA has been doing fairly extensively for the last few years. All you can do is watch the JFK-SFO segment for availability -- you will probably have to call as AA will not automatically move you up if A class opens up, in my experience.