Skip to main content

opencoat-runtime

The OpenCOAT Runtime — Concern-Oriented Agent Thinking for LLM agents.

This package ships the entire runtime stack:

Module Layer Role
opencoat_runtime_core L2 pure logic: concern, joinpoint, pointcut, advice, weaving, COPR, coordinator, resolver, DCN, meta, loops, ports
opencoat_runtime_storage L3 ConcernStore / DCNStore backends (memory, sqlite, postgres, jsonl, vector)
opencoat_runtime_llm L3 LLM and embedder clients (openai, anthropic, azure, ollama, stub)
opencoat_runtime_daemon L4 long-running daemon: scheduler, workers, IPC, HTTP/JSON-RPC API
opencoat_runtime_cli L4 opencoat command-line interface

Schemas and data envelopes live in the sibling opencoat-runtime-protocol package. Host-side integration (joinpoint emitter + first-party framework adapters) lives in opencoat-runtime-host.

Install

pipx install opencoat-runtime          # core stack, no heavy deps
pipx install "opencoat-runtime[all]"   # + every optional backend SDK

Pick-your-own:

pip install "opencoat-runtime[postgres]"        # psycopg
pip install "opencoat-runtime[vector]"          # faiss-cpu
pip install "opencoat-runtime[openai]"          # openai SDK
pip install "opencoat-runtime[anthropic]"       # anthropic SDK
pip install "opencoat-runtime[http]"            # daemon HTTP transport (fastapi + uvicorn)
pip install "opencoat-runtime[grpc]"            # daemon gRPC transport

Quick start

opencoat --version
opencoat concern import --demo
opencoat runtime up          # sqlite + HTTP JSON-RPC + heartbeat scheduler (M6)
opencoat-daemon --help

See https://github.com/HyperdustLabs/OpenCOAT for the full runtime guide.

Heartbeat maintenance (M6)

When the daemon runs with runtime.loops.heartbeat_enabled: true, a background thread invokes OpenCOATRuntime.tick() every heartbeat_interval_seconds (default 30). Each tick:

  1. DecayWorker — increases per-concern activation_state.decay, then weakens or archives.
  2. MergeArchiverWorker — runs DCNEvolver to merge duplicates and archive cold weakened concerns.
  3. ConflictScannerWorker — syncs conflicts_with edges into the DCN (background only; hot-path weave still uses ConflictResolver).
  4. MetaReviewWorker — counts active meta_concern rows for governance review ticks.

Configure thresholds under runtime.loops.maintenance in your daemon YAML (see docs/config/daemon.yaml.example).

JSON-RPC: joinpoint.submit accepts optional extract_from_chat: true to run concern.extract on user messages[] before weaving (needs a real LLM).

Tests / soak:

uv run python -m pytest packages/opencoat-runtime/tests/daemon/test_m6_workers.py -q
uv run python -m pytest packages/opencoat-runtime/tests/soak/test_heartbeat_maintenance_soak.py -q

Prerequisites gate: from repo root, ./scripts/verify-m6-prerequisites.sh (daemon on :7878).

License

Apache-2.0.

Metadata

Release files for opencoat-runtime 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opencoat-runtime 0.1.5
File Size Uploaded Provenance Actions
opencoat_runtime-0.1.5.tar.gz 289.1 kB Without provenance Details for opencoat_runtime-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for opencoat-runtime 0.1.5
File Interpreter ABI Platform Actions
opencoat_runtime-0.1.5-py3-none-any.whl Python 3 none any Details for opencoat_runtime-0.1.5-py3-none-any.whl

Total release size: 553.6 kB

Release files / opencoat_runtime-0.1.5.tar.gz

Download URL opencoat_runtime-0.1.5.tar.gz
Size 289.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7cdbb4e3a0e9a00ed8b18b8b3f7250220cbcfa7979765f15780fe831992cf685
BLAKE2b-256 checksum
How to use checksums
aa553e654e9ab9df9f2d7dae639b306af36100e123afc74ee9fc79ca717a846c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / opencoat_runtime-0.1.5-py3-none-any.whl

Download URL opencoat_runtime-0.1.5-py3-none-any.whl
Size 264.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3383d2580d2ee9c5a70578e582e1e7cbe7744ba4d920500e2cadd61ce15f141a
BLAKE2b-256 checksum
How to use checksums
0188b1e732fdd33b65e0c5f8161d1d288bc26b53f904218aab2083e9d34ed77b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for opencoat-runtime 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page