feat(cli): expand fast_provision experiment to images + docker + sandbox

Builds on the existing PostHog `fast_provision` flag (already wired via
shared/feature-flags.ts). The `test` variant now bundles the full
provisioning-speed stack rather than images alone:

  - images:  pre-built DO marketplace images (cloud-side faster boot)
  - docker:  Docker CE host image on Hetzner/GCP (cloud-side faster boot)
  - sandbox: local agents run in a Docker container (local-side faster boot)

Users who explicitly pass --beta or --fast still take precedence and skip
the experiment bucket. Exposure events are still captured for both
variants so PostHog can compute conversion across the broader bundle.

Bumps CLI to 1.0.39.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ahmed Abushagur 2026-05-07 23:45:45 -07:00
parent 070be392f5
commit a5f831e9fb
2 changed files with 6 additions and 3 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@openrouter/spawn",
"version": "1.0.38",
"version": "1.0.39",
"type": "module",
"bin": {
"spawn": "cli.js"

View file

@ -969,12 +969,15 @@ async function main(): Promise<void> {
// fast_provision experiment: if the user did NOT pass --beta or --fast,
// bucket them on the PostHog `fast_provision` flag. The `test` variant
// turns on images by default; control behaves as before.
// turns on images + docker + sandbox by default; control behaves as before.
// - images: pre-built DO marketplace images (cloud-side faster boot)
// - docker: Docker CE host image on Hetzner/GCP (cloud-side faster boot)
// - sandbox: local agents run in a Docker container (local-side faster boot)
// Exposure is captured for both variants so PostHog can compute conversion.
if (!userOptedIntoBeta) {
const variant = getFeatureFlag("fast_provision", "control");
if (variant === "test") {
betaFeatures.push("images");
betaFeatures.push("images", "docker", "sandbox");
}
}