Numfocus/ GSOC are grants, which Labs also provides. Those should probably not count as being affiliated with the company providing the grants.
Contractor work, if it’s the main source of income should definitely count. Most labs data scientists fall under this category. If it’s only a secondary source of income it may need a more precise guideline.
Ideally we can get unaffiliated people involved, but there’s also the risk of scrapping the bottom of the barrel if all the people deeply involved with the project are collaborating with labs.
Previous work should not count as affiliation, at least after some agreed upon time passed.