The flowchart has two distinct versions to cover the rules discussions and updates from the designer. The new official rules are in the flowchart below, to be nice and simple for the profiteer.
This one is an alternative flowchart, which accentuates the difference between profiteer and boss. In this case, the Boss is considered part of both green and blue digging teams, while the Profiteer is only part of the single winning team. It's a subtle distinction, but it changes a few of the weirder cases in the flowchart.
This version is my personal preference, it should be considered a variant because it was not the final decision in the designer's poll thread as mentioned in the caption below.