What does it mean to "speak a foreign language"?

The COF( Common European Framework) defines the mastery of a foreign language like this:
5.1 General competences
5.1.1 declarative knowledge (savoir)
5.1.1.1 knowledge of the world
5.1.1.2 sociocultural knowledge
5.1.1.3 intercultural awareness
5.1.2 skills and know-how (savoir-faire)
5.1.2.1 practical skills and know-how
5.1.2.2 intercultural skills and know-how
5.1.3 existential competence (savoir-ĂȘtre)
5.1.4 ability to learn (savoir-apprendre)
5.1.4.1 language and communication awareness
5.1.4.2 general phonetic skills
5.1.4.3 study skills
5.1.4.3 heuristic skills

5.2 Communicative language competences
5.2.1 Linguistic competences
5.2.1.1 lexical competence
5.2.1.2 grammatical competence
5.2.1.3 semantic competence
5.2.1.4 phonological competence
5.2.1.5 orthographic competence
5.2.1.6 orthoepic competence

5.2.2 sociolinguistic competence
5.2.2.1 markers of social relations
5.2.2.2 politeness conventions
5.2.2.3 expressions of folk-wisdom
5.2.2.4 register differences
5.2.2.5 dialect and accent

5.2.3 pragmatic competences
5.2.3.1 discourse competence
5.2.3.2 functional competence
5.2.3.3 schematic design competence