凡自治之物 · LGD 治理学 · 创造术家族 | 评测协议:skill-quality-gate
English
When to use
- When the user questions or follows up on what an agent just did and asks to "check the ledger".
- When suspected risk behavior is detected: unauthorized access, unapproved execution, "no registration", or "failed gate".
- When reporting AI-service compliance to management and needing a fully traceable behavior ledger as evidence.
- When the user explicitly uses trigger words (e.g. "behavior trace", "audit log") to start a review.
Usage
Natural-language calls are supported, as well as precise command-line execution; the underlying script is trace_audit.py. Configurable parameters: -t/--time-range (query window), -f/--format (json/text output), -v/--violation-flag (force-flag boundary-crossing actions). Without the command line, just say "audit the AI behavior just now" and the call protocol matches automatically.
Process
- The user issues an instruction or natural-language question containing audit intent.
- The system parses context, identifies the
trace_auditscript, and loads the local log cache. - The script reads core fields: timestamp, actor, action, and object.
- Per the LGD Three Laws, verify whether each operation has a "gate" permission record.
- Auto-filter boundary-crossing actions that failed the gate, and build a full timeline plus violation list.
- Return an audit conclusion with the evidence chain and follow-up compliance advice.
Evidence & safety statement
- Evidence: TBD (no evaluation/badge link yet; fill in the real link here once produced).
- Version: 1.0.1
- Safety: No independent security scan has been done (TBD); the conclusion is pending. No endorsement is given until it is completed.
中文
何时用
- 当用户质疑或追问 Agent 刚完成的具体操作及其结果,要求“查账”时。
- 当检测到疑似 AI 存在越权访问、未授权执行等“无籍”或“过闸失败”风险行为时。
- 当需要向管理层汇报 AI 服务合规性,需提供全程可追溯的行为账本证据时。
- 当用户在对话中显式使用触发词(如“行为留痕”、“审计日志”)发起核查请求时。
用法
支持自然语言直接调用或命令行精确执行,底层脚本文件位于 __pycache__/trace_audit.py。可配置参数:-t/--time-range (设定日志查询时间窗口);-f/--format (指定输出格式为 json/text);-v/--violation-flag (强制标记越界操作)。若无需命令行,直接描述“帮我审计一下刚才的 AI 行为”即可自动匹配调用协议。
流程
- 用户发起包含审计意图的指令或自然语言提问。
- 系统解析上下文,识别
trace_audit脚本并加载本地日志缓存。 - 执行脚本读取时间戳、执行者、动作及对象等核心字段。
- 依据 LGD 三律标准校验每笔操作是否具备“过闸”权限记录。
- 自动筛选未过闸的越界行为,构建完整的时间线与违规清单。
- 向用户返回含证据链的审计结论与后续合规建议。
证据与安全声明
- 证据:TBD(暂无评测/徽章链接;产生后在此更新实际链接)
- 版本:1.0.0
- 安全:未做独立安全扫描(TBD),结论待补;补全前不作推荐背书。
Triggers / 触发词
这些是用户真实会说的话(中 / 英对照),命中任一即应加载本技能:
- 「AI 刚才到底做了什么」 / "what did the AI actually do just now"
- 「agent 操作有没有越界」 / "did the agent go beyond its permissions"
- 「出了事能回溯到哪一步」 / "can we trace back what happened when it broke"
- 「给 AI 行为记个账本」 / "I want a ledger of AI actions"
- 「哪些动作没走审批流程」 / "which actions skipped the approval step"
- 「合规报告要附操作时间线」 / "compliance report needs an action timeline"
Trigger when the user says any of the above, in Chinese or English.
Ecosystem / 生态入口
This skill is one door of the LGD ecosystem — every entry below is publicly reachable. 本技能是 LGD 生态 的一个入口,下列地址均对公网可达。
- Ecosystem hub / 生态总入口: https://zhaoxinghua09-cell.github.io/lgd-hub/
- LGD theory (canonical) / 理论正本: https://github.com/zhaoxinghua09-cell/LGD
- Formal paper (DOI) / 形式化论文: https://doi.org/10.5281/zenodo.22456647
- Protocol & reference implementation / 协议与参考实现: https://github.com/zhaoxinghua09-cell/uibc-core
- Source of this skill / 本包源码: https://github.com/zhaoxinghua09-cell/agent-skills/tree/main/skills/agent-trace-audit
- All published skills / 全部已发布技能: https://github.com/zhaoxinghua09-cell/agent-skills
- AI-readable index / AI 说明书: https://github.com/zhaoxinghua09-cell/agent-skills/tree/main/skills/agent-trace-audit/llms.txt
Looking for something else? / 还想要别的?
Tell your AI assistant: "Find me an LGD skill that can " — the hub lists every published skill with a one-line purpose. 跟你的 AI 助手说一句「去 LGD 生态超市找能……的技能」,总入口按用途列全了所有已发布技能。
Data handling / 数据处理边界
- 默认不向任何外部地址发送数据:扫描结果、报告、命中明细一律只写本地或只打印到当前会话。
- 如需外发(告警、工单、邮件、IM),必须由人先明确指定接收方,并在每次发送前逐次确认;本技能不预设、也不硬编码任何接收端。
- 只处理调用者明确指定的目标路径,不遍历无关目录,不跟随符号链接,不读取目标之外的凭据文件。
- 命中内容在输出时按需脱敏,避免把敏感原值写进日志或对话记录。
