feat(xgoruntime): implement SPX runtime-provider source mode - #1742
Closed
joeykchen wants to merge 6 commits into
Closed
feat(xgoruntime): implement SPX runtime-provider source mode#1742joeykchen wants to merge 6 commits into
joeykchen wants to merge 6 commits into
Conversation
This was referenced Aug 18, 2026
Acquire pinned Engine and PCK assets for source mode, build a provenance-checked interpreter bridge, and package self-contained launchers. Add secure shared caches, project payloads, and process supervision while preserving legacy command paths.
Document the implemented source mode, pending published mode, trust boundaries, artifact reuse, and coordinated release sequence in concise Chinese and English proposals.
Snapshot portable configuration, constrain project and asset roots, and keep legacy packing behind an explicit compatibility policy. Align process supervision and launcher cancellation semantics across platforms.
joeykchen
force-pushed
the
feat/xgo-runtime-provider-spx
branch
from
August 20, 2026 11:21
c71e353 to
dc01d70
Compare
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.
Summary
This PR implements the SPX side of XGo runtime provider v1 described in #1741.
It intentionally completes source mode only. Published SPX module/bridge mode remains fail-closed until immutable bridge manifests and the coordinated release pipeline are available.
What changed
gox.modto the XGo1.8.0capability baseline and declareruntime v1 github.com/goplus/spx/v3/cmd/xgoruntime.CGO_ENABLED=1; compilation may reuse the Go build cache.Runtime and build behavior
ProjectDirandAssetDirroots plus a disposableSessionDir, without writing runtime state into the project.$GOPATH/binfrom runtime discovery; file names and existence alone never establish runtime identity.Cache and offline reuse
Engine, bridge, and project components are materialized in separate content-addressed namespaces. Every cache hit is revalidated against manifest metadata, file type, size, and SHA-256. Damaged entries are repaired under an exclusive lease, and atomic publication prevents concurrent processes from observing partial state.
A built launcher contains its complete payload, so its first run with an empty cache requires neither the Go/XGo/SPX toolchain nor a network connection. Published Engine/PCK acquisition is supported independently of published SPX bridge mode.
Verification
Added coverage for runtime-manifest pinning and acquisition, offline/cache-hit behavior, same-size tampering, concurrent materialization and repair, strict payload/archive parsing, project allowlists, filesystem roots, process supervision, provider request validation, source provenance, and launcher execution.
The full Go test suite passes in a temporary workspace containing the matching companion
goplus/modcheckout. Focused runtime, payload, project, release, launcher, command, pack, and engine suites also pass independently where they do not require the unreleased protocol module.Dependencies and follow-ups
Part of #1741. This PR must not close the proposal while published mode and coordinated release remain pending.