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.
- {vouch_protocol-2.2.1/vouch_protocol.egg-info → vouch_protocol-3.1.0}/PKG-INFO +18 -16
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/README.md +14 -10
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/pyproject.toml +6 -6
- vouch_protocol-3.1.0/tests/test_ati_core.py +122 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_audio_bridge.py +2 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_authority_state.py +36 -17
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_autosign.py +26 -8
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_bridge.py +6 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_cache.py +71 -0
- vouch_protocol-3.1.0/tests/test_caveats.py +315 -0
- vouch_protocol-3.1.0/tests/test_ccg_demo.py +29 -0
- vouch_protocol-3.1.0/tests/test_cli_verify.py +239 -0
- vouch_protocol-3.1.0/tests/test_cli_without_server_extra.py +38 -0
- vouch_protocol-3.1.0/tests/test_conformance.py +99 -0
- vouch_protocol-3.1.0/tests/test_context_v1.py +298 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_credential_gate.py +6 -1
- vouch_protocol-3.1.0/tests/test_delegation_attenuation.py +51 -0
- vouch_protocol-3.1.0/tests/test_delegation_chain_vectors.py +71 -0
- vouch_protocol-3.1.0/tests/test_delegation_hardening.py +852 -0
- vouch_protocol-3.1.0/tests/test_delegation_size_guard.py +138 -0
- vouch_protocol-3.1.0/tests/test_delegation_verify.py +577 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_dx_sugar.py +73 -7
- vouch_protocol-3.1.0/tests/test_ed25519_check.py +98 -0
- vouch_protocol-3.1.0/tests/test_ed25519_strict_vector.py +82 -0
- vouch_protocol-3.1.0/tests/test_fence.py +945 -0
- vouch_protocol-3.1.0/tests/test_fetch_hostile_documents.py +235 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_fleet.py +77 -4
- vouch_protocol-3.1.0/tests/test_git_commit_binding.py +382 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_git_workflow.py +18 -13
- vouch_protocol-3.1.0/tests/test_grade_evidence.py +327 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_hasura_integration.py +2 -1
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_heartbeat.py +57 -48
- vouch_protocol-3.1.0/tests/test_heartbeat_hardening.py +207 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_hybrid.py +21 -4
- vouch_protocol-3.1.0/tests/test_identity_file_reader.py +551 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_intent_recheck.py +41 -13
- vouch_protocol-3.1.0/tests/test_intent_recheck_vector.py +54 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_jcs_interop.py +28 -0
- vouch_protocol-3.1.0/tests/test_keys_post_quantum.py +1344 -0
- vouch_protocol-3.1.0/tests/test_keys_ts_interop.py +101 -0
- vouch_protocol-3.1.0/tests/test_kms.py +723 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_liveness_conformance.py +146 -19
- vouch_protocol-3.1.0/tests/test_mcp_check_trust.py +81 -0
- vouch_protocol-3.1.0/tests/test_mcp_guard_replay.py +153 -0
- vouch_protocol-3.1.0/tests/test_mcp_guard_revocation.py +243 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_mcp_server_shield.py +39 -0
- vouch_protocol-3.1.0/tests/test_mcp_server_status_tools.py +328 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_merkle.py +4 -4
- vouch_protocol-3.1.0/tests/test_mint_delegation.py +169 -0
- vouch_protocol-3.1.0/tests/test_mldsa_check.py +102 -0
- vouch_protocol-3.1.0/tests/test_multikey.py +151 -0
- vouch_protocol-3.1.0/tests/test_nesting_and_precision.py +185 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_nonce.py +19 -6
- vouch_protocol-3.1.0/tests/test_nonce_replay_store.py +395 -0
- vouch_protocol-3.1.0/tests/test_onboard.py +503 -0
- vouch_protocol-3.1.0/tests/test_pacing.py +2010 -0
- vouch_protocol-3.1.0/tests/test_policy_limits.py +137 -0
- vouch_protocol-3.1.0/tests/test_pq_verify.py +157 -0
- vouch_protocol-3.1.0/tests/test_proof_set_vector.py +68 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_quorum.py +36 -9
- vouch_protocol-3.1.0/tests/test_reasoning_escrow_binding.py +201 -0
- vouch_protocol-3.1.0/tests/test_recovery.py +373 -0
- vouch_protocol-3.1.0/tests/test_replay_key_vector.py +28 -0
- vouch_protocol-3.1.0/tests/test_revocation_fail_closed.py +383 -0
- vouch_protocol-3.1.0/tests/test_root_delegation_scripts.py +78 -0
- vouch_protocol-3.1.0/tests/test_sidecar.py +1727 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_signer_vc.py +21 -10
- vouch_protocol-3.1.0/tests/test_ssrf_ranges.py +17 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_status_list.py +36 -58
- vouch_protocol-3.1.0/tests/test_status_list_strict.py +646 -0
- vouch_protocol-3.1.0/tests/test_strict_time_leftovers.py +65 -0
- vouch_protocol-3.1.0/tests/test_timefmt.py +179 -0
- vouch_protocol-3.1.0/tests/test_trust_check.py +425 -0
- vouch_protocol-3.1.0/tests/test_trusted_roots.py +177 -0
- vouch_protocol-3.1.0/tests/test_trusted_roots_vector.py +45 -0
- vouch_protocol-3.1.0/tests/test_validator_cli.py +1675 -0
- vouch_protocol-3.1.0/tests/test_validator_server.py +532 -0
- vouch_protocol-3.1.0/tests/test_vector_runners.py +135 -0
- vouch_protocol-3.1.0/tests/test_verifier_hardening.py +1035 -0
- vouch_protocol-3.1.0/tests/test_verifier_round2.py +683 -0
- vouch_protocol-3.1.0/tests/test_verifier_round3.py +155 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_verifier_vc.py +15 -6
- vouch_protocol-3.1.0/tests/test_verify_without_key.py +213 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_vouch_mcp.py +10 -3
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/__init__.py +1 -1
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/accountability.py +9 -8
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/agent.py +38 -6
- vouch_protocol-3.1.0/vouch/async_verifier.py +441 -0
- vouch_protocol-3.1.0/vouch/attenuation.py +790 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/authority_state.py +694 -697
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/autosign.py +130 -19
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/bridge/server.py +13 -1
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/cache.py +50 -8
- vouch_protocol-3.1.0/vouch/caveats.py +715 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/cli.py +542 -277
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/conformance.py +190 -97
- vouch_protocol-3.1.0/vouch/conformance_jcs_vectors.json +227 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/data_integrity.py +47 -8
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/data_integrity_hybrid.py +66 -22
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/deliberation.py +8 -7
- vouch_protocol-3.1.0/vouch/did_web.py +607 -0
- vouch_protocol-3.1.0/vouch/ed25519_check.py +216 -0
- vouch_protocol-3.1.0/vouch/fence.py +968 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/fleet.py +61 -16
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/gate.py +57 -18
- vouch_protocol-3.1.0/vouch/grade.py +726 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/heartbeat.py +202 -18
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/_common.py +1 -1
- vouch_protocol-3.1.0/vouch/integrations/a2a.py +149 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/fastapi.py +4 -1
- vouch_protocol-3.1.0/vouch/integrations/hasura/webhook.py +470 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/mcp/server.py +266 -64
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/mlflow.py +26 -3
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/safetensors.py +32 -4
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/intent_recheck.py +142 -36
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/jcs.py +46 -23
- vouch_protocol-3.1.0/vouch/keys.py +1136 -0
- vouch_protocol-3.1.0/vouch/kms.py +782 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/liveness_conformance.py +164 -76
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/mcp/_guard.py +205 -86
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/mcp_guard.py +65 -3
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/merkle.py +41 -17
- vouch_protocol-3.1.0/vouch/mldsa_check.py +199 -0
- vouch_protocol-3.1.0/vouch/multikey.py +192 -0
- vouch_protocol-3.1.0/vouch/nesting.py +35 -0
- vouch_protocol-3.1.0/vouch/nonce.py +493 -0
- vouch_protocol-3.1.0/vouch/onboard.py +1184 -0
- vouch_protocol-3.1.0/vouch/pacing/__init__.py +288 -0
- vouch_protocol-3.1.0/vouch/pacing/_common.py +183 -0
- vouch_protocol-3.1.0/vouch/pacing/_pedersen.py +126 -0
- vouch_protocol-3.1.0/vouch/pacing/census.py +265 -0
- vouch_protocol-3.1.0/vouch/pacing/custody.py +384 -0
- vouch_protocol-3.1.0/vouch/pacing/disclosure.py +373 -0
- vouch_protocol-3.1.0/vouch/pacing/dissent.py +344 -0
- vouch_protocol-3.1.0/vouch/pacing/fuse.py +298 -0
- vouch_protocol-3.1.0/vouch/pacing/load_auth.py +332 -0
- vouch_protocol-3.1.0/vouch/pacing/oversight.py +324 -0
- vouch_protocol-3.1.0/vouch/pacing/pace.py +297 -0
- vouch_protocol-3.1.0/vouch/pacing/prereg.py +318 -0
- vouch_protocol-3.1.0/vouch/pacing/recursion.py +339 -0
- vouch_protocol-3.1.0/vouch/pacing/redline.py +347 -0
- vouch_protocol-3.1.0/vouch/pacing/restraint.py +582 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/quorum.py +2 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/ratelimit.py +9 -1
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/reasoning.py +153 -32
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/receipts.py +5 -4
- vouch_protocol-3.1.0/vouch/recovery.py +501 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/reputation.py +9 -1
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/reputation_policy.py +15 -8
- vouch_protocol-3.1.0/vouch/revocation.py +650 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/root_of_trust.py +14 -1
- vouch_protocol-3.1.0/vouch/sidecar.py +1571 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/signer.py +216 -25
- vouch_protocol-3.1.0/vouch/ssrf.py +628 -0
- vouch_protocol-3.1.0/vouch/status_list.py +1262 -0
- vouch_protocol-3.1.0/vouch/status_list_fetcher.py +245 -0
- vouch_protocol-3.1.0/vouch/timefmt.py +284 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/transport/did_key.py +17 -4
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/transport/rendezvous.py +11 -4
- vouch_protocol-3.1.0/vouch/trust_check.py +546 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/trust_entropy.py +89 -22
- vouch_protocol-3.1.0/vouch/trusted_roots.py +237 -0
- vouch_protocol-3.1.0/vouch/validator_flags.py +93 -0
- vouch_protocol-3.1.0/vouch/validator_server.py +1235 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/vc.py +46 -4
- vouch_protocol-3.1.0/vouch/verification.py +664 -0
- vouch_protocol-3.1.0/vouch/verifier.py +1985 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0/vouch_protocol.egg-info}/PKG-INFO +18 -16
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch_protocol.egg-info/SOURCES.txt +75 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch_protocol.egg-info/requires.txt +2 -5
- vouch_protocol-2.2.1/tests/test_caveats.py +0 -169
- vouch_protocol-2.2.1/tests/test_conformance.py +0 -35
- vouch_protocol-2.2.1/tests/test_delegation_attenuation.py +0 -30
- vouch_protocol-2.2.1/tests/test_multikey.py +0 -61
- vouch_protocol-2.2.1/tests/test_recovery.py +0 -113
- vouch_protocol-2.2.1/tests/test_trust_check.py +0 -114
- vouch_protocol-2.2.1/tests/test_validator_server.py +0 -126
- vouch_protocol-2.2.1/vouch/async_verifier.py +0 -297
- vouch_protocol-2.2.1/vouch/attenuation.py +0 -287
- vouch_protocol-2.2.1/vouch/caveats.py +0 -305
- vouch_protocol-2.2.1/vouch/did_web.py +0 -300
- vouch_protocol-2.2.1/vouch/grade.py +0 -221
- vouch_protocol-2.2.1/vouch/integrations/a2a.py +0 -81
- vouch_protocol-2.2.1/vouch/integrations/hasura/webhook.py +0 -325
- vouch_protocol-2.2.1/vouch/keys.py +0 -213
- vouch_protocol-2.2.1/vouch/kms.py +0 -518
- vouch_protocol-2.2.1/vouch/multikey.py +0 -123
- vouch_protocol-2.2.1/vouch/nonce.py +0 -216
- vouch_protocol-2.2.1/vouch/onboard.py +0 -766
- vouch_protocol-2.2.1/vouch/recovery.py +0 -218
- vouch_protocol-2.2.1/vouch/revocation.py +0 -449
- vouch_protocol-2.2.1/vouch/ssrf.py +0 -85
- vouch_protocol-2.2.1/vouch/status_list.py +0 -700
- vouch_protocol-2.2.1/vouch/status_list_fetcher.py +0 -175
- vouch_protocol-2.2.1/vouch/trust_check.py +0 -238
- vouch_protocol-2.2.1/vouch/validator_server.py +0 -193
- vouch_protocol-2.2.1/vouch/verification.py +0 -422
- vouch_protocol-2.2.1/vouch/verifier.py +0 -671
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/LICENSE +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/MANIFEST.in +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/setup.cfg +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_accountability.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_agent_enroll.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_attribution.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_audit_trail.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_auditor.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_authority_state_vectors.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_behavioral_attestation.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_budget.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_c2pa_formats.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_canary.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_cli_init.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_cli_root.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_data_integrity.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_deliberation.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_disconnected_edge.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_dtn_pads.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_examples_robotics.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_fastapi_credential_gate.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_grade.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_halos_evidence.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_hardware_seam.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_hybrid_interop.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_jcs.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_media_badge.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_media_native.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_mint_contributor_credential.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_orbital_accumulator.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_proof_of_integration.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_provenance.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_reasoning.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_receipts.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_reputation.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_reputation_aggregate.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_reputation_disputes.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_reputation_ledger.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_reputation_policy.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_reputation_portability.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_revocation.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_access.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_conformance.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_consent.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_custody.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_embodiment.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_fusion.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_handover.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_handshake_blackbox_passport.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_identity.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_lease_quorum.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_lifecycle.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_liveness_revocation.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_odd.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_perception.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_pq.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_provenance_capability.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_root_identity.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_safety_record.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_swarm.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_teleop.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_robot_wear.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_root_of_trust.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_root_of_trust_vectors.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_ros2_action_gate.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_runtime_vectors.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_scan.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_secure_key_custody.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_security_hardening.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_shield_guard.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_shield_rules.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_shield_vectors.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_threshold.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_threshold_loader.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_tool_registry.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_transparency.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_transport.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_transport_http_rendezvous.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_transport_rendezvous.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_transport_udna_sdk.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_trifecta.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_trust_entropy.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/tests/test_vc.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/attribution.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/attribution_cli.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/audio.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/audit_trail.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/auditor.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/behavioral_attestation.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/bridge/__init__.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/bridge/audio_routes.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/bridge/config.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/budget.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/canary.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/config.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/credential.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/adk.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/amnesia.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/autogen/__init__.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/autogpt/__init__.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/autogpt/commands.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/claude-code/settings.hooks.json +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/crewai/__init__.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/crewai/tool.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/google.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/goose.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/hasura/__init__.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/langchain/__init__.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/langchain/tool.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/langgraph.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/mcp/__init__.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/n8n.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/openai.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/streamlit/__init__.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/streamlit/seal.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/integrations/vertex_ai/__init__.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/keystore.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/mcp/__init__.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/media/__init__.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/media/badge.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/media/c2pa.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/media/native.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/metrics.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/proof_of_integration.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/provenance.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/registry.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/reputation_aggregate.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/reputation_disputes.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/reputation_ledger.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/reputation_portability.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/__init__.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/_signing.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/_verify.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/access.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/accumulator.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/blackbox.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/bundle.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/capability.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/conformance.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/consent.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/custody.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/dtn_revocation.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/edge_trust.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/embodiment.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/freshness.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/fusion.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/geoscope.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/halos.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/handover.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/handshake.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/hardware.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/identity.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/lease.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/lifecycle.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/liveness.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/localization.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/odd.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/orbital.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/passport.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/perception.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/perception_consensus.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/physical_quorum.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/pq.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/presence.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/provenance.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/quorum_trust.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/revocation.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/root_identity.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/safety_record.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/swarm.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/teleop.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/robotics/wear.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/scan/__init__.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/scan/detector.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/scan/patterns.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/seal.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/shield/__init__.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/shield/demo.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/shield/flight_recorder.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/shield/rules.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/shield/shield.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/shield/trust_registry.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/threshold.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/tool_registry.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/transparency.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/transport/__init__.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/transport/base.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/transport/envelope.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/transport/http_rendezvous.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/transport/http_transport.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/transport/manager.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/transport/udna.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch/trifecta.py +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch_protocol.egg-info/dependency_links.txt +0 -0
- {vouch_protocol-2.2.1 → vouch_protocol-3.1.0}/vouch_protocol.egg-info/entry_points.txt +0 -0
- {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:
|
|
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.
|
|
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:
|
|
251
|
+
Requires-Dist: boto3>=1.40.0; extra == "aws"
|
|
252
252
|
Provides-Extra: gcp
|
|
253
|
-
Requires-Dist: google-cloud-kms>=
|
|
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.
|
|
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
|
|
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,
|
|
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.
|
|
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
|
|
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 **
|
|
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 (
|
|
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] **
|
|
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
|
|
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 **
|
|
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.
|
|
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
|
|
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,
|
|
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.
|
|
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
|
|
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 **
|
|
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 (
|
|
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] **
|
|
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
|
|
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 **
|
|
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 = "
|
|
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
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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.
|
|
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 =
|
|
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 =
|
|
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
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
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",
|
|
220
|
+
action="charge",
|
|
221
|
+
target="api.bank",
|
|
222
|
+
resource="invoices",
|
|
223
|
+
to=env_identity.did,
|
|
224
|
+
signer=psigner,
|
|
221
225
|
)
|
|
222
226
|
|
|
223
|
-
|
|
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
|
|
233
|
-
|
|
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",
|
|
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",
|
|
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",
|