← 返回
安全合规 中文

log

A privacy-first, local-first provenance protocol for agent workflows. Emits structured audit records for important decisions, tool calls, state changes, and...
一种面向智能体工作流的隐私优先、本地优先溯源协议。针对重要决策、工具调用、状态变更等事件生成结构化审计记录。
agistack
安全合规 clawhub v1.1.1 2 版本 99885.6 Key: 无需
★ 1
Stars
📥 853
下载
💾 4
安装
2
版本
#audit#data#latest#log#memory#security

概述

LOG: Local-First Provenance Protocol

I. Purpose

Log standardizes how an agent emits structured provenance records for

important workflow events. It does not perform persistence, encryption,

approval handling, or immutability enforcement by itself. Those controls

belong to the host environment.

Use this skill when a workflow needs:

  • audit-ready activity records
  • debugging traces for failures or retries
  • source-aware decision summaries
  • host-controlled approval gates for high-impact actions

Do not use this skill to:

  • record hidden chain-of-thought
  • store secrets, credentials, or tokens
  • dump raw private documents, attachments, or long transcripts
  • claim storage guarantees the host has not implemented

II. Event Triggers

Emit a log entry only for important workflow events, such as:

  1. tool or API execution
  2. significant decision or state change
  3. task completion, retry, refusal, or failure
  4. high-impact action that may require host approval

Do not emit logs for every minor conversational turn.

III. Security & Redaction Rules

All emitted records must be minimal, factual, and privacy-safe.

Rules:

  • never include passwords, API keys, bearer tokens, cookies, session IDs, or secrets
  • replace sensitive values with [SECRET_REDACTED]
  • never include hidden chain-of-thought or full internal reasoning traces
  • prefer summaries over raw content
  • when sensitive personal data is involved, log only the category of data unless explicitly required and authorized

IV. Approval Signaling

For a high-impact action, emit a log entry with:

  • "approval_required": true

The host environment may use this signal to pause execution until an

approval event, user confirmation, or policy check is completed.

Log emits the signal only. The host environment decides whether to block,

continue, or reject execution.

V. Source Provenance

When relevant, include source references that explain what the action or

decision was based on.

Examples:

  • user instruction
  • local file name
  • tool result identifier
  • API response label
  • workflow state snapshot

Keep source references concise and safe. Do not include sensitive raw content.

VI. Output Contract

When logging is required, output exactly one structured record in a fenced

json block prefixed by [LOG_ENTRY].

VII. Required Schema

Use this exact JSON structure:

[LOG_ENTRY]
{
  "timestamp": "YYYY-MM-DDTHH:MM:SSZ",
  "event_type": "observation | decision | execution | state_change | completion | error | refusal",
  "status": "success | failed | pending | intercepted | skipped",
  "actor": "assistant | skill_name | workflow_name",
  "summary": "Concise factual description of what happened",
  "decision_basis": [
    "Key fact, constraint, or condition",
    "Key fact, constraint, or condition"
  ],
  "source_references": [
    "user_prompt",
    "local:file_a.md",
    "tool_result:search_01"
  ],
  "constraints": [
    "local_only",
    "privacy_safe",
    "approval_gate"
  ],
  "impact": "low | medium | high",
  "approval_required": false,
  "payload": {
    "action": "tool name, operation name, or null",
    "parameters_summary": "Redacted summary of relevant inputs",
    "result_summary": "Redacted summary of outputs or outcome"
  },
  "error_summary": null,
  "correlation_id": "optional task or session identifier"
}

版本历史

共 2 个版本

  • v1.1.1 当前
    2026-03-29 13:03 安全 安全
  • v1.0.0
    2026-03-26 22:18

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,609
productivity

Terminal

agistack
本地 Shell 助手,提供命令规划、安全执行、预览优先工作流、输出摘要、隐私感知的历史控制以及逐步终端操作。
★ 2 📥 3,692
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,720