feat(sandbox-agents): Store session state in durableDir volume for sandbox agents using the python runtime.#2171
Draft
jmhbh wants to merge 9 commits into
Draft
Conversation
…bleDir volume
Python declarative substrate SandboxAgents now keep ADK session state in a sqlite DB inside the session
actor's durableDir volume. Go-runtime and BYO sandbox agents session state persistence is currently not implemented.
In addition, on config rollout old sessions remain on the existing actor instead of rolling over to a new actor based on the new golden snapshot.
Below are a list of the changes.
- One session ⇔ one actor: actor ids derive from the session alone and actors
resume under their birth template, so session state survives per-turn
suspend/resume and config rollouts; shape changes (image/command/env) apply
to new sessions only. The per-rollout orphan reaper is removed.
- Config reaches actors through a stable per-agent Secret plus Data-scope
suspends: a config rollout reuses the existing actor and picks up the new
config on its next cold-boot resume (~30s secret-cache bound).
- Session rows and tasks stay in postgres; the sandbox A2A transport now
creates the session row for headless (raw A2A) sessions, since the runtime
no longer does so as a side effect.
- New GET /api/sessions/{id}/events?source=sandbox reads events from the actor
(resume → fetch → suspend only if the read woke it, single-flighted), and
GET /api/sessions/{id} carries an events_source discriminator.
- Bump agent-substrate to v0.0.8; adapt to the ActorRef/atespace API, paginated
ListActors, and server-defaulted snapshot scopes.
Signed-off-by: JM Huibonhoa <jm.huibonhoa@solo.io>
Contributor
Author
|
WIP, still need to add support for the go runtime. |
…ble-dir # Conflicts: # go/core/pkg/sandboxbackend/substrate/agent_actor.go # go/core/pkg/sandboxbackend/substrate/agent_lifecycle.go # go/core/pkg/sandboxbackend/substrate/client.go # go/core/pkg/sandboxbackend/substrate/delete_actor.go # go/core/pkg/sandboxbackend/substrate/lifecycle_actortemplate.go # go/core/pkg/sandboxbackend/substrate/lifecycle_delete.go # go/core/pkg/sandboxbackend/substrate/lifecycle_delete_test.go # go/core/pkg/sandboxbackend/substrate/openclaw.go # go/core/pkg/sandboxbackend/substrate/openclaw_test.go # go/go.mod
Signed-off-by: JM Huibonhoa <jm.huibonhoa@solo.io>
Signed-off-by: JM Huibonhoa <jm.huibonhoa@solo.io>
Signed-off-by: JM Huibonhoa <jm.huibonhoa@solo.io>
Signed-off-by: JM Huibonhoa <jm.huibonhoa@solo.io>
Signed-off-by: JM Huibonhoa <jm.huibonhoa@solo.io>
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.
No description provided.