Skip to content

AgentSuite Artifact Specification ​

Status: Draft Version: 1.0.0-draftLast updated: October 14, 2026

Abstract ​

AgentSuite is a portable, content-addressed definition of one or more related agents and the exact tool providers from which their runnable sandboxes are derived. An AgentSuite is distributed as an artifact conforming to the OCI Image Format Specification. Each runnable agent and platform has an exact composition manifest and a pinned build profile. A producer combines those records by file composition to create an Agent Sandbox Image.

This specification defines the OCI envelope, content layout, closed JSON schemas, canonical identities, tool provider bundle model, sandbox-image binding, validation rules, and conformance classes. It does not define session history, checkpoints, mutable memory, credentials, or a new registry protocol.

Conventions ​

The key words MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT, SHOULD, SHOULD NOT, RECOMMENDED, NOT RECOMMENDED, MAY, and OPTIONAL are to be interpreted as described by BCP 14 when, and only when, they appear in all capitals.

Unless stated otherwise:

  • a digest is sha256: followed by 64 lowercase hexadecimal characters;
  • a document is UTF-8 JSON;
  • an identifier matches ^[a-z0-9][a-z0-9._-]{0,127}$;
  • a platform is exactly linux/amd64 or linux/arm64;
  • a path is relative, slash-separated, clean, and contains no backslash, empty segment, . segment, or .. segment;
  • a consumer operates offline after all referenced OCI blobs are present.

1. Format and identity ​

The artifact's scope, envelope, content graph and identity rules are grouped below.

1.1 Scope ​

This draft specifies:

  • an AgentSuite definition artifact carried by an OCI image manifest;
  • one strict, closed content graph containing agents, tool providers, compositions, and build profiles;
  • bundled stdio MCP providers statically installed into an agent sandbox;
  • remote Streamable HTTP tool provider authoring and cataloging without agent composition or runtime binding;
  • portable delegated-user authorization requirements on a callable Tool, without packaging a person's credential, consent state, or Connection;
  • optional, agent-bound, runtime-neutral authored evaluation cases;
  • exact Linux platform selection;
  • pinned runtime-base and harness images;
  • deterministic, network-free Agent Sandbox Image construction;
  • an Agent binding or exact ToolProvider composition embedded in each derived sandbox image;
  • suite, sandbox-image, and runtime conformance classes.

1.1.1 Stability boundaries and compatibility ​

This specification remains 1.0.0-draft. The table defines the scope of the intended wire-1.0.0 stability promise, not a declaration that stable documents, dual readers or runtime support have shipped. “Stable core” below means that planned promise; it does not make the current draft immutable. Optional fields are not experimental unless listed as such.

Paths below are document-relative, prefixed by the document type; [] means an array item. A whole-document row covers every declared field and nested record, subject only to the experimental exceptions listed below. It does not permit unknown fields. The ten manifest families are:

Stable-core familyField scopeReference schema or normative definition
SuiteSuite, including Suite.toolProviderCatalog, content references and derived Suite.capabilitiessuite.schema.json
AgentAgent, except Agent.model.capabilities; includes the exact-model branch and embedded Agent.policy referenceagent.schema.json
ToolProvider catalogToolProviderCatalog, including ToolProviderCatalog.toolProviders[]ToolProvider catalog; no standalone reference schema
ToolProviderToolProvider, including embedded ToolProvider.tools[], variants and dependenciestool-provider.schema.json
Agent compositionCompositioncomposition.schema.json
ToolProvider compositionToolProviderCompositiontool-provider-composition.schema.json
Build profileBuildProfile, except BuildProfile.executionbuild-profile.schema.json
Runtime profileRuntimeProfile, including RuntimeProfile.configurationABIruntime-profile.schema.json
Evaluation indexEvaluationIndexeval-index.schema.json
Evaluation caseEvaluationCase, including authored assertionseval-case.schema.json

Tools and Agent.policy are embedded fields, not additional manifest families. Runtime-profile metadata pins requirements; RuntimeProfile.configurationABI is an opaque consumer-owned identifier, not the AgentKit mapping below. Opaque configuration contents and actual implementation support remain consumer-owned.

Experimental boundaryReference schemaExisting opt-in and profile selectors
Agent.model.capabilities and all its fieldsagent.schema.json → inference.schema.jsonCapability-based branch selected by model.capabilities, with model.capabilities.api = "openai-chat-completions-v1"; see §6.1
BuildProfile.execution and all its fieldsbuild-profile.schema.json → execution.schema.jsonImage-serving record selected by execution, with execution.kind = "http-v1" and execution.protocol = "openai-chat-v1"; see §6.2
AgentKit mounted configuration mapping, BuildProfile.execution.configurationexecution.schema.json, configuration propertyExplicit execution.configuration = "agentkit-v0-mounted-v1"; a narrower experimental adapter ABI within the experimental execution record

These are existing document branches and profile selectors, not new instance flags. Their existing shape and semantic requirements, including presence and cross-field checks in §1.5.3, still apply. Selecting an experimental record does not select a member's runtime, qualify a model or establish execution support; see §6.

A separately selected critical kmx.flow.v1alpha1 extension and its independent coordination/flow.json payload form the additional experimental boundary in §6.3. Default draft readers remain strict; this carve-out does not change the frozen core grammar or unknown-critical refusal.

The stable-core promise includes closed field sets, required/optional/null distinctions and semantics, paths, descriptors, exact references, supported platforms, extension criticality, graph closure, JCS/file/variant digests, OCI envelope rules and the normative sandbox-binding requirements. The builder-owned sandbox-binding reference schema remains externally maintained; that ownership does not remove the normative requirements in this specification.

Portable evidence and standalone policies retain their independent contracts: evidence uses schemaVersion: "1.0.0", with eval-evidence.schema.json; policies use agentsuite.policy/v1 or agentsuite.policy/v2, with their existing digest framing and normative policy definitions. The policy-v2 reference schemas are policy-v2.schema.json and administrative-policy-v2.schema.json. The stability boundary does not rename these contracts or imply authenticated evidence, policy enforcement or portable execution.

Compatibility policy for wire 1.0.0. Revisions MUST preserve the meaning and identity of existing stable documents. Experimental revisions MUST NOT silently change stable fields, canonical identity rules or refusal behavior. Breaking stable semantics require explicit format/media-version review, not an experimental label. Deferred features remain refused; status labels do not add ad-hoc flags to closed documents.

A future optional field is not automatically compatible with an old closed reader: §1.5.3 already requires unknown-property refusal. Producers MUST select a contract and reader that support the fields they emit; optional means omissible under that contract, not ignorable by older readers. Removing an unknown field or normalizing received bytes is not a compatibility mechanism: it changes the artifact and its identity.

Under the stable policy, a manifest graph MUST NOT mix 1.0.0-draft and 1.0.0 manifest versions. This states the migration policy; it neither adds stable-version acceptance nor changes current draft acceptance. Evidence's own version and standalone policy versions are independent of that graph rule. Reader implementation and migration verification remain separate release gates.

Wire versions, Go module releases and schema namespaces are independent, as specified in §1.5.4. Go API and semantic-diff API/report compatibility remain on the module-release axis, outside the wire-1.0.0 promise. These status labels do not change accepted document shapes, literals, canonicalization, digests or producer defaults.

1.2 Artifact model ​

An AgentSuite Artifact is an immutable definition. It is not directly runnable.

An Agent Sandbox Image is a runnable OCI image derived for exactly one:

  • AgentSuite manifest digest;
  • agent identifier;
  • platform;
  • build profile;
  • composition manifest.

A tool provider may be referenced by several agents. Each derived Agent Sandbox Image materializes that provider's exact platform bundle independently. Registry deduplication MAY avoid storing identical blobs repeatedly, but reuse does not change the image-local closure.

1.3 Content references and descriptors ​

A content reference is a suite-local pointer to another file in the same content layout. It pairs the enclosing object's own selector fields (for example id, version, agent, or platform) with two fields describing the pointed-to file:

  • path, the file's location relative to the content root;
  • descriptor, a nested, closed, OCI-compatible content descriptor identifying the exact referenced bytes.

A descriptor is a closed object:

FieldRequirement
mediaTypeREQUIRED. Nonempty string identifying the referenced content's format.
digestREQUIRED. The digest of the referenced bytes, computed as described below.
sizeREQUIRED. The byte length of the same bytes the digest covers. A present size: 0 is a legitimate empty-content descriptor; an omitted size is invalid and MUST be rejected, since it would otherwise be indistinguishable from size: 0 under typed decoding.
annotationsOPTIONAL. A string-to-string map of descriptive metadata about the referenced content.

digest and size always describe the exact same bytes:

  • for a content reference whose referenced file is a normative AgentSuite JSON document (agent, tool provider, tool provider catalog, composition, tool provider composition, build profile, runtime profile, evaluation index, evaluation case and authored policy manifests), digest and size describe the RFC 8785 JCS canonical representation of that document, and the referenced file itself MUST be stored on disk as those exact canonical bytes: a producer MUST write the canonical serialization, not merely compute digest/size from it while storing a differently formatted (for example pretty-printed, reordered, or otherwise re-whitespaced) but semantically equivalent document. A consumer validating this reference MUST reject a stored document whose bytes are not already identical to its own RFC 8785 JCS canonical re-serialization, even when that re-serialization would produce the same digest and size;
  • for a content reference whose referenced file is not canonicalized JSON (agent instructions, and a Tool's inputSchema/outputSchema), digest and size describe the file's exact literal bytes, and the file is stored and validated against those literal bytes directly; no canonical re-serialization applies.

A descriptor's mediaType is not a free-form label: specific references require an exact value, and a consumer MUST reject any other value even when digest and size are otherwise correct:

  • an agent's instructions descriptor mediaType MUST be exactly text/markdown; charset=utf-8;
  • a Tool's inputSchema and outputSchema descriptor mediaType MUST be exactly application/schema+json.

annotations, when present, follow OCI's annotation rules: keys and values are both strings, empty string values are permitted, and unknown or forward-looking keys MUST be preserved rather than silently dropped or rewritten. Custom keys SHOULD use reverse-domain names; implementations MUST NOT invent new keys under the reserved org.opencontainers.* namespace. Annotations are descriptive metadata about the referenced content, not an authoritative replacement for path, logical identity, platform selection, mediaType, or any other normative field; a title is not a locator.

Only true content-addressable file references use this nested descriptor shape. Purely computed or self-describing identities, such as a variantDigest, a composition's manifestDigest/variantDigest, a dependency's variantDigest, an inventory entry's digest, and an extension's optional digest, remain plain scalar digest strings: they do not name a separate referenced file with its own media type and size, so wrapping them in a descriptor would not add meaning.

1.4 OCI envelope ​

1.4.1 Media types ​

ObjectMedia type
Artifact typeapplication/vnd.agentsuite.suite.v1
Empty configapplication/vnd.oci.empty.v1+json
Content layerapplication/vnd.agentsuite.content.v1.tar+gzip
Suite manifestapplication/vnd.agentsuite.manifest.v1+json
Agent manifestapplication/vnd.agentsuite.agent.v1+json
Filesystem policy v1application/vnd.agentsuite.policy.v1+json
Network policy v2application/vnd.agentsuite.policy.v2+json
Evaluation indexapplication/vnd.agentsuite.eval.index.v1+json
Evaluation caseapplication/vnd.agentsuite.eval.case.v1+json
ToolProvider catalogapplication/vnd.agentsuite.tool.provider.catalog.v1+json
ToolProvider manifestapplication/vnd.agentsuite.tool.provider.v1+json
Composition manifestapplication/vnd.agentsuite.composition.v1+json
Runtime profileapplication/vnd.agentsuite.runtime.profile.v1+json
ToolProvider compositionapplication/vnd.agentsuite.tool.provider.composition.v1+json
Build profileapplication/vnd.agentsuite.build.profile.v1+json
Agent sandbox bindingapplication/vnd.agentsuite.sandbox.binding.v1+json

1.4.2 OCI image layout ​

An on-disk form conforming to the OCI Image Layout Specification MUST contain:

text
.
├── oci-layout
├── index.json
└── blobs/
    └── sha256/
        ├── <manifest-hex>
        ├── 44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
        └── <content-layer-hex>

The blob filenames are the lowercase hexadecimal portions of their SHA-256 digests, without the sha256: algorithm prefix. Blob filenames do not identify their semantic role; descriptors establish that role.

The layout metadata (oci-layout and index.json) and every referenced blob MUST be regular filesystem files, not symlinks, FIFOs, devices or sockets. The blobs/ and blobs/sha256/ entries MUST be directories, not symlinks or special files. Loaders MUST refuse non-regular file entries before opening them and MUST NOT follow a final file symlink. These envelope rules do not change the content layer's separately defined symlink rules. A caller-selected alias of the layout root directory may still resolve normally.

The descriptor graph is:

text
index.json
└── AgentSuite manifest descriptor
    └── blobs/sha256/<manifest-hex>
        ├── config descriptor
        │   └── blobs/sha256/44136fa...caaff8a
        │       └── {}
        └── content-layer descriptor
            └── blobs/sha256/<content-layer-hex>
                └── AgentSuite tar+gzip content

oci-layout.imageLayoutVersion MUST be 1.0.0.

index.json MUST be an OCI image index with exactly one descriptor selecting the AgentSuite manifest. The descriptor media type MUST be application/vnd.oci.image.manifest.v1+json. Its artifactType, when present, MUST equal the AgentSuite artifact type.

The selected OCI manifest:

  • MUST have schemaVersion: 2;
  • MUST have the AgentSuite artifact type;
  • MUST contain exactly one OCI empty config descriptor;
  • MUST contain exactly one AgentSuite content layer;
  • MUST NOT use subject to claim that a runnable image is authentic or bound to this suite.

Every descriptor size and digest MUST match the referenced regular blob. Every blob referenced by index.json, the selected manifest, or a normative AgentSuite descriptor MUST be present in the image layout. AgentSuite image layouts are self-contained and MUST NOT rely on an external blob store to fulfill a missing referenced blob. Descriptor urls MUST be absent. Descriptor data, when present, MUST decode to the exact bytes of the referenced local blob and does not replace that blob.

The single-layer rule is intentional for this draft: it gives a suite one self-contained validation boundary. Later revisions may profile multiple content-addressed layers for cross-suite deduplication without changing the logical manifests.

1.4.3 Empty config ​

Following the OCI artifact and empty-descriptor guidance, the OCI manifest config descriptor MUST use:

text
application/vnd.oci.empty.v1+json

It MUST reference a blob containing exactly these two bytes:

json
{}

The descriptor therefore has:

text
digest: sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
size: 2

agentsuite.json is the only normative source for the suite name, agents, platforms, capabilities, extensions, and content graph. Producers MUST NOT duplicate those fields into the config blob.

OCI annotations MAY provide non-authoritative discovery hints. A consumer MUST NOT treat annotations as validated AgentSuite metadata and MUST validate agentsuite.json before acting on them.

The OCI layer descriptor commits to the exact compressed content blob. Logical AgentSuite identity comes from the JCS-digested graph rooted at agentsuite.json, rather than from a second config document or a digest of tar serialization details.

1.5 Content layer ​

1.5.1 Logical layout ​

text
.
├── agentsuite.json
├── agents/
│   └── <agent>.json
├── instructions/
│   └── <agent>.md
├── policies/
│   └── <agent>.json
├── evals/
│   └── <agent>/
│       ├── index.json
│       └── cases/
│           └── <case-id>.json
├── tool-providers/
│   ├── catalog.json
│   └── <provider>/
│       └── <version>/
│           ├── tool-provider.json
│           └── <platform>/
│               └── ...
├── compositions/
│   └── <agent>-<os>-<architecture>.json
├── tool-provider-compositions/
│   └── <provider>-<os>-<architecture>.json
├── build-profiles/
│   └── <profile>.json
├── runtime-profiles/
│   └── <profile>.json
└── metadata/
    └── ...

Paths stored in manifests MUST be interpreted from the content root. Consumers MUST NOT resolve host paths, environment-variable substitutions, or URLs while validating content.

1.5.2 Archive safety ​

A conforming validator MUST reject:

  • absolute, non-clean, backslash-containing, or traversal paths;
  • duplicate paths and Unicode case-folding collisions;
  • a gzip modification time other than zero;
  • tar entries whose modification time is not the Unix epoch or whose access or change time is set;
  • device nodes, FIFOs, sockets, and unknown tar entry types;
  • set-id or sticky bits;
  • group- or world-writable regular files;
  • symlinks whose lexical target escapes the content root;
  • hardlinks to an absent, later, or non-regular entry;
  • content exceeding implementation-declared limits.

The reference validator limits JSON documents to 4 MiB, JSON nesting to 100 levels, JSON object membership to 1,024 members per object and 100,000 per document, content entries to 100,000, and expanded regular-file content to 4 GiB. OCI indexes contain at most 1,000 descriptors referencing at most 1 GiB in aggregate. It retains at most 256 MiB of JSON metadata while validating an artifact.

1.5.3 JSON profile ​

All normative JSON documents:

  • MUST be UTF-8;
  • MUST contain one JSON value followed only by whitespace;
  • MUST reject duplicate object names;
  • MUST reject unknown properties;
  • MUST conform to JSON Schema draft 2020-12;
  • MUST NOT contain non-finite numbers;
  • SHOULD avoid numbers where an exact string or integer is possible.

Machine-readable schemas are published alongside this specification.

Schema validation is necessary but not sufficient for conformance: the semantic rules also apply. For experimental inference and execution records, all required fields MUST be explicit, including false streaming, toolCalling and input secret values, and empty inputs arrays. Output tokens MUST NOT exceed context tokens; input names and environment destinations MUST each be unique. These cross-field rules require semantic validation after schema validation (standard JSON Schema cannot compare sibling numbers or enforce uniqueness by a property). Reserved input environments and non-normalized health paths are refused by both.

1.5.4 Schema identity and contract selection ​

Schema identity is separate from content identity and wire-format versions. Suite documents use schemaVersion: "1.0.0-draft", evidence uses schemaVersion: "1.0.0", and authored policies use version: "agentsuite.policy/v1" or "agentsuite.policy/v2". A schema's $schema selects its JSON Schema dialect. Media types identify document families and major contracts; none of these values selects a release-specific schema bundle. Schema-ID changes alone do not change these values, instance bytes, or canonical digests. Closed AgentSuite documents do not gain instance $schema or apiVersion fields.

Contract selection and resolution. Conforming AgentSuite validation, including schema compilation, MUST NOT fetch schemas or meta-schemas over the network. Schema-based validation MUST use a complete, trusted bundle selected out of band and bundled or preloaded with its declared dialect resources. References MUST resolve within that selected contract; unresolved references and conflicting resources for one ID MUST fail closed. Equivalent handwritten validation is permitted; a runtime JSON Schema engine is not required. Registry and editor callers SHOULD report the selected release. These caller diagnostics do not require a new Go or TypeScript API. See Suite validator conformance for the other offline validation requirements.

Minor-scoped namespace. The target schema IDs are https://suite.agent-primitives.dev/schema/v0.N/<filename>.schema.json, where N is the minor release number, not the wire-format version. Each minor has a complete bundle with sibling-relative references; policy filenames remain policy-v2.schema.json and administrative-policy-v2.schema.json. A published ID MUST identify immutable bytes. Within this namespace, patch releases MUST retain their minor's entire schema inventory and bytes, including IDs; any schema change requires a new minor. Wire-format versions remain independent of schema IDs and module tags; breaking wire semantics require separate format/media-version review.

Drafts and transition. The first minor-scoped bundle shipped in v0.5.0 with frozen /schema/v0.5/ IDs. The first namespace move MUST ship in a minor release. The v0.6.0 release froze https://suite.agent-primitives.dev/schema/v0.6/<filename>.schema.json IDs for all 15 reference schemas, including the experimental flow schema. Its canonical URLs were published through release assets, the reviewed catalog and site deployment. Outside release preparation, main uses unstable https://suite.agent-primitives.dev/schema/draft/<filename>.schema.json IDs, which are not immutable contracts and MUST NOT enter the release catalog. The reviewed minor-release commit rewrites draft IDs to its minor namespace; main returns to draft IDs before further schema development. CI MUST reject changes to bytes identified by a catalogued ID and patch bundles differing from their minor's inventory or bytes. Publication and these guards must be in place before the namespace move.

Historical bundles MUST remain unchanged. Legacy IDs reused across releases are ambiguous without an explicit release selection: use the selected old release's original bytes in a separate registry, not a mixed-contract registry or global old-to-latest alias. The hosted kaimahi.dev v0.1.0 schemas MUST retain their original bytes and MUST NOT redirect to a newer contract. See schema selection and current downloads and the release policy for migration and publication.

1.6 Identity ​

1.6.1 Canonical JSON ​

Manifest identities use the RFC 8785 JSON Canonicalization Scheme (JCS):

  1. parse with the strict JSON profile;
  2. canonicalize the parsed value with JCS;
  3. compute SHA-256 over the canonical UTF-8 bytes;
  4. encode as lowercase sha256:<hex>.

Whitespace and object member order therefore do not change a document's identity. Duplicate names are rejected before canonicalization.

1.6.2 Files ​

A regular file digest is SHA-256 over its exact bytes. An inventory records type, mode, numeric owner, size, digest or link target, and component.

For loose-directory inputs, canonical content metadata MUST NOT be inferred from host permission bits. Regular files default to mode 0644 (non-executable), directories to 0755 with size zero, and supported symbolic links to 0777. A ToolProvider variant's explicit files inventory supplies the canonical mode for each declared payload entry, including executable bits. The declaration's mode MUST be safe under the existing inventory rules; conflicting declarations for one content path MUST refuse. Host executable bits alone MUST NOT promote a loose file to executable content. Consumers packaging loose inputs MUST use these defaults and declarations rather than infer tar modes from the host filesystem.

These rules do not change archived content: an OCI content layer's tar modes remain authoritative and MUST match its declared inventory exactly. Validators MUST NOT normalize archived modes to the loose-directory defaults. Existing artifact bytes, OCI identities, JCS document identities and evidence subjects remain unchanged. Rebuilding loose input may produce a new artifact; it does not update or re-sign a previously published one.

Host access safety is a separate check, not identity metadata. Unix loose input MUST refuse group- or world-writable regular files and directories, including the selected root, and any setid or sticky modes. Windows loose input requires verifiable owner-only access: the root must have a protected DACL, every file and directory must be owned by the current user, and all permitted grants must name that owner. Child owner-only inheritance is allowed; broad explicit or inherited grants, unsupported ACLs/filesystems and reparse-backed content MUST refuse. No permission bypass or automatic ACL repair is implied. Platforms that are neither Unix nor Windows MUST refuse loose input with an unsupported-platform error until their security semantics are explicitly supported. See directory identity migration for the v0.6.0 reader boundary and consumer digest comparisons.

1.6.3 ToolProvider variants ​

To compute variantDigest, take the complete variant object as represented in the tool provider manifest, replace only the value of its variantDigest member with the empty string, canonicalize with JCS, and hash the canonical bytes. This identity commits to platform, install root, entrypoint, runtime requirements, file inventory, dependencies, SBOM, provenance descriptors, and the presence of optional members.

1.6.4 Compositions ​

An agent composition resolves:

text
agent + platform + optional runtime profile + build profile + zero or more tool providers

A ToolProvider composition resolves:

text
tool provider manifest + platform variant + build profile

The digest in a suite compositions reference is the JCS digest of the complete composition manifest. The manifest is an exact, resolved result, not a version constraint or resolver input. Runtime profiles have their own canonical content descriptors in the suite root. Changing any profile changes the suite root and packaged OCI manifest identity S; selecting an already packaged profile MUST NOT repackage S. One suite may require several images.

The digest in a suite toolProviderCompositions reference is the JCS digest of the complete ToolProvider composition manifest.

1.7 Suite manifest ​

agentsuite.json is the graph root. It contains:

  • suite name;
  • one or more descriptor-bound agent references;
  • one descriptor-bound tool provider catalog (toolProviderCatalog);
  • one or more per-agent, per-platform compositions;
  • zero or more per-provider, per-platform ToolProvider compositions (toolProviderCompositions);
  • one or more descriptor-bound build profiles;
  • optional runtimeProfiles, a nonempty array of descriptor-bound ManifestRef objects (id, path, descriptor, optional version);
  • capabilities derived from tool provider declarations;
  • optional non-critical extensions.

Every reference MUST resolve within the same content layer and MUST match the referenced document's canonical digest, size, and identity.

capabilities MUST exactly equal the sorted, duplicate-free capabilities derived from tool provider declarations:

  • bundled variants imply bundled-stdio-mcp.

Unknown critical extensions MUST be rejected. Non-critical extensions MAY be retained or ignored.

1.8 Distribution ​

Registries are used through OCI Distribution Specification v1.1.1 operations. Consumers MUST support digest pulls. Producers SHOULD push all blobs before publishing the referencing manifest.

Tags are discovery names only. A deployment, composition, attestation, or sandbox binding that requires immutable identity MUST use a digest.

Clients MUST verify every received descriptor before parsing or extracting its content. Registry transport security and authentication are deployment concerns; credentials are never AgentSuite content.

2. Agents and tools ​

Agent and ToolProvider definitions lead into composition, profiles and sandbox-image construction.

2.1 Tool terminology ​

The hierarchy is AgentSuite → ToolProvider → Tool:

  • A ToolProvider is the versioned contract and its bundled implementations or remote declaration. It is the unit of cataloging, variant selection, composition, sandbox construction, and runtime binding.
  • A Tool is one named, model-callable function with input/output schemas and declared effects. For MCP providers, this is an MCP tool, not the server that exposes it.
  • A ToolProvider variant is a platform-specific filesystem bundle. A ToolProvider composition selects exact build inputs for a ToolProvider Sandbox Image. These names do not include a protocol name.

The terminology is protocol-neutral. This draft's executable contract supports MCP only; CLI binaries are implementation details behind an MCP adapter. Naming a provider does not imply that its implementation is a network server or that it has already been deployed. An inference provider is a separate concept.

2.2 Agents ​

For capability-based inference requirements, see Capability-based inference.

An agent manifest defines:

  • a stable identifier and optional description;
  • a descriptor-bound instructions reference;
  • model protocol and model identifier;
  • environment names for endpoints and secret references, never values;
  • exact tool provider requirements (toolProviders);
  • bounded references to other suite agents;
  • an optional descriptor-bound evaluation index reference (evals);
  • an optional descriptor-bound authored policy reference (policy);
  • optional extensions.

Every tool provider requirement MUST include exact id, semantic version, and executionMode. Version ranges and floating tags are invalid in a packaged suite.

This draft defines one execution mode:

ValueMeaning
shared-sandboxThe tool provider implementation is bundled into the Agent Sandbox Image and executes in the same sandbox as the agent harness. The provider and harness may be separate processes, but no isolation or security boundary separates them.

The executionMode value MUST be shared-sandbox. Other values are invalid in this draft. Later specification revisions MAY define additional execution modes; implementations of this draft MUST NOT infer or accept them.

For every agent, the suite MUST contain at least one composition, including an empty composition for an agent that uses no tool providers. This makes the target platform and build profile explicit.

2.2.1 Agent invocation relationships ​

The optional invokes element declares which other agents an agent is permitted to invoke. It is an array of invocation relationship objects:

FieldRequirement
agentREQUIRED. Exact identifier of the target agent. The target MUST be another agent in the same suite.
maxConcurrentREQUIRED. Positive integer limiting concurrent invocations of this target by the declaring agent.
maxDepthREQUIRED. Positive integer limiting the invocation chain initiated through this edge. The directly invoked target is depth 1.

Each target agent MUST occur at most once in an agent's invokes array. Invocation relationships form a closed directed graph. An edge grants permission only from the declaring source agent to the named target:

  • it does not grant a reverse edge;
  • it does not grant transitive permission to other agents;
  • an omitted or empty invokes array grants no permission to invoke another suite agent.

Runtimes MUST reject an invocation that has no declared edge or exceeds either declared bound. Coordination protocol and scheduling policy within those bounds are outside this draft.

For example, this agent-manifest fragment permits coordinator to invoke writer and reviewer:

json
{
  "id": "coordinator",
  "invokes": [
    {
      "agent": "writer",
      "maxConcurrent": 1,
      "maxDepth": 1
    },
    {
      "agent": "reviewer",
      "maxConcurrent": 1,
      "maxDepth": 1
    }
  ]
}

The writer and reviewer manifests have empty invokes arrays. Invocation permission is directional: the coordinator's edges do not grant either worker permission to invoke the coordinator or each other.

The complete conformant example is checked in at testdata/coordinator-workers/.

2.3 Tool providers and tools ​

A ToolProvider is an immutable, versioned contract exposing one or more tools, with bundled platform variants, a remote declaration, or both. It is not merely an executable filename, one callable tool, or an installed runtime process.

A tool provider manifest defines:

FieldMeaning
idStable suite-local tool provider identifier.
versionExact semantic version of the provider contract and execution definition.
retainedOptional explicit true marker permitting a ToolProvider with no inward reference to remain in the catalog.
protocolProtocol exposed by the provider; mcp in this draft.
revisionExplicit protocol revision.
toolsComplete set of named, model-callable tools authorized by the provider contract.
variantsOne or more bundled, platform-specific implementations for shared-sandbox execution.
remoteA remote Streamable HTTP declaration containing references and connection behavior, but no endpoint or credential values.
extensionsOptional non-critical extension records.

At least one of variants or remote MUST be present. A remotely callable ToolProvider MAY also contain variants used to construct its deployable ToolProvider Sandbox Image. When present, variants MUST contain at least one implementation. The combination of id and version names the provider contract; the JCS digest of the complete manifest identifies its exact immutable definition. Two manifests with the same id and version but different digests are conflicting definitions and MUST NOT coexist in one suite.

The provider contract and bundled variants serve different purposes:

  • tools defines what the model is authorized to discover and call;
  • the selected variant defines the exact platform implementation available to the harness;
  • the remote declaration defines immutable connection requirements without resolving deployment values;
  • a composition binds an agent requirement to the exact manifest and one exact platform implementation.

The complete machine-readable shape is tool-provider.schema.json.

2.3.1 ToolProvider catalog ​

The tool provider catalog is the closed, suite-level index of available provider manifests. Each entry MUST bind one exact provider identifier and semantic version to a content path and canonical manifest digest. ToolProvider identities and versions MUST be unique within the catalog. Every provider referenced by an agent or composition MUST appear in the catalog.

Every catalog ToolProvider MUST have at least one inward reference from an agent provider requirement, a ToolProvider composition, or an exact bundle dependency. A ToolProvider with no inward reference is invalid unless its manifest explicitly declares "retained": true. The marker records intentional catalog retention; it does not authorize agent use, create a composition, or add a runtime binding.

ToolProvider topology is inward-only: providers do not name agents or compositions.

Example:

json
{
  "schemaVersion": "1.0.0-draft",
  "mediaType": "application/vnd.agentsuite.tool.provider.catalog.v1+json",
  "toolProviders": [
    {
      "id": "datetime",
      "version": "1.0.0",
      "path": "tool-providers/datetime/1.0.0/tool-provider.json",
      "descriptor": {
        "mediaType": "application/vnd.agentsuite.tool.provider.v1+json",
        "digest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
        "size": 1234
      }
    }
  ]
}

Each entry's descriptor.digest is the RFC 8785 canonical digest of the referenced tool provider manifest, and descriptor.size is the byte length of that same canonical representation, not the digest or size of its original whitespace or object-member ordering.

2.3.2 Callable tools ​

A ToolProvider manifest separates the provider process or endpoint from the model-callable tools it offers. Each entry in tools defines name, optional description, a descriptor-bound inputSchema, optional outputSchema, optional effects, optional effect and approval, and optional delegatedAuthorization. Tool names MUST be unique within a provider; different providers MAY expose the same tool name. A tool is identified in the context of its exact provider contract, not by a separate provider-level version or platform variant.

The runtime MUST expose only declared tools to the model. The presence of other executables or protocol methods in the filesystem does not authorize their use as model tools.

A Tool whose call requires a specific person's delegated authorization declares that requirement through delegatedAuthorization (Section 2.3.9). A connector-backed capability remains an ordinary callable Tool exposed by its ToolProvider; this draft does not define a second, connector-specific Tool hierarchy.

effect and approval are Tool-level declarations independent of credential type. They MUST both be explicit when delegatedAuthorization is present; other Tools MAY declare them. effect is read-only or mutating. mutating means the operation may modify application state or trigger external actions, including sending, publishing, or initiating work. Incidental logging, caching, and usage accounting do not change this classification. An omitted effect makes no read-only guarantee. The existing effects list describes specific effects; it does not override the classification or grant permission.

approval is required or policy-controlled. required mandates approval before dispatch of the proposed invocation. policy-controlled leaves the requirement to runtime/deployment policy; it does not mean automatically allowed. Omission on a Tool without delegated authorization is equivalent to policy-controlled. Runtime policy MAY impose stronger requirements, including approval for a read-only Tool. Approval does not replace requester verification, authorization, or account consent. A runtime unable to satisfy a required approval MUST refuse dispatch.

2.3.3 Execution modes ​

This draft supports only the shared-sandbox mode defined in Section 2.2.

The bundled tool provider has one or more exact platform variants. The selected variant is copied into the derived Agent Sandbox Image and executes in the same sandbox as the agent harness.

A cataloged remote ToolProvider is not selectable through its remote declaration by an agent or composition in this draft. Remote execution mode and runtime binding are outside this section.

All such bundled providers share the sandbox's effective:

  • user and group identity;
  • process namespace;
  • filesystem view;
  • writable mounts;
  • network policy;
  • secret delivery boundary.

Per-provider policy declarations are build inputs whose union constrains the sandbox. They are not independent security boundaries. A requirement for distinct privilege, network, secret, or filesystem isolation cannot be met by this mode.

2.3.4 Bundled variants ​

A bundled variant includes:

  • exact platform;
  • absolute installRoot;
  • payload root inside suite content;
  • absolute MCP provider entrypoint;
  • fixed arguments;
  • search paths;
  • named environment and secret inputs;
  • writable mount paths;
  • outbound network requirements;
  • ABI, ABI version, CPU baseline, and required base paths;
  • complete file inventory;
  • exact bundle dependencies;
  • optional SBOM and provenance descriptors.

A variant is a complete filesystem bundle, not a single-binary declaration. It MAY contain any number of executables, shared libraries, interpreters, scripts, certificates, schemas, licenses, and data files. Every payload entry MUST appear in the variant's file inventory.

entrypoint identifies the executable that launches the MCP provider. It does not limit the bundle to one executable. The provider MAY invoke other executables from the same variant, but those executables are implementation details and are not directly model-callable. Only tools declared in the provider's tools array are exposed to the model.

Payloads are not assumed relocatable. A Homebrew-style payload may require an absolute root such as /home/linuxbrew/.linuxbrew.

The declared entrypoint MUST lie below installRoot. Payload inventory paths MUST lie below payloadRoot. Every regular payload file MUST match its size, mode, owner, and digest. Payload files MUST be root-owned and MUST NOT be group or world writable.

Two selected bundles may overlap at the same destination path only when the resulting entries are identical in type, bytes, mode, ownership, and link target. All other overlaps are errors.

Bundle dependencies MUST identify exact same-platform tool provider variants by digest. Consumers MUST traverse them recursively, reject cycles, and include their payloads in collision checks and image construction. Dependencies do not grant model access or cause network resolution or installer execution.

A variant MUST include private runtimes required by its provider. This draft does not define standalone runtime bundles.

2.3.5 Remote MCP declarations ​

A remote ToolProvider's remote object defines:

  • streamable-http transport;
  • an identifier naming an unresolved endpoint binding;
  • optional HTTP headers whose values come only from named Secret keys;
  • one or more unresolved network-destination references;
  • positive connect and request timeouts;
  • propagated cancellation;
  • protocol-managed session behavior.

Endpoint, destination, and Secret references MUST be identifiers, not URLs, hosts, tokens, cookies, API keys, or header values. Transport-managed headers MUST NOT be declared. Header names are compared case-insensitively for duplicates.

The complete fixture is testdata/remote-mcp/. This ToolProvider manifest fragment shows only remote:

json
{
  "remote": {
    "transport": "streamable-http",
    "endpointRef": "search-mcp-endpoint",
    "headers": [
      {
        "name": "Authorization",
        "secretRef": {
          "name": "search-mcp-auth",
          "key": "token"
        }
      }
    ],
    "network": [
      {
        "destinationRef": "search-mcp-egress"
      }
    ],
    "timeouts": {
      "connectMilliseconds": 5000,
      "requestMilliseconds": 60000
    },
    "cancellation": "propagate",
    "connection": "session-aware"
  }
}

These fields contribute to the canonical ToolProvider manifest digest. Cataloging the provider does not authorize an agent to call its tools and does not resolve any reference. When the same ToolProvider also declares variants, a ToolProvider composition MAY select one variant for standalone sandbox construction.

2.3.6 CLI-backed providers ​

A command-line program that is not itself an MCP server is bundled behind an MCP provider. The provider validates model inputs against the declared tool schemas and translates authorized tool calls into exact CLI invocations. The raw command line is not exposed as an ambient tool.

A Kubernetes variant can inventory a kubernetes-mcp provider alongside kubectl. An Azure CLI variant can inventory an azure-mcp provider, az, its Python runtime, modules, extensions, certificates, and data. Runtime package or extension installation is prohibited; the complete runtime closure MUST already be present in the variant or in exact bundle dependencies.

The reference schema tests validate multi-file bundle fixtures for kubectl, Azure CLI, and OPA.

2.3.7 OPA writer and reviewer example ​

The OPA ToolProvider fixture exposes one evaluate_document tool backed by an opa-mcp adapter and the OPA executable. The tool accepts a structured document, Rego policy, and query, and returns an allow decision and violations.

A writer can evaluate its document before handoff. A reviewer can independently evaluate the same document. Both agents request the same ToolProvider contract in their toolProviders arrays (one requirement entry, not a complete manifest):

json
{
  "id": "opa",
  "version": "1.0.0",
  "executionMode": "shared-sandbox"
}

The fixture contains both a bundled variant and a remote declaration. The variant can participate in an Agent Sandbox Image or a standalone ToolProvider Sandbox Image. The remote declaration catalogs the connection contract for a deployed instance without defining agent binding.

The complete example is:

  1. opa-tool-provider.json defines the ToolProvider contract, callable tools, and available implementation;
  2. opa-tool-provider-composition.json selects the exact ToolProvider manifest, variant, platform, and build profile and is embedded unchanged in the resulting image.

The repeated hexadecimal digests in these examples are illustrative. A producer MUST replace them with values computed from the concrete ToolProvider manifest and composition.

2.3.8 UTC datetime example ​

The following example is a bundled stdio MCP server that returns the current UTC time. It does not execute /bin/date, depend on distribution userland, access the network, use secrets, or require writable paths. The executable is part of the suite payload and is selected by digest.

An agent requests the tool provider by exact identity and execution mode (one toolProviders requirement entry, not a complete manifest):

json
{
  "id": "datetime",
  "version": "1.0.0",
  "executionMode": "shared-sandbox"
}

The tool provider manifest declares the model-callable tool and the available platform implementation:

json
{
  "schemaVersion": "1.0.0-draft",
  "mediaType": "application/vnd.agentsuite.tool.provider.v1+json",
  "id": "datetime",
  "version": "1.0.0",
  "protocol": "mcp",
  "revision": "2025-06-18",
  "tools": [
    {
      "name": "current_time",
      "description": "Return the current UTC time in RFC 3339 format.",
      "inputSchema": {
        "path": "schemas/datetime/current-time-input.json",
        "descriptor": {
          "mediaType": "application/schema+json",
          "digest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
          "size": 128
        }
      },
      "outputSchema": {
        "path": "schemas/datetime/current-time-output.json",
        "descriptor": {
          "mediaType": "application/schema+json",
          "digest": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
          "size": 96
        }
      },
      "effects": ["reads-system-clock"]
    }
  ],
  "variants": [
    {
      "platform": {
        "os": "linux",
        "architecture": "amd64"
      },
      "variantDigest": "sha256:dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
      "installRoot": "/opt/agentsuite/tool-providers/datetime/1.0.0",
      "relocatable": false,
      "payloadRoot": "tool-providers/datetime/1.0.0/linux-amd64",
      "entrypoint": "/opt/agentsuite/tool-providers/datetime/1.0.0/bin/datetime",
      "arguments": [],
      "searchPath": [],
      "environment": [],
      "writablePaths": [],
      "network": [],
      "runtime": {
        "abi": "static",
        "cpuBaseline": "x86-64-v1"
      },
      "files": [
        {
          "path": "bin/datetime",
          "type": "file",
          "mode": 493,
          "uid": 0,
          "gid": 0,
          "size": 123456,
          "digest": "sha256:eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
          "component": "datetime"
        }
      ],
      "dependencies": []
    }
  ],
  "extensions": []
}

The repeated hexadecimal digest values and illustrative file size stand in for values computed from a concrete artifact. A conforming artifact MUST contain the referenced schemas and payload bytes and MUST use their actual digests and size.

Reading the clock makes the tool result runtime-dependent; it does not make the provider artifact mutable. The manifest, schemas, executable, variant, and composition remain immutable and digest-bound.

2.3.9 Delegated-user connector authorization ​

A connector-backed capability remains an ordinary callable Tool exposed by a ToolProvider. A Tool that requires a specific person's authorization before it may be called declares that requirement through the Tool's optional delegatedAuthorization object:

FieldMeaning
serviceStable identifier of the external service or provider requirement (for example microsoft-graph), not a deployment-specific Connection.
scopeThe delegated-user authorization capability required to call this Tool (for example mail.send), not a granted token or consent record.
credentialDeclares that credential resolution and injection are brokered by the runtime; see below.

credential is itself closed:

FieldMeaning
resolutionMUST be runtime-brokered; the artifact never performs or packages credential resolution.
bindingRefIdentifier naming an unresolved runtime/deployment binding slot for this requirement. It is not a connection identifier, account identifier, or credential value.

The portable AgentSuite artifact MUST NOT contain, and the schema's closed additionalProperties: false objects reject:

  • OAuth client secrets;
  • authorization callback or consent state;
  • access or refresh tokens;
  • token expiry, refresh, or revocation state;
  • a person's mutable Connection/account link; or
  • a deployment-specific Connection identifier.

delegatedAuthorization names a portable, person-agnostic requirement. It authorizes nothing by itself: cataloging a connector-backed ToolProvider or including it in a composition does not grant any requester access, and it does not resolve bindingRef to a live connection.

The deployment/runtime is responsible for resolving the portable requirement named by service, scope, and bindingRef to a verified requester and a live, person-owned connection at dispatch time, and for brokering credential resolution and injection so that the live credential is never exposed to the model or the agent harness. A runtime MUST fail closed — refuse the tool call — when the requester cannot be verified, when no connection is bound to bindingRef for that requester, or when the bound connection has drifted (for example, relinked, revoked, or stale) since it was granted.

The Tool-level effect and approval declarations in Section 2.3.2 apply independently of these authorization requirements. A valid delegated connection does not satisfy a required invocation approval, and approval does not grant missing delegated permissions.

2.3.10 Delegated-user connector example ​

The complete fixture is testdata/remote-mcp/. Its ToolProvider manifest exposes a read-only search Tool and a mutating flag_result Tool against the same external search service and the same unresolved binding slot. The following tools array excerpt omits required inputSchema references; these are not complete Tool records:

json
[
  {
    "name": "search",
    "effects": ["remote-read"],
    "effect": "read-only",
    "approval": "policy-controlled",
    "delegatedAuthorization": {
      "service": "search",
      "scope": "results.read",
      "credential": {
        "resolution": "runtime-brokered",
        "bindingRef": "search-delegated-connection"
      }
    }
  },
  {
    "name": "flag_result",
    "effects": ["remote-write"],
    "effect": "mutating",
    "approval": "required",
    "delegatedAuthorization": {
      "service": "search",
      "scope": "results.flag",
      "credential": {
        "resolution": "runtime-brokered",
        "bindingRef": "search-delegated-connection"
      }
    }
  }
]

Neither declaration names a token, a consent record, or a particular person's connection. bindingRef is the same unresolved slot for both tools because a runtime binds one person's connection to the ToolProvider once and reuses it across the provider's tools; the runtime remains responsible for verifying that the calling requester matches the requester the connection was granted to, for every call.

2.4 Composition manifests ​

A composition manifest is the closed, resolved, digest-pinned composition of one agent for one exact platform, optional runtime profile and one build profile. It is not the suite tool provider catalog and it is not a request for runtime resolution. It MUST NOT be applied to a different agent.

A composition is a build-time input to Agent Sandbox Image construction. It is not a runtime actor template, deployment object, or snapshot policy. Runtime systems MAY derive their own templates from the resulting image, but those templates and their lifecycle policies are outside this specification.

The suite-level composition selection key is (agent, platform) for legacy compositions, or (agent, platform, runtimeProfile) when profiled. The optional runtimeProfile identifier MUST be nonempty when present, MUST resolve to one suite-local profile (§2.6), and MUST agree on reference and manifest. Explicit null or empty selectors, duplicate keys, dangling profiles, and mixing legacy and profiled compositions for the same agent/platform MUST refuse. There is no implicit profile selection or fallback. Each key selects exactly one buildProfile; changing that selection replaces the composition and its digest. All profiles share the same member manifest: profiles MUST NOT override its instructions, model, policy, ordered cases, tool requirements or invocation edges.

Its toolProviders array MUST be sorted lexicographically by id and then version. For every provider requirement in the named agent manifest, it MUST contain exactly one resolved provider record. The array MAY be empty when the agent has no provider requirements:

json
{
  "schemaVersion": "1.0.0-draft",
  "mediaType": "application/vnd.agentsuite.composition.v1+json",
  "agent": "writer",
  "platform": {
    "os": "linux",
    "architecture": "amd64"
  },
  "buildProfile": "default",
  "toolProviders": [
    {
      "id": "datetime",
      "version": "1.0.0",
      "manifestDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "variantDigest": "sha256:dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
      "executionMode": "shared-sandbox"
    }
  ]
}

The resolved tool provider fields have these meanings:

FieldMeaning
id, versionExact tool provider identity from the agent requirement and catalog.
manifestDigestJCS digest of the exact tool provider manifest selected from the catalog.
variantDigestJCS digest of the exact bundled variant selected for the composition platform.
executionModeshared-sandbox, the only execution mode defined by this draft.

A producer creates a composition without executing suite content:

  1. read the named agent's exact tool provider requirements;
  2. resolve each id and version to exactly one tool-provider-catalog entry;
  3. verify the catalog digest against the referenced tool provider manifest;
  4. verify that the requirement's execution mode is shared-sandbox;
  5. select exactly one variant whose platform equals the composition platform and record its variantDigest;
  6. verify the selected build profile contains exactly one runtime-base and harness descriptor for that platform;
  7. sort the resolved provider records by id and version and compute the composition's JCS digest.

The composition MUST contain no ambient, undeclared, missing, duplicate, or differently versioned tool provider. For bundled providers, variantDigest MUST be present and select exactly one matching platform variant.

Exact dependencies of a bundled variant are traversed from the selected variant's digest-bound dependency records. They MUST resolve to provider manifests and same-platform variants in the suite catalog, but they do not become additional top-level resolved provider records unless the agent also declares them directly.

An agent with no tool provider requirements still MUST have an empty composition for each supported platform/profile selection. The empty composition explicitly binds the agent to a platform, optional runtime profile and build profile and prevents ambient runtime tools from becoming implicitly authorized.

The same immutable tool provider and variant may appear in several compositions.

2.4.1 ToolProvider compositions ​

A ToolProvider composition is the closed build input for one standalone ToolProvider Sandbox Image:

text
ToolProvider manifest
    |
    v
ToolProvider composition
    |
    | build
    v
ToolProvider Sandbox Image
    |-- selected ToolProvider variant and dependencies
    `-- /.agentsuite/tool-provider-composition.json

The ToolProvider manifest defines the available implementations. The ToolProvider composition selects one exact manifest, platform variant, and build profile. Construction materializes that selection into an image and embeds the exact ToolProvider composition unchanged.

json
{
  "schemaVersion": "1.0.0-draft",
  "mediaType": "application/vnd.agentsuite.tool.provider.composition.v1+json",
  "id": "search",
  "version": "1.0.0",
  "manifestDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "platform": {
    "os": "linux",
    "architecture": "amd64"
  },
  "variantDigest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
  "buildProfile": "default"
}

The ToolProvider manifest MUST resolve from the catalog by exact identity and digest. variantDigest MUST select exactly one matching platform variant. The build profile MUST contain exactly one runtime-base descriptor for that platform. The variant dependency closure participates in collision checks and image construction.

A ToolProvider composition does not authorize any agent, resolve a remote endpoint, or deploy the resulting image.

2.5 Build profiles ​

For the optional experimental execution record, see Image execution contract.

A build profile MUST contain non-empty runtimeBase and harness arrays and one positive, profile-wide sourceEpoch. Each array contains one image entry per platform:

  • runtimeBase contains the OCI runtime-base image;
  • harness contains the OCI harness image;
  • sourceEpoch is a Unix timestamp used as SOURCE_DATE_EPOCH (or equivalent) to normalize generated image and layer timestamps for reproducible builds.

Each runtime-base and harness entry MUST contain platform, imageRef, and image. image MUST be an OCI image manifest descriptor containing its media type, digest, and size. imageRef MUST be a registry-qualified, digest-addressed OCI image reference of the form registry/repository@sha256:digest; tag-only references are invalid. The digest in imageRef MUST equal the digest in image.

imageRef identifies where the image manifest can be found. The descriptor remains authoritative for the manifest's content identity and size. A consumer MUST NOT resolve a mutable tag to select an image. The reference does not relax the offline construction requirement: all referenced OCI blobs MUST be present before construction begins.

For example, a build profile has this form:

json
{
  "schemaVersion": "1.0.0-draft",
  "mediaType": "application/vnd.agentsuite.build.profile.v1+json",
  "id": "default",
  "runtimeBase": [
    {
      "platform": {"os": "linux", "architecture": "amd64"},
      "imageRef": "registry.example/agentsuite/runtime-base@sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "image": {
        "mediaType": "application/vnd.oci.image.manifest.v1+json",
        "digest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
        "size": 1234
      }
    }
  ],
  "harness": [
    {
      "platform": {"os": "linux", "architecture": "amd64"},
      "imageRef": "registry.example/agentsuite/harness@sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
      "image": {
        "mediaType": "application/vnd.oci.image.manifest.v1+json",
        "digest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
        "size": 5678
      }
    }
  ],
  "sourceEpoch": 1
}

The platform named by every agent composition MUST have exactly one matching runtime-base and harness entry in its selected profile. A ToolProvider composition requires only the matching runtime-base entry.

OCI platform fields alone do not establish native compatibility. Producers MUST validate the combined final filesystem against each bundled provider's ABI, dynamic loader, shared library, interpreter, CA bundle, NSS, shell, required path, and CPU-baseline requirements.

2.6 Runtime profiles ​

The optional closed runtime-profile schema pins execution declarations. All fields are REQUIRED and non-null:

FieldRequirement
schemaVersion, mediaType1.0.0-draft, application/vnd.agentsuite.runtime.profile.v1+json.
idSuite-local identifier matching its reference; also valid as an evidence identifier.
runtime, harness, rendererEach is a closed evidence implementation identity: id, version, digest (§4.2).
configurationABIOpaque consumer-owned identifier matching ^[a-z0-9][a-z0-9._-]{0,127}$.
imageRequiredExplicit boolean; false is permitted and MUST NOT be treated as omission.

Profile IDs MUST be unique; every reference MUST resolve canonical bytes with matching identity, media type, digest and size. Every selecting composition MUST have a build profile supporting its platform. The runtime profile's harness digest MUST equal the build profile's selected platform harness image digest.

Runtime profiles declare requirements, not installed implementations or runtime support. The portable validator checks shape and graph consistency only; execution consumers MUST refuse unsupported runtime, harness, renderer, configuration ABI, image or policy requirements, without fallback. Endpoints, credentials, placement and snapshots remain external bindings, not profile fields. Build-profile execution remains image-serving metadata; its AgentKit HTTP ABI does not imply support for another harness protocol.

Omitting all new optional fields preserves legacy bytes, validity and canonical digests without migration. New readers support both paths; older strict readers reject profiled documents as unknown fields. This additive format/API and diff change requires a Go module minor release, not a format/media-type rename.

2.7 Agent Sandbox Image construction ​

Construction MUST be a pure, offline file-composition operation:

  1. resolve the suite, agent, platform, composition, and build profile by digest;
  2. materialize the pinned runtime-base filesystem;
  3. compose the pinned harness filesystem;
  4. copy selected provider payloads and exact dependency closures to their declared install roots;
  5. reject non-identical destination collisions;
  6. install agent instructions and immutable runtime metadata;
  7. create no writable content paths;
  8. embed the sandbox binding and complete final inventory;
  9. emit the OCI image and, for multiple platforms, an OCI image index.

The builder MUST NOT execute package managers, installers, lifecycle scripts, or arbitrary suite content. It MUST NOT access the network.

The runnable default SHOULD be a non-root numeric user. Runtime configuration MUST add no Linux capabilities and MUST request no_new_privs. Writable paths MUST be empty runtime-provided mounts, not mutable files baked into the image.

Restricting PATH is useful for discoverability but is not process confinement. Runtime conformance MUST separately test the intended execution boundary.

2.7.1 ToolProvider Sandbox Image construction ​

ToolProvider Sandbox Image construction MUST:

  1. resolve the suite, ToolProvider composition, ToolProvider manifest, exact variant, and build profile by digest;
  2. materialize the pinned runtime-base filesystem;
  3. copy the selected variant and exact dependency closure to their declared install roots;
  4. reject non-identical destination collisions;
  5. set the variant entrypoint and fixed arguments as the image process;
  6. create no writable content paths;
  7. embed the exact ToolProvider composition at /.agentsuite/tool-provider-composition.json;
  8. emit an OCI image or multi-platform image index.

Construction is subject to the same offline, deterministic, non-root, and no-installer requirements as Agent Sandbox Image construction. It does not deploy the image or resolve the ToolProvider's remote endpoint, network, or Secret references.

The image config MUST contain:

text
org.agentsuite.tool-provider-composition.digest=sha256:<JCS digest of tool-provider-composition.json>

The label, embedded composition, and selected image platform MUST agree. The OCI image manifest commits to the resulting image contents. Producers that need a verifiable relationship to the complete AgentSuite SHOULD publish a signed provenance attestation or OCI referrer.

2.8 Agent sandbox binding ​

Kaimahi's builder-owned sandbox-binding reference schema is maintained in the source repository, outside this portable package.

Each platform image MUST embed a binding record at:

text
/.agentsuite/binding.json

The image config MUST contain the label:

text
org.agentsuite.binding.digest=sha256:<JCS digest of binding.json>

The binding commits to:

  • AgentSuite OCI manifest digest;
  • agent identifier;
  • exact platform;
  • build-profile identifier;
  • composition descriptor;
  • final image inventory descriptor.

For a multi-platform image index, each selected platform manifest has its own binding. An OCI subject relationship alone is not an authenticity proof. Producers SHOULD publish signed attestations or OCI referrers binding the suite manifest, build inputs, and resulting image manifests.

3. Evaluations ​

Producers SHOULD embed authored evaluation cases for each agent. Consumers MAY use them for evaluation, review, or comparison. A suite with omitted or empty agent evals arrays and no evaluation subtrees MUST remain valid and conformant. When evaluations are present, validators MUST check the requirements below.

Each evals/<agent>/ subtree MUST be referenced by that agent's evals entry. It MUST contain only index.json, its referenced case files, and their parent directories. Index and case files MUST be regular files. The top-level evals/ directory MAY be empty.

The agent manifest's optional evals is an array of content references, each pairing a content-root path with a JCS-canonical descriptor, containing at most one reference in this draft. This agent-manifest fragment shows only evals:

json
{
  "evals": [
    {
      "path": "evals/writer/index.json",
      "descriptor": {
        "mediaType": "application/vnd.agentsuite.eval.index.v1+json",
        "digest": "sha256:58cdec908ecd57c3f098d90a8b933546ee5a7ac6bd454135e28f64be8c2d996b",
        "size": 592
      }
    }
  ]
}

The path MUST be exactly evals/<agent>/index.json, where <agent> equals the owning manifest's id. Explicit null is invalid. Each agent references its evaluation index, which references its cases in evaluation order. Each delegated agent has its own binding.

3.1 Index and bounds ​

The closed index document contains:

FieldRequirement
schemaVersionREQUIRED. 1.0.0-draft.
mediaTypeREQUIRED. application/vnd.agentsuite.eval.index.v1+json.
agentREQUIRED. Exact owning agent identifier, not an agent digest.
casesREQUIRED. Ordered, nonempty array of content references, each pairing path with a JCS-canonical descriptor.
limitsREQUIRED. Closed object containing positive integers maxCases and maxCaseBytes.

Case order in cases is evaluation order and contributes to identity; consumers MUST NOT sort it. Case paths MUST be exactly evals/<agent>/cases/<case-id>.json. Each case id and path MUST be unique within the agent.

maxCases MUST be in 1..128; maxCaseBytes MUST be in 1..4194304. Producers MAY declare lower limits. The actual case count and each case's serialized UTF-8 byte length MUST fit the declared limits. Each case MUST contain 1..1000 assertions. General resource limits are defined in §1.5.2. Consumers MAY impose stricter resource limits but MUST report a limit refusal rather than silently truncating or treating it as a pass.

Reference schemas are eval-index.schema.json and eval-case.schema.json. Cross-document ownership, path/id equality, digest checks, byte bounds, and regex compilation are semantic checks in addition to JSON Schema validation.

3.2 Case documents and assertions ​

A case is a closed JSON document with REQUIRED schemaVersion: "1.0.0-draft", mediaType: "application/vnd.agentsuite.eval.case.v1+json", id, input, and ordered assertions. input MUST be a nonblank string. Case and assertion ids match ^[A-Za-z0-9][A-Za-z0-9._-]{0,62}$; assertion ids MUST be unique within a case. A case MAY contain positive integer runs and minPasses fields. minPasses requires runs and MUST NOT exceed it. Explicit null is invalid for either field.

json
{
  "schemaVersion": "1.0.0-draft",
  "mediaType": "application/vnd.agentsuite.eval.case.v1+json",
  "id": "capital",
  "input": "What is the capital of France?",
  "assertions": [
    {"id": "capital", "type": "contains", "value": "Paris"},
    {"id": "not-london", "type": "notContains", "value": "London"}
  ]
}

runs defaults to 1. Without minPasses, all runs MUST pass; otherwise at least minPasses MUST pass. Any unknown run makes the case unknown. These fields define authored policy, not execution mechanics.

Each assertion has REQUIRED id and type, an OPTIONAL boolean critical (default true), and only the operands applicable to its type:

typeRequired operandsMeaning
containsvalueExact case-sensitive substring occurs in the answer.
notContainsvalueExact case-sensitive substring does not occur in the answer.
regexpatternAn unanchored RE2 search matches the answer; use explicit anchors for a whole-answer match.
toolCalledtoolAt least one call with this exact tool name is observed.
toolNotCalledtoolComplete tool-call evidence establishes no call with this exact name.
llmJudgerubric, minScore, judgeModel, judgeVersionA separately configured evaluator scores against the authored rubric and threshold.

value for text assertions and tool MUST be nonblank single-line strings without control characters. pattern MUST be nonblank, at most 1,024 UTF-8 bytes, and valid RE2 syntax. rubric MUST be nonblank, at most 4,096 UTF-8 bytes, and contain no control characters except newline and tab. minScore MUST be an integer from 0 to 100. judgeModel and judgeVersion MUST be nonblank printable ASCII strings of at most 256 bytes; these are authored requirements, not host credentials or attested model identity. Inapplicable operands MUST be absent, including when empty or null.

An unknown assertion type MUST use the lowercase identifier spelling from Conventions, explicit critical: false, and one nonblank string value carrying its extension-defined operand; other operand fields MUST be absent. Unknown critical types, including those with omitted critical, MUST be rejected. Consumers MAY retain or ignore an unsupported non-critical definition for storage and review, but MUST NOT count it as passing evidence or claim a full evaluation pass. Known assertions marked non-critical still retain their defined semantics.

Cases contain no runtime or platform selector. Assertion authoring does not establish runtime support. Text checks require an available answer; tool checks require an explicitly supported, complete observation mechanism, not an inferred empty journal. Missing evidence, unsupported execution, or an unavailable judge MUST remain unknown, never pass, including for negative assertions. Judge transport, prompting, sampling, score aggregation, and policy are outside this storage contract; a result consumer MUST match the recorded evaluator policy, configuration, and authored requirements before treating a score as evidence.

4. Evidence ​

Authored cases are defined in Evaluations. The following sections describe separate evaluation results and portable evidence.

4.1 Results and OCI association ​

Evaluation results MUST NOT be embedded in the suite content layer. An embedded result changes the layer and suite manifest digest, so it cannot vouch for the final artifact that contains itself.

Producers SHOULD publish results as signed attestations or separate OCI referring artifacts bound to the exact evaluated suite OCI manifest digest. When a result is published as an OCI artifact, its manifest subject MUST describe that suite manifest using the OCI descriptor media type, digest, and size. The referring manifest follows the OCI artifact guidance. Discovery follows OCI Distribution referrers semantics, not a new registry endpoint. Private local result files MAY remain unpublished. The public v1 evidence payload is defined in §4.2. Other result payload schemas, signatures, trust policy, and private local storage formats are outside this draft.

Results SHOULD additionally identify the agent and its digest, index and ordered case digests, target composition digest (§1.6.4), observed runtime/model, evaluator policy/configuration, and ordered per-assertion verdicts. Trust considerations are defined in §8.

See the writer evaluation example.

4.2 Portable evaluation evidence ​

A portable evidence document records an unsigned claim about a complete evaluation of one member, composition, platform, and execution subject. Its schemaVersion MUST be 1.0.0, independent of the suite format version, and its mediaType MUST be application/vnd.agentsuite.eval.evidence.v1+json. The closed reference schema is eval-evidence.schema.json.

All objects are closed. All fields below are REQUIRED except an assertion's judge; explicit null is never allowed. Schema validation checks storage shape, not evaluation success. The wire objects are:

ObjectFields
DocumentschemaVersion, mediaType, subject, execution, evaluation, evaluator, results.
subjectmanifest, memberID, memberDigest, compositionDigest, buildProfileDigest, platform.
DescriptormediaType, digest, size; annotations, URLs and embedded data are forbidden.
platformos, architecture, variant (the empty string means no variant).
executionruntime, model, harness, renderer, profile, configurationDigest.
Implementationid, version, digest; used separately by runtime, harness, renderer and execution profile.
modelprotocol, id, configurationDigest.
evaluationindex (path, descriptor) and ordered cases.
Case referenceid, path, descriptor, effective runs, effective minPasses.
evaluatoridentity (id, version, policy), startedAt, completedAt.
Policyid, version, configurationDigest.
Case resultid, outcome, ordered runs.
Run resultnumber, status, outcome, ordered assertions.
Assertion resultid, type, outcome, optional judge.
judgeconfiguration (model, version, policy), observedModels, scores, minScore.

Outcomes are pass, fail or unknown. Run status is completed, error, cancelled or unknown; only completed can qualify. An unavailable judge records empty score/model arrays; otherwise both arrays contain exactly two entries. Scores and thresholds are integers in 0..100. A missing judge object cannot qualify an authored llmJudge; a non-judge assertion MUST omit it.

The subject MUST bind the complete suite OCI manifest descriptor: media type, SHA-256 digest of the exact manifest bytes, and size. The suite content-layer digest, canonical digest of agentsuite.json, and a mutable registry tag are not substitutes. Evidence MUST additionally bind the member identifier and canonical manifest digest, composition and build-profile digests, and platform. A member result MUST NOT imply that other members or invoked agents passed.

The execution identity MUST distinguish runtime, harness, renderer and execution profile, each with its own identifier, version and implementation digest; model protocol, identifier and non-secret inference configuration digest; and execution configuration digest. These are reported, not provider-attested, identities. A pass MUST NOT qualify a different harness, runtime or model.

For a profiled composition (§2.4), the verifier MUST resolve the exact composition by member, platform and composition digest, not array position or legacy pair. execution.runtime, harness and renderer MUST equal the selected runtime profile's identities. execution.profile MUST equal that profile's id, the suite schemaVersion (1.0.0-draft) as version, and its canonical descriptor digest. Configuration ABI and image requirements bind through this profile digest. Producers and callers MUST include image identity (when required), selected ABI and non-secret execution settings in their documented execution-configuration projection. The verifier compares its opaque digest to independent expectations; it cannot inspect the preimage or prove that an image identity was included. Image/build associations remain consumer-owned; evidence v1 gains no image field.

The same S and member/cases may have separate detached passes for two profiles. A pass for one runtime MUST NOT qualify another. Relabeling execution claims and expectations together while retaining the source composition MUST refuse. Rewriting unsigned subjects, claims and expectations together is not detectable forgery: independent expectations and trusted evaluation remain caller duties.

The inventory MUST identify the public index and every ordered case by path and canonical descriptor. Evidence MUST retain index order; a filename-sorted hash does not establish that order. Effective runs and minPasses MUST match the authored values with defaults from §3.2. Every declared case, run and assertion MUST appear exactly once, in order; run ordinals start at one and are contiguous. Empty evaluation content, subsets, missing, extra or duplicate rows MUST refuse.

Results MUST retain assertion identifiers, types and verdicts and run verdicts, including failed runs inside passing repeat policies. Verifiers MUST recompute outcomes, not trust an overall pass flag. Every supported assertion must pass for a run to pass, including known non-critical assertions. Unknown assertions or runs, missing observations, unsupported observation mechanisms, unavailable judges, execution errors and cancellation MUST prevent a verified pass. Known failing runs MAY be absorbed by authored minPasses; unknown runs MUST NOT.

The v1 verifier supports text assertions and an explicit versioned two-score judge policy. Tool observations and unrecognized policies MUST refuse. Judge results MUST retain both integer scores, threshold, model/version and policy configuration identity. The authored judge model/version and threshold MUST match. Both scores MUST be on the same side of the threshold for a known verdict; a split is unknown and MUST refuse even inside a repeat policy. The evaluator policy is agentsuite-text-v1 version 1.0.0: text assertions use §3.2 semantics, known assertions form a conjunction, and unknown vetoes. Judge observations additionally require agentsuite-double-score-v1 version 1.0.0 and a complete caller-accepted judge configuration. Each observed model MUST equal the authored model or that model joined with - and authored version. This is a declared response identity, not model attestation. Policy and configuration digests MUST exactly match caller expectations. Other aggregation rules or request/tool-count observations require a supported policy/schema revision, never silent reinterpretation of v1.

Evaluator identity, version, accepted policy and non-secret configuration identity MUST accompany start/completion UTC RFC3339 timestamps ending in Z, with up to nine fractional-second digits and start no later than completion. Time is reported history, not trusted-clock or freshness proof. Producers MUST capture unavailable metadata when evaluating rather than invent it at export. Legacy records lacking required data MUST refuse export with a re-evaluation remedy; modification time or export time MUST NOT replace run time.

Only schema-defined bounded identifiers, digests, numeric observations, verdicts and timestamps are permitted. Prompts, answers, rubrics, assertion operands, reasoning, endpoints, credentials, secret references, tenant/host/session IDs and arbitrary annotations MUST NOT appear. Public configuration digests MUST use a documented non-secret projection, never credentials or resolved secret values. Producers MUST construct allowlisted fields rather than redact private receipts.

Verification. evidence.VerifyEvaluation takes a local OCI layout, independently supplied expected subject and evaluator policy, and evidence reader. Expected execution identities MUST come from the caller, not copied claims; there are no wildcards. Verification MUST validate local manifest/blob bytes and the suite graph before matching evidence to the inventory and expectations. A digest alone or loose content directory cannot establish OCI identity; archive consumers first materialize a local layout. No model, cluster, registry, remote schema or private store may be consulted.

Only success returns a verified summary. Failure MUST return a typed refusal; missing, malformed, mismatched, unsupported, partial, unknown or failing evidence MUST NOT become an evaluated badge. Refusal text MUST NOT echo untrusted JSON, paths, authored operands or private causes. Consumers SHOULD display evaluation: not verified with a safe category; CI MUST fail closed. Resource limits MUST refuse explicitly, never truncate or omit failed repeats.

The reference verifier bounds documents to 4,194,304 UTF-8 bytes, nesting to 100 levels, object members to 1,024 per object and 100,000 per document. There are at most 128 cases, 1,000 runs per case, 4,096 total runs, 1,000 assertions per run and 32,000 total assertion observations. Authored policies exceeding these limits refuse even if the document omits corresponding rows. Digest strings use lowercase sha256: plus 64 hexadecimal digits; descriptors have positive sizes no larger than 4,194,304 bytes. Schema-defined identifier restrictions are deliberately narrower than arbitrary provider strings; unsupported values MUST refuse rather than be transformed or redacted to create a matching identity. These shape checks cannot guarantee that a producer has not disguised sensitive data as an identifier; producers remain responsible for the allowlist boundary.

ExpectedEvaluation requires a complete Subject, Execution and evaluator identity plus an explicit Judges allowlist (empty when no judge is accepted). The verifier additionally matches the model protocol/identifier to the member manifest. VerifiedEvaluation contains only the validated subject, case/run totals, completion time and unsigned: true. EvidenceRefusal.Code is one of missing, malformed, unsupported, limit, artifact, subject, coverage, policy, unknown, not-passing. Callers SHOULD use the typed code rather than parse error text. Detached schema/privacy fixtures and their use are documented here.

Distribution and trust. V1 uses an explicitly selected detached file beside, not inside, the suite layout/archive; filenames convey no identity. OCI referrer publication/discovery is separate transport under §4.1, with the complete suite descriptor as referring-manifest subject. Signatures MAY later wrap unchanged v1 bytes. This verifier establishes consistency of unsigned claims, not who ran the evaluation, whether observations are true, or deployment readiness. Anyone able to write the document can forge a consistent pass. Unsigned evidence MUST NOT be presented as authenticated provenance.

5. Policy ​

Agent-bound authored policy, standalone policy resolution and deployment scope ownership are specified separately below.

5.1 Agent policy binding ​

An agent MAY declare one optional policy content reference. Omission is valid and declares no policy requirement; policy: null MUST refuse, not mean omission. The reference is a closed object with exactly required path and descriptor fields. Its path MUST be exactly policies/<agent-id>.json, where <agent-id> is the owning Agent's id. Shared or cross-Agent paths MUST refuse; identical bytes MAY be stored separately under each owning Agent's path.

For example, this agent-manifest fragment from the policy-binding fixture shows only policy:

json
{
  "policy": {
    "descriptor": {
      "digest": "sha256:9579149c9e7bdecb5b49b67c6dd279e434e4d8a1feb28c517299750b96ffcd8b",
      "mediaType": "application/vnd.agentsuite.policy.v2+json",
      "size": 213
    },
    "path": "policies/writer.json"
  }
}

The descriptor's media type MUST match the policy document's version:

Policy versionDescriptor media type
agentsuite.policy/v1application/vnd.agentsuite.policy.v1+json
agentsuite.policy/v2application/vnd.agentsuite.policy.v2+json

The policy MUST be a regular file of at most 4194304 bytes, stored as its exact RFC 8785 JCS canonical authored JSON bytes, and MUST satisfy the closed version-specific semantics in Section 5.2. Unsupported versions/capabilities, malformed policy documents and a mismatched media type MUST refuse. A validator MUST check descriptor validity, raw size and digest before full policy decoding, then check semantic validity, version/media agreement and exact canonical storage. Descriptor annotations remain descriptive.

The policies/ namespace is closed: every policy file MUST be referenced by its owning Agent, and only those regular files and the optional top-level policies/ directory are permitted. The top-level directory MAY be empty. Orphan files, nested/extra directories, symlinks and OCI archive hardlinks MUST refuse. A suite with no policies remains valid; no existing no-policy fixture requires rewriting. These rules apply equally to extracted content and OCI content layers.

A policy descriptor uses the ordinary content SHA-256 digest and byte length, not the framed effective-policy digest from Section 5.2. A producer MUST preserve the authored bytes when binding them: administrative composition, endpoint/path set normalization and effective-policy framing happen separately. Authored arrays retain their stored order and duplicates under JCS; resolution and effective-policy canonicalization still normalize those sets. Changing authored bytes therefore changes their descriptor even when effective sets would be equivalent.

Policy content identity is committed through policy descriptor → Agent manifest descriptor → suite manifest. After a policy change, all affected ancestor descriptors MUST be updated; stale ancestors MUST refuse. A conformant changed suite has a different suite content identity and, when repackaged, OCI manifest digest. Policy files are in the existing content layer, not additional OCI layers or an external policy store.

Validation establishes definition/graph conformance only, not installation, observed activation, startup/lifetime safety, provider qualification or runtime enforcement. Consumers MUST inspect declared policy requirements and refuse unsupported boundaries; successful generic validation is not capability negotiation. The tool-derived suite capabilities list does not certify policy support. Runtime wiring, held-start and drift stopping remain outside this binding.

5.2 Standalone policy contracts (normative) ​

These standalone contracts are owned by the policy package. Policy format versions are independent of the Go module version and the AgentSuite artifact schema version. Section 5.1 defines optional Agent policy descriptors and graph validation. A standalone document is committed by an Agent/suite only when explicitly bound through that reference.

5.2.1 Versions and closed inputs ​

agentsuite.policy/v1 remains the filesystem-only contract. Its nonempty set of clean absolute UTF-8 denyWritePaths excludes /, its required capability is exactly ["filesystem/deny-write/v1"], and administrative denied paths are unioned with requested denied paths. Duplicate paths collapse and paths sort lexicographically by unsigned UTF-16 code units, the comparison model RFC 8785 uses for JSON object property names. JCS preserves this normalized array order; it does not sort array elements. An omitted administrative denyWritePaths field and an explicit empty array add no restrictions; explicit null MUST fail closed. The existing v1 vector is unchanged. That capability covers create, writable open/write, truncate, rename effects, unlink, link, metadata and symlink mutation, including declared mount/path bypass coverage; a provider unable to cover the required boundary MUST refuse.

The explicit successor, agentsuite.policy/v2, is network-only. Its authored and effective document shape is defined by policy-v2.schema.json:

json
{
  "version": "agentsuite.policy/v2",
  "network": {
    "egressAllow": [
      {"address": "192.0.2.10", "protocol": "TCP", "port": 443}
    ]
  },
  "requiredCapabilities": ["network/egress-allow/v1"]
}

All three root fields, the network object and its egressAllow array are required and MUST NOT be null. An explicit empty array is valid and means deny all egress, not unrestricted access or an omitted requirement. V2 MUST NOT contain denyWritePaths, even as null or an empty array. V1 MUST NOT contain network, even as null. Neither version is silently upgraded or rewritten.

Each v2 endpoint MUST have exactly address, protocol and port:

  • address is one canonical dotted-decimal IPv4 literal: four decimal octets from 0 to 255, with no leading zeroes except the single digit 0.
  • protocol is exactly TCP (case-sensitive).
  • port is an integer from 1 through 65535, explicitly supplied. There is no default port or named port. Equivalent integral JSON number representations may normalize through JCS; fractional or lossy numbers MUST refuse.

CIDR (including /32), hostnames, IPv6 and IPv4-mapped IPv6, UDP and other protocols, wildcards, address/port ranges, and unknown fields MUST refuse, never be ignored or converted into a broader grant. No DNS resolution or hostname-to-IP snapshot is part of this format. An address literal never denotes a wildcard; providers MUST refuse address classes or translated/aliased routes they cannot mediate with the declared exact meaning. Syntax validity is not target qualification.

The required capability list is exactly ["network/egress-allow/v1"]; absent, empty, duplicate or unknown capabilities MUST refuse. V2 does not combine filesystem or Tool capabilities. Duplicate endpoint tuples are permitted in authored input, but MUST collapse during resolution/effective-policy canonicalization. Sort by canonical dotted-decimal address strings lexicographically using their ASCII bytes (not numeric IPv4 order), then by numeric port; TCP is constant. For example, 10.0.0.2 precedes 9.0.0.1, and port 80 precedes 443 for the same address. Normalization MUST NOT mutate or alias caller-owned rule sets.

5.2.2 Administrative intersection and the network ceiling ​

The closed v2 administrative shape is defined by administrative-policy-v2.schema.json. An omitted network ({}) imposes no additional restriction. If network is supplied, its nonnull egressAllow array is required. An explicit empty array denies all. Null does not mean omission. Filesystem and unknown administrative fields MUST refuse in v2; network restrictions MUST refuse when resolving v1.

Treat the requested and administrative allowances as sets of exact (address, TCP, port) tuples. The effective set is the requested set when admin network restrictions are omitted, otherwise their intersection. Administrative entries absent from the requested set cannot grant access. Deduplicate and sort both inputs as above; an empty intersection remains an explicit empty array. Each supplied rule set is limited to 4096 entries before deduplication, following the v1 resource-bound rule. Effective lists are subject to the same bound.

network/egress-allow/v1 authorizes only initiation of outbound TCP connections to the listed destination tuples within the provider's claimed network boundary. There are no implicit allowances for DNS, loopback, model inference, fallbacks, controller/results services or control planes. A model endpoint MUST be listed like any other destination. Other new outbound traffic is not authorized, including protocols/families that cannot be expressed as grants in this version. A provider unable to cover that boundary or deny unauthorized paths MUST refuse, not claim partial enforcement. This egress-only contract does not define ingress permissions or promise handling of pre-existing/in-flight connections. It does not select a CNI or certify host, NAT, privilege or routing coverage.

5.2.3 Canonical bytes, digest and payload ​

Effective policy bytes MUST be JCS-canonical UTF-8 JSON, with normalized endpoint sets and the exact required capability list. Empty lists encode as [], not null; no dummy filesystem field is emitted for v2. Canonical output is limited to 4 MiB, as in v1, and input uses the strict JSON profile: duplicate/unknown fields, invalid UTF-8 or unpaired surrogate escapes, trailing values and unsafe numbers MUST refuse. Reference schemas validate structure, not all byte-level constraints.

For both policy versions, the existing digest algorithm is unchanged:

text
SHA-256("agentsuite-effective-policy\x00v1\x00" ||
        uint64-big-endian(byte-length(canonical-policy-bytes)) ||
        canonical-policy-bytes)

The displayed \x00 denotes one NUL byte, not four printable characters. Prefix the lowercase hexadecimal result with sha256:. The domain's v1 identifies this digest framing, not the policy format version; the policy's own version is already committed by its canonical bytes. Do not substitute a new domain or use the root artifact content-digest function in place of this policy digest.

A provider payload carries the exact policy bytes, their policy digest, the policy format version and the required capabilities. Its outer version MUST match the version inside the bytes. Capabilities MUST match exactly, and the bytes MUST verify both their digest and exact canonical representation. A digest of noncanonical bytes is insufficient. Consumers MUST preserve and verify the bytes rather than decode and reserialize them before use. Carrier transport encoding is not a new policy representation.

Language-neutral vectors live in policy/testdata/: the existing v1 JSON/digest pair, a v1 ordering pair that orders U+10000 before U+E000, plus v2 nonempty and deny-all JSON/digest pairs. Read JSON fixture bytes directly without adding a newline. Installation, observed activation and lifetime safety are distinct runtime claims; neither valid policy bytes nor a provider payload establishes any of them. Runtime wiring, held-start and drift stopping remain outside these contracts. Section 5.1's authored policy binding does not establish any runtime guarantee.

5.3 Policy scopes and enforcement ownership ​

The Suite declares the agent's policy requirements and safety limits, not permission grants. Organization policy is owned by the organization's administrators and sets the outer limit. Host/personal policy is owned by the host operator or user; agent policy is authored with the agent and bound as in §5.1. The deployer's composition of these scopes (organization → host/personal → agent) MUST only narrow the preceding limits, never broaden them. For an unattended agent, the deployer MUST use the deployment's policy in place of the host/personal scope; organization and agent scopes still apply.

The deployer MUST resolve the effective policy across applicable scopes and translate it into the target runtime's native configuration. For composition of an authored policy with an administrative policy, the existing version-specific rules in §5.2 apply. Those rules define two-input composition, not a general multi-scope or cross-version policy engine. Administrative policy sources supply documents under those existing contracts; this specification defines no source-specific translation format. An omitted agent policy does not remove applicable administrative limits. The deployer MUST NOT silently drop a scope or safeguard that those composition rules cannot represent, and MUST refuse deployment if the target cannot meet a required need or enforce the effective policy's safeguards and required capabilities. This does not change §5.2's intersection semantics or turn authored allowances into permission grants.

The runtime MUST enforce the policy through its native configuration, without reading the Suite for policy resolution or enforcement. This boundary does not prohibit reading Suite-derived bindings for other runtime responsibilities. These deployment and runtime responsibilities do not change artifact validation or frozen draft-reader acceptance. Successful validation does not establish deployment support or runtime enforcement.

6. Experimental contracts ​

This section collects explicitly selected experimental contracts; selecting a stored definition does not establish runtime enforcement or qualification.

6.1 Capability-based inference ​

The experimental capability-based profile accepts model.capabilities instead of an exact model.model. The two are mutually exclusive. Requirements declare an API revision, minimum total context and maximum-output capacity, inference streaming and tool-calling support. Endpoint and credential bindings remain deployment inputs. See inference.schema.json. The exact-model representation remains supported unchanged. Capability declarations are not model qualification evidence or permission to substitute an exact model.

6.2 Image execution contract ​

An optional experimental execution record describes the image serving contract, named environment inputs and configuration ABI. Its closed schema is execution.schema.json. The initial mounted configuration mapping is deliberately limited to the pinned AgentKit HTTP profile; it does not complete sandbox-image conformance or native runtime registration. The http-v1 kind describes a serving interface, not Kubernetes placement or runtime selection. The agentkit-v0-mounted-v1 configuration value is an explicit experimental adapter ABI; it is not a general cross-harness configuration format. This record describes a built image interface; it does not select a suite member's runtime or make images mandatory for native execution. A consumer's versioned execution-profile selection determines whether a member requires an image. If it does, the image declaration must agree with the selected build profile's serving contract. Native exact-model profiles must not be converted to capability-based image execution merely because their declared build inputs include a harness or execution record.

6.3 Experimental critical flow ​

The separately selected kmx.flow.v1alpha1 root extension MUST be critical and bind the original JCS bytes at coordination/flow.json. Its closed, bounded kmx.flow/v1alpha1 payload and fixed reader/member-verifier APIs are defined in Experimental critical serial flow, with kmx-flow-v1alpha1.schema.json. Core manifest versions and the default reader's critical-extension refusal remain unchanged. No extension stripping, graph rewrite or error-driven fallback is allowed.

Only this experimental contract applies calling-session/per-edge outstanding invocation accounting, inherited ancestor-depth bounds and monotonic step/edge approval requirements; see its explicit runtime conformance vectors. It does not add Agent.invokes[].approval to the frozen draft. Runtime enforcement and whole-suite proof remain consumer-owned; unsupported delegation/gates MUST refuse. Stable graduation belongs to #30; this experimental delivery under #35 does not wait for it.

7. Conformance and errors ​

7.1 Suite validator ​

A conforming suite validator asserts:

IDRequirement
AS-OCI-001OCI layout, index, manifest, descriptors, config, and one content layer are valid.
AS-JSON-001Normative JSON is strict, duplicate-free, closed, and schema-valid.
AS-PATH-001Archive paths, links, entry types, modes, collisions, and limits are safe.
AS-ID-001Every content-addressed identity matches its normative algorithm.
AS-GRAPH-001All manifest and invocation references form a closed graph.
AS-EVAL-001Optional evaluations conform to §3.
AS-COMPOSE-001Every agent/platform/profile composition exactly resolves its declared tool providers and contains no ambient providers.
AS-RUNTIME-001Optional runtime profiles and selections satisfy §2.4 and §2.6 shape, identity, uniqueness and harness consistency.
AS-PROVIDER-COMPOSE-001Every ToolProvider composition resolves one exact same-platform variant, dependency closure, and runtime base.
AS-PROVIDER-001Bundled variants match content inventory and exact platforms; remote ToolProviders contain only supported transports and valid references.
AS-SECRET-001Content contains references and names, not credential-shaped literal values.
AS-CAP-001Declared capabilities equal derived capabilities.
AS-DRAFT-001Deferred and reserved features are rejected.

A suite validator MUST accept either an extracted content directory or an OCI image-layout directory. Validation MUST operate offline after the referenced blobs are present and MUST NOT require a runtime or orchestration control plane. Validation MUST NOT invoke an agent, tool, model, or judge.

The CLI validation report counts toolProviders and toolProviderCompositions. These counts describe provider manifests and standalone provider compositions, respectively; they do not count callable tools. compositionSelections includes optional runtimeProfile; agentPlatforms remains a deduplicated platform inventory. Semantic diff uses legacy composition IDs agent@platform or profiled IDs agent@platform@profile, and runtimeProfile records keyed by profile ID. Profile changes affect only selecting members, plus existing transitive invocation impact. Legacy report/diff outputs are unchanged.

7.2 Sandbox image validator ​

A conforming sandbox image validator asserts:

IDRequirement
ASI-BIND-001An Agent image's label, embedded binding, binding digest, and selected platform agree.
ASI-PROVIDER-001A ToolProvider image's label, embedded ToolProvider composition, composition digest, and selected platform agree.
ASI-SRC-001Suite, agent, composition, and build inputs match binding identities.
ASI-FS-001Final inventory, ownership, modes, links, collision rules, and writable-path rules hold.
ASI-ABI-001Native loaders, libraries, interpreters, CPU baseline, and required base paths resolve in the final filesystem.
ASI-RUN-001Image user, entrypoint, capabilities, and no_new_privs contract are valid.

7.3 Runtime conformance ​

A conforming runtime test asserts:

IDRequirement
ASR-TOOLS-001The model can invoke only the tools declared by its providers.
ASR-FS-001Immutable image paths remain non-writable and declared writable mounts start empty.
ASR-NET-001Effective egress is no broader than the union required by the resolved tool providers and model endpoint.
ASR-SEC-001Secret values are injected only at runtime and are not persisted into image or suite content.
ASR-PROC-001The process executes non-root with no added capabilities and no_new_privs.
ASR-AUTH-001A Tool declaring delegatedAuthorization fails closed: the runtime refuses the call when the requester is unverified, no connection is bound to bindingRef for that requester, or the bound connection has drifted since it was granted.
ASR-APPROVAL-001A Tool declaring approval: required is not dispatched without approval; runtime policy may require approval for any Tool.

Passing suite validation does not imply sandbox-image or runtime conformance. It also does not imply any evaluation ran or passed.

7.4 Errors ​

Validators SHOULD classify failures into stable categories:

  • oci: envelope, descriptor, blob, config, or layer failure;
  • json: syntax, duplicate key, unknown property, depth, or schema failure;
  • path: unsafe archive or content path;
  • digest: canonical identity or file digest mismatch;
  • graph: missing, duplicate, stale, or ambient reference;
  • platform: unsupported or non-exact platform;
  • tool-provider: invalid provider, callable tool, variant, inventory, or execution mode;
  • build: invalid pinned base, harness, or compatibility contract;
  • evaluation: invalid index, case, assertion, ownership, or evaluation bound;
  • security: credentials, unsafe modes, injection variables, or reserved capabilities.

A validator MUST fail closed. It MUST NOT report conformance after silently dropping an unknown field, unsupported critical extension, unavailable tool provider, or invalid platform.

8. Security considerations ​

AgentSuite content is untrusted input even when obtained from an authenticated registry. Digest verification, strict parsing, archive safety, and bounded resource use precede semantic processing.

Signing a suite establishes publisher intent over immutable bytes; it does not prove that a derived image used those bytes or that a runtime enforces the declared boundary. Build provenance and runtime policy remain separate claims.

Shared-sandbox tool providers are mutually exposed through their shared process and filesystem environment. A malicious provider can attempt to inspect another provider's files, environment, sockets, or runtime credentials. Deployments that require separation MUST use separate agent sandboxes. A future specification version MAY define additional execution modes with different isolation properties.

SBOM and provenance descriptors are evidence references, not trust decisions. Consumers choose trusted issuers and policies outside this specification.

Authored evaluation inputs, expected text, tool names, patterns, and rubrics are published artifact content, not private evidence. Producers MUST NOT include session-captured transcripts, answers, tool payloads, or reasoning in evaluation documents. Synthetic authored inputs are distinct from retained session content. Consumers SHOULD avoid echoing authored operands in diagnostics. Evaluation execution requires separate consent and deployment policy.

A Tool's delegatedAuthorization names a portable authorization requirement, not a granted authorization. Binding that requirement to a live connection, verifying requester identity, and brokering credential injection are runtime responsibilities outside the artifact. A runtime that dispatches a delegatedAuthorization call without verifying the requester, without a connection bound to bindingRef for that requester, or after that binding has drifted (relinked, revoked, or stale) has failed open rather than closed; this specification requires such calls to be refused.

9. References ​

9.1 Normative references ​

9.2 Informative references ​

Appendix A. Draft exclusions ​

This draft does not specify:

  • session transcripts, checkpoints, snapshots, or mutable memory;
  • embedded evaluation results, result payload formats other than §4.2, evaluator execution protocols;
  • plaintext credentials or resolved secret values;
  • OAuth flows, consent UX, token issuance, refresh, or revocation;
  • a deployment's Connection or account-link storage and identity verification mechanism;
  • dependency solving inside a packaged suite;
  • generic shell tools, OpenAPI tools, or arbitrary HTTP connectors;
  • agent composition and deploy-time binding for remote MCP providers;
  • standalone non-provider bundles for shared runtimes or libraries;
  • Windows, macOS, or non-amd64/arm64 platforms;
  • additional execution modes or per-provider isolation boundaries;
  • a new OCI Distribution endpoint or registry authentication mechanism;
  • byte-identical gzip output across arbitrary compressor implementations.

AgentSuite · an open format in the agent-primitives family.