kairos-chain 3.52.0 → 3.52.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e6bc15d467e1fbef211be82d39ec89bfdc760d7bdd67286635967c95c2acd2ce
|
|
4
|
+
data.tar.gz: b761078e7adc2798988a2fb0154bbbf998b37eed14d9979e87e7656194f03b76
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 604f315facca09bdb89e8abe403cf2873abe6a201cf9771181f04a813c323685da0749237e0f3f547379f9ce1dc7a8976b3e12f657c4718604ef694368f15f27
|
|
7
|
+
data.tar.gz: 67b55d37e2ba35259b1df7e42c96222cf637a9b295eac63b877b715f060310ff19841c2152de9fad1a92345a8f40738803b47a68b020e74ad9405c923a17de6b
|
data/lib/kairos_mcp/version.rb
CHANGED
|
@@ -54,10 +54,10 @@ module KairosMcp
|
|
|
54
54
|
injected = registry
|
|
55
55
|
Distiller.carrier = lambda do |proof_id:, attester_id:, subject_ref:, claim:|
|
|
56
56
|
reg = injected || self.registry
|
|
57
|
-
unless defined?(Synoptis::ProofEnvelope)
|
|
57
|
+
unless defined?(::Synoptis::ProofEnvelope)
|
|
58
58
|
require_relative '../../../synoptis/lib/synoptis/proof_envelope'
|
|
59
59
|
end
|
|
60
|
-
envelope = Synoptis::ProofEnvelope.new(
|
|
60
|
+
envelope = ::Synoptis::ProofEnvelope.new(
|
|
61
61
|
proof_id: proof_id,
|
|
62
62
|
attester_id: attester_id.to_s,
|
|
63
63
|
subject_ref: subject_ref.to_s,
|
|
@@ -129,11 +129,11 @@ module KairosMcp
|
|
|
129
129
|
remedy: 'a carrier envelope exists for this identity but does not carry this certificate; inspect the carrier before depositing'
|
|
130
130
|
)
|
|
131
131
|
end
|
|
132
|
-
unless defined?(Synoptis::ProofEnvelope)
|
|
132
|
+
unless defined?(::Synoptis::ProofEnvelope)
|
|
133
133
|
require_relative '../../../synoptis/lib/synoptis/proof_envelope'
|
|
134
134
|
end
|
|
135
135
|
digest = certificate.dig('claim_core', 'derivation', 'distillate_commitment')
|
|
136
|
-
envelope = Synoptis::ProofEnvelope.new(
|
|
136
|
+
envelope = ::Synoptis::ProofEnvelope.new(
|
|
137
137
|
proof_id: identity,
|
|
138
138
|
attester_id: attester_id,
|
|
139
139
|
subject_ref: "distillate:#{digest}",
|
|
@@ -156,7 +156,7 @@ module KairosMcp
|
|
|
156
156
|
require_relative '../../../synoptis/lib/synoptis/revocation_manager'
|
|
157
157
|
envelope = reg.find_proof(identity)
|
|
158
158
|
return { 'status' => 'no_envelope', 'note' => 'no carrier envelope for this identity' } unless envelope
|
|
159
|
-
manager = Synoptis::RevocationManager.new(registry: reg)
|
|
159
|
+
manager = ::Synoptis::RevocationManager.new(registry: reg)
|
|
160
160
|
result = manager.revoke(proof_id: identity, reason: reason,
|
|
161
161
|
revoker_id: envelope.attester_id)
|
|
162
162
|
JSON.parse(JSON.generate(result))
|
|
@@ -169,7 +169,7 @@ module KairosMcp
|
|
|
169
169
|
require_relative '../../../synoptis/lib/synoptis/proof_envelope'
|
|
170
170
|
require_relative '../../../synoptis/lib/synoptis/registry/file_registry'
|
|
171
171
|
dir = File.join(data_root, 'synoptis_data')
|
|
172
|
-
Synoptis::Registry::FileRegistry.new(data_dir: dir)
|
|
172
|
+
::Synoptis::Registry::FileRegistry.new(data_dir: dir)
|
|
173
173
|
rescue LoadError
|
|
174
174
|
nil
|
|
175
175
|
end
|
|
@@ -21,6 +21,19 @@ require_relative '../lib/chain_distillation/carrier_wiring'
|
|
|
21
21
|
CG = KairosMcp::SkillSets::ConfidentialityGuard
|
|
22
22
|
CD = KairosMcp::SkillSets::ChainDistillation
|
|
23
23
|
|
|
24
|
+
# Production namespace shadow (regression pin, production smoke 2026-07-24):
|
|
25
|
+
# the live MCP server defines KairosMcp::SkillSets::Synoptis for the synoptis
|
|
26
|
+
# tool classes, so an UNANCHORED `Synoptis::...` inside ChainDistillation
|
|
27
|
+
# resolves to that empty module instead of ::Synoptis and dies with
|
|
28
|
+
# `uninitialized constant`. Defining the shadow here makes every carrier
|
|
29
|
+
# test fail unless references are ::-anchored.
|
|
30
|
+
module KairosMcp
|
|
31
|
+
module SkillSets
|
|
32
|
+
module Synoptis
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
|
|
24
37
|
$pass = 0
|
|
25
38
|
$fail = 0
|
|
26
39
|
|
|
@@ -1005,7 +1018,7 @@ Dir.mktmpdir do |root|
|
|
|
1005
1018
|
cert = result[:certificate]
|
|
1006
1019
|
identity = cert['claim_core']['certificate_identity']
|
|
1007
1020
|
if carrier_wired
|
|
1008
|
-
reg = Synoptis::Registry::FileRegistry.new(
|
|
1021
|
+
reg = ::Synoptis::Registry::FileRegistry.new(
|
|
1009
1022
|
data_dir: File.join(root, '.kairos', 'synoptis_data')
|
|
1010
1023
|
)
|
|
1011
1024
|
envelope = reg.find_proof(identity)
|
|
@@ -1060,7 +1073,7 @@ Dir.mktmpdir do |root|
|
|
|
1060
1073
|
CD::Recorder.record_revocation(certificate_identity: identity, reason: 'withdrawn')
|
|
1061
1074
|
mirror = CD::CarrierWiring.mirror_revocation(identity, 'withdrawn')
|
|
1062
1075
|
assert(mirror['status'] == 'revoked', "real-chain: carrier mirror succeeds (got #{mirror})")
|
|
1063
|
-
real_reg = Synoptis::Registry::FileRegistry.new(
|
|
1076
|
+
real_reg = ::Synoptis::Registry::FileRegistry.new(
|
|
1064
1077
|
data_dir: File.join(root, '.kairos', 'synoptis_data')
|
|
1065
1078
|
)
|
|
1066
1079
|
assert(real_reg.revoked?(identity),
|