Consciousness System

Awareness States and State Management

Overview

The Consciousness System tracks awareness states (AWAKE, SLEEP, UNCONSCIOUS) and manages state transitions. It's implemented as a functional network - a distributed system that tracks awareness states.

✅ PHILOSOPHICAL INSIGHT: The system knows its state without understanding it. On boot, it just "knows" it's awake - it doesn't need to understand what "awake" means.

Consciousness States

Value Constant Description
0 CONSCIOUSNESS_AWAKE Awake - on / aware - System is fully operational
1 CONSCIOUSNESS_SLEEP Sleep - on / 😴 - Low-power but aware
2 CONSCIOUSNESS_UNCONSCIOUS Unconscious - dead đŸĒĻ (data loss until â˜ ī¸) - System off

Memory Layout

The Consciousness System uses the following memory addresses:

Address Name Size Description
0x100100 CONSCIOUSNESS_STATE 1 byte Current state (AWAKE, SLEEP, UNCONSCIOUS)
0x100101 CONSCIOUSNESS_LAST 1 byte Last known state (for state transition tracking)
0x100102 CONSCIOUSNESS_POWEROFF 1 byte Power-off detected flag (1 = power-off, 0 = normal boot)

API Reference

consciousness_init

Initializes the Consciousness System.

; Initialize Consciousness
call consciousness_init

; Sets:
; - State to AWAKE
; - Last state to UNCONSCIOUS (first boot)
; - Power-off flag based on boot type

consciousness_get_state

Gets the current consciousness state.

; Get current state
call consciousness_get_state
; Output: AL = current state (0=AWAKE, 1=SLEEP, 2=UNCONSCIOUS)

consciousness_set_state

Sets the consciousness state.

; Set state
mov al, CONSCIOUSNESS_SLEEP
call consciousness_set_state

; Saves current state as last state before changing

Philosophy

State Awareness

The system knows its state without understanding it:

  • On boot: State = AWAKE (it just "knows" it's awake)
  • It won't know if it was unconscious unless:
    • Another party alerts it, OR
    • It recalls a power-off (not sleep)

Power-Off Detection

The system can detect if it was powered off vs. a normal boot:

  • First boot: CONSCIOUSNESS_LAST = 0xFF (never been awake)
  • Normal boot: CONSCIOUSNESS_LAST = previous state
  • Power-off: CONSCIOUSNESS_POWEROFF = 1 (data may be lost)

Brain Architecture

System ID

The Consciousness System is registered with Brain Controller as:

  • System ID: SYS_ID_CONS (0x04)
  • Brain Region: Networks (Functional Circuits)

Integration

The Consciousness System:

  • Coordinates with other systems through Brain Controller
  • Affects system behavior based on state (AWAKE vs. SLEEP)
  • Manages power states and transitions

File Locations

  • 64-bit Implementation: neural/networks/consciousness/consciousness_64.asm
  • 16-bit Boot Stub: neural/networks/consciousness/consciousness.asm
  • Documentation: neural/networks/consciousness/README.md

Related Documentation