← Back to the demo list
0
Orientation Reflex — Mock
orientation_reflex.js
Candidate Competition

Candidates are the FinalImage of the full set plus one template per active stimulus; the maximum relevance wins.

Image A
relevance: 0.42
Image B (winner)
relevance: 0.61
Relevance = novelty × significance; compared to the previous winner, the others “give way” by the hysteresis amount (plus a boost for “ImportantProblem” in the info-picture). Stimuli from a linked EM chain get a bonus.
Threshold OR_well_known
To start the full OR/EM cycle in Normal/Well, the winner needs samplesCount ≥ OR_well_known (default 10). In Poor the threshold does not block; for Food/Water there is a special bypass of weak semantics.
Reflex Blocking
After OR, the reflex by image is blocked for 2 pulses (OR_BLOCK_PULSES) — delay before a repeated reflex reaction.
Stimulus Buttons
Readiness for OR: a thick frame and hint “participates in the orientation reflex” while remainingActivations === 0; otherwise it shows the counter of remaining activations until the threshold.
Singing Food Circle

On OR, the winning button gets a short blue flash for one pulse (glow above and below) — see flashStimulusButtonForOnePulse in stimuls_ui.js.

Second Pass After Reply
EM waiting period: the operator’s reply stimulus does not require the OR_well_known threshold. The frame closes, the next frame opens based on the reply, and the flag OrientationReflex_resumeFullOrAfterWaitingResponse is set → on the next call the full second OR pass runs (hippocampus, awareness, EM saving, a new FO cycle) without the shortened waiting branch.