Module: Legion::Extensions::MindGrowth::Helpers::Constants

Defined in:
lib/legion/extensions/mind_growth/helpers/constants.rb

Constant Summary collapse

PROPOSAL_STATUSES =

Proposal status lifecycle

%i[
  proposed evaluating approved rejected building testing passing wired active degraded pruned build_failed
].freeze
CATEGORIES =

Cognitive categories and target distribution

%i[cognition perception introspection safety communication memory motivation coordination].freeze
TARGET_DISTRIBUTION =
{
  cognition:     0.30,
  perception:    0.15,
  introspection: 0.12,
  safety:        0.12,
  communication: 0.10,
  memory:        0.10,
  motivation:    0.06,
  coordination:  0.05
}.freeze
EVALUATION_DIMENSIONS =

Evaluation dimensions

%i[novelty fit cognitive_value implementability composability].freeze
MIN_DIMENSION_SCORE =
0.6
AUTO_APPROVE_THRESHOLD =
0.9
REDUNDANCY_THRESHOLD =
0.8
MAX_FIX_ATTEMPTS =

Build pipeline

3
BUILD_TIMEOUT_MS =

10 minutes

600_000
FITNESS_WEIGHTS =

Fitness function weights

{
  invocation_rate: 0.25,
  impact_score:    0.30,
  health:          0.25,
  error_penalty:   -0.15,
  latency_penalty: -0.05
}.freeze
PRUNE_THRESHOLD =
0.2
IMPROVEMENT_THRESHOLD =
0.4
COGNITIVE_MODELS =

Reference cognitive models

%i[global_workspace free_energy dual_process somatic_marker working_memory].freeze
QUORUM =

Governance

3
REJECTION_COOLDOWN_HOURS =
24
GOVERNANCE_STATUSES =
%i[pending approved rejected expired].freeze
HEALTH_LEVELS =

Health monitoring

{ excellent: 0.8, good: 0.6, fair: 0.4, degraded: 0.2, critical: 0.0 }.freeze
DECAY_INVOCATION_THRESHOLD =
5
CONSENSUS_THRESHOLD =

Swarm consensus

0.67
DISAGREEMENT_ESCALATION_THRESHOLD =
0.5
RISK_TIERS =

Risk assessment

%i[low medium high critical].freeze
RISK_RECOMMENDATIONS =
{
  low:      :auto_approve,
  medium:   :governance,
  high:     :human_required,
  critical: :blocked
}.freeze