You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[A3S Cloud/A0] Define immutable MCP and Skill release contracts #1
Cloud needs immutable, verifiable descriptors for MCP and Skill releases. A hosted MCP may run as a Runtime Service, while a Skill is versioned input bound to an Agent release and must never become a standalone Runtime workload.
Scope
Define versioned MCP and Skill release descriptors with canonical bytes, digest, provenance, compatibility, and dependency references.
Define a headless MCP lifecycle and health/conformance contract suitable for a Runtime Service.
Define Skill content, integrity, capability, and binding metadata without executable orchestration state.
Reject mutable references when resolving an immutable release.
Publish minimal MCP and Skill fixtures for A0 cross-repository tests.
Document descriptor evolution and backwards-compatibility rules.
Acceptance criteria
Descriptor identity is derived from canonical content and is stable across supported SDKs.
The MCP fixture passes headless startup, health, request, shutdown, and restart tests.
The Skill fixture is bound as immutable Agent input and never creates its own Runtime unit.
Missing, incompatible, or digest-mismatched dependencies fail before deployment.
Descriptors and diagnostics contain no secret plaintext.
Non-goals
Cloud catalog, authorization, billing, or scheduling.
The immutable descriptor slice is implemented on main by #9 at b472068f. I audited the implementation, fixtures, documentation, merge provenance, and current main CI rather than opening a duplicate PR.
Evidence now present
McpReleaseDescriptor and SkillReleaseDescriptor accept only the exact closed v1 schemas (a3s.use.mcp-release.v1 and a3s.use.skill-release.v1). Unknown fields and enum variants fail closed.
Descriptor identity is SHA-256 over bounded OLPC canonical JSON. Input and canonical output are capped at 256 KiB; object ordering and whitespace do not change identity; set-like arrays must be sorted and unique.
Both schemas bind canonical semantic version, HTTPS source repository, exact commit SHA, admitted-manifest digest, builder/build-operation identities, artifact media type/digest/size, compatibility requirements, and exact dependency descriptor digests.
Mutable and orchestration references cannot enter either schema. Tests reject an artifact tag, a Skill runtime command, unsupported stdio transport, noncanonical digests/paths, and ambiguous dependencies.
ReleaseResolution::verify_resolution fails before deployment for absent/incompatible components and absent/version-mismatched/digest-mismatched dependencies with stable error codes.
MCP v1 declares only a digest-pinned OCI image plus standard Streamable HTTP protocol, port, endpoint, health, startup, and graceful-shutdown bounds.
Skill v1 declares a bundle digest, exact SKILL.md digest, sorted capabilities, and the sole agent-input binding. Its closed schema has no command, port, health, restart, environment, or Runtime-unit surface.
Decode diagnostics report location without echoing rejected values; the regression fixture injects a secret marker and proves it is absent from the error message. Validated descriptor fields themselves have no secret-value slot.
Canonical MCP and Skill JSON fixtures plus SHA-256 goldens are committed under crates/core/fixtures/releases/; .gitattributes forces LF so the bytes remain stable on Windows checkouts.
docs/release-descriptors.md, the README, and the architecture guide document canonical identity, field ownership, the lifecycle boundary, immutable resolution, stable errors, and the explicit schema-version evolution policy.
Fresh verification
Run from a clean checkout of b472068f03b6e6c8e9df965d4c1de79ef2dc5bfd:
The post-merge main CI run 29716373391 is fully green, including Ubuntu workspace test/Clippy, macOS platform tests, Windows core/platform tests, and Browser regressions.
Acceptance work that remains
This issue should stay open. The checked-in MCP fixture is a canonical descriptor fixture, not yet a runnable digest-pinned OCI conformance artifact. A0 still needs:
supported SDK consumers to independently canonicalize both fixtures and reproduce the published digests;
a real Linux Runtime Service test for the exact MCP artifact covering headless startup, declared health, standard initialize/request traffic, bounded shutdown, cleanup, and restart of the same descriptor/artifact digest;
a real Skill bundle consumer that verifies both digests, binds it as immutable Agent input, creates a new workload revision with rollback preservation on changes, and proves no standalone Runtime unit is created; and
the cross-repository Cloud deployment-path/certification evidence for those behaviors.
Accordingly, the descriptor definition, immutable resolution gate, descriptor fixtures, and evolution policy are complete; the runtime and Agent-binding acceptance criteria are not yet proven.
Activity
ZhiXiao-Lin commentedon Jul 20, 2026
2026-07-20 descriptor-contract audit
The immutable descriptor slice is implemented on
mainby #9 atb472068f. I audited the implementation, fixtures, documentation, merge provenance, and currentmainCI rather than opening a duplicate PR.Evidence now present
McpReleaseDescriptorandSkillReleaseDescriptoraccept only the exact closed v1 schemas (a3s.use.mcp-release.v1anda3s.use.skill-release.v1). Unknown fields and enum variants fail closed.ReleaseResolution::verify_resolutionfails before deployment for absent/incompatible components and absent/version-mismatched/digest-mismatched dependencies with stable error codes.SKILL.mddigest, sorted capabilities, and the soleagent-inputbinding. Its closed schema has no command, port, health, restart, environment, or Runtime-unit surface.crates/core/fixtures/releases/;.gitattributesforces LF so the bytes remain stable on Windows checkouts.docs/release-descriptors.md, the README, and the architecture guide document canonical identity, field ownership, the lifecycle boundary, immutable resolution, stable errors, and the explicit schema-version evolution policy.Fresh verification
Run from a clean checkout of
b472068f03b6e6c8e9df965d4c1de79ef2dc5bfd:cargo fmt --all -- --check— passedcargo test -p a3s-use-core --test release_descriptors --all-features --locked— 5 passedcargo clippy -p a3s-use-core --all-targets --all-features --locked -- -D warnings— passedThe post-merge
mainCI run 29716373391 is fully green, including Ubuntu workspace test/Clippy, macOS platform tests, Windows core/platform tests, and Browser regressions.Acceptance work that remains
This issue should stay open. The checked-in MCP fixture is a canonical descriptor fixture, not yet a runnable digest-pinned OCI conformance artifact. A0 still needs:
Accordingly, the descriptor definition, immutable resolution gate, descriptor fixtures, and evolution policy are complete; the runtime and Agent-binding acceptance criteria are not yet proven.