lex-agentic-imagination 0.1.9 → 0.1.10
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/CHANGELOG.md +7 -0
- data/lex-agentic-imagination.gemspec +1 -1
- data/lib/legion/extensions/agentic/imagination/dream/client.rb +1 -1
- data/lib/legion/extensions/agentic/imagination/dream/helpers/agenda.rb +1 -1
- data/lib/legion/extensions/agentic/imagination/dream/runners/dream_cycle.rb +2 -2
- data/lib/legion/extensions/agentic/imagination/version.rb +1 -1
- data/spec/legion/extensions/agentic/imagination/dream/client_spec.rb +1 -1
- data/spec/legion/extensions/agentic/imagination/dream/helpers/association_walker_spec.rb +3 -3
- data/spec/legion/extensions/agentic/imagination/dream/helpers/contradiction_detector_spec.rb +2 -2
- data/spec/legion/extensions/agentic/imagination/dream/integration_spec.rb +3 -3
- data/spec/legion/extensions/agentic/imagination/dream/runners/dream_cycle_spec.rb +3 -3
- data/spec/spec_helper.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8d7e4e4b0411a752f119226fc83d95a1b86c2e929e0c33efdb1cfc200aee4839
|
|
4
|
+
data.tar.gz: a5403ce4977d7e1f8e9ea83cd7e031ab6ab3729957016aab32fc7fe40a0ad75c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5fc30aaac0e045398497d03c228119eaf022a94530958d253b27e7b4412df7239f8f1d3f0639ffe08f4217bb8a86353ba1eb43453787461208c9d1d6f7e7b8df
|
|
7
|
+
data.tar.gz: e2fe94a6aaf9734ad1ca7e66332edd8daa1b32dee15eabd578865a0f2a86fee42fc71f89590c58e3e8645a1f205b64c1633df2d243b16a79da89cae7fe317d32
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.10] - 2026-03-26
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
- Migrate all memory references from `lex-memory` to `lex-agentic-memory` namespace
|
|
7
|
+
- Update gemspec dev dependency from `lex-memory` to `lex-agentic-memory`
|
|
8
|
+
- Dream cycle, client, and agenda helpers now use `Agentic::Memory::Trace` namespace
|
|
9
|
+
|
|
3
10
|
## [0.1.9] - 2026-03-25
|
|
4
11
|
|
|
5
12
|
### Added
|
|
@@ -32,9 +32,9 @@ Gem::Specification.new do |spec|
|
|
|
32
32
|
spec.add_dependency 'legion-settings', '>= 1.3.14'
|
|
33
33
|
spec.add_dependency 'legion-transport', '>= 1.3.9'
|
|
34
34
|
|
|
35
|
+
spec.add_development_dependency 'lex-agentic-memory'
|
|
35
36
|
spec.add_development_dependency 'lex-emotion'
|
|
36
37
|
spec.add_development_dependency 'lex-identity'
|
|
37
|
-
spec.add_development_dependency 'lex-memory'
|
|
38
38
|
spec.add_development_dependency 'lex-tick'
|
|
39
39
|
spec.add_development_dependency 'rspec', '~> 3.13'
|
|
40
40
|
spec.add_development_dependency 'rubocop', '~> 1.60'
|
|
@@ -11,7 +11,7 @@ module Legion
|
|
|
11
11
|
attr_reader :dream_store
|
|
12
12
|
|
|
13
13
|
def initialize(memory: nil, identity: nil, emotion: nil, **)
|
|
14
|
-
@memory = memory || (Legion::Extensions::Memory::Client.new if defined?(Legion::Extensions::Memory::Client))
|
|
14
|
+
@memory = memory || (Legion::Extensions::Agentic::Memory::Trace::Client.new if defined?(Legion::Extensions::Agentic::Memory::Trace::Client))
|
|
15
15
|
@identity = identity || (Legion::Extensions::Identity::Client.new if defined?(Legion::Extensions::Identity::Client))
|
|
16
16
|
@emotion = emotion || (Legion::Extensions::Emotion::Client.new if defined?(Legion::Extensions::Emotion::Client))
|
|
17
17
|
@dream_store = Helpers::DreamStore.new
|
|
@@ -56,7 +56,7 @@ module Legion
|
|
|
56
56
|
|
|
57
57
|
def to_semantic_traces(agenda_items)
|
|
58
58
|
agenda_items.map do |item|
|
|
59
|
-
Legion::Extensions::Memory::Helpers::Trace.new_trace(
|
|
59
|
+
Legion::Extensions::Agentic::Memory::Trace::Helpers::Trace.new_trace(
|
|
60
60
|
type: :semantic,
|
|
61
61
|
content_payload: { dream_agenda: item[:type], **item[:content] },
|
|
62
62
|
emotional_intensity: item[:weight],
|
|
@@ -79,7 +79,7 @@ module Legion
|
|
|
79
79
|
candidates = store.all_traces.select do |t|
|
|
80
80
|
t[:trace_type] == :episodic &&
|
|
81
81
|
t[:reinforcement_count] >= CONSOLIDATION_CANDIDATE_THRESHOLD &&
|
|
82
|
-
t[:strength] < Legion::Extensions::Memory::Helpers::Trace::STARTING_STRENGTHS[:episodic]
|
|
82
|
+
t[:strength] < Legion::Extensions::Agentic::Memory::Trace::Helpers::Trace::STARTING_STRENGTHS[:episodic]
|
|
83
83
|
end
|
|
84
84
|
candidates.each do |t|
|
|
85
85
|
t[:consolidation_candidate] = true
|
|
@@ -319,7 +319,7 @@ module Legion
|
|
|
319
319
|
private
|
|
320
320
|
|
|
321
321
|
def memory
|
|
322
|
-
@memory ||= Legion::Extensions::Memory::Client.new if defined?(Legion::Extensions::Memory::Client)
|
|
322
|
+
@memory ||= Legion::Extensions::Agentic::Memory::Trace::Client.new if defined?(Legion::Extensions::Agentic::Memory::Trace::Client)
|
|
323
323
|
end
|
|
324
324
|
|
|
325
325
|
def identity
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
RSpec.describe Legion::Extensions::Agentic::Imagination::Dream::Client do
|
|
4
|
-
let(:memory_client) { Legion::Extensions::Memory::Client.new }
|
|
4
|
+
let(:memory_client) { Legion::Extensions::Agentic::Memory::Trace::Client.new }
|
|
5
5
|
let(:identity_client) { Legion::Extensions::Identity::Client.new }
|
|
6
6
|
let(:emotion_client) { Legion::Extensions::Emotion::Client.new }
|
|
7
7
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
RSpec.describe Legion::Extensions::Agentic::Imagination::Dream::Helpers::AssociationWalker do
|
|
4
|
-
let(:trace_helper) { Legion::Extensions::Memory::Helpers::Trace }
|
|
5
|
-
let(:memory_store) { Legion::Extensions::Memory::Helpers::Store.new }
|
|
4
|
+
let(:trace_helper) { Legion::Extensions::Agentic::Memory::Trace::Helpers::Trace }
|
|
5
|
+
let(:memory_store) { Legion::Extensions::Agentic::Memory::Trace::Helpers::Store.new }
|
|
6
6
|
|
|
7
7
|
let(:trace_a) do
|
|
8
8
|
trace_helper.new_trace(
|
|
@@ -112,7 +112,7 @@ RSpec.describe Legion::Extensions::Agentic::Imagination::Dream::Helpers::Associa
|
|
|
112
112
|
|
|
113
113
|
it 'returns nil when no unresolved episodic traces exist' do
|
|
114
114
|
# Only b and c are in a fresh store with no unresolved episodics
|
|
115
|
-
fresh_store = Legion::Extensions::Memory::Helpers::Store.new
|
|
115
|
+
fresh_store = Legion::Extensions::Agentic::Memory::Trace::Helpers::Store.new
|
|
116
116
|
fresh_store.store(trace_b)
|
|
117
117
|
fresh_store.store(trace_c)
|
|
118
118
|
|
data/spec/legion/extensions/agentic/imagination/dream/helpers/contradiction_detector_spec.rb
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
RSpec.describe Legion::Extensions::Agentic::Imagination::Dream::Helpers::ContradictionDetector do
|
|
4
|
-
let(:trace_helper) { Legion::Extensions::Memory::Helpers::Trace }
|
|
5
|
-
let(:store) { Legion::Extensions::Memory::Helpers::Store.new }
|
|
4
|
+
let(:trace_helper) { Legion::Extensions::Agentic::Memory::Trace::Helpers::Trace }
|
|
5
|
+
let(:store) { Legion::Extensions::Agentic::Memory::Trace::Helpers::Store.new }
|
|
6
6
|
|
|
7
7
|
describe '.detect' do
|
|
8
8
|
it 'finds contradictions between same-domain traces with opposing valence' do
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
RSpec.describe 'Dream cycle integration' do
|
|
4
|
-
let(:memory_store) { Legion::Extensions::Memory::Helpers::Store.new }
|
|
5
|
-
let(:memory_client) { Legion::Extensions::Memory::Client.new(store: memory_store) }
|
|
4
|
+
let(:memory_store) { Legion::Extensions::Agentic::Memory::Trace::Helpers::Store.new }
|
|
5
|
+
let(:memory_client) { Legion::Extensions::Agentic::Memory::Trace::Client.new(store: memory_store) }
|
|
6
6
|
let(:identity_client) { Legion::Extensions::Identity::Client.new }
|
|
7
7
|
let(:emotion_client) { Legion::Extensions::Emotion::Client.new }
|
|
8
8
|
let(:tick_client) { Legion::Extensions::Tick::Client.new(mode: :dormant) }
|
|
@@ -11,7 +11,7 @@ RSpec.describe 'Dream cycle integration' do
|
|
|
11
11
|
memory: memory_client, identity: identity_client, emotion: emotion_client
|
|
12
12
|
)
|
|
13
13
|
end
|
|
14
|
-
let(:trace_helper) { Legion::Extensions::Memory::Helpers::Trace }
|
|
14
|
+
let(:trace_helper) { Legion::Extensions::Agentic::Memory::Trace::Helpers::Trace }
|
|
15
15
|
|
|
16
16
|
it 'runs a complete dream cycle with populated memory' do
|
|
17
17
|
# 1. Seed memory with 10 episodic traces (some unresolved)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
RSpec.describe Legion::Extensions::Agentic::Imagination::Dream::Runners::DreamCycle do
|
|
4
|
-
let(:memory_store) { Legion::Extensions::Memory::Helpers::Store.new }
|
|
5
|
-
let(:memory_client) { Legion::Extensions::Memory::Client.new(store: memory_store) }
|
|
4
|
+
let(:memory_store) { Legion::Extensions::Agentic::Memory::Trace::Helpers::Store.new }
|
|
5
|
+
let(:memory_client) { Legion::Extensions::Agentic::Memory::Trace::Client.new(store: memory_store) }
|
|
6
6
|
let(:identity_client) { Legion::Extensions::Identity::Client.new }
|
|
7
7
|
let(:emotion_client) { Legion::Extensions::Emotion::Client.new }
|
|
8
8
|
let(:client) do
|
|
@@ -12,7 +12,7 @@ RSpec.describe Legion::Extensions::Agentic::Imagination::Dream::Runners::DreamCy
|
|
|
12
12
|
emotion: emotion_client
|
|
13
13
|
)
|
|
14
14
|
end
|
|
15
|
-
let(:trace_helper) { Legion::Extensions::Memory::Helpers::Trace }
|
|
15
|
+
let(:trace_helper) { Legion::Extensions::Agentic::Memory::Trace::Helpers::Trace }
|
|
16
16
|
|
|
17
17
|
describe '#execute_dream_cycle' do
|
|
18
18
|
it 'returns a result hash with all nine phases' do
|
data/spec/spec_helper.rb
CHANGED
|
@@ -42,8 +42,8 @@ end
|
|
|
42
42
|
$LOADED_FEATURES << 'legion/extensions/actors/every'
|
|
43
43
|
$LOADED_FEATURES << 'legion/extensions/actors/once'
|
|
44
44
|
|
|
45
|
-
require 'legion/extensions/memory'
|
|
46
|
-
require 'legion/extensions/memory/client'
|
|
45
|
+
require 'legion/extensions/agentic/memory/trace'
|
|
46
|
+
require 'legion/extensions/agentic/memory/trace/client'
|
|
47
47
|
require 'legion/extensions/identity'
|
|
48
48
|
require 'legion/extensions/identity/client'
|
|
49
49
|
require 'legion/extensions/emotion'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lex-agentic-imagination
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Esity
|
|
@@ -108,7 +108,7 @@ dependencies:
|
|
|
108
108
|
- !ruby/object:Gem::Version
|
|
109
109
|
version: 1.3.9
|
|
110
110
|
- !ruby/object:Gem::Dependency
|
|
111
|
-
name: lex-
|
|
111
|
+
name: lex-agentic-memory
|
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
|
113
113
|
requirements:
|
|
114
114
|
- - ">="
|
|
@@ -122,7 +122,7 @@ dependencies:
|
|
|
122
122
|
- !ruby/object:Gem::Version
|
|
123
123
|
version: '0'
|
|
124
124
|
- !ruby/object:Gem::Dependency
|
|
125
|
-
name: lex-
|
|
125
|
+
name: lex-emotion
|
|
126
126
|
requirement: !ruby/object:Gem::Requirement
|
|
127
127
|
requirements:
|
|
128
128
|
- - ">="
|
|
@@ -136,7 +136,7 @@ dependencies:
|
|
|
136
136
|
- !ruby/object:Gem::Version
|
|
137
137
|
version: '0'
|
|
138
138
|
- !ruby/object:Gem::Dependency
|
|
139
|
-
name: lex-
|
|
139
|
+
name: lex-identity
|
|
140
140
|
requirement: !ruby/object:Gem::Requirement
|
|
141
141
|
requirements:
|
|
142
142
|
- - ">="
|