Like HP, I was thinking of a polyanhydide when I first read this, though water can break it back down to carboxylic acids again.
You might want to try using dicarboxylic acids that can't form stable cyclic anhydrides (for instance, I'd avoid butanedioic & pentanedioic acid since they can respectively form 5- & 6-membered anhydride rings). Otherwise, you'll have another unwanted side reaction going on. One time in Ochem, I was supposed to identify an unknown compound (pentanedioic acid) with IR & NMR spectra, but because it was in equilibrium with cyclic pentanedioic anhydride, I was getting pretty confused from the results.