lex-tick 0.1.6 → 0.1.7
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: 28c4fa9d20e43311c9ba66c099e0386bdc9636db6575478c43cef9844e265a48
|
|
4
|
+
data.tar.gz: ad10d9c55cb4da3721be54d218389a2b160ab562d39d5fca746c77e6b819377b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 546a141229e71000342757f6b14f970a58b04f9271d27fe316c8778d497644dcc577d513cdff5b1ec5ad63c86c0bf8af77c7d4ec285150e670e646c0dcc0c544
|
|
7
|
+
data.tar.gz: a724a20fea72e9f1bf28aacf4a6e13de708c28efc0fce4c22368b3692bb8181f86a28864b2d3490922a9aaccde6f23129692217c20f2bbce108df24c680534c4
|
|
@@ -8,7 +8,7 @@ module Legion
|
|
|
8
8
|
# Tick modes
|
|
9
9
|
MODES = %i[dormant dormant_active sentinel full_active].freeze
|
|
10
10
|
|
|
11
|
-
#
|
|
11
|
+
# 16 phases of a full active tick
|
|
12
12
|
PHASES = %i[
|
|
13
13
|
sensory_processing
|
|
14
14
|
emotional_evaluation
|
|
@@ -19,9 +19,12 @@ module Legion
|
|
|
19
19
|
procedural_check
|
|
20
20
|
prediction_engine
|
|
21
21
|
mesh_interface
|
|
22
|
+
social_cognition
|
|
23
|
+
theory_of_mind
|
|
22
24
|
gut_instinct
|
|
23
25
|
action_selection
|
|
24
26
|
memory_consolidation
|
|
27
|
+
homeostasis_regulation
|
|
25
28
|
post_tick_reflection
|
|
26
29
|
].freeze
|
|
27
30
|
|
|
@@ -58,18 +61,21 @@ module Legion
|
|
|
58
61
|
|
|
59
62
|
# Phase timing budgets (fraction of total tick time)
|
|
60
63
|
PHASE_BUDGETS = {
|
|
61
|
-
sensory_processing: 0.
|
|
62
|
-
emotional_evaluation: 0.
|
|
63
|
-
memory_retrieval: 0.
|
|
64
|
+
sensory_processing: 0.12,
|
|
65
|
+
emotional_evaluation: 0.08,
|
|
66
|
+
memory_retrieval: 0.12,
|
|
64
67
|
knowledge_retrieval: 0.05,
|
|
65
|
-
identity_entropy_check: 0.
|
|
68
|
+
identity_entropy_check: 0.04,
|
|
66
69
|
working_memory_integration: 0.05,
|
|
67
|
-
procedural_check: 0.
|
|
68
|
-
prediction_engine: 0.
|
|
69
|
-
mesh_interface: 0.
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
procedural_check: 0.08,
|
|
71
|
+
prediction_engine: 0.12,
|
|
72
|
+
mesh_interface: 0.04,
|
|
73
|
+
social_cognition: 0.04,
|
|
74
|
+
theory_of_mind: 0.04,
|
|
75
|
+
gut_instinct: 0.04,
|
|
76
|
+
action_selection: 0.04,
|
|
77
|
+
memory_consolidation: 0.04,
|
|
78
|
+
homeostasis_regulation: 0.05,
|
|
73
79
|
post_tick_reflection: 0.05
|
|
74
80
|
}.freeze
|
|
75
81
|
|
|
@@ -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 16 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(16)
|
|
23
23
|
end
|
|
24
24
|
end
|
|
@@ -13,9 +13,9 @@ RSpec.describe Legion::Extensions::Tick::Helpers::Constants do
|
|
|
13
13
|
expect(phases).to include(:sensory_processing, :memory_retrieval)
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
-
it 'returns all
|
|
16
|
+
it 'returns all 16 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(16)
|
|
19
19
|
end
|
|
20
20
|
end
|
|
21
21
|
|
|
@@ -33,8 +33,8 @@ RSpec.describe Legion::Extensions::Tick::Helpers::Constants do
|
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
-
it 'defines exactly
|
|
37
|
-
expect(described_class::PHASES.size).to eq(
|
|
36
|
+
it 'defines exactly 16 phases' do
|
|
37
|
+
expect(described_class::PHASES.size).to eq(16)
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
it 'defines phase budgets for all active phases' do
|