lex-tick 0.1.4 → 0.1.6
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: 52f1405d587703b08529ef3f4a9cf78993dc3b3124e8312c79e4d6e7551f3706
|
|
4
|
+
data.tar.gz: db36e0f157c6b7fc3904c56d8e092aa5afedd06b20500f482c3b1241f67c30ec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9819622c840e1283e2330325d798a5cd45a9bcd566248491f8ce50c857bd0aafaef60290289ffccb68a56c1807c893d80019dcd4706a3cde9cec6c85b4ad2d06
|
|
7
|
+
data.tar.gz: 92b61e3a50dda655f00ade6559c8f54e2dde68f085986c15e1f7147dbaff051f7ed6ea054d6ad1750825ee14c8e0ecfab01ad132593e3f442bab21caf0ea6f42
|
|
@@ -8,11 +8,12 @@ module Legion
|
|
|
8
8
|
# Tick modes
|
|
9
9
|
MODES = %i[dormant dormant_active sentinel full_active].freeze
|
|
10
10
|
|
|
11
|
-
#
|
|
11
|
+
# 13 phases of a full active tick
|
|
12
12
|
PHASES = %i[
|
|
13
13
|
sensory_processing
|
|
14
14
|
emotional_evaluation
|
|
15
15
|
memory_retrieval
|
|
16
|
+
knowledge_retrieval
|
|
16
17
|
identity_entropy_check
|
|
17
18
|
working_memory_integration
|
|
18
19
|
procedural_check
|
|
@@ -32,6 +33,7 @@ module Legion
|
|
|
32
33
|
identity_entropy_check
|
|
33
34
|
agenda_formation
|
|
34
35
|
consolidation_commit
|
|
36
|
+
knowledge_promotion
|
|
35
37
|
dream_reflection
|
|
36
38
|
dream_narration
|
|
37
39
|
].freeze
|
|
@@ -58,7 +60,8 @@ module Legion
|
|
|
58
60
|
PHASE_BUDGETS = {
|
|
59
61
|
sensory_processing: 0.15,
|
|
60
62
|
emotional_evaluation: 0.10,
|
|
61
|
-
memory_retrieval: 0.
|
|
63
|
+
memory_retrieval: 0.15,
|
|
64
|
+
knowledge_retrieval: 0.05,
|
|
62
65
|
identity_entropy_check: 0.05,
|
|
63
66
|
working_memory_integration: 0.05,
|
|
64
67
|
procedural_check: 0.10,
|
|
@@ -16,9 +16,9 @@ RSpec.describe Legion::Extensions::Tick::Client do
|
|
|
16
16
|
expect(client.tick_status[:mode]).to eq(:sentinel)
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
-
it 'runs a full active tick with all
|
|
19
|
+
it 'runs a full active tick with all 13 phases' do
|
|
20
20
|
client = described_class.new(mode: :full_active)
|
|
21
21
|
result = client.execute_tick(signals: [{ salience: 0.9, source_type: :human_direct }])
|
|
22
|
-
expect(result[:phases_executed].size).to eq(
|
|
22
|
+
expect(result[:phases_executed].size).to eq(13)
|
|
23
23
|
end
|
|
24
24
|
end
|
|
@@ -15,7 +15,7 @@ RSpec.describe Legion::Extensions::Tick::Helpers::Constants do
|
|
|
15
15
|
|
|
16
16
|
it 'returns all 12 phases for full_active' do
|
|
17
17
|
phases = described_class.phases_for_mode(:full_active)
|
|
18
|
-
expect(phases.size).to eq(
|
|
18
|
+
expect(phases.size).to eq(13)
|
|
19
19
|
end
|
|
20
20
|
end
|
|
21
21
|
|
|
@@ -34,7 +34,7 @@ RSpec.describe Legion::Extensions::Tick::Helpers::Constants do
|
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
it 'defines exactly 12 phases' do
|
|
37
|
-
expect(described_class::PHASES.size).to eq(
|
|
37
|
+
expect(described_class::PHASES.size).to eq(13)
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
it 'defines phase budgets for all active phases' do
|
|
@@ -54,20 +54,20 @@ RSpec.describe Legion::Extensions::Tick::Helpers::Constants do
|
|
|
54
54
|
end
|
|
55
55
|
|
|
56
56
|
describe 'DREAM_PHASES' do
|
|
57
|
-
it 'defines
|
|
58
|
-
expect(described_class::DREAM_PHASES.size).to eq(
|
|
57
|
+
it 'defines 9 dream phases' do
|
|
58
|
+
expect(described_class::DREAM_PHASES.size).to eq(9)
|
|
59
59
|
end
|
|
60
60
|
|
|
61
61
|
it 'includes all expected dream phase symbols' do
|
|
62
62
|
expected = %i[memory_audit association_walk contradiction_resolution
|
|
63
63
|
identity_entropy_check agenda_formation consolidation_commit
|
|
64
|
-
dream_reflection dream_narration]
|
|
64
|
+
knowledge_promotion dream_reflection dream_narration]
|
|
65
65
|
expect(described_class::DREAM_PHASES).to eq(expected)
|
|
66
66
|
end
|
|
67
67
|
end
|
|
68
68
|
|
|
69
69
|
describe 'MODE_PHASES' do
|
|
70
|
-
it 'maps dormant_active to the
|
|
70
|
+
it 'maps dormant_active to the 9 dream phases' do
|
|
71
71
|
expect(described_class::MODE_PHASES[:dormant_active]).to eq(described_class::DREAM_PHASES)
|
|
72
72
|
end
|
|
73
73
|
end
|