vouch-protocol 2.2.1__tar.gz → 3.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (394) hide show
  1. {vouch_protocol-2.2.1/vouch_protocol.egg-info → vouch_protocol-3.1.0}/PKG-INFO +18 -16
  2. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/README.md +14 -10
  3. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/pyproject.toml +6 -6
  4. vouch_protocol-3.1.0/tests/test_ati_core.py +122 -0
  5. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_audio_bridge.py +2 -0
  6. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_authority_state.py +36 -17
  7. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_autosign.py +26 -8
  8. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_bridge.py +6 -0
  9. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_cache.py +71 -0
  10. vouch_protocol-3.1.0/tests/test_caveats.py +315 -0
  11. vouch_protocol-3.1.0/tests/test_ccg_demo.py +29 -0
  12. vouch_protocol-3.1.0/tests/test_cli_verify.py +239 -0
  13. vouch_protocol-3.1.0/tests/test_cli_without_server_extra.py +38 -0
  14. vouch_protocol-3.1.0/tests/test_conformance.py +99 -0
  15. vouch_protocol-3.1.0/tests/test_context_v1.py +298 -0
  16. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_credential_gate.py +6 -1
  17. vouch_protocol-3.1.0/tests/test_delegation_attenuation.py +51 -0
  18. vouch_protocol-3.1.0/tests/test_delegation_chain_vectors.py +71 -0
  19. vouch_protocol-3.1.0/tests/test_delegation_hardening.py +852 -0
  20. vouch_protocol-3.1.0/tests/test_delegation_size_guard.py +138 -0
  21. vouch_protocol-3.1.0/tests/test_delegation_verify.py +577 -0
  22. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_dx_sugar.py +73 -7
  23. vouch_protocol-3.1.0/tests/test_ed25519_check.py +98 -0
  24. vouch_protocol-3.1.0/tests/test_ed25519_strict_vector.py +82 -0
  25. vouch_protocol-3.1.0/tests/test_fence.py +945 -0
  26. vouch_protocol-3.1.0/tests/test_fetch_hostile_documents.py +235 -0
  27. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_fleet.py +77 -4
  28. vouch_protocol-3.1.0/tests/test_git_commit_binding.py +382 -0
  29. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_git_workflow.py +18 -13
  30. vouch_protocol-3.1.0/tests/test_grade_evidence.py +327 -0
  31. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_hasura_integration.py +2 -1
  32. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_heartbeat.py +57 -48
  33. vouch_protocol-3.1.0/tests/test_heartbeat_hardening.py +207 -0
  34. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_hybrid.py +21 -4
  35. vouch_protocol-3.1.0/tests/test_identity_file_reader.py +551 -0
  36. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_intent_recheck.py +41 -13
  37. vouch_protocol-3.1.0/tests/test_intent_recheck_vector.py +54 -0
  38. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_jcs_interop.py +28 -0
  39. vouch_protocol-3.1.0/tests/test_keys_post_quantum.py +1344 -0
  40. vouch_protocol-3.1.0/tests/test_keys_ts_interop.py +101 -0
  41. vouch_protocol-3.1.0/tests/test_kms.py +723 -0
  42. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_liveness_conformance.py +146 -19
  43. vouch_protocol-3.1.0/tests/test_mcp_check_trust.py +81 -0
  44. vouch_protocol-3.1.0/tests/test_mcp_guard_replay.py +153 -0
  45. vouch_protocol-3.1.0/tests/test_mcp_guard_revocation.py +243 -0
  46. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_mcp_server_shield.py +39 -0
  47. vouch_protocol-3.1.0/tests/test_mcp_server_status_tools.py +328 -0
  48. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_merkle.py +4 -4
  49. vouch_protocol-3.1.0/tests/test_mint_delegation.py +169 -0
  50. vouch_protocol-3.1.0/tests/test_mldsa_check.py +102 -0
  51. vouch_protocol-3.1.0/tests/test_multikey.py +151 -0
  52. vouch_protocol-3.1.0/tests/test_nesting_and_precision.py +185 -0
  53. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_nonce.py +19 -6
  54. vouch_protocol-3.1.0/tests/test_nonce_replay_store.py +395 -0
  55. vouch_protocol-3.1.0/tests/test_onboard.py +503 -0
  56. vouch_protocol-3.1.0/tests/test_pacing.py +2010 -0
  57. vouch_protocol-3.1.0/tests/test_policy_limits.py +137 -0
  58. vouch_protocol-3.1.0/tests/test_pq_verify.py +157 -0
  59. vouch_protocol-3.1.0/tests/test_proof_set_vector.py +68 -0
  60. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_quorum.py +36 -9
  61. vouch_protocol-3.1.0/tests/test_reasoning_escrow_binding.py +201 -0
  62. vouch_protocol-3.1.0/tests/test_recovery.py +373 -0
  63. vouch_protocol-3.1.0/tests/test_replay_key_vector.py +28 -0
  64. vouch_protocol-3.1.0/tests/test_revocation_fail_closed.py +383 -0
  65. vouch_protocol-3.1.0/tests/test_root_delegation_scripts.py +78 -0
  66. vouch_protocol-3.1.0/tests/test_sidecar.py +1727 -0
  67. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_signer_vc.py +21 -10
  68. vouch_protocol-3.1.0/tests/test_ssrf_ranges.py +17 -0
  69. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_status_list.py +36 -58
  70. vouch_protocol-3.1.0/tests/test_status_list_strict.py +646 -0
  71. vouch_protocol-3.1.0/tests/test_strict_time_leftovers.py +65 -0
  72. vouch_protocol-3.1.0/tests/test_timefmt.py +179 -0
  73. vouch_protocol-3.1.0/tests/test_trust_check.py +425 -0
  74. vouch_protocol-3.1.0/tests/test_trusted_roots.py +177 -0
  75. vouch_protocol-3.1.0/tests/test_trusted_roots_vector.py +45 -0
  76. vouch_protocol-3.1.0/tests/test_validator_cli.py +1675 -0
  77. vouch_protocol-3.1.0/tests/test_validator_server.py +532 -0
  78. vouch_protocol-3.1.0/tests/test_vector_runners.py +135 -0
  79. vouch_protocol-3.1.0/tests/test_verifier_hardening.py +1035 -0
  80. vouch_protocol-3.1.0/tests/test_verifier_round2.py +683 -0
  81. vouch_protocol-3.1.0/tests/test_verifier_round3.py +155 -0
  82. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_verifier_vc.py +15 -6
  83. vouch_protocol-3.1.0/tests/test_verify_without_key.py +213 -0
  84. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_vouch_mcp.py +10 -3
  85. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/__init__.py +1 -1
  86. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/accountability.py +9 -8
  87. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/agent.py +38 -6
  88. vouch_protocol-3.1.0/vouch/async_verifier.py +441 -0
  89. vouch_protocol-3.1.0/vouch/attenuation.py +790 -0
  90. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/authority_state.py +694 -697
  91. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/autosign.py +130 -19
  92. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/bridge/server.py +13 -1
  93. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/cache.py +50 -8
  94. vouch_protocol-3.1.0/vouch/caveats.py +715 -0
  95. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/cli.py +542 -277
  96. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/conformance.py +190 -97
  97. vouch_protocol-3.1.0/vouch/conformance_jcs_vectors.json +227 -0
  98. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/data_integrity.py +47 -8
  99. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/data_integrity_hybrid.py +66 -22
  100. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/deliberation.py +8 -7
  101. vouch_protocol-3.1.0/vouch/did_web.py +607 -0
  102. vouch_protocol-3.1.0/vouch/ed25519_check.py +216 -0
  103. vouch_protocol-3.1.0/vouch/fence.py +968 -0
  104. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/fleet.py +61 -16
  105. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/gate.py +57 -18
  106. vouch_protocol-3.1.0/vouch/grade.py +726 -0
  107. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/heartbeat.py +202 -18
  108. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/_common.py +1 -1
  109. vouch_protocol-3.1.0/vouch/integrations/a2a.py +149 -0
  110. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/fastapi.py +4 -1
  111. vouch_protocol-3.1.0/vouch/integrations/hasura/webhook.py +470 -0
  112. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/mcp/server.py +266 -64
  113. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/mlflow.py +26 -3
  114. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/safetensors.py +32 -4
  115. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/intent_recheck.py +142 -36
  116. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/jcs.py +46 -23
  117. vouch_protocol-3.1.0/vouch/keys.py +1136 -0
  118. vouch_protocol-3.1.0/vouch/kms.py +782 -0
  119. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/liveness_conformance.py +164 -76
  120. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/mcp/_guard.py +205 -86
  121. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/mcp_guard.py +65 -3
  122. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/merkle.py +41 -17
  123. vouch_protocol-3.1.0/vouch/mldsa_check.py +199 -0
  124. vouch_protocol-3.1.0/vouch/multikey.py +192 -0
  125. vouch_protocol-3.1.0/vouch/nesting.py +35 -0
  126. vouch_protocol-3.1.0/vouch/nonce.py +493 -0
  127. vouch_protocol-3.1.0/vouch/onboard.py +1184 -0
  128. vouch_protocol-3.1.0/vouch/pacing/__init__.py +288 -0
  129. vouch_protocol-3.1.0/vouch/pacing/_common.py +183 -0
  130. vouch_protocol-3.1.0/vouch/pacing/_pedersen.py +126 -0
  131. vouch_protocol-3.1.0/vouch/pacing/census.py +265 -0
  132. vouch_protocol-3.1.0/vouch/pacing/custody.py +384 -0
  133. vouch_protocol-3.1.0/vouch/pacing/disclosure.py +373 -0
  134. vouch_protocol-3.1.0/vouch/pacing/dissent.py +344 -0
  135. vouch_protocol-3.1.0/vouch/pacing/fuse.py +298 -0
  136. vouch_protocol-3.1.0/vouch/pacing/load_auth.py +332 -0
  137. vouch_protocol-3.1.0/vouch/pacing/oversight.py +324 -0
  138. vouch_protocol-3.1.0/vouch/pacing/pace.py +297 -0
  139. vouch_protocol-3.1.0/vouch/pacing/prereg.py +318 -0
  140. vouch_protocol-3.1.0/vouch/pacing/recursion.py +339 -0
  141. vouch_protocol-3.1.0/vouch/pacing/redline.py +347 -0
  142. vouch_protocol-3.1.0/vouch/pacing/restraint.py +582 -0
  143. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/quorum.py +2 -0
  144. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/ratelimit.py +9 -1
  145. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/reasoning.py +153 -32
  146. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/receipts.py +5 -4
  147. vouch_protocol-3.1.0/vouch/recovery.py +501 -0
  148. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/reputation.py +9 -1
  149. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/reputation_policy.py +15 -8
  150. vouch_protocol-3.1.0/vouch/revocation.py +650 -0
  151. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/root_of_trust.py +14 -1
  152. vouch_protocol-3.1.0/vouch/sidecar.py +1571 -0
  153. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/signer.py +216 -25
  154. vouch_protocol-3.1.0/vouch/ssrf.py +628 -0
  155. vouch_protocol-3.1.0/vouch/status_list.py +1262 -0
  156. vouch_protocol-3.1.0/vouch/status_list_fetcher.py +245 -0
  157. vouch_protocol-3.1.0/vouch/timefmt.py +284 -0
  158. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/transport/did_key.py +17 -4
  159. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/transport/rendezvous.py +11 -4
  160. vouch_protocol-3.1.0/vouch/trust_check.py +546 -0
  161. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/trust_entropy.py +89 -22
  162. vouch_protocol-3.1.0/vouch/trusted_roots.py +237 -0
  163. vouch_protocol-3.1.0/vouch/validator_flags.py +93 -0
  164. vouch_protocol-3.1.0/vouch/validator_server.py +1235 -0
  165. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/vc.py +46 -4
  166. vouch_protocol-3.1.0/vouch/verification.py +664 -0
  167. vouch_protocol-3.1.0/vouch/verifier.py +1985 -0
  168. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0/vouch_protocol.egg-info}/PKG-INFO +18 -16
  169. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch_protocol.egg-info/SOURCES.txt +75 -0
  170. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch_protocol.egg-info/requires.txt +2 -5
  171. vouch_protocol-2.2.1/tests/test_caveats.py +0 -169
  172. vouch_protocol-2.2.1/tests/test_conformance.py +0 -35
  173. vouch_protocol-2.2.1/tests/test_delegation_attenuation.py +0 -30
  174. vouch_protocol-2.2.1/tests/test_multikey.py +0 -61
  175. vouch_protocol-2.2.1/tests/test_recovery.py +0 -113
  176. vouch_protocol-2.2.1/tests/test_trust_check.py +0 -114
  177. vouch_protocol-2.2.1/tests/test_validator_server.py +0 -126
  178. vouch_protocol-2.2.1/vouch/async_verifier.py +0 -297
  179. vouch_protocol-2.2.1/vouch/attenuation.py +0 -287
  180. vouch_protocol-2.2.1/vouch/caveats.py +0 -305
  181. vouch_protocol-2.2.1/vouch/did_web.py +0 -300
  182. vouch_protocol-2.2.1/vouch/grade.py +0 -221
  183. vouch_protocol-2.2.1/vouch/integrations/a2a.py +0 -81
  184. vouch_protocol-2.2.1/vouch/integrations/hasura/webhook.py +0 -325
  185. vouch_protocol-2.2.1/vouch/keys.py +0 -213
  186. vouch_protocol-2.2.1/vouch/kms.py +0 -518
  187. vouch_protocol-2.2.1/vouch/multikey.py +0 -123
  188. vouch_protocol-2.2.1/vouch/nonce.py +0 -216
  189. vouch_protocol-2.2.1/vouch/onboard.py +0 -766
  190. vouch_protocol-2.2.1/vouch/recovery.py +0 -218
  191. vouch_protocol-2.2.1/vouch/revocation.py +0 -449
  192. vouch_protocol-2.2.1/vouch/ssrf.py +0 -85
  193. vouch_protocol-2.2.1/vouch/status_list.py +0 -700
  194. vouch_protocol-2.2.1/vouch/status_list_fetcher.py +0 -175
  195. vouch_protocol-2.2.1/vouch/trust_check.py +0 -238
  196. vouch_protocol-2.2.1/vouch/validator_server.py +0 -193
  197. vouch_protocol-2.2.1/vouch/verification.py +0 -422
  198. vouch_protocol-2.2.1/vouch/verifier.py +0 -671
  199. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/LICENSE +0 -0
  200. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/MANIFEST.in +0 -0
  201. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/setup.cfg +0 -0
  202. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_accountability.py +0 -0
  203. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_agent_enroll.py +0 -0
  204. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_attribution.py +0 -0
  205. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_audit_trail.py +0 -0
  206. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_auditor.py +0 -0
  207. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_authority_state_vectors.py +0 -0
  208. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_behavioral_attestation.py +0 -0
  209. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_budget.py +0 -0
  210. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_c2pa_formats.py +0 -0
  211. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_canary.py +0 -0
  212. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_cli_init.py +0 -0
  213. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_cli_root.py +0 -0
  214. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_data_integrity.py +0 -0
  215. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_deliberation.py +0 -0
  216. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_disconnected_edge.py +0 -0
  217. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_dtn_pads.py +0 -0
  218. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_examples_robotics.py +0 -0
  219. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_fastapi_credential_gate.py +0 -0
  220. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_grade.py +0 -0
  221. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_halos_evidence.py +0 -0
  222. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_hardware_seam.py +0 -0
  223. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_hybrid_interop.py +0 -0
  224. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_jcs.py +0 -0
  225. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_media_badge.py +0 -0
  226. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_media_native.py +0 -0
  227. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_mint_contributor_credential.py +0 -0
  228. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_orbital_accumulator.py +0 -0
  229. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_proof_of_integration.py +0 -0
  230. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_provenance.py +0 -0
  231. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_reasoning.py +0 -0
  232. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_receipts.py +0 -0
  233. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_reputation.py +0 -0
  234. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_reputation_aggregate.py +0 -0
  235. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_reputation_disputes.py +0 -0
  236. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_reputation_ledger.py +0 -0
  237. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_reputation_policy.py +0 -0
  238. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_reputation_portability.py +0 -0
  239. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_revocation.py +0 -0
  240. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_access.py +0 -0
  241. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_conformance.py +0 -0
  242. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_consent.py +0 -0
  243. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_custody.py +0 -0
  244. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_embodiment.py +0 -0
  245. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_fusion.py +0 -0
  246. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_handover.py +0 -0
  247. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_handshake_blackbox_passport.py +0 -0
  248. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_identity.py +0 -0
  249. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_lease_quorum.py +0 -0
  250. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_lifecycle.py +0 -0
  251. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_liveness_revocation.py +0 -0
  252. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_odd.py +0 -0
  253. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_perception.py +0 -0
  254. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_pq.py +0 -0
  255. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_provenance_capability.py +0 -0
  256. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_root_identity.py +0 -0
  257. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_safety_record.py +0 -0
  258. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_swarm.py +0 -0
  259. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_teleop.py +0 -0
  260. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_wear.py +0 -0
  261. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_root_of_trust.py +0 -0
  262. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_root_of_trust_vectors.py +0 -0
  263. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_ros2_action_gate.py +0 -0
  264. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_runtime_vectors.py +0 -0
  265. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_scan.py +0 -0
  266. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_secure_key_custody.py +0 -0
  267. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_security_hardening.py +0 -0
  268. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_shield_guard.py +0 -0
  269. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_shield_rules.py +0 -0
  270. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_shield_vectors.py +0 -0
  271. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_threshold.py +0 -0
  272. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_threshold_loader.py +0 -0
  273. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_tool_registry.py +0 -0
  274. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_transparency.py +0 -0
  275. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_transport.py +0 -0
  276. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_transport_http_rendezvous.py +0 -0
  277. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_transport_rendezvous.py +0 -0
  278. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_transport_udna_sdk.py +0 -0
  279. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_trifecta.py +0 -0
  280. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_trust_entropy.py +0 -0
  281. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_vc.py +0 -0
  282. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/attribution.py +0 -0
  283. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/attribution_cli.py +0 -0
  284. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/audio.py +0 -0
  285. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/audit_trail.py +0 -0
  286. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/auditor.py +0 -0
  287. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/behavioral_attestation.py +0 -0
  288. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/bridge/__init__.py +0 -0
  289. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/bridge/audio_routes.py +0 -0
  290. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/bridge/config.py +0 -0
  291. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/budget.py +0 -0
  292. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/canary.py +0 -0
  293. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/config.py +0 -0
  294. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/credential.py +0 -0
  295. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/adk.py +0 -0
  296. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/amnesia.py +0 -0
  297. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/autogen/__init__.py +0 -0
  298. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/autogpt/__init__.py +0 -0
  299. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/autogpt/commands.py +0 -0
  300. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/claude-code/settings.hooks.json +0 -0
  301. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/crewai/__init__.py +0 -0
  302. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/crewai/tool.py +0 -0
  303. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/google.py +0 -0
  304. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/goose.py +0 -0
  305. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/hasura/__init__.py +0 -0
  306. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/langchain/__init__.py +0 -0
  307. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/langchain/tool.py +0 -0
  308. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/langgraph.py +0 -0
  309. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/mcp/__init__.py +0 -0
  310. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/n8n.py +0 -0
  311. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/openai.py +0 -0
  312. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/streamlit/__init__.py +0 -0
  313. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/streamlit/seal.py +0 -0
  314. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/vertex_ai/__init__.py +0 -0
  315. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/keystore.py +0 -0
  316. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/mcp/__init__.py +0 -0
  317. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/media/__init__.py +0 -0
  318. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/media/badge.py +0 -0
  319. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/media/c2pa.py +0 -0
  320. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/media/native.py +0 -0
  321. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/metrics.py +0 -0
  322. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/proof_of_integration.py +0 -0
  323. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/provenance.py +0 -0
  324. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/registry.py +0 -0
  325. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/reputation_aggregate.py +0 -0
  326. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/reputation_disputes.py +0 -0
  327. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/reputation_ledger.py +0 -0
  328. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/reputation_portability.py +0 -0
  329. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/__init__.py +0 -0
  330. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/_signing.py +0 -0
  331. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/_verify.py +0 -0
  332. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/access.py +0 -0
  333. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/accumulator.py +0 -0
  334. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/blackbox.py +0 -0
  335. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/bundle.py +0 -0
  336. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/capability.py +0 -0
  337. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/conformance.py +0 -0
  338. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/consent.py +0 -0
  339. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/custody.py +0 -0
  340. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/dtn_revocation.py +0 -0
  341. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/edge_trust.py +0 -0
  342. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/embodiment.py +0 -0
  343. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/freshness.py +0 -0
  344. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/fusion.py +0 -0
  345. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/geoscope.py +0 -0
  346. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/halos.py +0 -0
  347. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/handover.py +0 -0
  348. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/handshake.py +0 -0
  349. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/hardware.py +0 -0
  350. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/identity.py +0 -0
  351. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/lease.py +0 -0
  352. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/lifecycle.py +0 -0
  353. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/liveness.py +0 -0
  354. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/localization.py +0 -0
  355. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/odd.py +0 -0
  356. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/orbital.py +0 -0
  357. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/passport.py +0 -0
  358. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/perception.py +0 -0
  359. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/perception_consensus.py +0 -0
  360. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/physical_quorum.py +0 -0
  361. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/pq.py +0 -0
  362. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/presence.py +0 -0
  363. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/provenance.py +0 -0
  364. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/quorum_trust.py +0 -0
  365. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/revocation.py +0 -0
  366. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/root_identity.py +0 -0
  367. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/safety_record.py +0 -0
  368. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/swarm.py +0 -0
  369. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/teleop.py +0 -0
  370. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/wear.py +0 -0
  371. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/scan/__init__.py +0 -0
  372. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/scan/detector.py +0 -0
  373. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/scan/patterns.py +0 -0
  374. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/seal.py +0 -0
  375. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/shield/__init__.py +0 -0
  376. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/shield/demo.py +0 -0
  377. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/shield/flight_recorder.py +0 -0
  378. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/shield/rules.py +0 -0
  379. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/shield/shield.py +0 -0
  380. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/shield/trust_registry.py +0 -0
  381. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/threshold.py +0 -0
  382. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/tool_registry.py +0 -0
  383. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/transparency.py +0 -0
  384. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/transport/__init__.py +0 -0
  385. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/transport/base.py +0 -0
  386. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/transport/envelope.py +0 -0
  387. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/transport/http_rendezvous.py +0 -0
  388. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/transport/http_transport.py +0 -0
  389. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/transport/manager.py +0 -0
  390. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/transport/udna.py +0 -0
  391. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/trifecta.py +0 -0
  392. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch_protocol.egg-info/dependency_links.txt +0 -0
  393. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch_protocol.egg-info/entry_points.txt +0 -0
  394. {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch_protocol.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vouch-protocol
3
- Version: 2.2.1
3
+ Version: 3.1.0
4
4
  Summary: The Identity & Reputation Standard for AI Agents
5
5
  Author-email: Vouch Protocol Contributors <hello@vouch-protocol.com>
6
6
  License: Apache License 2.0
@@ -204,7 +204,7 @@ License: Apache License 2.0
204
204
 
205
205
  Project-URL: Homepage, https://github.com/vouch-protocol/vouch
206
206
  Project-URL: Bug Tracker, https://github.com/vouch-protocol/vouch/issues
207
- Project-URL: Documentation, https://vouch-protocol.com
207
+ Project-URL: Documentation, https://vouch-protocol.org
208
208
  Keywords: ai,agents,identity,cryptography,did,verifiable-credentials
209
209
  Classifier: Development Status :: 4 - Beta
210
210
  Classifier: Intended Audience :: Developers
@@ -248,11 +248,9 @@ Provides-Extra: enterprise
248
248
  Requires-Dist: redis>=5.0.0; extra == "enterprise"
249
249
  Requires-Dist: prometheus-client>=0.17.0; extra == "enterprise"
250
250
  Provides-Extra: aws
251
- Requires-Dist: aioboto3>=12.0.0; extra == "aws"
251
+ Requires-Dist: boto3>=1.40.0; extra == "aws"
252
252
  Provides-Extra: gcp
253
- Requires-Dist: google-cloud-kms>=2.0.0; extra == "gcp"
254
- Provides-Extra: azure
255
- Requires-Dist: azure-keyvault-keys>=4.0.0; extra == "azure"
253
+ Requires-Dist: google-cloud-kms>=3.0.0; extra == "gcp"
256
254
  Provides-Extra: pq
257
255
  Provides-Extra: udna
258
256
  Requires-Dist: sirraya-udna-sdk>=1.0.3; extra == "udna"
@@ -327,7 +325,7 @@ Dynamic: license-file
327
325
 
328
326
  ```bash
329
327
  # Install (Linux and macOS). On Windows, use: pip install vouch-protocol
330
- curl -fsSL https://vouch-protocol.com/install.sh | sh
328
+ curl -fsSL https://vouch-protocol.org/install.sh | sh
331
329
 
332
330
  # Run vouch with no arguments and pick what you want to do
333
331
  vouch
@@ -373,9 +371,12 @@ Credentials are issued with `Signer.sign()` and checked with `Verifier.verify()`
373
371
  Vouch is not one tool, it is a set of them. Here is the whole map.
374
372
 
375
373
  ### On the command line
376
- - **`vouch init`** generate an agent identity (a DID and keypair).
374
+ - **`vouch init`** generate an agent identity (a DID, an Ed25519 key and a post-quantum key).
377
375
  - **`vouch sign` / `vouch verify`** sign a payload and verify it.
376
+ - **`vouch sidecar`** run the signing sidecar, which holds your agent's key so the model never has it. The caller chooses how long each credential stays valid. It opens passphrase-locked identities, and `--kms` signs with a key in AWS KMS or Google Cloud KMS.
377
+ - **`vouch validator`** run a heartbeat validator: agents send a signed heartbeat at every interval and get back a short-lived session voucher.
378
378
  - **`vouch git`** sign every git commit cryptographically, set up in one command, with a verified badge for your README.
379
+ - **`vouch run`** start an agent inside a file-access fence on Linux: `vouch run -- python agent.py`. The kernel lets it reach its workspace and the paths you list, and keeps your keys out of its reach. See [Fenced runs](docs/fenced-run.md).
379
380
  - **`vouch scan`** find leaked Vouch key material in your code before it ships (a private key in a file, a seed in an env var, a DID document that accidentally carries a private key).
380
381
  - **`vouch attribute`** separate who wrote which line. When an AI assistant and a human both edit a file, this records the AI's lines under the AI's own key and your lines under yours, so when a line causes an incident you can prove which of you wrote it. See [the Claude Code integration](vouch/integrations/claude-code/README.md).
381
382
  - **`vouch media`** sign images, with C2PA support.
@@ -453,7 +454,7 @@ AI agents are making real-world API calls with **ZERO cryptographic proof** of:
453
454
  - **Human-readable JSON** (proof attaches as a sibling object, no Base64-wrapped opaque payload)
454
455
  - **Framework-agnostic** (works with MCP, LangChain, CrewAI, AutoGPT, AutoGen, Vertex AI)
455
456
  - **Cross-language interop** (Python, TypeScript, Go, byte-identical canonical form)
456
- - **Open source** (Apache 2.0 license, CC0 prior-art portfolio)
457
+ - **Open source** (Apache 2.0 license, with a public portfolio of defensive prior-art disclosures)
457
458
 
458
459
  **Think of it as:**
459
460
  - SSL certificate = Proves website identity
@@ -535,7 +536,7 @@ flowchart TB
535
536
  ### 1. Install
536
537
  ```bash
537
538
  # Linux and macOS: one line
538
- curl -fsSL https://vouch-protocol.com/install.sh | sh
539
+ curl -fsSL https://vouch-protocol.org/install.sh | sh
539
540
 
540
541
  # Or with pip (any platform)
541
542
  pip install vouch-protocol
@@ -617,7 +618,8 @@ Works with all major AI frameworks out-of-the-box:
617
618
 
618
619
  - **Key Rotation**: automatic rotating keys for production
619
620
  - **Voice AI Signing**: sign audio frames in real-time
620
- - **Cloud KMS**: AWS KMS, GCP Cloud KMS, Azure Key Vault
621
+ - **Cloud keys**: Ed25519 keys in AWS KMS and Google Cloud KMS sign credentials, and the private key never leaves the service (`vouch sidecar --kms`). Azure Key Vault does not offer Ed25519 keys
622
+ - **Heartbeat validator service**: `vouch validator` runs a heartbeat validator that renews agent sessions, with a container image and a Kubernetes manifest
621
623
  - **Reputation Scoring**: track agent behavior over time
622
624
  - **Revocation Registry**: blacklist compromised keys
623
625
  - **Redis Caching**: production-scale verification
@@ -659,7 +661,7 @@ agent.sign({'action': 'read_customer_data', 'customer_id': 'cust_abc'})
659
661
  agent.sign({'action': 'access_phi', 'patient_id': '12345'})
660
662
  ```
661
663
 
662
- To keep this space free from patent capture, the project publishes **61 defensive prior-art disclosures** under CC0, covering cryptographic identity, media provenance, voice biometrics, AI safety, post-quantum cryptography, AI coding governance, and per-region human-or-AI code authorship. See [docs/disclosures](docs/disclosures/README.md).
664
+ To keep this space free from patent capture, the project publishes **more than 130 defensive prior-art disclosures**, covering cryptographic identity, media provenance, voice biometrics, AI safety, post-quantum cryptography, AI coding governance, per-region human-or-AI code authorship, robotics, delegation, and operating system enforcement. See [docs/disclosures](docs/disclosures/README.md).
663
665
 
664
666
  ---
665
667
 
@@ -682,7 +684,7 @@ To keep this space free from patent capture, the project publishes **61 defensiv
682
684
  - [Protocol Specification (developer guide)](https://github.com/vouch-protocol/vouch/blob/main/docs/vouch_guide.md)
683
685
  - [Integration Guides](https://github.com/vouch-protocol/vouch/tree/main/vouch/integrations)
684
686
  - [Threat Model and Security Considerations](https://github.com/vouch-protocol/vouch/blob/main/docs/THREAT_MODEL.md)
685
- - [Defensive Prior Art Disclosures (61 PADs, CC0)](https://github.com/vouch-protocol/vouch/tree/main/docs/disclosures)
687
+ - [Defensive Prior Art Disclosures (more than 130 PADs)](https://github.com/vouch-protocol/vouch/tree/main/docs/disclosures)
686
688
  - [FAQ and Discussions](https://github.com/vouch-protocol/vouch/discussions)
687
689
 
688
690
  ---
@@ -704,7 +706,7 @@ To keep this space free from patent capture, the project publishes **61 defensiv
704
706
  - [x] **Post-quantum profile** (`eddsa-jcs-2022` + `mldsa44-jcs-2024` proof set, NIST CNSA 2.0 / NSM-10 aligned)
705
707
  - [x] **Three-language reference implementation** (Python, TypeScript, Go) with byte-identical canonical form via RFC 8785 JCS, verified against shared test vectors
706
708
  - [x] **Specification drafted** and submitted to the open standards group for incubation
707
- - [x] **55 Prior Art Disclosures** (CC0 defensive publications)
709
+ - [x] **More than 130 Prior Art Disclosures** (defensive publications)
708
710
  - [x] Identity Sidecar architecture (LLM-isolated keys)
709
711
  - [x] Heartbeat Protocol with adaptive Trust Entropy
710
712
  - [x] Resource-bound delegation chains with capability narrowing
@@ -740,7 +742,7 @@ To keep this space free from patent capture, the project publishes **61 defensiv
740
742
 
741
743
  You can use this freely in commercial and open-source projects.
742
744
 
743
- The 61 defensive prior-art disclosures are released under **CC0 1.0 Universal** to ensure ecosystem freedom from patent capture.
745
+ The defensive prior-art disclosures in `docs/disclosures` are published to keep these methods free from patent capture. They are dedicated to the public domain under **CC0 1.0 Universal**, so anyone may copy, quote and build on them without asking.
744
746
 
745
747
  *The Vouch Protocol specification is being developed as a open standard submission via the open standards group. The implementation is also being proposed to the Linux Foundation's AI & Data Foundation.*
746
748
 
@@ -792,7 +794,7 @@ Thanks goes to these wonderful people. This section is maintained automatically
792
794
 
793
795
  ## Prior Art Disclosures
794
796
 
795
- To ensure ecosystem freedom, we publish **55 defensive prior art disclosures** (CC0 public domain) covering novel methods across cryptographic identity, media provenance, voice biometrics, AI safety, post-quantum cryptography, AI coding assistant governance, and content authenticity:
797
+ To ensure ecosystem freedom, we publish **more than 130 defensive prior art disclosures** covering novel methods across cryptographic identity, media provenance, voice biometrics, AI safety, post-quantum cryptography, AI coding assistant governance, and content authenticity. The first 55 are listed below. The full list is in [docs/disclosures](docs/disclosures/README.md):
796
798
 
797
799
  | ID | Title | Category |
798
800
  |----|-------|----------|
@@ -37,7 +37,7 @@
37
37
 
38
38
  ```bash
39
39
  # Install (Linux and macOS). On Windows, use: pip install vouch-protocol
40
- curl -fsSL https://vouch-protocol.com/install.sh | sh
40
+ curl -fsSL https://vouch-protocol.org/install.sh | sh
41
41
 
42
42
  # Run vouch with no arguments and pick what you want to do
43
43
  vouch
@@ -83,9 +83,12 @@ Credentials are issued with `Signer.sign()` and checked with `Verifier.verify()`
83
83
  Vouch is not one tool, it is a set of them. Here is the whole map.
84
84
 
85
85
  ### On the command line
86
- - **`vouch init`** generate an agent identity (a DID and keypair).
86
+ - **`vouch init`** generate an agent identity (a DID, an Ed25519 key and a post-quantum key).
87
87
  - **`vouch sign` / `vouch verify`** sign a payload and verify it.
88
+ - **`vouch sidecar`** run the signing sidecar, which holds your agent's key so the model never has it. The caller chooses how long each credential stays valid. It opens passphrase-locked identities, and `--kms` signs with a key in AWS KMS or Google Cloud KMS.
89
+ - **`vouch validator`** run a heartbeat validator: agents send a signed heartbeat at every interval and get back a short-lived session voucher.
88
90
  - **`vouch git`** sign every git commit cryptographically, set up in one command, with a verified badge for your README.
91
+ - **`vouch run`** start an agent inside a file-access fence on Linux: `vouch run -- python agent.py`. The kernel lets it reach its workspace and the paths you list, and keeps your keys out of its reach. See [Fenced runs](docs/fenced-run.md).
89
92
  - **`vouch scan`** find leaked Vouch key material in your code before it ships (a private key in a file, a seed in an env var, a DID document that accidentally carries a private key).
90
93
  - **`vouch attribute`** separate who wrote which line. When an AI assistant and a human both edit a file, this records the AI's lines under the AI's own key and your lines under yours, so when a line causes an incident you can prove which of you wrote it. See [the Claude Code integration](vouch/integrations/claude-code/README.md).
91
94
  - **`vouch media`** sign images, with C2PA support.
@@ -163,7 +166,7 @@ AI agents are making real-world API calls with **ZERO cryptographic proof** of:
163
166
  - **Human-readable JSON** (proof attaches as a sibling object, no Base64-wrapped opaque payload)
164
167
  - **Framework-agnostic** (works with MCP, LangChain, CrewAI, AutoGPT, AutoGen, Vertex AI)
165
168
  - **Cross-language interop** (Python, TypeScript, Go, byte-identical canonical form)
166
- - **Open source** (Apache 2.0 license, CC0 prior-art portfolio)
169
+ - **Open source** (Apache 2.0 license, with a public portfolio of defensive prior-art disclosures)
167
170
 
168
171
  **Think of it as:**
169
172
  - SSL certificate = Proves website identity
@@ -245,7 +248,7 @@ flowchart TB
245
248
  ### 1. Install
246
249
  ```bash
247
250
  # Linux and macOS: one line
248
- curl -fsSL https://vouch-protocol.com/install.sh | sh
251
+ curl -fsSL https://vouch-protocol.org/install.sh | sh
249
252
 
250
253
  # Or with pip (any platform)
251
254
  pip install vouch-protocol
@@ -327,7 +330,8 @@ Works with all major AI frameworks out-of-the-box:
327
330
 
328
331
  - **Key Rotation**: automatic rotating keys for production
329
332
  - **Voice AI Signing**: sign audio frames in real-time
330
- - **Cloud KMS**: AWS KMS, GCP Cloud KMS, Azure Key Vault
333
+ - **Cloud keys**: Ed25519 keys in AWS KMS and Google Cloud KMS sign credentials, and the private key never leaves the service (`vouch sidecar --kms`). Azure Key Vault does not offer Ed25519 keys
334
+ - **Heartbeat validator service**: `vouch validator` runs a heartbeat validator that renews agent sessions, with a container image and a Kubernetes manifest
331
335
  - **Reputation Scoring**: track agent behavior over time
332
336
  - **Revocation Registry**: blacklist compromised keys
333
337
  - **Redis Caching**: production-scale verification
@@ -369,7 +373,7 @@ agent.sign({'action': 'read_customer_data', 'customer_id': 'cust_abc'})
369
373
  agent.sign({'action': 'access_phi', 'patient_id': '12345'})
370
374
  ```
371
375
 
372
- To keep this space free from patent capture, the project publishes **61 defensive prior-art disclosures** under CC0, covering cryptographic identity, media provenance, voice biometrics, AI safety, post-quantum cryptography, AI coding governance, and per-region human-or-AI code authorship. See [docs/disclosures](docs/disclosures/README.md).
376
+ To keep this space free from patent capture, the project publishes **more than 130 defensive prior-art disclosures**, covering cryptographic identity, media provenance, voice biometrics, AI safety, post-quantum cryptography, AI coding governance, per-region human-or-AI code authorship, robotics, delegation, and operating system enforcement. See [docs/disclosures](docs/disclosures/README.md).
373
377
 
374
378
  ---
375
379
 
@@ -392,7 +396,7 @@ To keep this space free from patent capture, the project publishes **61 defensiv
392
396
  - [Protocol Specification (developer guide)](https://github.com/vouch-protocol/vouch/blob/main/docs/vouch_guide.md)
393
397
  - [Integration Guides](https://github.com/vouch-protocol/vouch/tree/main/vouch/integrations)
394
398
  - [Threat Model and Security Considerations](https://github.com/vouch-protocol/vouch/blob/main/docs/THREAT_MODEL.md)
395
- - [Defensive Prior Art Disclosures (61 PADs, CC0)](https://github.com/vouch-protocol/vouch/tree/main/docs/disclosures)
399
+ - [Defensive Prior Art Disclosures (more than 130 PADs)](https://github.com/vouch-protocol/vouch/tree/main/docs/disclosures)
396
400
  - [FAQ and Discussions](https://github.com/vouch-protocol/vouch/discussions)
397
401
 
398
402
  ---
@@ -414,7 +418,7 @@ To keep this space free from patent capture, the project publishes **61 defensiv
414
418
  - [x] **Post-quantum profile** (`eddsa-jcs-2022` + `mldsa44-jcs-2024` proof set, NIST CNSA 2.0 / NSM-10 aligned)
415
419
  - [x] **Three-language reference implementation** (Python, TypeScript, Go) with byte-identical canonical form via RFC 8785 JCS, verified against shared test vectors
416
420
  - [x] **Specification drafted** and submitted to the open standards group for incubation
417
- - [x] **55 Prior Art Disclosures** (CC0 defensive publications)
421
+ - [x] **More than 130 Prior Art Disclosures** (defensive publications)
418
422
  - [x] Identity Sidecar architecture (LLM-isolated keys)
419
423
  - [x] Heartbeat Protocol with adaptive Trust Entropy
420
424
  - [x] Resource-bound delegation chains with capability narrowing
@@ -450,7 +454,7 @@ To keep this space free from patent capture, the project publishes **61 defensiv
450
454
 
451
455
  You can use this freely in commercial and open-source projects.
452
456
 
453
- The 61 defensive prior-art disclosures are released under **CC0 1.0 Universal** to ensure ecosystem freedom from patent capture.
457
+ The defensive prior-art disclosures in `docs/disclosures` are published to keep these methods free from patent capture. They are dedicated to the public domain under **CC0 1.0 Universal**, so anyone may copy, quote and build on them without asking.
454
458
 
455
459
  *The Vouch Protocol specification is being developed as a open standard submission via the open standards group. The implementation is also being proposed to the Linux Foundation's AI & Data Foundation.*
456
460
 
@@ -502,7 +506,7 @@ Thanks goes to these wonderful people. This section is maintained automatically
502
506
 
503
507
  ## Prior Art Disclosures
504
508
 
505
- To ensure ecosystem freedom, we publish **55 defensive prior art disclosures** (CC0 public domain) covering novel methods across cryptographic identity, media provenance, voice biometrics, AI safety, post-quantum cryptography, AI coding assistant governance, and content authenticity:
509
+ To ensure ecosystem freedom, we publish **more than 130 defensive prior art disclosures** covering novel methods across cryptographic identity, media provenance, voice biometrics, AI safety, post-quantum cryptography, AI coding assistant governance, and content authenticity. The first 55 are listed below. The full list is in [docs/disclosures](docs/disclosures/README.md):
506
510
 
507
511
  | ID | Title | Category |
508
512
  |----|-------|----------|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "vouch-protocol"
7
- version = "2.2.1"
7
+ version = "3.1.0"
8
8
  description = "The Identity & Reputation Standard for AI Agents"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -69,10 +69,10 @@ enterprise = [
69
69
  "prometheus-client>=0.17.0",
70
70
  ]
71
71
 
72
- # Cloud KMS integrations
73
- aws = ["aioboto3>=12.0.0"]
74
- gcp = ["google-cloud-kms>=2.0.0"]
75
- azure = ["azure-keyvault-keys>=4.0.0"]
72
+ # Cloud KMS integrations: Ed25519 keys in AWS KMS or Google Cloud KMS.
73
+ # (Azure Key Vault has no Ed25519 keys, so it has no extra.)
74
+ aws = ["boto3>=1.40.0"]
75
+ gcp = ["google-cloud-kms>=3.0.0"]
76
76
 
77
77
  # The post-quantum profile is bundled by default (see required
78
78
  # `dependencies` above). The `pq` extra is retained as a no-op alias so
@@ -139,7 +139,7 @@ all = [
139
139
  [project.urls]
140
140
  "Homepage" = "https://github.com/vouch-protocol/vouch"
141
141
  "Bug Tracker" = "https://github.com/vouch-protocol/vouch/issues"
142
- "Documentation" = "https://vouch-protocol.com"
142
+ "Documentation" = "https://vouch-protocol.org"
143
143
 
144
144
  [project.scripts]
145
145
  vouch = "vouch.cli:main"
@@ -0,0 +1,122 @@
1
+ """The Agent Trust Index sweep: one hostile domain never stops it, and one card
2
+ naming thousands of DIDs never holds a worker for hours."""
3
+
4
+ import json
5
+ import os
6
+ import sys
7
+
8
+ import pytest
9
+
10
+ sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)), "agent-trust-index"))
11
+ from ati import core # noqa: E402
12
+
13
+ from vouch import grade # noqa: E402
14
+
15
+
16
+ def test_a_domain_that_raises_records_no_signals(monkeypatch, capsys):
17
+ def explode(domain, timeout=5):
18
+ raise RecursionError("maximum recursion depth exceeded")
19
+
20
+ monkeypatch.setattr(grade, "inspect_domain", explode)
21
+ assert core.resolve_domain("hostile.test") == grade.empty_signals()
22
+ assert "warning: hostile.test: RecursionError" in capsys.readouterr().err
23
+
24
+
25
+ def test_one_hostile_domain_does_not_stop_the_sweep(monkeypatch):
26
+ def inspect(domain, timeout=5):
27
+ if domain == "hostile.test":
28
+ raise OverflowError("date value out of range")
29
+ sig = grade.empty_signals()
30
+ sig.update(has_did=True, has_verification_method=True, did=f"did:web:{domain}")
31
+ return sig, []
32
+
33
+ monkeypatch.setattr(grade, "inspect_domain", inspect)
34
+ monkeypatch.setattr(
35
+ core,
36
+ "fetch_servers",
37
+ lambda max_servers: [
38
+ core.AgentRecord(name="good", title="", description="", domains=["good.test"]),
39
+ core.AgentRecord(name="hostile", title="", description="", domains=["hostile.test"]),
40
+ ],
41
+ )
42
+ results = {r["name"]: r for r in core.run(workers=2)}
43
+ assert results["good"]["signals"]["has_did"] is True
44
+ assert results["hostile"]["signals"]["has_did"] is False
45
+
46
+
47
+ def _card_naming(count):
48
+ return {"agents": [f"did:web:agent{i}.example" for i in range(count)]}
49
+
50
+
51
+ def test_at_most_ten_dids_from_one_card_are_checked(monkeypatch):
52
+ checked = []
53
+ monkeypatch.setattr(core, "_resolve_declared_did", lambda did, sig: checked.append(did))
54
+ monkeypatch.setattr(
55
+ grade,
56
+ "inspect_domain",
57
+ lambda domain, timeout=5: (grade.empty_signals(), [_card_naming(5000)]),
58
+ )
59
+ sig = core.resolve_domain("many.test")
60
+ assert checked == [f"did:web:agent{i}.example" for i in range(core.MAX_DIDS_PER_CARD)]
61
+ assert sig["reasons"]["declared_dids"] == (
62
+ "checked the first 10 of the 5000 DIDs an agent card names"
63
+ )
64
+
65
+
66
+ def test_a_card_within_the_cap_is_checked_in_full(monkeypatch):
67
+ checked = []
68
+ monkeypatch.setattr(core, "_resolve_declared_did", lambda did, sig: checked.append(did))
69
+ card = _card_naming(3)
70
+ card["self"] = "did:web:few.test" # the bare domain DID is not counted
71
+ monkeypatch.setattr(
72
+ grade, "inspect_domain", lambda domain, timeout=5: (grade.empty_signals(), [card])
73
+ )
74
+ sig = core.resolve_domain("few.test")
75
+ assert len(checked) == 3 and "declared_dids" not in sig["reasons"]
76
+
77
+
78
+ def test_the_cap_is_noted_in_the_sweep_result(monkeypatch):
79
+ monkeypatch.setattr(core, "_resolve_declared_did", lambda did, sig: None)
80
+ monkeypatch.setattr(
81
+ grade,
82
+ "inspect_domain",
83
+ lambda domain, timeout=5: (grade.empty_signals(), [_card_naming(50)]),
84
+ )
85
+ monkeypatch.setattr(
86
+ core,
87
+ "fetch_servers",
88
+ lambda max_servers: [
89
+ core.AgentRecord(name="many", title="", description="", domains=["many.test"])
90
+ ],
91
+ )
92
+ (result,) = core.run(workers=1)
93
+ assert "first 10 of the 50" in result["signals"]["reasons"]["declared_dids"]
94
+ json.dumps(result) # the record is still plain JSON
95
+
96
+
97
+ @pytest.mark.parametrize("count", [0, 1, 10, 11])
98
+ def test_cap_boundaries(monkeypatch, count):
99
+ checked = []
100
+ monkeypatch.setattr(core, "_resolve_declared_did", lambda did, sig: checked.append(did))
101
+ monkeypatch.setattr(
102
+ grade,
103
+ "inspect_domain",
104
+ lambda domain, timeout=5: (grade.empty_signals(), [_card_naming(count)]),
105
+ )
106
+ sig = core.resolve_domain("edge.test")
107
+ assert len(checked) == min(count, core.MAX_DIDS_PER_CARD)
108
+ assert ("declared_dids" in sig["reasons"]) == (count > core.MAX_DIDS_PER_CARD)
109
+
110
+
111
+ def test_a_card_too_deep_to_search_is_passed_over(monkeypatch):
112
+ deep = []
113
+ for _ in range(3000):
114
+ deep = [deep]
115
+ checked = []
116
+ monkeypatch.setattr(core, "_resolve_declared_did", lambda did, sig: checked.append(did))
117
+ cards = [{"x": deep}, _card_naming(2)]
118
+ monkeypatch.setattr(
119
+ grade, "inspect_domain", lambda domain, timeout=5: (grade.empty_signals(), cards)
120
+ )
121
+ core.resolve_domain("deep.test")
122
+ assert len(checked) == 2 # the next card is still searched
@@ -148,6 +148,7 @@ class TestAudioAuth:
148
148
 
149
149
  class TestAudioEmbed:
150
150
  def test_embed_invalid_base64(self):
151
+ pytest.importorskip("numpy")
151
152
  resp = client.post(
152
153
  "/audio/embed",
153
154
  json={
@@ -162,6 +163,7 @@ class TestAudioEmbed:
162
163
  assert "base64" in data["error"].lower() or "invalid" in data["error"].lower()
163
164
 
164
165
  def test_embed_too_small(self):
166
+ pytest.importorskip("numpy")
165
167
  tiny = base64.b64encode(b"abc").decode()
166
168
  resp = client.post(
167
169
  "/audio/embed",
@@ -37,6 +37,7 @@ from vouch.status_list import (
37
37
  from vouch.heartbeat import HeartbeatRequest, HeartbeatSession, HeartbeatValidator
38
38
  from vouch.vc import build_session_voucher
39
39
  from vouch.trust_check import verify_agent_call
40
+ from _heartbeat_keys import resolve, signed_session # noqa: E402
40
41
 
41
42
 
42
43
  AUTHORITY_DID = "did:web:treasury.example.com"
@@ -312,7 +313,7 @@ def test_session_voucher_carries_epoch():
312
313
 
313
314
 
314
315
  def test_heartbeat_request_roundtrips_epoch():
315
- session = HeartbeatSession(subject_did="did:web:agent.example.com", authority_epoch=6)
316
+ session = signed_session("did:web:agent.example.com", authority_epoch=6)
316
317
  req = session.build_request()
317
318
  assert req.authority_epoch == 6
318
319
  d = req.to_dict()
@@ -322,8 +323,8 @@ def test_heartbeat_request_roundtrips_epoch():
322
323
 
323
324
 
324
325
  def test_heartbeat_validator_tracks_highest_epoch_and_mints_voucher():
325
- validator = HeartbeatValidator(validator_did="did:web:v.example.com")
326
- session = HeartbeatSession(subject_did="did:web:agent.example.com", authority_epoch=2)
326
+ validator = HeartbeatValidator(key_resolver=resolve, validator_did="did:web:v.example.com")
327
+ session = signed_session("did:web:agent.example.com", authority_epoch=2)
327
328
  res = validator.validate(session.build_request().to_dict())
328
329
  assert res.ok
329
330
  assert res.session_voucher["credentialSubject"]["authorityEpoch"] == 2
@@ -349,21 +350,29 @@ def agent_call():
349
350
  intent = {"action": "transfer", "target": "vendor-1", "resource": "https://bank.example.com/x"}
350
351
  cred = signer.sign(intent=intent, valid_seconds=300)
351
352
  # A voucher minted under authority epoch 5, still well within its time window.
352
- voucher = build_session_voucher(
353
- subject_did=ident.did,
354
- validator_dids=["did:web:v.example.com"],
355
- decay_lambda=0.001,
356
- initial_trust=1.0,
357
- max_ttl_seconds=3600,
358
- scope=["agent_actions"],
359
- valid_seconds=300,
360
- authority_epoch=5,
353
+ # The voucher is signed by its validator; an unsigned voucher never counts.
354
+ from vouch.vc import sign_session_voucher
355
+
356
+ v_ident = generate_identity(domain="v.example.com")
357
+ v_signer = Signer(private_key=v_ident.private_key_jwk, did=v_ident.did)
358
+ voucher = sign_session_voucher(
359
+ build_session_voucher(
360
+ subject_did=ident.did,
361
+ validator_dids=[v_signer.did],
362
+ decay_lambda=0.001,
363
+ initial_trust=1.0,
364
+ max_ttl_seconds=3600,
365
+ scope=["agent_actions"],
366
+ valid_seconds=300,
367
+ authority_epoch=5,
368
+ ),
369
+ v_signer,
361
370
  )
362
- return signer, cred, voucher
371
+ return signer, cred, voucher, v_signer.get_public_key_multikey()
363
372
 
364
373
 
365
374
  def test_same_voucher_accepted_routine_rejected_when_epoch_moves(agent_call):
366
- signer, cred, voucher = agent_call
375
+ signer, cred, voucher, vkey = agent_call
367
376
  pub = signer.get_public_key_multikey()
368
377
 
369
378
  # Routine: time-decay only. The voucher is time-valid, so the call passes.
@@ -371,6 +380,7 @@ def test_same_voucher_accepted_routine_rejected_when_epoch_moves(agent_call):
371
380
  cred,
372
381
  public_key=pub,
373
382
  session_voucher=voucher,
383
+ voucher_public_key=vkey,
374
384
  trust_threshold=0.5,
375
385
  consequence=CONSEQUENCE_ROUTINE,
376
386
  )
@@ -382,6 +392,7 @@ def test_same_voucher_accepted_routine_rejected_when_epoch_moves(agent_call):
382
392
  cred,
383
393
  public_key=pub,
384
394
  session_voucher=voucher,
395
+ voucher_public_key=vkey,
385
396
  trust_threshold=0.5,
386
397
  consequence=CONSEQUENCE_SENSITIVE,
387
398
  last_seen_authority_epoch=7,
@@ -394,12 +405,13 @@ def test_same_voucher_accepted_routine_rejected_when_epoch_moves(agent_call):
394
405
 
395
406
 
396
407
  def test_sensitive_passes_when_epoch_current(agent_call):
397
- signer, cred, voucher = agent_call
408
+ signer, cred, voucher, vkey = agent_call
398
409
  pub = signer.get_public_key_multikey()
399
410
  v = verify_agent_call(
400
411
  cred,
401
412
  public_key=pub,
402
413
  session_voucher=voucher,
414
+ voucher_public_key=vkey,
403
415
  trust_threshold=0.5,
404
416
  consequence=CONSEQUENCE_SENSITIVE,
405
417
  last_seen_authority_epoch=5,
@@ -409,16 +421,20 @@ def test_sensitive_passes_when_epoch_current(agent_call):
409
421
 
410
422
 
411
423
  def test_critical_requires_live_cosign(agent_call):
412
- signer, cred, voucher = agent_call
424
+ signer, cred, voucher, vkey = agent_call
413
425
  pub = signer.get_public_key_multikey()
414
426
  # Even with a current epoch, critical demands a live co-sign.
427
+ # The same credential is checked twice below, so replay protection is
428
+ # off for this comparison.
415
429
  without = verify_agent_call(
416
430
  cred,
417
431
  public_key=pub,
418
432
  session_voucher=voucher,
433
+ voucher_public_key=vkey,
419
434
  trust_threshold=0.5,
420
435
  consequence=CONSEQUENCE_CRITICAL,
421
436
  last_seen_authority_epoch=5,
437
+ replay_store=False,
422
438
  )
423
439
  assert without.ok is False
424
440
  assert any(r.startswith("live_cosign_required") for r in without.reasons)
@@ -427,23 +443,26 @@ def test_critical_requires_live_cosign(agent_call):
427
443
  cred,
428
444
  public_key=pub,
429
445
  session_voucher=voucher,
446
+ voucher_public_key=vkey,
430
447
  trust_threshold=0.5,
431
448
  consequence=CONSEQUENCE_CRITICAL,
432
449
  last_seen_authority_epoch=5,
433
450
  live_cosign_ok=True,
451
+ replay_store=False,
434
452
  )
435
453
  assert with_cosign.ok is True
436
454
  assert with_cosign.authority_ok is True
437
455
 
438
456
 
439
457
  def test_voucher_epoch_read_from_credential_subject(agent_call):
440
- signer, cred, voucher = agent_call
458
+ signer, cred, voucher, vkey = agent_call
441
459
  pub = signer.get_public_key_multikey()
442
460
  # Do not pass voucher_authority_epoch explicitly; it is read from the voucher.
443
461
  v = verify_agent_call(
444
462
  cred,
445
463
  public_key=pub,
446
464
  session_voucher=voucher,
465
+ voucher_public_key=vkey,
447
466
  trust_threshold=0.5,
448
467
  consequence=CONSEQUENCE_SENSITIVE,
449
468
  last_seen_authority_epoch=6,
@@ -217,10 +217,16 @@ class TestDelegation:
217
217
 
218
218
  kp, psigner = principal
219
219
  grant = vouch.delegate(
220
- action="charge", target="api.bank", resource="invoices", signer=psigner
220
+ action="charge",
221
+ target="api.bank",
222
+ resource="invoices",
223
+ to=env_identity.did,
224
+ signer=psigner,
221
225
  )
222
226
 
223
- @signed(parent=grant)
227
+ # The call's intent must sit inside the grant: same action and target,
228
+ # a sub-resource of the granted resource.
229
+ @signed(action="charge", target="api.bank", resource="invoices/42", parent=grant)
224
230
  def charge_invoice(invoice_id):
225
231
  return current_credential()
226
232
 
@@ -229,15 +235,21 @@ class TestDelegation:
229
235
  assert chain and len(chain) == 1
230
236
  assert chain[0]["issuer"] == kp.did
231
237
  assert chain[0]["subject"] == env_identity.did
232
- # The agent's own credential still verifies under its own key.
233
- assert _verify(cred, pubkey)[0]
238
+ # The agent's credential verifies under its own key, and its chain
239
+ # verifies against the principal's key.
240
+ ok, _ = Verifier.verify(cred, pubkey, trusted_roots={kp.did: kp.public_key_jwk})
241
+ assert ok
234
242
 
235
243
  def test_narrowing_is_enforced_no_widened_credential(self, env_identity, principal):
236
244
  kp, psigner = principal
237
245
  import vouch
238
246
 
239
247
  grant = vouch.delegate(
240
- action="charge", target="api.bank", resource="invoices", signer=psigner
248
+ action="charge",
249
+ target="api.bank",
250
+ resource="invoices",
251
+ to=env_identity.did,
252
+ signer=psigner,
241
253
  )
242
254
 
243
255
  # Attempt to act OUTSIDE the granted resource. Signing fails the
@@ -257,7 +269,11 @@ class TestDelegation:
257
269
  import vouch
258
270
 
259
271
  grant = vouch.delegate(
260
- action="charge", target="api.bank", resource="invoices", signer=psigner
272
+ action="charge",
273
+ target="api.bank",
274
+ resource="invoices",
275
+ to=env_identity.did,
276
+ signer=psigner,
261
277
  )
262
278
 
263
279
  @signed(action="charge", target="api.bank", resource="invoices/42", parent=grant)
@@ -281,8 +297,10 @@ class TestVerifyOneLiner:
281
297
  ok, passport = vouch.verify(cred, public_key=pubkey)
282
298
  assert ok
283
299
  assert passport.intent["action"] == "a"
284
- # JWK form is accepted too
285
- assert vouch.verify(cred, public_key=keypair.public_key_jwk)[0]
300
+ # JWK form is accepted too (the same credential again: replay off)
301
+ assert vouch.verify(cred, public_key=keypair.public_key_jwk, replay_store=False)[0]
302
+ # And by default a second presentation is refused.
303
+ assert vouch.verify(cred, public_key=pubkey).reason == "this credential was already used"
286
304
 
287
305
  def test_verifies_current_credential_by_default(self, env_identity, keypair, pubkey):
288
306
  import vouch
@@ -121,6 +121,12 @@ class TestSign:
121
121
  assert "base64" in data["error"].lower() or "invalid" in data["error"].lower()
122
122
 
123
123
  def test_sign_too_small(self):
124
+ try:
125
+ from vouch.media.c2pa import C2PA_AVAILABLE
126
+ except Exception:
127
+ pytest.skip("media modules not available")
128
+ if not C2PA_AVAILABLE:
129
+ pytest.skip("c2pa-python not available")
124
130
  tiny = base64.b64encode(b"abc").decode()
125
131
  resp = client.post(
126
132
  "/sign",