Chuyển đến nội dung
Skillpedia
Agent29k · #9729

agent-decision-receipts

Skill này làm gì

Skill này ghi lại các hành động quan trọng mà agent AI thực hiện, như triển khai, xóa, thanh toán hoặc thay đổi quyền truy cập, vào một biên nhận có chữ ký. Nó dành cho các nhóm cần bằng chứng về việc agent đã làm gì và vì sao.

Khi nào nên dùng

  • ✓Khi một agent tự hành sắp triển khai, xóa, thanh toán hoặc cấp quyền truy cập.
  • ✓Khi bạn cần bằng chứng về hành động của agent để lưu hồ sơ, chẳng hạn theo Điều 12 của Đạo luật AI EU.
  • ✓Khi bạn muốn kiểm tra sau này rằng một biên nhận chưa bị thay đổi.

Liên kết skill

https://github.com/alirezarezvani/claude-skills/blob/main/ra-qm-team/skills/agent-decision-receipts/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/alirezarezvani/claude-skills/blob/main/ra-qm-team/skills/agent-decision-receipts/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hãy tạo một biên nhận có chữ ký cho việc dọn dẹp cơ sở dữ liệu mà agent vừa chạy, để sau này chúng ta chứng minh được nó đã làm gì.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent tạo bản ghi về hành động, gồm ai thực hiện, đã làm gì và theo chính sách nào, rồi ký nó. Sau này nó có thể xác minh biên nhận từ chứng chỉ của chính biên nhận, và mọi chỉnh sửa đều làm hỏng chữ ký.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Agent Decision Receipts

Overview

A log says an action happened. A receipt is tamper-evident: it records who, what, and under which policy, and it is signed, so any later edit breaks the signature. This skill mints one for a consequential agent action and verifies it later from the certificate alone: no database, no network, no trusting the issuer.

The crypto is not in this skill. It is the open-source OpenAgentOntology receipt primitive (Apache-2.0), which signs every receipt with Ed25519 and the post-quantum legs ML-DSA-65 (FIPS 204) + SLH-DSA (FIPS 205) when the post-quantum backend is installed. This skill is the decision layer: when to mint, what to put in, how to verify. One install, no per-skill crypto.

Three decisions, nothing else:

  1. Does this action need a receipt? — side-effecting + consequential + later-provable = yes.
  2. Mint the receipt — build the action manifest, sign it with the OAO primitive.
  3. Verify it — recompute the hash, check each signature leg, from the cert alone.

This skill is NOT log analysis. Logs describe what happened and can be silently edited. A receipt is minted before/at execution and breaks if edited. Use logs for debugging; use receipts for evidence.

This skill is NOT a hosted notary. It mints a LOCAL, self-signed receipt anyone can verify offline. Cross-organization verification (one org proving to another) is a separate hosted service, out of scope here.

This skill is NOT a legal opinion. It produces evidence shaped to support FRE 902(13)/(14)-style certification and EU AI Act Article 12 record-keeping. Whether a given receipt is admitted is a question for counsel.

Quick Start

# Install the open-source receipt primitive (Apache-2.0). Add [pq] for the post-quantum legs.
pip install "openagentontology[pq]"

# 1. Build + validate an action manifest (stdlib only, no crypto, no network)
python scripts/build_action_manifest.py --agent my-deploy-agent --operation deploy \
    --target prod/api --policy "EU AI Act Art 12" --out action.json

# 2. Mint the receipt over it (Ed25519 + post-quantum legs)
python -c "import json,openagentontology.receipt as r; \
  print(json.dumps(r.mint_receipt(json.load(open('action.json')), decision='ACTION_GOVERNED')))" > receipt.json

# 3. Verify from the cert alone (no DB, no network)
python -c "import json,openagentontology.receipt as r; \
  print(r.verify_receipt(json.load(open('receipt.json'))))"
# -> {'ok': True, 'sig_ok': True, ... 'reason': 'verified from the cert alone via: ed25519, ml_dsa, slh_dsa'}

Dependency note. This skill delegates the signing to openagentontology (Apache-2.0, opt-in pip install). The script shipped here is stdlib-only and adds no repo dependency; the package is installed by the operator (BYO-library pattern). If it is not installed, the build step still works — only minting/verifying require it.

Core Workflow

The three decisions below are the skill: decide whether to receipt, mint, then verify.

Decision 1: Does this action need a receipt?

Mint a receipt when the action is all three of:

Test Mint if...
Side-effecting it writes, sends, deploys, deletes, pays, grants access, or changes external state
Consequential a wrong call costs money, breaks compliance, or harms a person
Later-provable someone (auditor, insurer, regulator, court, counterparty) may ask "what did the agent do and why?"

Read-only, reversible, trivial actions do not need a receipt. Receipt everything and the signal drowns; receipt nothing and the one call that mattered cannot be proven.

High-signal triggers (mint by default): deploy, delete, pay/wire/refund, grant_access, export/egress, approve/deny a claim, any model decision that affects a person under a high-risk AI system.

Decision 2: Mint the receipt

The action manifest is any ASCII-safe dict describing what the agent did. Four keys are required — build_action_manifest.py rejects the manifest (exit 2) if any is missing. Two more are added automatically:

Key Required? What it carries
agent_id required the acting agent
operation required the verb (deploy / delete / pay / decide / ...)
target required what it acted on
policy required the rule that governs it (e.g. "EU AI Act Art 12", "internal change-control")
inputs_hash au
Câu hỏi thường gặp

Biên nhận khác gì với nhật ký?

Nhật ký có thể bị sửa mà không ai nhận ra, còn biên nhận được ký và sẽ hỏng nếu có ai thay đổi nó.

Việc xác minh có cần dịch vụ trực tuyến không?

Không. Biên nhận có thể được xác minh ngoại tuyến từ chứng chỉ của nó, không cần cơ sở dữ liệu hay mạng.

Biên nhận có được gửi cho công chứng viên không?

Không. Đây là biên nhận cục bộ, tự ký, mà bất kỳ ai cũng có thể xác minh. Nó không phải là dịch vụ được lưu trữ bên ngoài.

Chi tiết

Mô tả gốc của tác giả

Use when an autonomous agent takes a side-effecting action (deploy, delete, pay, grant access) that may need proving later, or for EU AI Act Art. 12 record-keeping. Builds a tamper-evident signed receipt with build_action_manifest.py and verifies it.

repo: alirezarezvani/claude-skills

Độ phổ biến

Sao GitHub
29k
Vị trí xếp hạng
#9729
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự