返回顶部
b

black-box

Indestructible audit logs for agent actions, stored in TiDB Zero.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
555
下载量
0
收藏
概述
安装方式
版本历史

black-box

# Black Box (Powered by TiDB Zero) ## Overview **Black Box** is an indestructible audit log for AI Agents. It acts as a "Flight Data Recorder" that streams critical actions, errors, and reasoning chains to a persistent cloud database (TiDB Zero) in real-time. ## Security & Provisioning 1. **Bring Your Own Database (Recommended):** Set `TIDB_*` environment variables. 2. **Auto-Provisioning (Fallback):** If no credentials are found, this skill uses the TiDB Zero API to create a temporary database for logging. The connection string is cached in `~/.openclaw_black_box_dsn`. ## Why use this? * **Crash Survival:** Local logs vanish when containers crash. Cloud logs persist. * **Audit Trail:** Prove exactly what your agent did and why (compliance). * **Debugging:** Retrieve the last 100 actions leading up to a failure. ## Prerequisites * **TiDB Credentials:** Standard MySQL connection parameters (`TIDB_HOST`, `TIDB_USER`, etc.). * **Network:** Outbound access to TiDB Cloud (port 4000). ## Usage ### 1. Log an Event Record a critical action or error: ```bash python {baseDir}/run.py --action log --level ERROR --message "System crash imminent: Memory leak detected" ``` ### 2. Read Logs Retrieve the last N logs (default: 10): ```bash python {baseDir}/run.py --action read --limit 20 ``` ## Schema This skill creates a table `agent_logs` with columns: `timestamp`, `level`, `message`, `metadata` (JSON).

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 black-box-1776419958 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 black-box-1776419958 技能

通过命令行安装

skillhub install black-box-1776419958

下载 Zip 包

⬇ 下载 black-box v1.0.0

文件大小: 3.83 KB | 发布时间: 2026-4-17 19:59

v1.0.0 最新 2026-4-17 19:59
v1.0.0: Official release

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部