The knowledge comes from the Holy Spirit. The authority in all disputes belongs to the Church (Mt. 18:17, 1 Ti. 3:15). Yes, individuals are all fallible. The Church as a whole is not (Mt. 16:18).
I agree on your later post: "It is contained in the Holy Spirit, in Christ and in God".
Ridiculous reasoning. The final say is God's and God's alone.