Skip to content

[A3S Cloud/A0] Define immutable MCP and Skill release contracts #1

Closed

Description

@ZhiXiao-Lin

Cloud gate

A0 — immutable MCP and Skill assets on the common release path.

Planning reference: https://github.com/A3S-Lab/Cloud/blob/e2a05b7f1f63486b2fda866b22aa84eea89aadb4/docs/development-plan.md

Problem

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.
  • A standalone Skill process or Runtime provider.
  • A second deployment path for hosted MCP services.

Activity

  1. added
    enhancement
    on Jul 18, 2026
  2. ZhiXiao-Lin commented on Jul 20, 2026

    @ZhiXiao-Lin
    ContributorAuthor

    2026-07-20 descriptor-contract audit

    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:

    • cargo fmt --all -- --check — passed
    • cargo test -p a3s-use-core --test release_descriptors --all-features --locked — 5 passed
    • cargo clippy -p a3s-use-core --all-targets --all-features --locked -- -D warnings — passed

    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:

    1. supported SDK consumers to independently canonicalize both fixtures and reproduce the published digests;
    2. 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;
    3. 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
    4. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions