mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #397] [MERGED] feat: persist source sandbox user metadata in published snapshot records #404
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#404
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/AgentENV/pull/397
Author: @guozy18
Created: 10/20/2026
Status: ✅ Merged
Merged: 10/20/2026
Merged by: @yingdi-shan
Base:
main← Head:sync/source-sandbox-metadata📝 Commits (1)
4dc7324feat: persist source sandbox user metadata in published snapshot records📊 Changes
9 files changed (+90 additions, -15 deletions)
View changed files
📝
crates/e2e-tests/tests/snapshot_oss_e2e_test.rs(+1 -0)📝
src/api/impls/sandbox.rs(+1 -0)📝
src/snapshot/backends/tests.rs(+7 -3)📝
src/snapshot/catalog.rs(+9 -3)📝
src/snapshot/types/snapshot.rs(+61 -7)📝
tests/integration/orchestrator.rs(+8 -2)📝
tests/integration/posix_startup_pack.rs(+1 -0)📝
tests/integration/snapshot.rs(+1 -0)📝
tests/integration/snapshot_attached_drive.rs(+1 -0)📄 Description
What
Persist the source sandbox user metadata in SnapshotSource::Sandbox as informational provenance.
Why
Published snapshots currently retain the source sandbox ID but lose its user metadata.
Related issue
N/A — synchronization of the existing implementation.
Scope and non-goals
Copy metadata at capture, persist it through the shared catalog, and keep source-ID filtering unchanged. Metadata does not affect launching or HTTP response models.
Design and behavior changes
The optional field defaults to None when reading legacy records and is omitted when absent. The upstream shared catalog replaces the source commit's separate POSIX/OSS changes. No standalone snapshot info tool is introduced.
Compatibility and operations
Validation
Validated on upstream main
949cec2plus this single commit, independently of the other synchronization PRs.Clippy and all 35 focused tests ran on Linux as a non-root user. The backward-compatible metadata serde regression is included. E2E targets were compile-checked; full KVM/OSS E2E and the full workspace test suite were not rerun for this isolated branch.
Risks and reviewer notes
Source metadata is persisted only as provenance. The original author, author date and complete commit message are preserved. Full KVM capture/restore E2E was not rerun for this isolated branch.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.