swt3-ai 0.5.4 → 0.5.5
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.
- checksums.yaml +4 -4
- data/lib/swt3_ai/types.rb +34 -1
- data/lib/swt3_ai.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6d0ad95b855731be59484f16727a59a6fd09f54196bce2805a3124f735a40125
|
|
4
|
+
data.tar.gz: a9df82a856f95023cffa81cd5e6ac9e520d6089b6eb5b4e00155b05d8107977d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 44bb0ab012423a3cc6412fa110f857127329a62c7fc65a666a9c70347bb9475239801890db9366d1b16939260988ba81e6b1665f49799b235fb3ef59653fdb49
|
|
7
|
+
data.tar.gz: 7e3d4ae198b5f38a8c90c840cb69d87d7622676d93ce3cf412690c86e252e899ed18333e176b42f0da467666528d00181cb43c290f7e0401c175036448b6c33b
|
data/lib/swt3_ai/types.rb
CHANGED
|
@@ -43,4 +43,37 @@ module Swt3Ai
|
|
|
43
43
|
"regulatory_order" => 5,
|
|
44
44
|
"error_correction" => 6,
|
|
45
45
|
}.freeze
|
|
46
|
-
|
|
46
|
+
|
|
47
|
+
# Trust levels for agent-to-agent Trust Mesh verification (AI-TRUST.1).
|
|
48
|
+
TRUST_DENIED = 0
|
|
49
|
+
TRUST_BASIC = 1
|
|
50
|
+
TRUST_VERIFIED = 2
|
|
51
|
+
TRUST_ATTESTED = 3
|
|
52
|
+
TRUST_SOVEREIGN = 4
|
|
53
|
+
|
|
54
|
+
TRUST_LEVEL_NAMES = {
|
|
55
|
+
0 => "denied",
|
|
56
|
+
1 => "basic",
|
|
57
|
+
2 => "verified",
|
|
58
|
+
3 => "attested",
|
|
59
|
+
4 => "sovereign",
|
|
60
|
+
}.freeze
|
|
61
|
+
|
|
62
|
+
# Denial reason codes for Trust Mesh verification.
|
|
63
|
+
DENIAL_REASONS = {
|
|
64
|
+
anchor_not_found: "anchor_not_found",
|
|
65
|
+
anchor_expired: "anchor_expired",
|
|
66
|
+
anchor_revoked: "anchor_revoked",
|
|
67
|
+
signature_missing: "signature_missing",
|
|
68
|
+
tenant_not_trusted: "tenant_not_trusted",
|
|
69
|
+
deny_listed: "deny_listed",
|
|
70
|
+
insufficient_procedures: "insufficient_procedures",
|
|
71
|
+
signature_invalid: "signature_invalid",
|
|
72
|
+
signature_unverifiable: "signature_unverifiable",
|
|
73
|
+
insufficient_trust_level: "insufficient_trust_level",
|
|
74
|
+
timestamp_future: "timestamp_future",
|
|
75
|
+
rate_limited: "rate_limited",
|
|
76
|
+
}.freeze
|
|
77
|
+
|
|
78
|
+
# Key purpose for key attestation (AI-TRUST.3).
|
|
79
|
+
KEY_PURPOSES = %w[signing encryption delegation].freezeend
|
data/lib/swt3_ai.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: swt3-ai
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- TeNova Labs
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-06-
|
|
11
|
+
date: 2026-06-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Mint, verify, and sign SWT3 witness anchors for AI compliance. EU AI
|
|
14
14
|
Act, NIST AI RMF, CMMC, SR 11-7. Cross-language parity with Python and TypeScript
|
|
@@ -53,5 +53,5 @@ rubygems_version: 3.4.20
|
|
|
53
53
|
signing_key:
|
|
54
54
|
specification_version: 4
|
|
55
55
|
summary: 'SWT3 AI Witness SDK: cryptographic attestation for AI inference. 65 procedures,
|
|
56
|
-
41 namespaces, 5 languages,
|
|
56
|
+
41 namespaces, 5 languages, 15 profiles, 12 integrations.'
|
|
57
57
|
test_files: []
|