fix(sandbox): renew active turns on fast cadence - #6484
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Strix Security ReviewNo security issues found. Updated for Reviewed by Strix |
Contributor
Author
|
Post-merge provider proof is complete for merge
Each run also verified terminal-token cleanup, stop-claim delivery rejection, unknown-state non-renewal, and no wake after stop. Cleanup checks passed. The disposable sessions stopped. Sandbox rows archived. Open meters are zero. Disposable projects archived. Temporary credentials and PATs were removed or revoked. Deploy Dev run: https://github.com/kortix-ai/suna/actions/runs/32005154169 Current health proof:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The provider-neutral lifecycle renewal path ran only inside the five-minute project-maintenance sweep. A Daytona sandbox with a one-minute native timer renewed once and then stopped an exact active OpenCode turn before the next maintenance pass.
Change
activeTurnandactiveTurnsauthority.Contract
deadline_atand the provider-native lifecycle.deadline_at.Verification
bun test apps/api/src/projects/active-turn-renewal.test.ts: 6 pass, 0 fail.bun test --isolate --env-file=apps/api/scripts/test.env apps/api/src/projects/sandbox-reaper.test.ts: 94 pass, 0 fail.bun test --isolate --env-file=apps/api/scripts/test.env apps/api/src/__tests__/unit-leader-election.test.ts: 12 pass, 0 fail.pnpm --filter kortix-api typecheck: exit 0.pnpm test: exit 0; all core lanes passed in 27.9s.Dev proof after merge
Run the live provider harness with one-minute native timers against Platinum and Daytona. Require active survival, exact deadline renewal, unchanged passive deadline, post-deadline idle stop, stopped-renewal refusal, and fixture cleanup.