Question: What year did Tang and Tibet sign a treaty to fix the borders?

Is Until the Tibetan Empire's collapse in the 9th century, it was the Tang's major rival in dominating Inner Asia. a good answer to this question?
no