lex-agentic-integration 0.1.0 → 0.1.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 +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +45 -3
- data/lib/legion/extensions/agentic/integration/phenomenal_binding/helpers/binding_engine.rb +4 -0
- data/lib/legion/extensions/agentic/integration/phenomenal_binding/version.rb +1 -1
- data/lib/legion/extensions/agentic/integration/version.rb +1 -1
- data/spec/legion/extensions/agentic/integration/phenomenal_binding/helpers/binding_engine_spec.rb +26 -0
- 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: 3192fffb28aca9c320417ae61a946525361c328745e931f4afd0617429e64b71
|
|
4
|
+
data.tar.gz: 9dc74c01bdccbd4d75c78c0ea6dd61bfe262ddd40219cd0d180e28fd545a7edc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ebae7b6db8e75e6b1f4446e7483d6cbca3706ee162a7f2ddec9828724ea65af8ddaf182e3db9cfec10a1fc4b5ffd8d07ff6799ed1a143ac8c64db655150dc444
|
|
7
|
+
data.tar.gz: a549643b18578f0368e34c0a4ab005a4712d75e5b8d52d0904556c13d6963177616d6480c22eefda4bd04d21259b452f631658b393cfdc0903aa588d6d1f4fc8
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.1.1] - 2026-03-18
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
- Enforce STREAM_TYPES validation in PhenomenalBinding::BindingEngine#register_stream (returns nil for invalid types)
|
|
9
|
+
- Enforce BINDING_TYPES validation in PhenomenalBinding::BindingEngine#create_binding (returns nil for invalid types)
|
|
10
|
+
|
|
5
11
|
## [0.1.0] - 2026-03-18
|
|
6
12
|
|
|
7
13
|
### Added
|
data/README.md
CHANGED
|
@@ -1,13 +1,55 @@
|
|
|
1
1
|
# lex-agentic-integration
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Domain consolidation gem for global integration theories and cross-domain synthesis. Bundles 17 source extensions into one loadable unit under `Legion::Extensions::Agentic::Integration`.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Overview
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
**Gem**: `lex-agentic-integration`
|
|
8
|
+
**Version**: 0.1.1
|
|
9
|
+
**Namespace**: `Legion::Extensions::Agentic::Integration`
|
|
10
|
+
|
|
11
|
+
## Sub-Modules
|
|
12
|
+
|
|
13
|
+
| Sub-Module | Source Gem | Purpose |
|
|
14
|
+
|---|---|---|
|
|
15
|
+
| `Integration::Integration` | `lex-cognitive-integration` | Cross-domain integration of cognitive signals |
|
|
16
|
+
| `Integration::Synthesis` | `lex-cognitive-synthesis` | Active synthesis of disparate cognitive streams |
|
|
17
|
+
| `Integration::Tapestry` | `lex-cognitive-tapestry` | Weaving threads and tapestries — thread lifecycle, loom engine |
|
|
18
|
+
| `Integration::Mosaic` | `lex-cognitive-mosaic` | Mosaic pattern assembly from fragments |
|
|
19
|
+
| `Integration::Tessellation` | `lex-cognitive-tessellation` | Tessellating cognitive patterns without gaps |
|
|
20
|
+
| `Integration::Mycelium` | `lex-cognitive-mycelium` | Fungal network knowledge propagation |
|
|
21
|
+
| `Integration::Zeitgeist` | `lex-cognitive-zeitgeist` | Emergent cultural/contextual cognitive patterns |
|
|
22
|
+
| `Integration::Map` | `lex-cognitive-map` | Spatial cognitive map — location graph, Dijkstra pathfinding |
|
|
23
|
+
| `Integration::Labyrinth` | `lex-cognitive-labyrinth` | Maze-like navigation of complex conceptual spaces |
|
|
24
|
+
| `Integration::GlobalWorkspace` | `lex-global-workspace` | Baars/Dehaene GWT — capacity-1 workspace, broadcast to all processors |
|
|
25
|
+
| `Integration::PhenomenalBinding` | `lex-phenomenal-binding` | Binding of phenomenal consciousness elements |
|
|
26
|
+
| `Integration::Gestalt` | `lex-gestalt` | Holistic pattern perception — the whole exceeds the parts |
|
|
27
|
+
| `Integration::DistributedCognition` | `lex-distributed-cognition` | Hutchins — cognition spread across agent, tools, environment |
|
|
28
|
+
| `Integration::Qualia` | `lex-qualia` | Subjective experience representation |
|
|
29
|
+
| `Integration::Context` | `lex-context` | Context-dependent cognition |
|
|
30
|
+
| `Integration::SituationModel` | `lex-situation-model` | Zwaan/Radvansky situation model for text comprehension |
|
|
31
|
+
| `Integration::Boundary` | `lex-cognitive-boundary` | Cognitive domain boundary management |
|
|
32
|
+
|
|
33
|
+
## Actors
|
|
34
|
+
|
|
35
|
+
- `Integration::GlobalWorkspace::Actors::Competition` — interval actor, runs workspace competition cycle
|
|
36
|
+
- `Integration::Labyrinth::Actors::ThreadWalker` — interval actor, advances labyrinth thread walker
|
|
37
|
+
- `Integration::Map::Actors::Decay` — interval actor, decays cognitive map node strength
|
|
8
38
|
|
|
9
39
|
## Installation
|
|
10
40
|
|
|
11
41
|
```ruby
|
|
12
42
|
gem 'lex-agentic-integration'
|
|
13
43
|
```
|
|
44
|
+
|
|
45
|
+
## Development
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
bundle install
|
|
49
|
+
bundle exec rspec # 1450 examples, 0 failures
|
|
50
|
+
bundle exec rubocop # 0 offenses
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## License
|
|
54
|
+
|
|
55
|
+
MIT
|
|
@@ -15,6 +15,8 @@ module Legion
|
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
def register_stream(stream_type:, content:, salience: DEFAULT_SALIENCE, domain: nil)
|
|
18
|
+
return nil unless STREAM_TYPES.include?(stream_type)
|
|
19
|
+
|
|
18
20
|
prune_streams_if_full
|
|
19
21
|
stream = Stream.new(
|
|
20
22
|
stream_type: stream_type,
|
|
@@ -27,6 +29,8 @@ module Legion
|
|
|
27
29
|
end
|
|
28
30
|
|
|
29
31
|
def create_binding(stream_ids:, binding_type:, attention_weight: 0.5)
|
|
32
|
+
return nil unless BINDING_TYPES.include?(binding_type)
|
|
33
|
+
|
|
30
34
|
prune_bindings_if_full
|
|
31
35
|
valid_ids = stream_ids.select { |id| @streams.key?(id) }
|
|
32
36
|
coherence = compute_initial_coherence(valid_ids)
|
data/spec/legion/extensions/agentic/integration/phenomenal_binding/helpers/binding_engine_spec.rb
CHANGED
|
@@ -38,6 +38,18 @@ RSpec.describe Legion::Extensions::Agentic::Integration::PhenomenalBinding::Help
|
|
|
38
38
|
101.times { |i| engine.register_stream(stream_type: :perception, content: "s#{i}") }
|
|
39
39
|
expect(engine.to_h[:stream_count]).to eq(100)
|
|
40
40
|
end
|
|
41
|
+
|
|
42
|
+
it 'rejects invalid stream_type' do
|
|
43
|
+
expect(engine.register_stream(stream_type: :telepathy, content: 'x')).to be_nil
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
it 'accepts all valid STREAM_TYPES' do
|
|
47
|
+
constants = Legion::Extensions::Agentic::Integration::PhenomenalBinding::Helpers::Constants
|
|
48
|
+
constants::STREAM_TYPES.each do |stype|
|
|
49
|
+
result = engine.register_stream(stream_type: stype, content: "stream_#{stype}")
|
|
50
|
+
expect(result).not_to be_nil
|
|
51
|
+
end
|
|
52
|
+
end
|
|
41
53
|
end
|
|
42
54
|
|
|
43
55
|
describe '#create_binding' do
|
|
@@ -77,6 +89,20 @@ RSpec.describe Legion::Extensions::Agentic::Integration::PhenomenalBinding::Help
|
|
|
77
89
|
201.times { engine.create_binding(stream_ids: [s.id], binding_type: :perceptual) }
|
|
78
90
|
expect(engine.to_h[:binding_count]).to eq(200)
|
|
79
91
|
end
|
|
92
|
+
|
|
93
|
+
it 'rejects invalid binding_type' do
|
|
94
|
+
s = engine.register_stream(stream_type: :perception, content: 'x')
|
|
95
|
+
expect(engine.create_binding(stream_ids: [s.id], binding_type: :psychic)).to be_nil
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
it 'accepts all valid BINDING_TYPES' do
|
|
99
|
+
constants = Legion::Extensions::Agentic::Integration::PhenomenalBinding::Helpers::Constants
|
|
100
|
+
s = engine.register_stream(stream_type: :perception, content: 'base')
|
|
101
|
+
constants::BINDING_TYPES.each do |btype|
|
|
102
|
+
result = engine.create_binding(stream_ids: [s.id], binding_type: btype)
|
|
103
|
+
expect(result).not_to be_nil
|
|
104
|
+
end
|
|
105
|
+
end
|
|
80
106
|
end
|
|
81
107
|
|
|
82
108
|
describe '#reinforce_binding' do
|