Conversation
✱ Stainless preview buildsThis PR will update the Edit this comment to update it. It will appear in the SDK's changelogs. ✅ hypeman-typescript studio · code · diff
✅ hypeman-openapi studio · code · diff
✅ hypeman-go studio · code · diff
This comment is auto-generated by GitHub Actions and is automatically kept up to date as you push. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 14cff19. Configure here.

Summary
lib/autostandbypackageauto_standbypolicy through instance metadata and API surfacesTesting
go test -count=1 ./lib/autostandbygo test -count=1 -run "Test(ValidateUpdateInstanceRequest|CloneStoredMetadataForFork_DeepCopiesReferenceFields)$" ./lib/instancesgo test -count=1 -run "Test(CreateInstance_MapsAutoStandbyPolicy|UpdateInstance_MapsAutoStandbyPatch)$" ./cmd/api/apigo test -run "^$" ./cmd/apisudo -n env PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH HYPEMAN_RUN_AUTO_STANDBY_E2E=1 go test -count=1 -run ^TestAutoStandbyCloudHypervisorActiveInboundTCP$ ./lib/instancesondeft-kernel-devIntegration test coverage
The default-skipped Linux integration test exercised a real Cloud Hypervisor VM with networking enabled and a real conntrack-backed auto-standby controller.
It verified that:
Runningwhile that inbound TCP connection remains openStandbyNote
Medium Risk
Adds a new background controller that can automatically transition running VMs into
Standbybased on host conntrack activity and expands the instance create/update surfaces; this can affect VM availability if policy parsing/eligibility logic is wrong or conntrack access behaves unexpectedly on Linux hosts.Overview
Introduces Linux-only auto-standby: a new
lib/autostandbypackage classifies host conntrack TCP flows, enforces per-instance idle timers, and triggersStandbyInstancewhen inbound activity stays at zero past a configured timeout.Extends instance metadata and API/OAPI schema to persist and expose an
auto_standbypolicy on create/update/get, including validation/normalization and deep-copy handling in instance create/fork/update paths.Enables the controller from the API process on Linux (
startAutoStandbyController), and adds unit tests plus a default-skipped Linux E2E integration test exercising real conntrack-backed standby behavior.Reviewed by Cursor Bugbot for commit 14cff19. Bugbot is set up for automated code reviews on this repo. Configure here.