← Back to the demo list
Motor and Mental Automatizms
automatizms.js · mental_automatism.js · conscience_level_*.js
Motor Automatizms: from Reflexes
After a genetic or conditional reflex fires, the open EM frame receives an action image (OD) and calls Automatizms_createAutomatizm(branchId, actionsImageId). The first automatism on the branch often becomes default; when the frame closes, the same effect goes into addUsefulnessSample (see the “Effect Continuity” demo).
Reflex → OD in the frame Motor automatism (branch + ActionImages)
Deliberate Modification in Awareness
In the awareness channel, the automatism is not bound to the initial reflex: per branch, there is a rule “stimulus → action image”, and with new condition novelty (novelty, OR context) the decision can pick a different OD or a level 2/3 path — the “reflex first → automatism next” link is not hard-coded (see about_conscience.md).
Level 1: Default Motor
stimuls_consciousness: first, search a “positive” episode / semantics, then check the branch’s default motor automatism; if usefulness is non-negative — runActionImage. This is a fast motor response without a full level 3.
Mental Automatizms: Where They Come From
Accumulated abstractions and semantic structure from episodes let the system form mental rules and store them in MentalAutomatizms. With a positive effect and a frame matching semanticStructure, MentalAutomatizms_tryCreateFromSemanticStructureRule may run (level 2 after the operator reply). At level 3, it first checks a ready mental automatism by topic/situation, then takes a shortcut via abstractions, then follows episodic and teacher branches — and only then runs the motor via the general “start with an EM frame” mechanism.
Level 3 order (simplified): default mental automatism (if it matches context) → AbstractImages_findRuleFrameMatchingContext → best episode by stimulus → teacher fallback → in all successful branches the motor runs via info_automatismWithEpisodeFeedbackAndExpireCycle. Before the motor, the “permission” of the semanticStructure frame is checked (conscience_level_3_semanticStructureFrameAllowsMotor).
Motor vs Mental
MotorMental
Action carrierActionImages, creature’s actual actionMentalActionImages, an operation in the thinking loop
StorageAutomatizms per branchMentalAutomatizms, bound to topic/situation
Role in decisionDirect start of the action engine on success at levels 1/3First a “modeling” phase (level 3), then often the same motor outcome with an EM frame
Feedback Stages (Mental Scenario)

After starting an automatism from understanding, an EM frame waits for a reply; the effect reinforces the rule.

1. Rule

Semantics + episode / mental automatism define the candidate

2. Waiting

EM frame, progress bar, operator reply

3. Reinforcement

effect → EM, automatism, abstractions