Bridge/glue layer that composes Agently (LLM/TriggerFlow) with skills-runtime-sdk (skills/tools/WAL/events).
Project description
capability-runtime
capability-runtime is a production-oriented runtime/adapter layer that exposes a
stable Runtime API while composing two upstream systems:
skills-runtime-sdkfor skills, tools, approvals, WAL, and event evidenceAgentlyfor OpenAI-compatible transport and TriggerFlow-based orchestration internals
The public contract of this repository is intentionally narrow:
- capability primitives:
AgentSpecandWorkflowSpec - execution entrypoint:
Runtime - evidence surface:
NodeReport, host snapshots, and service-facade helpers
What You Get
- A single execution surface:
Runtime.run()andRuntime.run_stream() - Public capability registration and manifest descriptors
- Workflow orchestration on top of the runtime without exposing TriggerFlow as a public API
- Evidence-first results through
NodeReport, tool-call reports, approval summaries, and WAL locators - Host-facing helpers for wait/resume, approval tickets, continuity, and service streaming
Architecture At A Glance
+-----------------------------+
| Host Application |
| - register capabilities |
| - run / stream / continue |
+--------------+--------------+
|
v
+------------------------------------------------------------------------+
| capability-runtime |
| |
| Public contract |
| - AgentSpec / WorkflowSpec |
| - Runtime |
| - NodeReport / HostRunSnapshot / RuntimeServiceFacade |
| |
| Internal adapters |
| - AgentAdapter |
| - TriggerFlowWorkflowEngine |
| - service/session continuity bridge |
+------------------------------+-----------------------------------------+
|
v
+-------------------------------+
| skills-runtime-sdk |
| - skills + tools |
| - approvals + exec sessions |
| - WAL / AgentEvent evidence |
+---------------+---------------+
|
v
+-------------------------------+
| Agently / TriggerFlow |
| - OpenAI-compatible transport |
| - workflow execution internals|
+-------------------------------+
Install
From source:
python -m pip install -e .
With development dependencies:
python -m pip install -e ".[dev]"
When the package is published, the install form is:
python -m pip install capability-runtime
Import name:
import capability_runtime
Quickstart
1. Offline runtime loop
python examples/01_quickstart/run_mock.py
This path is the smallest reproducible loop:
- register an
AgentSpec - validate the registry
- run in
mode="mock" - inspect the terminal
CapabilityResult
2. Bridge mode with a real model backend
cp examples/01_quickstart/.env.example examples/01_quickstart/.env
python examples/01_quickstart/run_bridge.py
Bridge mode reuses Agently's OpenAI-compatible transport but still delegates the
actual skills/tools/WAL semantics to skills-runtime-sdk.
3. Workflow orchestration
python examples/02_workflow/run.py
For a higher-level index, start with examples/README.md.
Public API At A Glance
The package root exposes the supported contract:
from capability_runtime import (
Runtime,
RuntimeConfig,
CustomTool,
AgentSpec,
AgentIOSchema,
WorkflowSpec,
Step,
LoopStep,
ParallelStep,
ConditionalStep,
InputMapping,
CapabilitySpec,
CapabilityKind,
CapabilityResult,
CapabilityStatus,
NodeReport,
HostRunSnapshot,
ApprovalTicket,
ResumeIntent,
RuntimeServiceFacade,
RuntimeServiceRequest,
RuntimeServiceHandle,
RuntimeSession,
)
The runtime currently supports three execution modes through RuntimeConfig.mode:
mock: deterministic local testing without a real LLM backendbridge: Agently transport +skills-runtime-sdkexecution semanticssdk_native: nativeskills-runtime-sdkbackend without Agently transport
Repository Layout
.
├── src/capability_runtime/ # package source
├── examples/ # human-facing runnable examples
├── docs_for_coding_agent/ # compact pack for coding agents
├── help/ # public help and operational guides
├── config/ # example config shapes
├── scripts/ # release / validation helpers
└── tests/ # offline regression guardrails
Documentation Map
- help/README.md: public help index
- examples/README.md: runnable examples by scenario
- docs_for_coding_agent/README.md: compact coding-agent pack
- config/README.md: config shape reference
Recommended reading order for new users:
Release And PyPI Publishing
This repository ships GitHub Actions workflows for:
- Tier-0 CI on push and pull request
- tag-driven and manual PyPI publishing
Release guardrails:
- the Git tag must match
pyproject.toml's[project].version - the Git tag must match
capability_runtime.__version__ - the publish job builds both sdist and wheel before uploading
The publish workflow is designed for PyPI Trusted Publishing. You still need to
configure the corresponding Trusted Publisher entry on pypi.org.
Relationship To The Upstreams
skills-runtime-sdkremains the source of truth for skills, approvals, tools, WAL, and event evidence.Agentlyremains the transport/orchestration substrate where this repository chooses to bridge instead of forking or reimplementing.capability-runtimeis the contract-convergence layer: it narrows those upstream capabilities into a smaller host-facing runtime surface.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file capability_runtime-0.1.2.tar.gz.
File metadata
- Download URL: capability_runtime-0.1.2.tar.gz
- Upload date:
- Size: 183.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65054c1f4570aa196b7946e304a8f1f1177c4afc9b63778487c75786a522fd73
|
|
| MD5 |
2bb9b22a5ecfd70157d27579ebb00e56
|
|
| BLAKE2b-256 |
ce321f608ddc41209c6deed1def564a23197b6f66a4f5c55c6c96183e12014d2
|
Provenance
The following attestation bundles were made for capability_runtime-0.1.2.tar.gz:
Publisher:
publish-pypi.yml on okwinds/capability-runtime
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
capability_runtime-0.1.2.tar.gz -
Subject digest:
65054c1f4570aa196b7946e304a8f1f1177c4afc9b63778487c75786a522fd73 - Sigstore transparency entry: 1429261003
- Sigstore integration time:
-
Permalink:
okwinds/capability-runtime@6797671dd3ddfc28f42b1819c0aa18a9d8e307da -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/okwinds
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@6797671dd3ddfc28f42b1819c0aa18a9d8e307da -
Trigger Event:
push
-
Statement type:
File details
Details for the file capability_runtime-0.1.2-py3-none-any.whl.
File metadata
- Download URL: capability_runtime-0.1.2-py3-none-any.whl
- Upload date:
- Size: 127.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b46a900aed9950d8836a9be383c7006b6ba05cde195e47d96864f36083d3258b
|
|
| MD5 |
476ce4a4377b12f72e81bd94ce012b55
|
|
| BLAKE2b-256 |
fb2ea81a967eb92aaa1b3b5e33be41819602b12498a76d072250b0ec24484965
|
Provenance
The following attestation bundles were made for capability_runtime-0.1.2-py3-none-any.whl:
Publisher:
publish-pypi.yml on okwinds/capability-runtime
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
capability_runtime-0.1.2-py3-none-any.whl -
Subject digest:
b46a900aed9950d8836a9be383c7006b6ba05cde195e47d96864f36083d3258b - Sigstore transparency entry: 1429261014
- Sigstore integration time:
-
Permalink:
okwinds/capability-runtime@6797671dd3ddfc28f42b1819c0aa18a9d8e307da -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/okwinds
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@6797671dd3ddfc28f42b1819c0aa18a9d8e307da -
Trigger Event:
push
-
Statement type: