Module: Legion::Extensions::Agentic::Homeostasis::Temporal::Helpers::Constants
- Defined in:
- lib/legion/extensions/agentic/homeostasis/temporal/helpers/constants.rb
Constant Summary collapse
- URGENCY_HORIZONS =
Time horizons for urgency classification
{ immediate: 10, # seconds short_term: 60, # 1 minute medium: 300, # 5 minutes long_term: 3600, # 1 hour distant: 86_400 # 1 day }.freeze
- URGENCY_LEVELS =
Urgency levels (higher = more urgent)
%i[none low moderate high critical].freeze
- DEADLINE_URGENCY =
Deadline urgency thresholds (fraction of remaining time)
{ critical: 0.1, # <= 10% time remaining high: 0.25, # <= 25% moderate: 0.5, # <= 50% low: 0.75, # <= 75% none: 1.0 # > 75% }.freeze
- PATTERN_TYPES =
Temporal pattern types
%i[periodic bursty circadian random].freeze
- MIN_PATTERN_OBSERVATIONS =
Minimum occurrences to detect a pattern
5- MAX_EVENTS_PER_DOMAIN =
Maximum tracked events per domain
100- MAX_DEADLINES =
Maximum active deadlines
50- MAX_PATTERNS =
Maximum temporal patterns tracked
30- MAX_GLOBAL_EVENTS =
How many recent events to keep globally
500- PERIODIC_CV_THRESHOLD =
Coefficient of variation threshold for periodic vs bursty
0.3- BURST_MULTIPLIER =
Burst detection: events within this multiplier of mean interval
0.25- DILATION_RANGE =
Subjective time dilation factor ranges When arousal is high, time feels slower (more ticks perceived) When bored/low arousal, time flies
{ min: 0.5, max: 2.0 }.freeze
- SUBJECTIVE_ALPHA =
EMA alpha for subjective time tracking
0.2