anbeime/skill / skills/antinet-provenance
antinet-provenance
Verified软件开发工程师与信息安全分析师在构建多智能体系统时,当需全链路可观测与安全审计,请用此技能。它自动收集操作日志,生成可追溯证据链与向量索引,开箱即用实现系统审计与精准回放,让Agent运行安全透明。
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 3.0 KB |
| SKILL.md | skill md | 2.3 KB |
| scripts/run_provenance.py | script | 2.7 KB |
SKILL.md
View on GitHub---
name: antinet-provenance
description: 软件开发工程师与信息安全分析师在构建多智能体系统时,当需全链路可观测与安全审计,请用此技能。它自动收集操作日志,生成可追溯证据链与向量索引,开箱即用实现系统审计与精准回放,让Agent运行安全透明。
assign_when: 该 Worker 负责记录每一次分发、扫描、解析与卡片生成事件,为系统提供端到端留痕与可观测能力。
---
# Provenance 留痕 Skill(太史阁)
## 使用方式
- 由各官署在关键操作节点调用(或通过事件总线异步推送),写入证据链。
- 提供按 `trace_id` / 时间窗 / 官署维度的检索接口,支撑审计面板与回滚定位。
## 输入(Input)
- `event`:操作事件,含 `actor`(官署名)、`action`、`target`、`timestamp`、`trace_id`
- `payload`:(可选)与事件关联的结构化产物引用
## 输出(Output)
- `evidence_chain`:按 trace_id 串联的可追溯证据链
- `vector_index`:用于语义检索的向量索引条目
- `query_api`:按条件检索历史证据的接口描述
## 依赖(Dependencies)
- Qdrant(向量存储,经 MCP 接入)
- SQLite(结构化事件落地,本地兜底)
- 各官署的事件上报协议(统一 schema)
## 失败处理(Failure Handling)
- 向量库写入失败 → 本地 SQLite 缓存事件,恢复后异步补写,不阻塞主流程。
- 单条事件 schema 非法 → 记录并丢弃该条,不影响整链写入。
- 检索超时 → 返回最近一次成功快照并标注 `stale`。
## 复用价值(Reuse Value)
- 可观测性底座:任何多 Agent 系统都能直接挂载,获得开箱即用的审计与回放能力。
- 契合评审:Agent Infra 赛道「工程落地与运行验证及安全审计(20%)」维度的天然得分点。
## 复赛代码包执行(runnable package)
- 真实入口:`scripts/run_provenance.py`
- 执行等价于 `core.runtime.AgentSession.run_stage("provenance")`,调用 `memory.taishige.TaiShiGeAgent.writeback`(把全链路事件与四色卡片回流证据链,纯 Python 可离线)。
- 运行:`python skills/provenance/scripts/run_provenance.py`
- 产物:`examples/snse_survey/provenance/`(trace.jsonl + trace_summary.json,含每一条军机处派发与官署执行事件)。
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |