Define and import resource bundles
A Registry Bundle delivers versioned domain resources such as knowledge, tool declarations, workflows, evaluators, Runtime Profiles and Skills. Import resources, publish an Environment version, then bind that version to a workspace Agent before exposing the capability to applications.
Separate delivery from execution
| Object | Responsibility | Does not automatically do |
|---|---|---|
| Registry Bundle | Deliver multiple resources and versions together | Create tenants, Agents, workspaces or execution nodes |
| Resource / Version | Name a reusable resource and immutable version | Grant every installed resource to every Agent |
| Environment Version | Resolve and pin the allowed resource graph | Install operating-system packages or provision machines |
| Workspace Agent binding | Select an Agent and exact Environment version | Migrate an already admitted Run |
| Agent service / Invocation | Expose execution to an application | Replace resource definition and publication |
A document-processing product can deliver review instructions, a checklist, acceptance criteria and a Runtime Profile. Each destination team then selects them in its environment. Compute plans, execution artifacts and Docker images have separate contracts.
Minimal structure
Download the complete example and bundle JSON Schema. One resource looks like this:
{
"schema_version": "orbitspace.registry.bundle/v1",
"scope": "tenant",
"resources": [{
"kind": "knowledge",
"name": "example/review-instructions",
"description": "Reusable document review instructions.",
"versions": [{
"version": "1.0.0",
"schema_version": "orbitspace.registry/v1",
"content": {"text": "Review the supplied document and identify unsupported claims."},
"license_expression": "Apache-2.0",
"compatibility": [],
"provenance": {
"source_uri": "https://example.com/team/review-resources",
"revision": "v1.0.0",
"builder": "example-resource-publisher",
"built_at": "2026-01-01T00:00:00Z"
}
}]
}]
}Replace the source, revision, builder, timestamp and license with your actual declarations. A Schema $id identifies its definition file; do not add $schema to a bundle root, which rejects undeclared fields.
Fields and versions
| Field | Rule |
|---|---|
Root schema_version | Exactly orbitspace.registry.bundle/v1 |
scope | Explicit tenant or global; ordinary teams start with tenant |
resources | 1–512; unique (kind, name) within the bundle |
kind | Lowercase bundle kind, distinct from HTTP protobuf enums; see resource types |
name | Lowercase namespace path, up to 160 characters; no .. or // |
versions | 1–128 per resource, at most 2048 across the bundle |
Version version | An explicitly pinned label up to 64 characters; no automatic latest semantics |
Version schema_version | Version metadata format identifier, separate from the bundle and Environment API versions |
content | A kind-specific JSON object; normalized content is currently bounded to 1 MiB per version |
license_expression | Supported SPDX identifier/expression subset or LicenseRef-…, not arbitrary prose |
compatibility | Actual admission constraints; empty means no extra constraint here |
provenance | Required absolute source URI, revision, builder and RFC 3339 build time |
signature | Optional for private tenant versions; trusted Ed25519 required for global versions |
A Bundle is a delivery file, not a separately persisted package ID or whole-package release version. Versions belong to resources; the root schema_version identifies grammar, not your business release. Track a delivery release in your own Git tags or delivery records.
The HTTP bundle_json text limit is 64 MiB. Deployment gateways or transports may impose lower limits. Split large deliveries by responsibility rather than embedding repositories, dependency caches or build outputs.
Project scope and resolution
tenant selects the team namespace, not visibility across every project. The request's policy_scope_id selects the destination project; it is not a bundle-root field. A project environment resolves its own matching resource first, then global content, never another project or tenant-wide content.
Tenant-wide and project-scoped imports are distinct. Publishers require content:write in the destination scope, readers/resolvers need content:read, and project policy still applies. Product credentials invoking an existing service normally need Invocation permissions rather than publication authority.
A bundle containing mcp_server must be a tenant bundle imported into a specific project. MCP OAuth grants, Secret values and local paths are not portable credentials; configure access in the destination project.
Validate and import in Console
Open Content Registry, select the destination project and choose Registry Bundle import. Upload JSON, validate it, inspect counts, versions and publisher information, then import the validated file.
Validation checks format, kind content, compatibility and signatures without creating resources. Import does not start Agents or run Skill scripts. Environment dependencies, actual Host capabilities and tool authorization are checked at later Environment publication and execution-admission boundaries.
Use the HTTP API
POST /api/v1/registry/bundles:validate
POST /api/v1/registry/bundles:import
POST /api/v1/registry:resolveThe first two endpoints accept this wrapper. bundle_json is the original JSON text string, not a nested object. Preserve it to avoid floating-point rounding of large integers changing signed content.
{
"policy_scope_id": "REPLACE_WITH_PROJECT_UUID",
"bundle_json": "{\"schema_version\":\"orbitspace.registry.bundle/v1\",\"scope\":\"tenant\",\"resources\":[...]}"
}The ellipsis above only illustrates the wrapper. For a runnable example, save registry-request.mjs, api-client.mjs, sse.mjs and the bundle together. Inject ORBITSPACE_ACCESS_TOKEN through secret management; set the tenant ID separately when required by an API Token.
export ORBITSPACE_PROJECT_ID=REPLACE_WITH_PROJECT_UUID
node registry-request.mjs validate registry-bundle.json
node registry-request.mjs import registry-bundle.jsonThe helper validates tenant project bundles by default. Explicit import validates first and submits the same original text. It does not automatically retry writes or provide a global-import shortcut. Responses list references, such as knowledge://example/review-instructions@1.0.0; these are not database UUIDs.
Upgrade and recover
Reimporting identical resources, versions and normalized signing envelopes is idempotent. Changed version content needs a new version label. Conflicting resource-level metadata requires reusing the original metadata or choosing another resource name; a new version label alone does not resolve it. Import is not one whole-bundle database transaction: infrastructure failure may leave a valid committed prefix. Replay the original bundle to finish remaining entries.
Archiving blocks new resolution while published Environments retain their pinned graphs. Upgrades require new resource and Environment versions plus an explicit binding change. Rollbacks select an already verified older version.
Continue with Environment definition and Agent binding. See resource types and trust for kind-specific content, signatures and global delivery.