Person X works in startup A. Because reasons he also gets employed in a more established company B. He contributes to A only sporadically and is a full time employee in B. Both are software companies.
X and B have a run of the mill non-compete clause in their contract. The clause prohibits direct or indirect competition. A and X have no such clauses.
Initially A and B are doing completely separate things, but after X has started working in B, B starts switching it's focus into something that is somewhat similar to A, but that aims for a completely different market.
Would the contract prohibit X working in A?
What if later on A also starts moving closer to A and targeting similar markets?