This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: superseded by agentbus 0.16.4
okf-agentbus-ops
Opinionated SRE ops for AgentBus: edge-triggered health watchdog as a deterministic Python process (SREWatchdogAgent).
| Item | Value |
|---|---|
| PyPI name | okf-agentbus-ops |
| Import | agentbus_ops |
| CLI | agentbus-ops |
| Core dependency | okf-agentbus>=0.16.3 |
| Version train | Independent of core (0.1.0 ops vs 0.17.x core) |
Why a separate package
Core (okf-agentbus) stays pure: routing, metrics, validate-config.
Opinionated policy (level transitions, cooldown, idempotency, hooks) lives here.
Install
pip install okf-agentbus-ops
# or path-install from monorepo during development:
# pip install -e packages/python/agentbus-ops
CLI (parity with bash P2)
# One-shot edge decision (no publish)
agentbus-ops watchdog --dry-run --json
# Live: publish SRE_STATUS only on healthy↔degraded↔critical edges
agentbus-ops watchdog --json
# Bootstrap seed silent (default); force first publish:
agentbus-ops watchdog --force-bootstrap-publish
# Attach compact metrics line
agentbus-ops watchdog --include-metrics
Exit codes match bash:
| Code | Meaning |
|---|---|
| 0 | silence / successful publish / dry-run decision |
| 1 | usage / config error |
| 2 | publish failed |
Health level is not mirrored as process exit (cron stays green on steady degraded).
Library
from agentbus_ops import SREWatchdogAgent
class MyWatchdog(SREWatchdogAgent):
def on_critical_alert(self, cur, decision):
# optional LLM / page — default is no-op
pass
agent = SREWatchdogAgent(workspace="/path/to/okf")
decision = agent.run_once(dry_run=True)
print(decision.action, decision.level)
Probe (v0.1 MVP)
v0.1 wraps the coordination-root bash probe:
scripts/swarm_health_check.sh --json
Pure-Python probe port is deferred. Edge policy, state file, and publish path are native Python and share .agentbus/sre_last_state.json with the bash strangler so cron can switch without dual state.
State file
Same contract as sre-edge-triggered runbook:
.agentbus/sre_last_state.json under AGENTBUS_WORKSPACE.
Not in scope (v0.1)
- Autonomous restart daemon
- Default-on LLM every tick
- TypeScript package
License
MIT
Metadata
Release files for okf-agentbus-ops 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| okf_agentbus_ops-0.1.0.tar.gz | 14.3 kB | Without provenance | Details for okf_agentbus_ops-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| okf_agentbus_ops-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for okf_agentbus_ops-0.1.0-py3-none-any.whl |
Total release size: 29.0 kB
Release files / okf_agentbus_ops-0.1.0.tar.gz
| Download URL | okf_agentbus_ops-0.1.0.tar.gz |
|---|---|
| Size | 14.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0dd58a7f61e7fa1ab31c0f9ea561c697d15b5534f6e7463d5ce061a356d3898e
|
|
BLAKE2b-256 checksum How to use checksums |
ae500e9a85762d385dc874427f55d88fb98645cea8e540bb908a3433b23152bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / okf_agentbus_ops-0.1.0-py3-none-any.whl
| Download URL | okf_agentbus_ops-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
350f5414ae427efce4bffac246c6eb7b03ec8f2c44099c99176f0d9d18bc6ce7
|
|
BLAKE2b-256 checksum How to use checksums |
2c4dd662b93178b1380834b14c97a6776cba6bf5df33c205b9931c3f24fc2241
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for okf-agentbus-ops 0.1.0
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.