fix(vm): keep personal VMs visible in implicit team lists

AU
2mo ago
+158-30

Closes #7590

Summary

GET /api/vm now includes the caller's personal VMs when no team is selected or requested and billing resolution implicitly chooses a paid team. Explicit team-scoped requests stay team-only. Mixed-scope rows retain their owner and recorded billing-plan metadata, and the response counts only active VMs owned by the resolved billing team.

Testing

  • Regression split: 077dd03d84 / 2554eb1162, with the failing mixed-scope test committed before the fix.
  • Direct Bun 1.3.14 run: all 86 VM route tests pass; web typecheck and complexity pass.
  • Hosted web typecheck, production build, migrations, web tests, complexity, and guards pass on earlier pushed heads; the final head is running its fresh CI set.
  • Database-backed workflow coverage runs in the hosted database lane. This checkout has no database URL, so it was not executed locally.
  • This is an API/data-scope change, so a UI screenshot or video is not applicable.

Checklist

  • Closes the linked issue.
  • Explicit team scopes remain isolated.
  • Active VM count excludes personal rows from the resolved team quota.
  • Mixed rows use their recorded billing plan for free-access expiry, with legacy fallback.
  • Tagged app build and runtime dogfood pending fleet capacity.

Residual risk

The exact-head tagged macOS build remains pending controller admission. No UI E2E class covers this API-only behavior.