lex-agentic-social 0.1.10 → 0.1.13
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 +13 -0
- data/README.md +1 -1
- data/lib/legion/extensions/agentic/social/calibration/runners/calibration.rb +4 -2
- data/lib/legion/extensions/agentic/social/theory_of_mind/runners/theory_of_mind.rb +1 -1
- data/lib/legion/extensions/agentic/social/version.rb +1 -1
- data/lib/legion/extensions/agentic/social.rb +12 -0
- data/spec/legion/extensions/agentic/social/calibration/runners/calibration_spec.rb +6 -4
- data/spec/legion/extensions/agentic/social/theory_of_mind/runners/theory_of_mind_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3f68ab7b55f1227a283fd1d658a83972249adf14c16c830f05484b7e7c4dbdd5
|
|
4
|
+
data.tar.gz: e4c8b7b5d490ced1d15657a28a695a51ec2282f9dd3b3a6777502e4728ce3a33
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8a905ea7a1dd03b5bf61f3fece78f6add34b32830f843914857d115a9a44e708a01944e94a7310a2339c2ae674449f8cc11671823a3b06352c135a08ca4f8349
|
|
7
|
+
data.tar.gz: 1a7f7af65cbba67a13d23f9aec91403f82081df517d3283fc2ad91827e8cdbdf73d2139f83333a881c3db3c27d1a8a6d9a8ffb7dcd95c1a970d26cbfd4de130b
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.13] - 2026-04-15
|
|
4
|
+
### Changed
|
|
5
|
+
- Set `mcp_tools?`, `mcp_tools_deferred?`, and `transport_required?` to `false` — internal cognitive pipeline extension
|
|
6
|
+
|
|
7
|
+
## [0.1.12] - 2026-04-03
|
|
8
|
+
### Fixed
|
|
9
|
+
- fix TheoryOfMind phase key from social to social_cognition to match GAIA phase map
|
|
10
|
+
|
|
11
|
+
## [0.1.11] - 2026-04-03
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
- `retrieve_from_apollo_local` now correctly unpacks `{ success:, results: }` hash from `Apollo::Local.query_by_tags` instead of treating it as an array
|
|
15
|
+
|
|
3
16
|
## [0.1.10] - 2026-03-31
|
|
4
17
|
|
|
5
18
|
### Fixed
|
data/README.md
CHANGED
|
@@ -136,8 +136,10 @@ module Legion
|
|
|
136
136
|
def retrieve_from_apollo_local
|
|
137
137
|
return [] unless defined?(Legion::Apollo::Local) && Legion::Apollo::Local.started?
|
|
138
138
|
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
result = Legion::Apollo::Local.query_by_tags(tags: ['partner_interaction'], limit: 50)
|
|
140
|
+
return [] unless result[:success] && result[:results].is_a?(Array)
|
|
141
|
+
|
|
142
|
+
result[:results].map { |e| { content: e[:content], tags: e[:tags], confidence: e[:confidence] } }
|
|
141
143
|
rescue StandardError => e
|
|
142
144
|
Legion::Logging.warn("[calibration] retrieve_from_apollo_local error: #{e.message}")
|
|
143
145
|
[]
|
|
@@ -168,7 +168,7 @@ module Legion
|
|
|
168
168
|
end
|
|
169
169
|
|
|
170
170
|
def extract_social_observations(tick_results)
|
|
171
|
-
social = tick_results.dig(:
|
|
171
|
+
social = tick_results.dig(:social_cognition, :reputation_updates)
|
|
172
172
|
return unless social.is_a?(Array)
|
|
173
173
|
|
|
174
174
|
social.each do |update|
|
|
@@ -90,13 +90,15 @@ RSpec.describe Legion::Extensions::Agentic::Social::Calibration::Runners::Calibr
|
|
|
90
90
|
stub_const('Legion::Apollo', Module.new)
|
|
91
91
|
stub_const('Legion::Apollo::Local', mock_local)
|
|
92
92
|
allow(mock_local).to receive(:started?).and_return(true)
|
|
93
|
-
allow(mock_local).to receive(:query_by_tags).with(tags: ['partner_interaction'], limit: 50).and_return(
|
|
94
|
-
|
|
93
|
+
allow(mock_local).to receive(:query_by_tags).with(tags: ['partner_interaction'], limit: 50).and_return({
|
|
94
|
+
success: true,
|
|
95
|
+
results: [{
|
|
95
96
|
content: 'hello partner',
|
|
96
97
|
tags: ['partner_interaction'],
|
|
97
98
|
confidence: 0.8
|
|
98
|
-
}
|
|
99
|
-
|
|
99
|
+
}],
|
|
100
|
+
count: 1
|
|
101
|
+
})
|
|
100
102
|
|
|
101
103
|
result = client.send(:retrieve_from_apollo_local)
|
|
102
104
|
expect(result).to be_an(Array)
|
|
@@ -181,7 +181,7 @@ RSpec.describe Legion::Extensions::Agentic::Social::TheoryOfMind::Runners::Theor
|
|
|
181
181
|
|
|
182
182
|
it 'extracts social observations from tick results' do
|
|
183
183
|
tick = {
|
|
184
|
-
|
|
184
|
+
social_cognition: {
|
|
185
185
|
reputation_updates: [
|
|
186
186
|
{ agent_id: :a1, standing: :respected, composite: 0.7 },
|
|
187
187
|
{ agent_id: :a2, standing: :neutral, composite: 0.5 }
|