lex-agentic-self 0.1.7 → 0.1.8
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: 0c660e26600da2bf1c6e0ec3ff8c8d81a1eabebc3859d3de838e30f22b4ba91d
|
|
4
|
+
data.tar.gz: ec3d26a5dd95ad077de1880fd60f48d23ff0a34aa841f82cda7bcbfdad99e5d0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ffbe4a9cee92f015c0d167fa98327aceb9641c8dd448d99f0649ff42e87eb531b51eec961729f615e274c2854422cdb0b3e2cc77d02f456b9ceeb944a6088ebb
|
|
7
|
+
data.tar.gz: f418467e5090f41939297b8907288f4ef29b95fbc9def510bbc1efb503abd79cdf8a3420b7ec2ce707d5d29d06e0569531da88395658a3901b80a8d7356b53b9
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.8] - 2026-03-30
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- fix `NoMethodError: undefined method 'local_data_connected?'` in Identity::Fingerprint by including `Legion::Data::Helper` and adding `respond_to?` guard in `local_available?`
|
|
7
|
+
|
|
3
8
|
## [0.1.7] - 2026-03-30
|
|
4
9
|
|
|
5
10
|
### Changed
|
|
@@ -10,6 +10,8 @@ module Legion
|
|
|
10
10
|
module Identity
|
|
11
11
|
module Helpers
|
|
12
12
|
class Fingerprint
|
|
13
|
+
include Legion::Data::Helper if defined?(Legion::Data::Helper)
|
|
14
|
+
|
|
13
15
|
attr_reader :model, :observation_count, :entropy_history
|
|
14
16
|
|
|
15
17
|
def initialize
|
|
@@ -159,7 +161,7 @@ module Legion
|
|
|
159
161
|
private
|
|
160
162
|
|
|
161
163
|
def local_available?
|
|
162
|
-
defined?(Legion::Data::Local) && local_data_connected?
|
|
164
|
+
defined?(Legion::Data::Local) && respond_to?(:local_data_connected?) && local_data_connected?
|
|
163
165
|
end
|
|
164
166
|
end
|
|
165
167
|
end
|
|
@@ -63,4 +63,33 @@ RSpec.describe Legion::Extensions::Agentic::Self::Identity::Helpers::Fingerprint
|
|
|
63
63
|
expect(fp.maturity).to eq(:developing)
|
|
64
64
|
end
|
|
65
65
|
end
|
|
66
|
+
|
|
67
|
+
describe '#load_from_local' do
|
|
68
|
+
context 'when local persistence is unavailable' do
|
|
69
|
+
before do
|
|
70
|
+
allow_any_instance_of(described_class).to receive(:local_data_connected?).and_return(false)
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
it 'initializes without raising' do
|
|
74
|
+
expect { described_class.new }.not_to raise_error
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
it 'starts with zero observations' do
|
|
78
|
+
fp2 = described_class.new
|
|
79
|
+
expect(fp2.observation_count).to eq(0)
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
describe '#save_to_local' do
|
|
85
|
+
context 'when local persistence is unavailable' do
|
|
86
|
+
before do
|
|
87
|
+
allow(fp).to receive(:local_data_connected?).and_return(false)
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
it 'returns nil when local data is unavailable' do
|
|
91
|
+
expect(fp.save_to_local).to be_nil
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
66
95
|
end
|