← Back to Skills Marketplace
larios613-hub

Supervision Layer

by larios613-hub · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ pending
53
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install supervision-layer
Description
Wrap every tool call with timeouts, circuit breakers, audit logging, and crash loop protection. Enforcement the agent cannot bypass.
README (SKILL.md)

Supervision Layer

Stop trusting agents to police themselves. Supervision Layer wraps every tool call in timeouts, circuit breakers, and audit logs — enforcement the agent cannot bypass.

Before vs After

Without Supervision With Supervision
Runaway calls Agent loops infinitely on a failing API Circuit breaker trips after 3 failures
Stuck sessions Tool hangs silently, agent waits forever Timeout kills it after 30s
Audit trail No record of what happened Every call logged with timestamp, outcome, cost
Crash loops Subagent restarts infinitely After 3 crashes, marked permanently failed

Quick Start

from supervision import get_supervisor

supervisor = get_supervisor()
result = await supervisor.execute(
    tool="web_fetch",
    fn=fetch_fn,
    agent_id="worker-1",
    session_id="sess-abc",
)

Components

  1. TimeoutWrapper — Per-tool configurable timeouts (default 30s)
  2. CircuitBreaker — 3-state machine (CLOSED → OPEN → HALF_OPEN)
  3. AuditLogger — Structured JSONL logging, 50MB rotation, queryable
  4. CrashLoopProtector — Track restarts, mark failed after 3 within window
  5. SupervisedCall — All-in-one: crash check → circuit check → audit → timeout → audit

Testing

cd scripts/ && python -m pytest test_supervision.py -v

58 tests. 0 external dependencies. Works with any async Python project.

License

MIT

How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install supervision-layer
  3. After installation, invoke the skill by name or use /supervision-layer
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release - timeouts, circuit breakers, audit logging, crash loop protection
Metadata
Slug supervision-layer
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Supervision Layer?

Wrap every tool call with timeouts, circuit breakers, audit logging, and crash loop protection. Enforcement the agent cannot bypass. It is an AI Agent Skill for Claude Code / OpenClaw, with 53 downloads so far.

How do I install Supervision Layer?

Run "/install supervision-layer" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Supervision Layer free?

Yes, Supervision Layer is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Supervision Layer support?

Supervision Layer is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Supervision Layer?

It is built and maintained by larios613-hub (@larios613-hub); the current version is v1.0.0.

💬 Comments