项目文件夹

文件
TJF 8de788c07f fix(governance): pin protect-mcp@0.7.4 so evaluate/sign hooks resolve (#602)
Bumps the protect-mcp pin from 0.5.5 to 0.7.4 in both review-agent-governance and protect-mcp hooks so the PreToolUse `evaluate` and PostToolUse `sign` verbs resolve and the governance gate runs fail-closed (deny -> exit 2). Rewrites the test suite (init --dir, receipts.jsonl, v2 receipt schema, real Cedar entity shape); 8/8 pass. Verified locally: verbs function on 0.7.4, deny path exits 2, make validate STRICT=1 clean.

Closes #601.
2026-07-08 10:22:44 -04:00

81 行
1.6 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://veritasacta.com/schemas/receipt-v2.json",
"title": "Veritas Acta Decision Receipt (v2 envelope)",
"description": "Expected shape of a protect-mcp@0.7.4 receipt. Mirrors draft-farley-acta-signed-receipts; the decision facts live in payload, signed as a unit.",
"type": "object",
"required": [
"v",
"type",
"algorithm",
"kid",
"issuer",
"issued_at",
"payload",
"signature"
],
"properties": {
"v": {
"type": "integer",
"const": 2
},
"type": {
"type": "string",
"enum": [
"decision_receipt",
"gateway_restraint"
]
},
"algorithm": {
"type": "string",
"const": "ed25519"
},
"kid": {
"type": "string"
},
"issuer": {
"type": "string"
},
"issued_at": {
"type": "string",
"format": "date-time"
},
"payload": {
"type": "object",
"required": [
"tool",
"decision"
],
"properties": {
"tool": {
"type": "string"
},
"decision": {
"type": "string",
"enum": [
"allow",
"deny"
]
},
"reason_code": {
"type": "string"
},
"policy_digest": {
"type": "string"
},
"request_id": {
"type": "string"
},
"spec": {
"type": "string"
}
},
"additionalProperties": true
},
"signature": {
"type": "string",
"minLength": 32
}
},
"additionalProperties": true
}