fix(sandbox): renew workspace credentials before reuse - #593
Conversation
Independent review: agent-app PR 593Conclusion: APPROVE. No blocking findings. Scope: read-only review of b17f12d against origin/main a9831d4 in /tmp/agent-app-workspace-runtime-env. Inspected the complete diff, repository AGENTS.md, architecture guidance, runtime environment tests, and these implementation paths:
Fresh creation resolves runtimeEnv once and merges its values over creation-only env before the combined size and payload gates. The public SDK contract delegates reserved-key rejection to the runtime and states that updates affect new children and profile references. Limits: this review inspected tests but did not run another suite alongside root-owned final-head signoff. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Expiring workspace tool credentials were resolved only when a sandbox was created. Retained workspaces could keep expired credentials; GTM renewed them in its own bootstrap, while Relationships still used creation-only configuration.
Add
SandboxRuntimeConfig.runtimeEnvso products define credential minting once. Agent-app supplies fresh values at creation and awaits the Sandbox SDK update before bootstrap on reuse, resume, and recovery. Renewal failure preserves the sandbox and prevents dispatch. Static configuration remains inenv; Sandbox owns reserved-key enforcement. Both scaffolds and the SDK peer floor require Sandbox 0.39.4.Validation against final head
b17f12d1233641f4252996d00d7a4386daa9154a: committed-source signoff passed on Node 24.18.0, including both randomized full test runs, typecheck, incident gates, build, generated projects, and knip. Verify PR run 34824933645 passed. The six new lifecycle regressions failed before implementation and pass afterward. Independent source review approved this head with no blocking findings.Production requires the matching Sandbox runtime before a consumer enables renewal. GTM and Relationships adoption and retained-workspace production proofs are separate delivery steps.