mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #419] [MERGED] fix(sandbox): hide source image references from guest metadata #421
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#421
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/419
Author: @guozy18
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/23/2026
Merged by: @yingdi-shan
Base:
main← Head:sync/hide-guest-image-ref📝 Commits (1)
f6d25ccfix(sandbox): hide image refs from guest metadata📊 Changes
1 file changed (+2 additions, -1 deletions)
View changed files
📝
src/orchestrator/service.rs(+2 -1)📄 Description
What
Use "unknown" for the guest-visible envID of an image-based cold start while retaining the image reference in host-side sandbox metadata.
Why
Cold starts previously copied the source image reference into Firecracker MMDS, exposing registry/repository details to the guest.
Related issue
N/A — focused correction of existing behavior.
Scope and non-goals
The cold-start SandboxLaunchConfig initialization.
Design and behavior changes
Set only the guest launch identity to "unknown". Host metadata keeps its existing source image reference; snapshot-based launch identity continues to use the snapshot ID.
Compatibility and operations
Cold-start guests now see envID="unknown" instead of the source image reference. Host-facing metadata, API schema, persistent formats, configuration and dependencies are unchanged. Ordinary code upgrade/revert.
Validation
This branch is based directly on upstream main
a97473band contains one feature commit with no unmerged PR dependencies.Rust checks ran on Linux as a non-root user. The temporary mock assertion was removed after validation and is not part of the commit. Full KVM/HTTP E2E was not run.
Risks and reviewer notes
The source change used a constructor; this port adapts it to the upstream struct initializer. The original author and author date are retained, with the original message followed by the existing co-author trailer for guozy18 covering the migration adaptation.
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.