Total algebras and weak independence. I