Specification

v0.1Draft

Download the specification as Markdown

Status Of This Document, draft#

This document is an editor-maintained draft of the public runx protocol surface that exists today in the reference implementation. It is published so operators, tooling authors, skill authors, and registry implementers can inspect the contract in one place, version it like code, and reason about compatibility before the surface broadens.

This draft may change at any time. It is not a standards-track document and it should not yet be cited as a stable standard.

The compatibility rules behind the Stable, Draft, and Internal labels are defined in the Stability Policy. Stable labels are applied only where the reference implementation already has durable tests and a clear compatibility burden; draft labels are implemented surfaces that are not yet frozen.

NOTE: Normative keywords in this document are interpreted according to BCP 14 as described in RFC 2119 and RFC 8174 when, and only when, they appear in all capitals.

Current stability map:

text
document slice                 status
spec document                  DRAFT
SKILL.md frontmatter           DRAFT
runners (`run.yaml`)           DRAFT
hosted control schemas         DRAFT
governance control schemas     DRAFT
signed receipts                STABLE
scope admission semantics      STABLE
public registry read routes    DRAFT
public registry acquire route  DRAFT
hosted operator/admin flows     INTERNAL

Artifacts published with this draft:

Overview, draft#

This document defines the publicly documented runx protocol slices that are already implemented:

  • the YAML frontmatter carried by SKILL.md
  • the runners a skill declares in run.yaml
  • public registry read and acquire routes
  • hosted control-plane schemas for runs, resolutions, and agent-turn boundaries
  • hosted governance routing and policy-binding metadata over those run surfaces
  • governance schemas for grants, approvals, and verification
  • signed execution receipts
  • scope admission semantics for grants

This document does not define:

  • homepage, feed, or marketing-page presentation
  • hosted admin-only publish flows
  • undocumented control-plane write surfaces outside the hosted run contract
  • operator-side product schemas and state packets owned by other repos
  • deploy-time product policy

The protocol is intentionally small. The runtime value is not "more metadata"; it is a stable place to hang proof.

text
skill package
  -> SKILL.md frontmatter
  -> runners (`run.yaml`)
  -> registry row
  -> governed execution
  -> signed receipt
  -> later inspection / verification

Protocol goals for v0.1:

  • portable package identity that is readable without executing package code
  • deterministic runner wiring that can be indexed, acquired, and harnessed
  • schema-backed hosted control objects for governed execution and replay
  • a signed receipt surface for later verification and inspection
  • explicit scope narrowing through graphs instead of ambient authority

Conformance, draft#

A producer or service is runx-compatible only for the protocol slices it implements. An implementation MAY claim subset conformance, but it SHOULD name the supported slices explicitly rather than claiming full protocol conformance by implication.

Conformance classes in this draft:

  • a skill package producer emits SKILL.md frontmatter
  • a runner producer emits a checked-in run.yaml
  • a receipt producer emits signed receipts
  • a public registry exposes the versioned HTTP routes in this document
  • a receipt inspector verifies and reports receipt validity

Minimum obligations:

  • A compatible skill package producer MUST emit SKILL.md frontmatter that conforms to skill-frontmatter.schema.json.
  • A compatible runner producer MUST emit run.yaml that conforms to run.schema.json.
  • A compatible receipt producer MUST emit receipts that conform to runx/receipt/v1.
  • A compatible public registry MUST expose GET /v1/skills and GET /v1/skills/{owner}/{name} and MUST return JSON bodies compatible with the published openapi.json.
  • A compatible receipt inspector SHOULD surface verified, unverified, and invalid states distinctly rather than flattening them into one boolean.

Canonical producer rule:

  • Conforming producers MUST emit canonical snake_case field names.
  • Conforming producers MUST reject non-canonical field names rather than silently normalizing them.
  • Parser leniency is not part of this protocol.

Hosted Control Plane, draft#

The hosted API, worker, and agent-turn boundary serialize governed control objects that are part of the public protocol surface, even while the hosted HTTP contract remains draft.

Published control artifact families in v0.1:

Hosted control rules in this draft:

  • producers and hosted services MUST emit objects compatible with the published control schemas when the object crosses a network, storage, or provider boundary
  • OpenAPI MAY project these artifacts through component names, but the canonical wire shapes remain the published schemas under /spec
  • consumers SHOULD treat resolution_requests and submitted_resolutions as evidence-bearing control objects, not arbitrary JSON blobs
  • each queued request carries the request_digest runx reported for it; a response names that digest, and the hosted service refuses one whose digest is not the request's current digest, in the same transaction that records it, so an answer never reaches a request that changed after it was shown
  • each submitted resolution carries the request_digest it answered, and the hosted resume binds the answer to it
  • hosted policy_binding snapshots and request_routes metadata are control surfaces layered over the existing run and approval model, not a second execution engine

Hosted policy model in this draft:

  • policy bundles are immutable versions
  • workspace-default and skill attachments choose the applied bundle
  • runs snapshot the applied bundle as policy_binding
  • worker execution reuses the OSS workspacePolicy seam from that binding
  • replacing or deleting an existing attachment or approval route requires If-Match with the current resource updated_at timestamp
  • approval routes and routing rules describe where requests should surface; they do not replace runtime authorization

Canonical create run response:

json
{
  "status": "accepted",
  "run_id": "run-101",
  "inspect_url": "https://api.runx.test/v1/runs/run-101",
  "app_url": "https://runx.test/r/run-101",
  "requests_url": "https://api.runx.test/v1/runs/run-101/requests",
  "links": {
    "api": "https://api.runx.test/v1/runs/run-101",
    "app": "https://runx.test/r/run-101",
    "requests": "https://api.runx.test/v1/runs/run-101/requests"
  }
}

Canonical run detail response:

json
{
  "status": "found",
  "run": {
    "id": "run-101",
    "skill": "flagship",
    "status": "waiting_resolution",
    "host_status": "paused",
    "kernel_run_id": "rx-kernel-101",
    "created_at": "2026-04-16T00:00:00Z",
    "updated_at": "2026-04-16T00:01:00Z"
  },
  "resolution_requests": [
    {
      "id": "review",
      "kind": "agent_act",
      "invocation": {
        "id": "request-101",
        "task": "issue-to-pr-review",
        "envelope": {
          "run_id": "run-101",
          "step_id": "review",
          "skill": "issue-to-pr",
          "instructions": "Review the proposed change.",
          "inputs": {
            "objective": "review"
          },
          "requirements": {
            "declaration": {},
            "execution_boundary": {
              "kind": "remote_provider"
            }
          },
          "current_context": [],
          "historical_context": [],
          "provenance": [],
          "output": {
            "review_decision": "object"
          },
          "trust_boundary": "runtime-governed: caller-mediated resolution is the default; an in-process model loop runs only with explicit per-run managed-agent consent, and every resolution is receipt-bound",
          "instructions_digest": "sha256:73f3b2494ae849155e8979f10f51d77de2b06b05b81e72ed66a5cd4e7c63c3a7"
        },
        "allowance": {
          "tools": [
            "git.status"
          ]
        },
        "role": "codex"
      }
    }
  ],
  "submitted_resolutions": [
    {
      "request_id": "review",
      "request_digest": "sha256:c97ace4c8fef2cee8fa0f3c9f52aab18dbd4f42438afe362ffb8f75ce4c04b84",
      "request_kind": "agent_act",
      "actor": "human",
      "payload": {
        "verdict": "pass"
      },
      "submitted_at": "2026-04-16T00:02:00Z"
    }
  ]
}

run.status is the hosted lifecycle state. run.host_status is the canonical cross-surface projection that normalizes hosted runs to running, paused, completed, failed, or denied.

When a hosted receipt store is available, the current reference runtime also surfaces optional run-summary fields derived from the attached receipt, the submitted resolutions, and the ledger:

  • completed_at
  • actors
  • artifact_types
  • lineage

lineage is present on a run the retired hosted rerun surface created. It records the source run and optional source receipt without mutating the historical run.

The current reference GET /v1/runs route also supports read-only filtering with:

text
q             case-insensitive search over run id, skill, actors, and artifact
              types
skill         exact skill filter
status        exact hosted lifecycle status filter
actor         exact actor/provider filter
artifact_type exact artifact type filter
since         inclusive ISO-8601 lower bound on created_at
until         inclusive ISO-8601 upper bound on created_at
limit         clamped to 1..100
cursor        opaque page cursor returned from the previous response

Run lists are ordered by created_at, descending, with id as the stable tie-breaker. The admin GET /v1/admin/runs route uses the same list model and filters plus optional principal_id.

Canonical run diff response:

json
{
  "status": "success",
  "diff": {
    "left": {
      "id": "run-101",
      "skill": "flagship",
      "status": "success",
      "host_status": "completed",
      "created_at": "2026-04-16T00:00:00Z",
      "updated_at": "2026-04-16T00:01:00Z"
    },
    "right": {
      "id": "run-201",
      "skill": "flagship",
      "status": "failure",
      "host_status": "failed",
      "created_at": "2026-04-17T00:00:00Z",
      "updated_at": "2026-04-17T00:01:00Z"
    },
    "changed": true,
    "fields": {
      "status": {
        "left": "success",
        "right": "failure"
      }
    },
    "actors": {
      "added": [
        "anthropic"
      ],
      "removed": []
    },
    "artifactTypes": {
      "added": [
        "review_note"
      ],
      "removed": [
        "docs_site"
      ]
    }
  }
}

Canonical run requests response:

json
{
  "status": "success",
  "run_id": "run-101",
  "requests": [
    {
      "id": "review",
      "kind": "agent_act",
      "request_digest": "sha256:c97ace4c8fef2cee8fa0f3c9f52aab18dbd4f42438afe362ffb8f75ce4c04b84",
      "invocation": {
        "id": "request-101",
        "task": "issue-to-pr-review",
        "envelope": {
          "run_id": "run-101",
          "step_id": "review",
          "skill": "issue-to-pr",
          "instructions": "Review the proposed change.",
          "inputs": {
            "objective": "review"
          },
          "requirements": {
            "declaration": {},
            "execution_boundary": {
              "kind": "remote_provider"
            }
          },
          "current_context": [],
          "historical_context": [],
          "provenance": [],
          "output": {
            "review_decision": "object"
          },
          "trust_boundary": "runtime-governed: caller-mediated resolution is the default; an in-process model loop runs only with explicit per-run managed-agent consent, and every resolution is receipt-bound",
          "instructions_digest": "sha256:73f3b2494ae849155e8979f10f51d77de2b06b05b81e72ed66a5cd4e7c63c3a7"
        },
        "allowance": {
          "tools": [
            "git.status"
          ]
        },
        "role": "codex"
      },
      "submitted_resolution": {
        "request_id": "review",
        "request_digest": "sha256:c97ace4c8fef2cee8fa0f3c9f52aab18dbd4f42438afe362ffb8f75ce4c04b84",
        "request_kind": "agent_act",
        "actor": "human",
        "payload": {
          "verdict": "pass"
        },
        "submitted_at": "2026-04-16T00:02:00Z"
      }
    }
  ]
}

Skill Format, draft#

runx splits skill packages into two layers:

  1. SKILL.md carries portable skill identity, frontmatter, and prose.
  2. run.yaml carries the skill's runners, the connector operations it may call, and its harness cases.

SKILL.md, draft#

SKILL.md is the operator manual. It MUST begin with YAML frontmatter delimited by --- and followed by a markdown body. The body carries the knowledge an operating agent and a human need to use the skill well: purpose, boundaries, workflow, stop conditions, evidence expectations, and composition guidance. It is context, not executable configuration.

Execution metadata MUST NOT appear in SKILL.md. Runners, steps, inputs, connectors, scopes, tools, artifacts, and harnesses belong in run.yaml. A package validator MUST reject those fields in the manual rather than choose between two competing declarations.

Canonical SKILL.md example:

markdown
---
name: sourcey
description: Generate documentation for a project using Sourcey.
---

# Sourcey

Generate documentation from a bounded project source. Inspect the project
before drafting, preserve source citations, and stop when the requested target
or publish authority is missing.

The frontmatter is exactly the Agent Skills field set, so every host that loads Agent Skills accepts the manual:

text
name
description
license
compatibility
metadata
allowed-tools

Frontmatter rules:

  • name is REQUIRED: at most 64 lowercase letters, digits and hyphens, with no leading, trailing or doubled hyphen. A package that hosts discover by directory MUST use its directory name.
  • description is REQUIRED, non-empty, and at most 1024 characters.
  • license is OPTIONAL. compatibility is OPTIONAL and at most 500 characters. metadata is OPTIONAL and maps string keys to string values. allowed-tools is OPTIONAL: a space-separated list of pre-approved tools.
  • Any other top-level field MUST be rejected. Catalog metadata belongs in run.yaml under catalog.
  • Registries MAY render or index the manual, but installable registry metadata MUST come from the native validated package projection. Registries MUST NOT reconstruct execution semantics from either source document independently.

Runners (run.yaml), draft#

run.yaml declares one or more runners for the skill and may attach inline harness cases. Its top-level skill field is REQUIRED and MUST equal the name declared in SKILL.md. A package without run.yaml is portable: it carries only its manual.

A runner is a graph: an ordered list of steps that runx sequences. Each step is exactly one of five kinds:

Step Declares Boundary
agent { role, task }, outputs, optional context_skills an agent turn, answered by the attached agent
tool a catalog tool ref, a worker { module }, or a trusted host process { command } a deterministic tool
operation <connector>/<operation> and its input a connector operation under kernel custody
ask { gate, reason } a resolution the kernel requests
skill a skill ref and optional runner an attenuated child run

The agent never chooses the next step; runx does. An agent acts only inside its turn.

A skill lists what its agent turns may call: connectors (operations), tools (catalog tools, each run under the scopes it declares), skills (child skills, and the catalog rules {catalog: {trust: <tier>}} and {project: true} under which a turn may load a skill or connector it finds) and asks: true (questions for the human). A runner may narrow these with its own tools, skills and asks, each a part of the skill's. Every agent turn may call what its runner allows and nothing else. runx admits, executes and records each call and returns a turn call result; a turn's status lists the calls it may make and the calls it has made. A runner without steps is one agent turn and declares its outputs instead:

yaml
skill: answer
tools: [fs.read]
runners:
  answer:
    default: true
    inputs:
      question:
        type: string
        required: true
    outputs:
      answer: string

Canonical run.yaml example:

yaml
skill: sourcey

catalog:
  kind: skill
  audience: public
  visibility: public
  role: canonical
  category: content
  tags: [docs, publishing]
  links:
    source: https://github.com/0x0-state/sourcey

runners:
  sourcey:
    default: true
    inputs:
      project:
        type: string
        required: true
    steps:
      - id: discover
        agent: { role: builder, task: sourcey-discover }
        outputs:
          docs_inputs: object
      - id: approve
        ask: { gate: build, reason: Build the documentation site. }
      - id: build
        tool: sourcey.build
        scopes:
          - sourcey.build
        inputs:
          project: $input.project
          docs_inputs: $steps.discover.docs_inputs

harness:
  cases:
    - name: sourcey-discovery-yield
      runner: sourcey
      inputs:
        project: fixtures/sourcey/basic
      expect:
        status: needs_agent

A skill that reaches a provider declares the connector operations it calls and uses operation steps:

yaml
connectors:
  national-weather-service:
    operations: [forecast.read]
runners:
  forecast:
    default: true
    inputs:
      office:
        type: string
        required: true
    steps:
      - id: forecast
        operation: national-weather-service/forecast.read
        input:
          office: $input.office

The optional catalog block is registry metadata. kind, audience, visibility and role are REQUIRED when it is present. It may also carry:

  • category: the registry category the author requests. The current reference registry recognizes these slugs:

    text
    code
    payments
    data
    research
    content
    security
    ops
    growth
    authoring

    authoring is a builder-facing category. Registries MAY derive a category when the package omits one. New category slugs are registry-maintainer changes, not package-local extensions.

  • tags: unique search tags.

  • owner: the canonical lowercase registry namespace of a contributed package maintained in another repository. Absent, the package belongs to the publishing owner.

  • links: named https reference URLs, such as the source repository.

Canonical runner rules:

  • skill and runners are REQUIRED.
  • Each runner MUST declare steps. result_from, when omitted, is the last step.
  • default: true marks the default runner for the package.
  • Each step MUST declare a unique id and exactly one of agent, tool, operation, ask, or skill. Fields that do not apply to the step's kind MUST be rejected.
  • A step receives exactly what it binds. inputs (and an operation step's call fields) carry literals and references at any depth: $input or $input.<path> for the run's input, $steps.<id> or $steps.<id>.<path> for an earlier step's result, read as the values the step declares rather than the envelope they are stored in. A literal string that begins with $ is written $$ wherever a value is written. A reference to a later or unknown step MUST be rejected.
  • when runs a step only when one field it reads, $input.<path> or $steps.<id>.<path>, equals or does not equal a literal: exactly one of equals or not_equals. A step whose condition does not hold is skipped, and so is every step that reads a skipped step. An absent input field resolves to nothing, not null. A condition whose field resolves to nothing when its step is reached MUST stop the run.
  • A runner's policy.guards each gate one step the same way, reading only steps before it. A guard that does not hold, or whose field resolves to nothing, MUST block the step.
  • An operation step MAY declare act, the act its call performs: form (observation, reply or review), purpose (REQUIRED), reason, target, decision (continue, close, decline, defer, escalate or monitor) and previous (a receipt id). Any other act field MUST be rejected, and an act that resolves outside that shape MUST refuse the call before admission. The act is bound into the call's admitted intent and sealed in the call's receipt; it never reaches the provider. Who acted, under what authority, and why that was legitimate come from admission, never from the act.
  • $act and $act.<field> read the act the run's invoker states, and only inside an act. A skill step MAY declare act, which is the act its child run is invoked with. An act that resolves to nothing leaves the call without one.
  • An agent, worker, or process step whose result the runner returns MUST declare outputs or an artifact contract.
  • An operation step MUST name a requirement declared under connectors, and the requirement MUST list the operation. A requirement is keyed by a connector name (github, google/calendar) or an alias; operation is the key, a slash, and the operation, split at the last slash (google/calendar/events.list).
  • harness.cases[*].runner, when present, MUST reference a declared runner.
  • harness.cases[*].caller.act is the act the case's caller states for the run. caller.approvals decides approval requests by address: an operation step's id or an ask's gate at the root, and <path>#<id> in a child run, <path> being the child run's place under the root. A child run's request MUST NOT be decided by its id alone.
  • harness.cases[*].expect.status, when present, MUST be one of sealed, failure, needs_agent, policy_denied, or escalated.

A graph has no loops, fan-out, retry, or catch. Repetition belongs in a tool, an agent turn, or the host's ongoing work; effect failures belong to the kernel; expected outcomes are decisions branched with when. A hard failure stops the run and the receipt records where.

Receipts, stable#

A receipt is a signed execution artifact. It is the durable inspection surface for what ran, what was admitted, and what the runtime is willing to claim. A receipt states what its issuer observed and what someone stated. It never states an intent nobody gave it.

Each receipt below is from a real harness replay, sealed under the public fixture key a replay signs with. Its public half is in tools/verify/runx-demo-jwks.json in the runx repository, so the standalone tools/verify/verify.mjs verifies these receipts against that JWKS.

A step that makes no governed call seals its outcome and nothing more.

Canonical step receipt, the hello-world step of examples/hello-graph:

json
{
  "schema": "runx.receipt.v1",
  "id": "sha256:133fa57fec05b7d488717736317f8c52484b913dc45efc0b74728ecb84b8f0f4",
  "created_at": "2026-05-18T00:00:00Z",
  "canonicalization": "runx.receipt.c14n.v1",
  "issuer": {
    "type": "local",
    "kid": "local-3097e2dee2cb4a34b53840cdb705aed71067c36f68db0e0f559c3f3fa043315f",
    "public_key_digest": "sha256:3097e2dee2cb4a34b53840cdb705aed71067c36f68db0e0f559c3f3fa043315f",
    "runx_version": "0.11.0"
  },
  "signature": {
    "alg": "Ed25519",
    "value": "base64:apKdgSwSYRB8SQE7OP3KBqiR4o_nfrlFKtqE3HQaefVUd7QVw0jgcpw4rHnplwIRCZLvshYSAEsnA-SkveS_Cw"
  },
  "digest": "sha256:41a6cdd74947b7845c21962a0067de961f68560371f14a8710f31b182329d170",
  "subject": {
    "kind": "step",
    "ref": {
      "type": "run",
      "uri": "runx:run:harness-graph/first#default",
      "label": "hello-world"
    },
    "outcome_digest": "sha256:229e850a4ffaba0f14ea2b63ac46634d29b0fee9699b45ae0c41e7bcb1b7503d"
  },
  "authority": {
    "grant_refs": [],
    "scope_refs": [],
    "terms": [],
    "derivations": [],
    "enforcement": {
      "execution_boundary": {
        "kind": "trusted_host_process"
      }
    }
  },
  "decisions": [],
  "acts": [],
  "seal": {
    "criteria": [
      {
        "criterion_id": "step_outcome",
        "status": "verified",
        "evidence_refs": [],
        "verification_refs": []
      },
      {
        "criterion_id": "output_contract_verified",
        "status": "verified",
        "evidence_refs": [],
        "verification_refs": [
          {
            "type": "verification",
            "uri": "runx:verification:output_contract_verified:sha256:84dd2557aeddb7f13dd570feb30ab5b4a5fbc875b9eb2cb4d9fcd4f44d7bf425"
          }
        ]
      }
    ],
    "outcome": "completed"
  },
  "lineage": {
    "children": []
  }
}

A governed call seals one act. Here the call's caller stated a reply act that closes the thread, and the operation declared the effect the call produced. The receipt's authority records the execution term admission derived for the call, which the act's legitimacy names.

Canonical governed call receipt:

json
{
  "schema": "runx.receipt.v1",
  "id": "sha256:1cf7174123f48dc4598c7653af483c89845157250864d88f910f25b656b5f30f",
  "created_at": "2026-05-18T00:00:00Z",
  "canonicalization": "runx.receipt.c14n.v1",
  "issuer": {
    "type": "local",
    "kid": "local-3097e2dee2cb4a34b53840cdb705aed71067c36f68db0e0f559c3f3fa043315f",
    "public_key_digest": "sha256:3097e2dee2cb4a34b53840cdb705aed71067c36f68db0e0f559c3f3fa043315f",
    "runx_version": "0.11.0"
  },
  "signature": {
    "alg": "Ed25519",
    "value": "base64:bU8eESNGtZD-Zoh_NsCcfTf4bYvuyXsqPKalQEQpCr_GE5SF71sPx4el8Wmtf7PwVt3sLsWQ-0RTga7NqK1zBQ"
  },
  "digest": "sha256:03d0b9003afc6abde6b5bf4b1bd53619b042f1bb5fc18db69185f27456b983f7",
  "subject": {
    "kind": "step",
    "ref": {
      "type": "run",
      "uri": "runx:run:harness-stated#post",
      "label": "call-acts"
    },
    "outcome_digest": "sha256:74918df7199117b8a1e6d754480e7ed35b79109528394ce384bf4402ff230d2a"
  },
  "authority": {
    "actor_ref": {
      "type": "principal",
      "uri": "runx:principal:operator-fixture"
    },
    "grant_refs": [
      {
        "type": "grant",
        "uri": "runx:grant:call-acts-fixture"
      }
    ],
    "scope_refs": [
      {
        "type": "scope_admission",
        "uri": "runx:scope_admission:channel.post"
      }
    ],
    "terms": [
      {
        "term_id": "exec-0287138a4856b7f7788ef16a16ff8cb328c62a689fb5ee510d6a52044a576303",
        "principal_ref": {
          "type": "principal",
          "uri": "runx:principal:operator-fixture"
        },
        "resource_ref": {
          "type": "connector_instance",
          "uri": "runx:connector_instance:hosted.cd28a511aa9579e618df0a1b9c246ae499957d33358f65c1948bdb94a04b5bf1"
        },
        "resource_family": "connector",
        "verbs": [
          "write"
        ],
        "bounds": {
          "operations": [
            "runx/slack/channel.post"
          ],
          "scopes": [
            "channel.post"
          ],
          "targets": [
            "slack://T123/C456"
          ]
        },
        "approvals": [
          {
            "approval_ref": {
              "type": "verification",
              "uri": "runx:approval:human:sha256:5194a6debf31aff887a09bfeb2edbeb4febbe0eb1329d860cb7f686936668b95"
            },
            "approved_at": "2026-10-12T12:27:27.394Z"
          }
        ],
        "issued_by_ref": {
          "type": "host",
          "uri": "runx:host:runx-kernel"
        }
      }
    ],
    "derivations": [
      {
        "term_id": "exec-0287138a4856b7f7788ef16a16ff8cb328c62a689fb5ee510d6a52044a576303",
        "intent_digest": "sha256:510789467247bc1dfaa7f90e4987168a53b2b49f68e68d86ad46ecbc0ef9b1a6",
        "evidence": [
          {
            "kind": "capability",
            "reference": {
              "type": "grant",
              "uri": "runx:grant:call-acts-fixture"
            },
            "term": {
              "term_id": "capability:call-acts-fixture",
              "principal_ref": {
                "type": "principal",
                "uri": "runx:principal:operator-fixture"
              },
              "resource_ref": {
                "type": "connector_instance",
                "uri": "runx:connector_instance:hosted.cd28a511aa9579e618df0a1b9c246ae499957d33358f65c1948bdb94a04b5bf1"
              },
              "resource_family": "connector",
              "verbs": [
                "write",
                "read"
              ],
              "bounds": {
                "operations": [
                  "runx/slack/*"
                ],
                "scopes": [
                  "channel.post"
                ],
                "targets": [
                  "*"
                ]
              },
              "issued_by_ref": {
                "type": "grant",
                "uri": "runx:grant:call-acts-fixture"
              }
            }
          },
          {
            "kind": "approval",
            "reference": {
              "type": "verification",
              "uri": "runx:approval:human:sha256:5194a6debf31aff887a09bfeb2edbeb4febbe0eb1329d860cb7f686936668b95"
            }
          }
        ],
        "proofs": [
          {
            "parent_authority_ref": {
              "type": "connector_instance",
              "uri": "runx:connector_instance:hosted.cd28a511aa9579e618df0a1b9c246ae499957d33358f65c1948bdb94a04b5bf1"
            },
            "comparison_algorithm": "runx.connector-bounds-subset.v1",
            "result": "subset",
            "compared_terms": [
              {
                "child_term_id": "exec-0287138a4856b7f7788ef16a16ff8cb328c62a689fb5ee510d6a52044a576303",
                "parent_term_id": "capability:call-acts-fixture",
                "relation": "subset"
              }
            ],
            "checked_at": "2026-10-12T12:27:27.394Z"
          }
        ],
        "derived_at": "2026-10-12T12:27:27.394Z"
      }
    ],
    "enforcement": {
      "execution_boundary": {
        "kind": "remote_provider"
      }
    }
  },
  "decisions": [
    {
      "decision_id": "dec_post",
      "choice": "close",
      "selected_act_id": "act_post"
    }
  ],
  "acts": [
    {
      "id": "act_post",
      "form": "reply",
      "intent": {
        "purpose": "Tell the channel the deploy finished",
        "legitimacy": "runx:authority_term:exec-0287138a4856b7f7788ef16a16ff8cb328c62a689fb5ee510d6a52044a576303"
      },
      "reason": "The release went out cleanly.",
      "criterion_bindings": [
        {
          "criterion_id": "step_outcome",
          "status": "verified",
          "evidence_refs": [],
          "verification_refs": [
            {
              "type": "verification",
              "uri": "runx:operation_intent:sha256:510789467247bc1dfaa7f90e4987168a53b2b49f68e68d86ad46ecbc0ef9b1a6",
              "provider": "slack",
              "proof_kind": "effect_evidence"
            },
            {
              "type": "verification",
              "uri": "runx:approval:human:sha256:5194a6debf31aff887a09bfeb2edbeb4febbe0eb1329d860cb7f686936668b95",
              "provider": "slack",
              "proof_kind": "effect_evidence"
            },
            {
              "type": "verification",
              "uri": "runx:provider_ack:harness-sha256:e99502936df0730d12c15a5e0406da43bb6e3400ec8ee4d16a16dae7cc0be95b",
              "provider": "slack",
              "proof_kind": "effect_evidence"
            },
            {
              "type": "verification",
              "uri": "runx:harness:provider-readback:sha256:e99502936df0730d12c15a5e0406da43bb6e3400ec8ee4d16a16dae7cc0be95b",
              "provider": "slack",
              "proof_kind": "effect_finality"
            }
          ]
        }
      ],
      "target_refs": [
        {
          "type": "thread",
          "uri": "github://acme/app/issues/7"
        }
      ],
      "artifact_refs": [
        {
          "type": "thread",
          "uri": "slack://T123/C456/1750000000.000001",
          "provider": "slack"
        }
      ],
      "operation": {
        "connector": "slack",
        "manifest_digest": "sha256:33bf52ad9c3f89f05379224ddb8b624086f993b15a79c54d82ea401d99ae6066",
        "connector_digest": "sha256:1e115c4f2b00a4caa9e9930929b71772468c0f48f4f7750bf9038ca27f7e97a0",
        "operation": "channel.post",
        "operation_digest": "sha256:7164e811a1e4f64f4169e07dda32ca297f063d9c0cb72b5626e8c0e0cafafafd",
        "instance_id": "hosted.cd28a511aa9579e618df0a1b9c246ae499957d33358f65c1948bdb94a04b5bf1",
        "target": "slack://T123/C456",
        "payload_digest": "sha256:e3d0cf35d636f1962dc0158e0cbeb83d4aac56adc2e59de749d26e11fa2f4b51",
        "request_key_digest": "sha256:38ba61681706177105d426c1890b083b1c6532e01353a20e55d775e7f0c6e3c6",
        "approval_digest": "sha256:38b59dfbb5e97f7cdb0038039d079186136076fb9d924f417dc8e7e14393ba21",
        "act_digest": "sha256:394090a1feebbd6ad8f46d6bf0e529711600fcf87f105136415ffeade59d7eaa"
      }
    }
  ],
  "seal": {
    "criteria": [
      {
        "criterion_id": "step_outcome",
        "status": "verified",
        "evidence_refs": [],
        "verification_refs": [
          {
            "type": "verification",
            "uri": "runx:operation_intent:sha256:510789467247bc1dfaa7f90e4987168a53b2b49f68e68d86ad46ecbc0ef9b1a6",
            "provider": "slack",
            "proof_kind": "effect_evidence"
          },
          {
            "type": "verification",
            "uri": "runx:approval:human:sha256:5194a6debf31aff887a09bfeb2edbeb4febbe0eb1329d860cb7f686936668b95",
            "provider": "slack",
            "proof_kind": "effect_evidence"
          },
          {
            "type": "verification",
            "uri": "runx:provider_ack:harness-sha256:e99502936df0730d12c15a5e0406da43bb6e3400ec8ee4d16a16dae7cc0be95b",
            "provider": "slack",
            "proof_kind": "effect_evidence"
          },
          {
            "type": "verification",
            "uri": "runx:harness:provider-readback:sha256:e99502936df0730d12c15a5e0406da43bb6e3400ec8ee4d16a16dae7cc0be95b",
            "provider": "slack",
            "proof_kind": "effect_finality"
          }
        ]
      }
    ],
    "outcome": "completed"
  },
  "lineage": {
    "children": []
  }
}

A graph seals no act of its own. Its receipt commits each step receipt in lineage.children.

Canonical graph receipt:

json
{
  "schema": "runx.receipt.v1",
  "id": "sha256:4ecdfe15d00f7ce518117d505270e4657e6868212a4d756a95249f01f0df8f6a",
  "created_at": "2026-05-18T00:00:00Z",
  "canonicalization": "runx.receipt.c14n.v1",
  "issuer": {
    "type": "local",
    "kid": "local-3097e2dee2cb4a34b53840cdb705aed71067c36f68db0e0f559c3f3fa043315f",
    "public_key_digest": "sha256:3097e2dee2cb4a34b53840cdb705aed71067c36f68db0e0f559c3f3fa043315f",
    "runx_version": "0.11.0"
  },
  "signature": {
    "alg": "Ed25519",
    "value": "base64:X4dL_oAedqkt3w8qKWsCULc_uz1iF_U4ch0pHKTSmlbjqKIGUPcPNzM9JMav_l8hjWmAlC-1oDJ1KwwliwKiAg"
  },
  "digest": "sha256:bc56796a04fc295f8c272a8335def6b60cfe2ee46235afb4904ec630fb592905",
  "subject": {
    "kind": "graph",
    "ref": {
      "type": "run",
      "uri": "runx:run:harness-graph",
      "label": "hello-graph"
    },
    "outcome_digest": "sha256:e7372b8194db6466ec69db4c060c355c983787b7137e5e7c5f43ad35d5fb46eb"
  },
  "authority": {
    "grant_refs": [],
    "scope_refs": [],
    "terms": [],
    "derivations": [],
    "enforcement": {}
  },
  "decisions": [],
  "acts": [],
  "seal": {
    "criteria": [],
    "outcome": "completed"
  },
  "lineage": {
    "children": [
      {
        "type": "receipt",
        "uri": "runx:receipt:sha256:bdd47a922b032be00671c860551d59bf7f84e5826d0de03db2547c9293c6fbb3",
        "locator": "sha256:b0fab3d5aad0a01919218771af305993382c83bf34ac2275d07c37085ca7512f"
      },
      {
        "type": "receipt",
        "uri": "runx:receipt:sha256:6aacde7f14c0719c791604f32266dc1073b7bfe3909a87f4caaad1f71c07efe5",
        "locator": "sha256:7ea21b2c997af3b94bc907710884398902ae5052cb304b4d65fd6487d0e8421d"
      }
    ]
  }
}

Receipt requirements:

  • schema MUST be runx.receipt.v1.
  • A receipt MUST carry id, created_at, canonicalization, issuer, signature, digest, subject, authority, decisions, acts, seal, and lineage.
  • The wire form is exact. Every array is written, even when empty; an absent optional value is omitted, never null. A verifier MUST refuse any other form, so every verifier hashes the same bytes.
  • A receipt holds only what its issuer observed or was given, each value once, as typed facts. The runtime writes no prose: criteria are identified by the runtime's own vocabulary (step_outcome, output_contract_verified, voice_profile_applied, packet_schemas_verified), an act carries the caller's reason only when one was stated, and the seal records a typed disposition and, when the disposition alone does not say why, a reason from a closed vocabulary.
  • subject.outcome is the digest of the subject's outcome: whether it succeeded, the outputs it declared, and its direct children's receipt ids. It commits the declared outputs, not every byte the subject produced.
  • signature.alg MUST be Ed25519.
  • The receipt is flat: lifecycle is expressed by seal.outcome. A terminal, signed receipt carries a closed seal; a suspended (waiting/delegated) run carries a deferred seal.
  • subject.kind is step (one step's attempt) or graph (the whole graph a run ran).
  • seal MUST carry disposition and criteria. It carries reason only when the disposition alone does not say why, and reason is one of preflight_refused, input_contract_invalid, graph_step_failed, graph_blocked, authority_denied, resolution_pending, managed_agent_provider_failed, managed_agent_resolution_failed, managed_agent_empty_turn_budget_exhausted, managed_agent_tool_execution_failed or managed_agent_round_budget_exhausted.
  • An act or a decision MUST be one its issuer observed or was given. The reference runtime seals an act only for a governed call: the act the call's caller states, or an observation whose purpose is the operation's declared description. The act's legitimacy names the execution term admission derived (runx:authority_term:<term_id>). A decision appears only when the call's act states one; it records the choice and selects that act, whose intent, target and artifacts are the decision's.
  • The reference runtime reads no output field for a reference. What a receipt references is declared or admitted: effects, approvals, agent requests, and credential deliveries.
  • A graph execution links the receipts of its steps through lineage.children. Each child names the child receipt's id, with its digest as the locator. A child never names its parent: the same receipt may belong to more than one graph.
  • authority.enforcement.execution_boundary records where the runtime observed the subject run: a trusted host process, a deterministic worker, a native capability, or a remote provider. The runtime assigns it at its own dispatch boundary; no adapter or effect states it.

Canonical hashing and signing rules in the reference runtime:

text
canonicalization = runx.receipt.c14n.v1
body             = every field except signature, digest, and metadata
id               = sha256(canonicalize(body without id))
digest           = sha256(canonicalize(body))
signature        = Ed25519 over digest

The id is the receipt's content address, and references to a receipt use it. A receipt names only receipts sealed before it (its children and the receipt it follows), so its lineage is part of its address: two receipts that differ anywhere have different ids. A verifier MUST check that the id is the content address.

Canonicalization rules:

  • objects are serialized with keys sorted lexicographically
  • array order is preserved
  • undefined object members are omitted
  • primitive values use JSON scalar encoding

Verification flow:

bash
runx verify [receipt-id] --receipt-dir <dir> --json
runx history <receipt-id> --receipt-dir <dir> --json

runx verify checks each receipt tree in the directory, or the tree that holds receipt-id, against trusted keys. A trusted key is named by issuer type, key id and public key: the selected runx home's own key, a complete RUNX_RECEIPT_SIGN_* identity's public key, and the key RUNX_RECEIPT_VERIFY_ISSUER_TYPE, RUNX_RECEIPT_VERIFY_KID and RUNX_RECEIPT_VERIFY_ED25519_PUBLIC_KEY_BASE64 name. --trust configured leaves out the home's key, as a hosted verifier does.

Verifying the examples/hello-graph receipts above, with the fixture key configured as a trusted local key:

json
{
  "receipt_dir": "<dir>",
  "trees": [
    {
      "root_receipt_id": "sha256:4ecdfe15d00f7ce518117d505270e4657e6868212a4d756a95249f01f0df8f6a",
      "receipt_count": 7,
      "valid": true,
      "findings": []
    }
  ],
  "unreadable_files": [],
  "valid": true
}

The same tree after one step receipt's seal.outcome is edited:

json
{
  "receipt_dir": "<dir>",
  "trees": [
    {
      "root_receipt_id": "sha256:4ecdfe15d00f7ce518117d505270e4657e6868212a4d756a95249f01f0df8f6a",
      "receipt_count": 7,
      "valid": false,
      "findings": [
        {
          "code": "SealDigestMismatch",
          "path": "runtime_receipts[2].digest",
          "message": "receipt digest must match the canonical receipt body commitment"
        },
        {
          "code": "ContentAddressMismatch",
          "path": "runtime_receipts[2].id",
          "message": "receipt id must be the content address of its canonical body"
        },
        {
          "code": "SignatureInvalid",
          "path": "runtime_receipts[2].signature.value",
          "message": "signature does not verify against the receipt body commitment"
        }
      ]
    }
  ],
  "unreadable_files": [],
  "valid": false
}

SECURITY: A receipt has no free-form fields. Input values never enter it; subject.outcome commits a digest of the declared outputs.

Public Receipt Records, draft#

A notarized receipt's public record (/v1/receipts/notarizations/{hash}) states what the notary received and checked, and nothing more. Every statement a receipt page shows comes from the record.

  • mode_statement says whether the notary received the whole receipt or only its digest, and what it did with it.
  • checks lists each check in three groups (receipt integrity, issuer and notarization), each with its result and the notary's reason. A result is pass, fail, caution, unavailable or recorded; a status the notary does not describe reads as not interpreted, never as a pass.
  • The signing key a receipt names is recorded, never passed: runx does not bind signing keys to accounts. The account that notarized the receipt is publisher.principal_id, and notarization requires a signed-in account.
  • claims and limitations state what the record shows and what it does not.

A record never proves the real-world truth of the receipt subject, and a digest-only record never proves the receipt's content.

Registry Protocol, draft#

Public registry routes are versioned under /v1 and return JSON.

Path parameter rule:

  • {name} MAY be either name or name@version.
  • When @version is present, the registry MUST resolve that exact version.
  • When no version is present, the current reference registry resolves the latest available version for that skill id.

A compliant public registry MUST expose:

  • GET /v1/skills
  • GET /v1/skills/{owner}/{name}

A compliant public registry MAY expose:

  • GET /v1/skills/{root}
  • POST /v1/skills/{owner}/{name}/acquire
  • GET /v1/skills/{owner}/{name}/harness
  • POST /v1/connectors
  • GET /v1/connectors/{name}/versions/{version}/package
  • GET /v1/connectors/{name}/versions/{version}/connector.yaml
  • GET /v1/marks/{sha256}.svg

A skill's identity is {owner}/{name}. A verified publisher's skill MAY hold a root name: one segment, unique across the registry, assigned by the registry. GET /v1/skills/{root} answers the skill it addresses, read by its canonical {owner}/{name}. A root name is an address resolved at read time and MAY move to another skill; records, installs and registry: refs name the canonical id. A connector's {name} is one segment or two (stripe, google/calendar); versions is never a segment.

Listing, draft#

Supported query parameters in the current reference registry:

text
q            case-insensitive substring match over skill_id, owner, name,
             description, runner_names, and tags
owner        exact owner filter
tag          exact tag filter
category     exact category filter
profile_mode  exact runner mode filter: profiled | portable
sort         recommended | newest | a-z | most-installed
limit        an integer from 1 to 100
featured     1: only the editorial selection's featured skills
count        1: include the total matches
facets       1: include category counts

A parameter outside its stated values is refused, never ignored or clamped. Every refusal is { "code": "...", "error": "..." }: code is what a client branches on (query_invalid, cursor_invalid, skill_not_found, and so on) and error is the human message.

Sort rules:

text
recommended    -> editorial rank, then title, then skill_id ascending
newest         -> current version's publication descending, then skill_id descending
a-z            -> title ascending, then skill_id ascending
most-installed -> install_count descending, then skill_id ascending

Every skill names one mark, which the registry chooses: the package's own mark.svg; else the mark of the first connector it binds, in recorded order, that is not the runtime's own capability and ships one (source: "connector", with connector_ref); else its category's mark from the taxonomy. A connector names its own mark, else its category's. A relationship never supplies a mark. GET /v1/marks/{sha256}.svg serves each mark inert and immutable.

Canonical listing example:

http
GET /v1/skills?q=research&limit=5
json
{
  "status": "success",
  "query": {
    "q": "research",
    "sort": "newest",
    "limit": 5
  },
  "has_more": false,
  "total": 1,
  "facets": {
    "tags": [],
    "kinds": [
      {
        "value": "graph",
        "count": 1
      }
    ],
    "categories": [
      {
        "value": "research",
        "label": "Research",
        "count": 1
      }
    ],
    "profile_modes": [
      {
        "value": "profiled",
        "count": 1
      }
    ],
    "publishers": [
      {
        "value": "runx",
        "count": 1
      }
    ]
  },
  "skills": [
    {
      "skill_id": "runx/research",
      "publisher": {
        "id": "pub_6f1c2a9e4b7d0f3a8c5e2b1d9a7f4c6e",
        "slug": "runx",
        "handle": "@runx",
        "display_name": "Runx",
        "kind": "org",
        "verified": true,
        "url": "https://runx.ai/x/@runx"
      },
      "trust_tier": "first_party",
      "maturity": "beta",
      "name": "research",
      "title": "research",
      "mark": {
        "url": "https://api.runx.ai/v1/marks/343771c1d8e0b83a055746926a69c01b6698ad7a7d1005ea1d834eda3dd3d1c3.svg",
        "source": "category",
        "digest": "sha256:343771c1d8e0b83a055746926a69c01b6698ad7a7d1005ea1d834eda3dd3d1c3"
      },
      "discoverable": true,
      "description": "Produce bounded, source-backed research packets for product, ecosystem, and operator decisions.",
      "catalog_kind": "graph",
      "connectors": [],
      "version": "1.0.0",
      "created_at": "2026-04-15T00:00:00Z",
      "updated_at": "2026-04-15T00:00:00Z",
      "profile_mode": "profiled",
      "runner_names": [
        "research"
      ],
      "required_scopes": [
        "fs.read",
        "runx:evidence:read"
      ],
      "tags": [],
      "category": "research",
      "category_label": "Research",
      "install_count": 1,
      "verified_run_count": 0,
      "page_url": "https://runx.ai/x/runx/research",
      "install_command": {
        "shell": "posix",
        "argv": [
          "runx",
          "registry",
          "install",
          "runx/research@1.0.0",
          "--registry",
          "https://api.runx.ai"
        ],
        "copy_text": "runx registry install runx/research@1.0.0 --registry https://api.runx.ai"
      },
      "run_command": {
        "shell": "posix",
        "argv": [
          "runx",
          "skill",
          "runx/research@1.0.0",
          "--registry",
          "https://api.runx.ai"
        ],
        "copy_text": "runx skill runx/research@1.0.0 --registry https://api.runx.ai"
      }
    }
  ]
}

install_command and run_command are copyable commands. argv is the command; copy_text is its POSIX shell rendering (bare words unquoted, everything else single-quoted) and is what a client shows and copies. A reader MUST refuse a command whose copy_text is not the rendering of its argv.

Detail, draft#

Canonical detail example:

http
GET /v1/skills/runx/research@1.0.0
json
{
  "status": "success",
  "skill": {
    "skill_id": "runx/research",
    "publisher": {
      "id": "pub_6f1c2a9e4b7d0f3a8c5e2b1d9a7f4c6e",
      "slug": "runx",
      "handle": "@runx",
      "display_name": "Runx",
      "kind": "org",
      "verified": true,
      "url": "https://runx.ai/x/@runx"
    },
    "trust_tier": "first_party",
    "maturity": "beta",
    "name": "research",
    "title": "research",
    "mark": {
      "url": "https://api.runx.ai/v1/marks/343771c1d8e0b83a055746926a69c01b6698ad7a7d1005ea1d834eda3dd3d1c3.svg",
      "source": "category",
      "digest": "sha256:343771c1d8e0b83a055746926a69c01b6698ad7a7d1005ea1d834eda3dd3d1c3"
    },
    "discoverable": true,
    "description": "Produce bounded, source-backed research packets for product, ecosystem, and operator decisions.",
    "catalog_kind": "graph",
    "connectors": [],
    "version": "1.0.0",
    "created_at": "2026-04-15T00:00:00Z",
    "updated_at": "2026-04-15T00:00:00Z",
    "attestations": [
      {
        "kind": "publisher",
        "id": "publisher:runx",
        "status": "verified",
        "summary": "runx"
      }
    ],
    "digest": "9d4b...",
    "profile_digest": "2a0c...",
    "content_digest": "sha256:b013b618c885016031effd9e8ece60477650ac584de5596656e3e1ca768996a7",
    "runner_names": [
      "research"
    ],
    "profile_mode": "profiled",
    "required_scopes": [
      "fs.read",
      "runx:evidence:read"
    ],
    "tags": [],
    "category": "research",
    "category_label": "Research",
    "install_count": 1,
    "verified_run_count": 0,
    "page_url": "https://runx.ai/x/runx/research",
    "versions_url": "https://api.runx.ai/v1/skills/runx/research/versions",
    "install_command": {
      "shell": "posix",
      "argv": [
        "runx",
        "registry",
        "install",
        "runx/research@1.0.0",
        "--registry",
        "https://api.runx.ai"
      ],
      "copy_text": "runx registry install runx/research@1.0.0 --registry https://api.runx.ai"
    },
    "run_command": {
      "shell": "posix",
      "argv": [
        "runx",
        "skill",
        "runx/research@1.0.0",
        "--registry",
        "https://api.runx.ai"
      ],
      "copy_text": "runx skill runx/research@1.0.0 --registry https://api.runx.ai"
    },
    "files": {
      "manual": "https://api.runx.ai/v1/skills/runx/research/versions/1.0.0/files/SKILL.md"
    },
    "markdown": "---\\nname: research\\n...",
    "harness": {
      "status": "not_recorded",
      "declared_case_count": 1,
      "declared_cases": [
        {
          "name": "research-native-local-files-use-the-shared-analysis-path",
          "runner": "research",
          "expected_status": "needs_agent"
        }
      ],
      "case_count": 1,
      "receipt_ids": [],
      "results": [],
      "recent_runs": []
    },
    "recent_activity": []
  }
}

Acquire, draft#

Acquire routes, when implemented, MUST return a pinned payload bound to a specific version and digest.

Acquire request:

http
POST /v1/skills/runx/research/acquire
Content-Type: application/json

{
  "installation_id": "inst_local_01",
  "version": "1.0.0",
  "channel": "cli"
}

Acquire request body:

json
{
  "installation_id": "inst_local_01",
  "version": "1.0.0",
  "channel": "cli"
}

Acquire response:

json
{
  "status": "success",
  "install_count": 1,
  "acquisition": {
    "skill_id": "runx/research",
    "name": "research",
    "version": "1.0.0",
    "digest": "9d4b...",
    "signed_manifest": {
      "schema": "runx.registry.signed_manifest.v1",
      "subject": {
        "kind": "skill",
        "name": "runx/research"
      },
      "version": "1.0.0",
      "content_digest": "sha256:b013b618c885016031effd9e8ece60477650ac584de5596656e3e1ca768996a7",
      "signer": {
        "id": "runx-spec-example",
        "key_id": "local-3097e2dee2cb4a34b53840cdb705aed71067c36f68db0e0f559c3f3fa043315f"
      },
      "signature": {
        "alg": "ed25519",
        "value": "base64:X0H5AC1LKLf9K7qd1vJFsyx1x4rPVqeSxQF7wY5PvwrK8J3rFMB57l7VX7HXgFGgxibATG8T0dDjdiBNslzgCg"
      }
    },
    "markdown": "---\\nname: research\\n...",
    "profile_document": "skill: research\\n...",
    "profile_digest": "2a0c...",
    "trust_tier": "first_party",
    "publisher": {
      "id": "runx",
      "kind": "organization",
      "handle": "runx"
    },
    "attestations": [
      {
        "kind": "publisher",
        "id": "publisher:runx",
        "status": "verified",
        "summary": "runx"
      }
    ],
    "runner_names": [
      "research"
    ]
  }
}

Acquire rules:

  • installation_id is REQUIRED.
  • A missing installation_id MUST return 400.
  • A missing skill MUST return 404.
  • An unavailable registry store SHOULD return 503.
  • If the acquired skill has a run.yaml, the response SHOULD include profile_document and profile_digest.
  • signed_manifest.content_digest is the acquired version's identity: the digest of every file it consists of, which clients MUST recompute from the payload and match before installing, after verifying the signature with a trusted registry key. The example's envelope is signed by the specification's demo key (the public 0x42 fixture seed), not a hosted key.

Harness, draft#

Harness routes, when implemented, expose declared harness cases and public evidence for one skill.

http
GET /v1/skills/runx/research/harness
json
{
  "status": "success",
  "skill_id": "runx/research",
  "harness": {
    "status": "passed",
    "declared_case_count": 1,
    "declared_cases": [
      {
        "name": "research-native-local-files-use-the-shared-analysis-path",
        "runner": "research",
        "expected_status": "needs_agent"
      }
    ],
    "case_count": 2,
    "checks_passed": 2,
    "checks_failed": 0,
    "receipt_ids": [
      "rx_research_harness_1",
      "rx_research_harness_2"
    ],
    "evidence_url": "https://runx.ai/x/runx/research@1.0.0#harness",
    "latest_run": {
      "id": "harness:3f1c0a9e5b7d2c4e6f8a0b1c2d3e4f5a6b7c8d9e",
      "kind": "harness_run",
      "source": "runx-registry",
      "status": "success",
      "title": "tested research: all 2 passed",
      "timestamp": "2026-04-15T00:00:00Z",
      "skill_id": "runx/research",
      "metadata": {
        "checks_total": 2,
        "checks_passed": 2,
        "checks_failed": 0,
        "receipt_ids": [
          "rx_research_harness_1",
          "rx_research_harness_2"
        ]
      },
      "harness": {
        "producer": "runx-registry",
        "verification": "registry",
        "suite": "runx-harness",
        "attempt_id": "5c1b0f0e-2d4a-4a57-9d65-0b7f1c2e3a4b",
        "version": "1.0.0",
        "content_digest": "sha256:9d4b2a0c7e1f3b5d8a6c4e2f0b9d7c5a3e1f8b6d4c2a0e9f7b5d3c1a8e6f4b2d",
        "result": "passed",
        "checks_total": 2,
        "checks_passed": 2,
        "checks_failed": 0
      }
    },
    "results": [
      {
        "id": "harness:3f1c0a9e5b7d2c4e6f8a0b1c2d3e4f5a6b7c8d9e",
        "kind": "harness_run",
        "source": "runx-registry",
        "status": "success",
        "title": "tested research: all 2 passed",
        "timestamp": "2026-04-15T00:00:00Z",
        "skill_id": "runx/research",
        "metadata": {
          "checks_total": 2,
          "checks_passed": 2,
          "checks_failed": 0,
          "receipt_ids": [
            "rx_research_harness_1",
            "rx_research_harness_2"
          ]
        },
        "harness": {
          "producer": "runx-registry",
          "verification": "registry",
          "suite": "runx-harness",
          "attempt_id": "5c1b0f0e-2d4a-4a57-9d65-0b7f1c2e3a4b",
          "version": "1.0.0",
          "content_digest": "sha256:9d4b2a0c7e1f3b5d8a6c4e2f0b9d7c5a3e1f8b6d4c2a0e9f7b5d3c1a8e6f4b2d",
          "result": "passed",
          "checks_total": 2,
          "checks_passed": 2,
          "checks_failed": 0
        }
      }
    ],
    "recent_runs": [
      {
        "id": "harness:3f1c0a9e5b7d2c4e6f8a0b1c2d3e4f5a6b7c8d9e",
        "kind": "harness_run",
        "source": "runx-registry",
        "status": "success",
        "title": "tested research: all 2 passed",
        "timestamp": "2026-04-15T00:00:00Z",
        "skill_id": "runx/research",
        "metadata": {
          "checks_total": 2,
          "checks_passed": 2,
          "checks_failed": 0,
          "receipt_ids": [
            "rx_research_harness_1",
            "rx_research_harness_2"
          ]
        },
        "harness": {
          "producer": "runx-registry",
          "verification": "registry",
          "suite": "runx-harness",
          "attempt_id": "5c1b0f0e-2d4a-4a57-9d65-0b7f1c2e3a4b",
          "version": "1.0.0",
          "content_digest": "sha256:9d4b2a0c7e1f3b5d8a6c4e2f0b9d7c5a3e1f8b6d4c2a0e9f7b5d3c1a8e6f4b2d",
          "result": "passed",
          "checks_total": 2,
          "checks_passed": 2,
          "checks_failed": 0
        }
      }
    ]
  }
}

A harness result certifies only the package it names, by version and content_digest: the version's identity, the digest of every file it consists of, manual and profile included, which the registry's signed manifest also binds. status reports the selected package's result from its most authoritative context, a registry run before a publisher report and then the newest completion; older_version means only another version has one. results holds the newest result per producer, suite and runtime.

Admin publish routes are explicitly out of scope for v0.1.

Connector Packages, draft#

A connector is published on its own as a package: connector.yaml, the tool packages its process operations run under tools/, and README.md and mark.svg when present. It is named by its manifest's id: a namespace (stripe) or a namespace and one surface (google/calendar). {name}@{version} names one package forever.

Every first segment is a registry namespace with one owner. A publisher's slug is a namespace it owns, and holds two-segment names (acme/notion). The registry MAY assign a verified publisher a provider namespace, fixed as a leaf (one connector named by the namespace alone) or a parent (surfaces under it), never both. Only a provider namespace holds a one-segment name.

Publish rules:

  • POST /v1/connectors takes { "version"?, "files" }: the files runx registry package emits. It requires a bearer credential with connectors:write.
  • The registry MUST read the files with the native runtime and MUST refuse files that are not exactly the package the runtime reads from them.
  • The principal MUST be authorized for the publisher that owns the name's namespace, and the name MUST fit the namespace's shape. A name belongs to the publisher of its first version.
  • Without version, the label is sha- and the first 12 hex digits of the content digest. The same files under a published version return unchanged; other files MUST return 409.

Connector package response:

json
{
  "status": "success",
  "package": {
    "version": "1.0.0",
    "trust_tier": "community",
    "files": [
      {
        "path": "connector.yaml",
        "content": "schema: runx.connector.v1\nid: acme/ops-api\nname: Ops API\ndescription: Reads Acme ops items.\ncategory: dev-tools\nruntime_capability: false\nauth: {none: {}}\nplacements: {local: {auth: [none]}}\noperations:\n  item.read:\n    description: Read an item.\n    verb: read\n    scopes: [item.read]\n    target: {template: \"acme://items\"}\n"
      }
    ],
    "signed_manifest": {
      "schema": "runx.registry.signed_manifest.v1",
      "subject": {
        "kind": "connector",
        "name": "acme/ops-api"
      },
      "version": "1.0.0",
      "content_digest": "sha256:16d9fe073df4d9ade9b0c23219e8bb78e9f5a9715d9a2270e76696ccd122b1f0",
      "signer": {
        "id": "runx-spec-example",
        "key_id": "local-3097e2dee2cb4a34b53840cdb705aed71067c36f68db0e0f559c3f3fa043315f"
      },
      "signature": {
        "alg": "ed25519",
        "value": "base64:9DuUnsrdkZ8LHUIGiBQhettd9HunRcDIargd5dDjIiit2YmXOJQ_OuIh3fU1dbvvGnAZxDrly96nXU0RFWGMDg"
      }
    },
    "connector": "acme/ops-api"
  }
}

Install rules:

  • A client MUST verify signed_manifest with a trusted registry key, MUST check it names subject.kind: connector, this ref and this version (a skill's envelope never installs a connector), and MUST recompute content_digest from files before writing anything.
  • The connector.yaml route returns the stored bytes. Its ETag is their SHA-256, which is not the native manifest digest of the parsed manifest.
  • A withdrawn version leaves every list, search and install. Its package route answers its stored files, signed over its preserved name and digest, with withdrawn_at and no trust_tier; a client MUST NOT install it. An old connector name fails like any unknown name.
  • The example's envelope is signed by the specification's demo key (the public 0x42 fixture seed), not a hosted key.

Scope Admission, stable#

Runx scope values remain open strings; provider-native OAuth scopes are not copied into a central catalog. A grant admits a request only when every requested scope is admitted by one of the grant's scopes under one of these matching classes:

  • exact-only treats every value except the reserved bare * as opaque and admits only the same exact scope
  • delegated admits exact scopes and one non-empty namespace: segment through namespace:*; repo:* admits repo:read but not repo:admin:keys
  • trusted adds the universal * grant and is reserved for authenticated Runx principals

Connected provider grants use delegated matching and therefore never admit through *. Provider-native authorization bindings use exact-only matching.

Reference-runtime behavior:

  • admission fails closed when any requested scope is not admitted
  • authority handed on narrows and never widens: a derived execution term is a subset of every term it derives from, and the receipt records it with its subset proofs

SECURITY: Scope admission is part of the durable evidence surface. A runtime that silently widens authority without recording that widening is not runx-compatible for this slice.

Versioning, draft#

This document versions independently from some of the in-band artifacts it describes.

  • The public spec document is currently v0.1.
  • Receipt envelopes version in-band with schema_version, currently runx.receipt.v1.
  • SKILL.md frontmatter and run.yaml do not yet carry an in-band schema version field. Their version is the published schema document revision for now.

Versioning rules for this draft:

  • New optional fields MAY increment the minor spec version.
  • Conforming producers SHOULD emit only the canonical snake_case fields frozen by this draft.
  • Stable schema files carry "$comment": "stability: stable"; draft schema files carry "$comment": "stability: draft".

Version map:

text
document version      -> v0.1
receipt schema        -> runx.receipt.v1
frontmatter schema    -> skill-frontmatter.schema.json
runner schema         -> run.schema.json
registry HTTP         -> openapi.json

Security Considerations, draft#

The protocol is meant to make authority and evidence inspectable. It is not a license to flatten secrets into durable artifacts.

  • Signing keys SHOULD be kept outside world-readable paths.
  • Registries MUST treat SKILL.md and run.yaml as data, not executable code.
  • Receipt verification SHOULD check both the signature value and the issuer key fingerprint.
  • Producers SHOULD prefer hashes, bounded snapshots, or redaction over raw input capture.
  • Public registries SHOULD pin acquired payloads by digest and version.
  • Scope admission SHOULD fail closed when a requested scope is not clearly admitted by the graph grant.
  • Public evidence surfaces SHOULD avoid copying raw credential-bearing request data into public event streams.

Reference Implementations, stable#

Current reference implementation modules:

text
oss/crates/runx-parser
oss/crates/runx-contracts
oss/crates/runx-core
oss/crates/runx-receipts
oss/crates/runx-runtime
oss/crates/runx-cli
oss/packages/contracts
cloud/packages/protocol
cloud/packages/api/src/index.ts
cloud/packages/api/src/openapi.ts

The public machine-readable surface for hosted routes is published at openapi.json. The package and receipt artifacts for this draft are the schema files linked at the top of this document.