mirror of
https://github.com/alirezarezvani/claude-skills.git
synced 2026-08-28 04:24:58 +00:00
docs(ra-qm-team): fix agent-decision-receipts manifest-keys table to match code
The "Decision 2" table listed inputs_hash under "required keys this skill enforces," but build_action_manifest.py only enforces four required keys (agent_id, operation, target, policy). inputs_hash and decision_label are auto-added, not required input. Clarified: 4 required + 2 auto-added, so the doc matches the script. Follow-up to #868 (agent-decision-receipts), which merged before this fix landed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kmw1eZQoSMDr2diHbCcUkF
This commit is contained in:
parent
5759df3c77
commit
f29d5be1ef
1 changed files with 9 additions and 8 deletions
|
|
@ -65,15 +65,16 @@ High-signal triggers (mint by default): `deploy`, `delete`, `pay`/`wire`/`refund
|
|||
|
||||
## Decision 2: Mint the receipt
|
||||
|
||||
The action manifest is any ASCII-safe dict describing what the agent did. Required keys this skill enforces (via `build_action_manifest.py`):
|
||||
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 | What it carries |
|
||||
|-----|-----------------|
|
||||
| `agent_id` | the acting agent |
|
||||
| `operation` | the verb (deploy / delete / pay / decide / ...) |
|
||||
| `target` | what it acted on |
|
||||
| `policy` | the rule that governs it (e.g. "EU AI Act Art 12", "internal change-control") |
|
||||
| `inputs_hash` | a hash of the inputs, so the full payload need not be stored in the clear |
|
||||
| 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` | auto-added | a hash of `--inputs`, so the full payload need not be stored in the clear (defaults to the hash of empty when `--inputs` is omitted) |
|
||||
| `decision_label` | auto-added | the receipt decision label (defaults to `ACTION_GOVERNED`) |
|
||||
|
||||
`mint_receipt(manifest, decision=...)` hashes the full manifest into the receipt evidence, signs the canonical body, and returns a receipt that carries: `evidence_hash`, `signature_b64` (Ed25519), and — when `[pq]` is installed — `ml_dsa_signature_b64` + `slh_dsa_signature_b64`. Each leg signs the same bytes; any one verifying proves authenticity.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue