OpenCOAT Runtime — concern/joinpoint/pointcut/advice/weaving/copr/dcn + storage + LLM + daemon + CLI
Project description
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:
- DecayWorker — increases per-concern
activation_state.decay, then weakens or archives. - MergeArchiverWorker — runs
DCNEvolverto merge duplicates and archive cold weakened concerns. - ConflictScannerWorker — syncs
conflicts_withedges into the DCN (background only; hot-path weave still usesConflictResolver). - MetaReviewWorker — counts active
meta_concernrows 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.
Project details
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 opencoat_runtime-0.1.5.tar.gz.
File metadata
- Download URL: opencoat_runtime-0.1.5.tar.gz
- Upload date:
- Size: 289.1 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cdbb4e3a0e9a00ed8b18b8b3f7250220cbcfa7979765f15780fe831992cf685
|
|
| MD5 |
d5807b8ba07ac6efe0d1436e478a61fb
|
|
| BLAKE2b-256 |
aa553e654e9ab9df9f2d7dae639b306af36100e123afc74ee9fc79ca717a846c
|
File details
Details for the file opencoat_runtime-0.1.5-py3-none-any.whl.
File metadata
- Download URL: opencoat_runtime-0.1.5-py3-none-any.whl
- Upload date:
- Size: 264.5 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3383d2580d2ee9c5a70578e582e1e7cbe7744ba4d920500e2cadd61ce15f141a
|
|
| MD5 |
aeb08113bab7e4c9dee607e9db2d1330
|
|
| BLAKE2b-256 |
0188b1e732fdd33b65e0c5f8161d1d288bc26b53f904218aab2083e9d34ed77b
|