Repository navigation
Conversation
Move Compose preparation, shared ROFS bridge bootstrap and service/process handles into the SDK while preserving the merged snapshot, ownership and command identity contracts. Forward managed runtime configuration through restore and fork without replaying fresh setup. Keep native IPv4 Compose networking and service-scoped model tunnel entries, and reconnect only owned network rules after restoration. Preserve original process identities and child-first thaw. Add migration regressions, a maintained example, component boundary documentation and helper/distribution CI checks. Signed-off-by: 月可 <hukeyang.hky@antgroup.com>
hky1999
force-pushed
the
hky1999/sdk-managed-compose
branch
from
October 28, 2026 14:59
d932540 to
61606ce
Compare
This was referenced Oct 28, 2026
This branch has not been deployed
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.
Harbor currently carries task semantics together with Docker preparation and process recovery plumbing. Move the reusable Docker/Compose lifecycle into the AKernel SDK so Harbor can retain its Environment adapter, model proxy and checkpoint trigger/aligned application state.
Review baseline
Reconstructed directly on
inclusionAI/AKernel:developat 5ded29d; current head 61606ce. The diff contains only the pending managed Compose feature. It retains the newly merged snapshot/lifecycle SDK, command ID/PID identity, conservative creation ownership, cancellation/rollback and fork cleanup contracts. No older snapshot implementation, metadata/lifetime or callback preview APIs are reintroduced. Core backend changes are limited to forwarding validatedextra_configthrough restore and fork.Changes to review
ComposeProject: frozen input preparation, automatic startup-image discovery, explicit start/build/pull/up boundaries, service lookup and JSON descriptors. Original user Dockerfiles and Compose bytes are not rewritten.DockerRuntimeandbuilder/image-bridge: metadata-only OCI validation/registration and the existing Sandboxd shared ROFS lower provider; each sandbox keeps its private managed upper. There is no second layer cache.ServiceHandle/ServiceProcessHandle: exec/transfers/service control and captured process identity. Restore attaches the original container/PID/start-time identity without replaying build/up/agent launch; unknown launch outcomes retain a recovery token. Trees thaw descendants before waiting ancestors to avoid Bash tool status 147.compose_checkpoint.pyexample, migration regressions, bridge Go CI and clean-distribution resource/import checks.Start with component boundaries and integration order, then review
_compose.py,_service_process.py,_docker_runtime.pyand the bridge helper.Dependencies and merge boundary
The file-backed upper profile depends on Sandboxd #83. After that merges, the AKernel consumer must pin the merged Sandboxd revision and qualify its ordinary build. AKernel #126 separately exposes the explicit Helm reflink profile. Reflink/durable sync, compatible same-mount storage and Docker 28 packet-socket flags remain operator prerequisites. This PR does not modify the Sandboxd gitlink, runtime release pins, production deployment or Coordinator. Existing Agent DX APIs carry the requests; no Compose-aware Agent DX API is added.
Harbor can consume this SDK source revision through its existing Environment/service adapters. Its delivered branch still pins the earlier prototype; updating that delivery pin and its document requires fresh isolated end-to-end qualification.
Validation on this revision
make sdk-check: 459 unit tests + 35 benchmark-driver tests, Ruff and mypy passed; existing upstream ownership/rollback/fork regressions retained.The earlier prototype passed real-Claude original-process C/R and separate-verifier execution on unchanged kv-live-surgery inputs; those results predate this current-develop migration and are not evidence that the new revision/bundle has passed E2E. One prototype checkpoint completed serialization but did not return within 300 seconds; later successful cycles did not determine the cause. Keep this Draft pending review and fresh isolated qualification.