Module: Legion::Extensions::Agentic::Attention::Schema::Helpers::Constants

Included in:
AttentionSchemaModel, SchemaItem
Defined in:
lib/legion/extensions/agentic/attention/schema/helpers/constants.rb

Constant Summary collapse

MAX_SCHEMA_ITEMS =

Maximum items the schema can model simultaneously

15
MAX_SOCIAL_MODELS =

Maximum other agents whose attention we model socially

10
SCHEMA_UPDATE_ALPHA =

EMA alpha for schema update speed

0.15
DEFAULT_AWARENESS =

Default awareness level for newly focused items

0.3
AWARENESS_FLOOR =

Minimum awareness before item is pruned from schema

0.05
AWARENESS_DECAY =

Per-tick decay applied to all schema items

0.02
AWARENESS_BOOST =

Awareness boost applied when re-focusing an existing item

0.15
DRIFT_THRESHOLD =

Below this awareness average: attention is drifting

0.3
HYPERFOCUS_THRESHOLD =

Above this awareness (for top item): attention is hyper-focused

0.85
META_ATTENTION_ALPHA =

EMA alpha for meta-attention accuracy tracking

0.1
MAX_HISTORY =

Maximum entries kept in attention history ring buffer

200
AWARENESS_LABELS =

Human-readable labels keyed by awareness level range

{
  (0.8..)     => :vivid,
  (0.6...0.8) => :clear,
  (0.4...0.6) => :dim,
  (0.2...0.4) => :peripheral,
  (..0.2)     => :unconscious
}.freeze
ATTENTION_STATE_LABELS =

Human-readable attention-state labels

{
  hyperfocused: 'deeply engaged',
  focused:      'actively attending',
  normal:       'casually aware',
  drifting:     'attention waning',
  distracted:   'attention scattered'
}.freeze