TOSI rules generally apply to income that is assigned to non-active partners. If both parties are active in the business, TOSI wouldn't apply.
There's an excellent "decision tree" for TOSI on the Moodys Gartner site that you might find helpful: https://www.moodysgartner.com/wp-content/uploads/Moodys_Gartner_Tax_Law_Income-Sprinking-Flowchart.pdf?v1