consciousness_sim 1.0.1
consciousness_sim: ^1.0.1 copied to clipboard
An advanced Dart library simulating machine consciousness based on Global Workspace Theory. Provides a sophisticated information-processing model that mimics attention mechanisms, memory systems, conc [...]
Changelog #
All notable changes to consciousness_sim are documented here.
Format follows Keep a Changelog.
1.0.1 — 2026-06-01 #
Fixed #
Consciousness Engine
- Fixed workspace admission edge case that could allow duplicate concepts under heavy broadcast load.
- Fixed salience normalization overflow when processing extremely large concept streams.
- Fixed temporal binding cleanup issue causing stale bindings to persist longer than intended.
1.0.0 — 2024-01-01 #
Added #
Consciousness engine
Consciousness— main orchestrator built on Global Workspace Theory (Baars, 1988)WorkspaceManager— 7±2 concept broadcast buffer with salience-based admissionAttentionSpotlight— focus/defocus, automatic wander, salience computationBindingEngine— temporal and semantic concept binding with co-activation trackingEpisodicMemory— event-based autobiographical memory with decaySemanticMemory— world-knowledge triple store with confidence scoringWorkingMemory— short-term 4±1 buffer with LRU evictionMemoryManager— unified retrieval and episodic→semantic consolidationSensoryInputProcessor— full perceptual pipeline with modality taggingFeatureExtractor— linguistic features: entities, actions, spatial/temporal markersPerceptionBuffer— pre-attentive sensory registerInferenceEngine— forward-chaining, causal, associative, and memory-driven rulesConceptualGraph— directed, weighted semantic network with BFS/DFS/spreading activationCausalInferenceEngine— Pearl-inspired cause-effect detection from concept streamsPatternRecognizer— co-occurrence, sequence, and cluster pattern discoveryCrossModalBinding— multi-sensory fusion across visual/auditory/tactile modalitiesSynchronizationManager— parallel processing stream coordinationCoherenceManager— workspace consistency scoringConsciousnessPlugin— extensible processing hooksConsciousnessLogger— structured, level-filtered loggingConsciousnessMetrics— latency, throughput, and P95 trackingConsciousnessVisualizer— ASCII workspace/graph rendering
Autonomous agent framework (new in v1.0)
AgentMind+ConsciousnessAgentExtension— upgrade anyConsciousnessto an autonomous agent viamind.asAgent(provider: ...)AgentGoal,AgentTask,AgentDecision,AgentContext,AgentRunResult— typed data model for goal-driven executionAgentMemoryStore— inverted word index with composite scoring and LRU evictionLLMProvider(abstract) +EchoLLMProvider,MockLLMProvider,HttpLLMProvider— zero-dependency testing and OpenAI-compatible production backendsLLMCore— prompt assembly, context compression (middle-truncation), JSON parsing, token usage tracking; supports all 5 action types:use_tool,think,complete,replan,errorTool,ToolResult,ToolRegistry,ToolRouter— extensible tool systemBuiltinToolset— 6 ready-to-use tools:search_web,calculate,read_file,write_file,call_api,schedule_task_MathParser— AOT-safe recursive-descent evaluator forCalculateToolExecutionDAG— Kahn's topological sort; full task state machinepending → running → succeeded / failed / skippedPlanningEngine— LLM-backed JSON decomposition + rule-based fallback;replan()preserves succeeded tasksAgentLoopController— full autonomousobserve → retrieveMemory → plan → decide → execute → updateMemory → checkCompletecycleEnvironmentAdapter(abstract) +NullEnvironmentAdapter,MockEnvironmentAdapterAgentLoopEventbroadcast stream with 14 event typesSelfReflectionModule— 4 detectors: cascade failures, tool loop, stalled progress, thought spiral; optional LLM deep-reflection; history with LRU cap
Examples
example/basic_consciousness.dart— consciousness quick-startexample/advanced_awareness.dart— attention control, plugins, metricsexample/learning_simulation.dart— rule learning and inferenceexample/multi_modal_integration.dart— cross-modal bindingexample/autonomous_agent.dart— full agent loop with event streamexample/multi_tool_agent.dart— all 6 tools + custom tool + self-reflection
Documentation
doc/AGENT_ARCHITECTURE.md— deep-dive architecture referenceTHEORY.md— scientific foundations (GWT, binding theory, memory models)PERFORMANCE_GUIDE.md— tuning tips and benchmarks
Dependencies #
collection: ^1.17.0equatable: ^2.0.5http: ^1.2.1logging: ^1.2.0meta: ^1.9.0uuid: ^4.0.0