lex-tick 0.1.5 → 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
|
|
@@ -59,7 +60,8 @@ module Legion
|
|
|
59
60
|
PHASE_BUDGETS = {
|
|
60
61
|
sensory_processing: 0.15,
|
|
61
62
|
emotional_evaluation: 0.10,
|
|
62
|
-
memory_retrieval: 0.
|
|
63
|
+
memory_retrieval: 0.15,
|
|
64
|
+
knowledge_retrieval: 0.05,
|
|
63
65
|
identity_entropy_check: 0.05,
|
|
64
66
|
working_memory_integration: 0.05,
|
|
65
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
|