Agent NecPU — one pixel world model for display and planning, inhibitory VETO, persistent WebGL readback, time-normalized gates.
Copyright © 2026 Vakhtang Doundoua (NecPU). Licensed under CC BY-NC 4.0 — see LICENSE. · Scroll down for the simulator guide ↓
Manual override: focus left monitor — ←→↑↓Space.
A research simulator of the thermodynamic-AGI blueprint: an agent (Agent NecPU) that plays a falling-block puzzle
environment using only pixels, with an inhibitory VETO on its own motor commands. It runs as ordinary JavaScript
on a normal CPU. It is a simulation: the energy budget is modeled, and nothing here claims to be a true AGI.
Every number below is tagged where it matters:
[MEASURED] real timing from performance.now(),
[PIXELS] derived from the screen image,
[MODEL] simulated accounting (not real consumption).
Исследовательский симулятор чертежа термодинамического AGI: агент (Agent NecPU) играет в игровую
среду-головоломку с падающими блоками, используя только пиксели, с ингибиторным VETO на собственные моторные команды. Работает как обычный
JavaScript на обычном процессоре. Это симуляция: энергетический бюджет модельный, и ничто здесь не
заявляется как настоящий AGI. Важные числа помечены:
[MEASURED] реальное время из performance.now(),
[PIXELS] получено из изображения экрана,
[MODEL] смоделированный учёт (не реальное потребление).
| Button | What it does |
|---|---|
| Start Passive DEMO | Starts passive observation. The game is played by Layer A’s built-in heuristic (not by the agent) at a 175 ms gravity period; the agent only watches, builds its pixel model and measures gravity. Motor output is suspended. The agent unlocks after at least 10 s of observation and 10 line erasures seen in the pixels (row “Passive Observation”). |
| Start Agent NecPU | Disabled until the demo has unlocked it. Switches the demo heuristic OFF, sets the 200 ms gravity period, resets the agent’s world model, refills E_flux to 1.0, and lets the agent plan and issue motor commands. When the board is lost, it is reset automatically and a new generation starts. |
| Stop cognitive loop | Stops the demo or the agent (phase becomes idle) and switches the heuristic off. Pieces then only fall under gravity, nobody steers them, until game over. |
| Reset environment | Clears the board, score and lines and spawns a new piece. It does not change the phase: a running agent keeps playing. The agent’s world model is not reset and the generation counter is not incremented (only a game over during agent play does that). |
| Keyboard | Click the left monitor first, then ← → move, ↑ rotate, ↓ soft drop, Space hard drop. Manual input is outside the agent and can disturb its measurements. |
| Кнопка | Что делает |
|---|---|
| Start Passive DEMO | Запускает пассивное наблюдение. Играет встроенная эвристика Layer A (не агент) с периодом гравитации 175 мс; агент только наблюдает, строит пиксельную модель и измеряет гравитацию. Моторный выход приостановлен. Агент разблокируется после минимум 10 с наблюдения и 10 стираний линий, увиденных по пикселям (строка «Passive Observation»). |
| Start Agent NecPU | Заблокирована, пока демо её не разблокирует. Выключает демо-эвристику, ставит период гравитации 200 мс, сбрасывает модель мира агента, возвращает E_flux к 1.0 и разрешает агенту планировать и выдавать моторные команды. При проигрыше стакан сбрасывается автоматически и начинается новое поколение. |
| Stop cognitive loop | Останавливает демо или агента (фаза становится idle) и выключает эвристику. Дальше фигуры просто падают под действием гравитации, никто ими не управляет, до проигрыша. |
| Reset environment | Очищает стакан, счёт и линии и создаёт новую фигуру. Фазу не меняет: работающий агент продолжает играть. Модель мира агента не сбрасывается, счётчик поколений не увеличивается (это происходит только при проигрыше во время игры агента). |
| Клавиатура | Сначала щёлкните по левому монитору, затем ← → движение, ↑ поворот, ↓ мягкое падение, Space жёсткое падение. Ручной ввод находится вне агента и может исказить его измерения. |
| Phase (row “Cognitive Phase”) | Environment driver | Agent |
|---|---|---|
| — (idle) | None — gravity only | Off |
| Passive Epistemic Curation | Layer A demo heuristic | Observes, learns pixel model and gravity; no motor output |
| Agent NecPU Actuation | Agent NecPU (heuristic OFF) | Plans and acts; VETO and energy gating active |
The row Environment driver in the metrics panel shows this at all times, so you can always tell whether the demo or the agent is placing the pieces.
| Фаза (строка «Cognitive Phase») | Environment driver | Агент |
|---|---|---|
| — (idle) | None — gravity only | Выключен |
| Passive Epistemic Curation | Layer A demo heuristic | Наблюдает, учит пиксельную модель и гравитацию; моторного выхода нет |
| Agent NecPU Actuation | Agent NecPU (heuristic OFF) | Планирует и действует; VETO и энергетические пороги активны |
Строка Environment driver в панели метрик всегда показывает это, поэтому всегда видно, кто ставит фигуры: демо или агент.
| Row | Meaning | Where it is meaningful |
|---|---|---|
| Cognitive Phase | Current phase of the loop. | All |
| Environment driver | Who or what steers the pieces: nothing, the demo heuristic, or the agent. | All |
| Static Pixel Share [PIXELS] | Share of the whole sensor frame whose pixels did not change this frame. | Passive, Agent |
| Passive Observation | Simulated observation time versus its 10 s target, and the line erasures seen in the pixels (needs 10). | Passive (stays at its last value once the agent runs) |
| Kernel Status | Mapping invariants, stabilized (agent unlocked), or core active. | All |
| E_flux (normalized) [MODEL] | Modeled energy reserve, 0 to 1. Grows with a fixed income per millisecond and is drained by the modeled work of each frame. Below 0.6 the deep sequence search is switched off (reflex mode). | Agent (in the demo it stays near 1) |
| Frame metabolic ops [MODEL] | Modeled operations billed for the last frame: baseline, sensor pixels, and the planner work actually executed (transitions, outcome evaluations, NEXT placements). | All; planner part only in Agent |
| Landauer-floor power [MODEL] | The thermodynamic lower bound, kBT ln2 per modeled op at an assumed 300 K, divided by the reference frame time. Not the real power of your CPU; it is many orders of magnitude lower. | All |
| Measured CPU sense / plan [MEASURED] | Real time per frame spent sensing and planning, in ms (moving average). | Sense: all. Plan: Agent |
| Observed gravity period [PIXELS] | The fall period the agent has measured from the pixel track of the falling piece (median of clean one-row descents; its own soft drops are excluded). About 175 ms in the demo and 200 ms for the agent. | Passive, Agent |
| Variational F (ROI avg) [PIXELS] | Mean squared pixel prediction error inside the board area, normalized to 0..1: a sensory-surprise proxy. It is not the layout free energy the planner minimizes, and a full variational free energy is not computed. | Passive, Agent |
| Dynamic / static cells [PIXELS] | Cells of the falling body versus cells of the settled stack, as seen in the pixel model. | Passive, Agent |
| Last motor signal | The last motor command, a VETO(...) marker, a hold (no policy beats inaction), or the idle reason. | Agent (“motor suspended” in the demo) |
| Landauer ΔS≥kB ln 2 | The constant kB ln2 in J/K, the minimum entropy per erased bit. | Reference constant |
| Generation Count | Number of completed generations: a game over during agent play restarts the board and keeps the world model. | Agent |
| Spatial Memory Density [PIXELS] | Share of board pixels the agent has confirmed as stable structure. Below 15% the planner uses the reflex path only (Granite Fallback). | Passive, Agent |
| Spatial Surprise Delta | Frame-to-frame change of the pixel prediction error. | Passive, Agent |
| Lifetime Baseline Status | Simulated lifetime of the current generation versus the previous one. | Agent |
| Active Planning Depth | Deep (policy sequences), Reflex (single command), Reflex (Granite Fallback), or an idle reason such as calibrating gravity. | Agent |
| Predicted Terminal Free Energy | The planner’s predicted change in layout free energy for the best acting policy, relative to doing nothing. Negative means improvement. | Agent |
| Next Invariant Vision [PIXELS] | The NEXT piece recognized from its pixel shape (no palette lookup), or a dash. | Passive, Agent |
| Sequential Path Status | Which planning path is running (sequence planner, reflex, Granite Fallback). | Agent |
| Строка | Смысл | Где имеет смысл |
|---|---|---|
| Cognitive Phase | Текущая фаза цикла. | Все режимы |
| Environment driver | Кто или что управляет фигурами: никто, демо-эвристика или агент. | Все режимы |
| Static Pixel Share [PIXELS] | Доля пикселей всего сенсорного кадра, не изменившихся в этом кадре. | Passive, Agent |
| Passive Observation | Симулированное время наблюдения относительно цели в 10 с и число стираний линий, замеченных по пикселям (нужно 10). | Passive (после запуска агента остаётся на последнем значении) |
| Kernel Status | Mapping invariants, stabilized (агент разблокирован) или core active. | Все режимы |
| E_flux (normalized) [MODEL] | Модельный запас энергии от 0 до 1. Растёт с фиксированным притоком в миллисекунду и расходуется на модельную работу каждого кадра. Ниже 0.6 глубокий поиск последовательностей отключается (режим рефлекса). | Agent (в демо остаётся около 1) |
| Frame metabolic ops [MODEL] | Модельные операции, начисленные за последний кадр: базовые, сенсорные пиксели и реально выполненная работа планировщика (переходы, оценки исходов, размещения NEXT). | Все режимы; часть планировщика только в Agent |
| Landauer-floor power [MODEL] | Термодинамическая нижняя граница: kBT ln2 на модельную операцию при допущенных 300 K, делённая на время опорного кадра. Не реальная мощность вашего процессора: она на много порядков ниже. | Все режимы |
| Measured CPU sense / plan [MEASURED] | Реальное время кадра, потраченное на восприятие и планирование, в мс (скользящее среднее). | Sense: все режимы. Plan: Agent |
| Observed gravity period [PIXELS] | Период падения, измеренный агентом по пиксельному треку падающей фигуры (медиана чистых спусков на один ряд; собственные мягкие падения исключаются). Около 175 мс в демо и 200 мс у агента. | Passive, Agent |
| Variational F (ROI avg) [PIXELS] | Средняя квадратичная ошибка предсказания пикселей в области стакана, нормированная на 0..1: показатель сенсорного удивления. Это не свободная энергия раскладки, которую минимизирует планировщик, и полная вариационная свободная энергия не вычисляется. | Passive, Agent |
| Dynamic / static cells [PIXELS] | Клетки падающего тела и клетки осевшей кучи, как они видны в пиксельной модели. | Passive, Agent |
| Last motor signal | Последняя моторная команда, метка VETO(...), ожидание (ни одна политика не лучше бездействия) или причина простоя. | Agent («motor suspended» в демо) |
| Landauer ΔS≥kB ln 2 | Константа kB ln2 в Дж/К, минимальная энтропия на один стёртый бит. | Справочная константа |
| Generation Count | Число завершённых поколений: проигрыш во время игры агента перезапускает стакан и сохраняет модель мира. | Agent |
| Spatial Memory Density [PIXELS] | Доля пикселей стакана, подтверждённых агентом как устойчивая структура. Ниже 15% планировщик использует только путь рефлекса (Granite Fallback). | Passive, Agent |
| Spatial Surprise Delta | Изменение ошибки предсказания пикселей от кадра к кадру. | Passive, Agent |
| Lifetime Baseline Status | Симулированное время жизни текущего поколения в сравнении с предыдущим. | Agent |
| Active Planning Depth | Deep (policy sequences), Reflex (single command), Reflex (Granite Fallback) или причина простоя, например calibrating gravity. | Agent |
| Predicted Terminal Free Energy | Предсказанное планировщиком изменение свободной энергии раскладки для лучшей действующей политики относительно бездействия. Отрицательное значение означает улучшение. | Agent |
| Next Invariant Vision [PIXELS] | NEXT-фигура, распознанная по форме пикселей (без обращения к палитре), или прочерк. | Passive, Agent |
| Sequential Path Status | Какой путь планирования работает (sequence planner, reflex, Granite Fallback). | Agent |
The blueprint (README.md, mathematics.md) is a general theory. This simulator is one
small, concrete instance of it, so it has to make choices the theory leaves open, and it simplifies some parts.
The table lists them openly. Status: Instantiated = implemented as the theory describes;
Simplified = a reduced stand-in; Modeled = simulated accounting, not real; Not tested = out of scope here.
| Theory | In this simulator | Status |
|---|---|---|
| Multimodal imprint vector It | One modality only: the optical image of the game (pixels). One modality is a special case of the vector; other modalities are not simulated. | Simplified |
| Generative world model M(It, ã) | A hand-built latent model of the game mechanics (gravity at the observed period and phase, line collapse, rotation about the centroid, no wall kicks), driven by the pixel-derived map. It is given by the designer as a prior, not learned. | Simplified |
| Hebbian imprinting of recurring patterns | Partial: the pixel model confirms stable structure over time, the gravity period is estimated from observation, the NEXT piece is recognized from its shape. Learning of preferences and of the transition model is not implemented. | Simplified |
| Variational free energy F | Not computed in full. The planner uses a layout free energy F = (sealed voids)/10 + w·(stack height energy), a declared task-specific prior preference. A separate pixel prediction error is shown as “Variational F (ROI avg)”. The rule “act only if F < Θt” is preserved. | Simplified |
| Information gain ΔI > 0 | Replaced by “act only if the best policy beats inaction (ΔF < 0)”. The world is fully observable, so there is almost nothing hidden to learn about (except the NEXT piece); an explicit epistemic term is not implemented. | Simplified |
| Energy Etotal, costs ε (simulate) and Ω (act) | A modeled reserve E_flux with a fixed income and billed ops for the planner work actually executed; real CPU time is measured separately. In this game acting costs nothing physically, so the saving made by the veto is modeled, not demonstrated. | Modeled |
| Θ = f(1/Etotal) | The theory leaves f open. The simulator uses a Θt that shrinks when energy is low (more restrictive when starving); low energy also switches off the deep search. | Instantiated (a choice of f) |
| Sensorimotor loop: explore, map X → Y | The motor repertoire (4 commands) and its effects are given by the transition model; there is no random exploration phase, passive observation replaces it. The agent acts only through the Markov blanket (Layer B). | Simplified |
| Internal simulation and inhibitory VETO | Implemented end to end: policies are simulated internally and a harmful best policy is suppressed; there is no override path. | Instantiated |
| Hardware independence, about 20 W | Not tested: it runs on an ordinary CPU; the Landauer figure is a model lower bound. | Not tested |
| Scale, dimensionality, emergence of will | Not tested: a 10×20 board and a body of at most 4 cells. The simulator does not claim the emergence of will, intelligence or AGI. | Not tested |
Чертёж (README.md, mathematics.md) — общая теория. Этот симулятор — один небольшой
конкретный её пример, поэтому ему приходится делать выбор там, где теория оставляет его открытым, и упрощать
некоторые части. Таблица перечисляет их открыто. Статус: Реализовано = сделано так, как описывает
теория; Упрощено = урезанная замена; Модельное = симулированный учёт, не реальный;
Не проверяется = вне рамок этого симулятора.
| Теория | В этом симуляторе | Статус |
|---|---|---|
| Мультимодальный вектор импринта It | Одна модальность: оптическое изображение игры (пиксели). Одна модальность — частный случай вектора; другие модальности не симулируются. | Упрощено |
| Генеративная модель мира M(It, ã) | Вручную построенная латентная модель механики игры (гравитация с наблюдаемым периодом и фазой, схлопывание линий, вращение вокруг центроида, без wall kicks), работающая на карте, полученной из пикселей. Задана разработчиком как приор, не обучена. | Упрощено |
| Хеббовский импринтинг повторяющихся паттернов | Частично: пиксельная модель со временем подтверждает устойчивую структуру, период гравитации оценивается по наблюдению, NEXT-фигура распознаётся по форме. Обучение предпочтений и модели переходов не реализовано. | Упрощено |
| Вариационная свободная энергия F | Не вычисляется полностью. Планировщик использует свободную энергию раскладки F = (запертые пустоты)/10 + w·(энергия высоты стека) — объявленное предпочтение-приор, специфичное для задачи. Отдельная ошибка предсказания пикселей показана как «Variational F (ROI avg)». Правило «действовать только если F < Θt» сохранено. | Упрощено |
| Информационный прирост ΔI > 0 | Заменён правилом «действовать только если лучшая политика лучше бездействия (ΔF < 0)». Мир полностью наблюдаем, поэтому скрытого для изучения почти нет (кроме NEXT-фигуры); явного эпистемического члена нет. | Упрощено |
| Энергия Etotal, затраты ε (симуляция) и Ω (действие) | Модельный запас E_flux с фиксированным притоком и начислением операций за реально выполненную работу планировщика; реальное время процессора измеряется отдельно. В этой игре действие физически ничего не стоит, поэтому экономия от вето моделируется, а не демонстрируется. | Модельное |
| Θ = f(1/Etotal) | Теория оставляет f открытой. Симулятор использует Θt, который сжимается при низкой энергии (при голоде ограничительнее); низкая энергия также отключает глубокий поиск. | Реализовано (выбор f) |
| Сенсомоторный цикл: исследовать, строить карту X → Y | Моторный репертуар (4 команды) и его эффекты заданы моделью переходов; случайной фазы исследования нет, её заменяет пассивное наблюдение. Агент действует только через Markov blanket (Layer B). | Упрощено |
| Внутренняя симуляция и ингибиторное VETO | Реализовано целиком: политики симулируются внутри, а вредная лучшая политика подавляется; пути обхода нет. | Реализовано |
| Независимость от носителя, около 20 Вт | Не проверяется: работает на обычном процессоре; число Ландауэра — модельная нижняя граница. | Не проверяется |
| Масштаб, размерность, возникновение воли | Не проверяется: поле 10×20 и тело не более 4 клеток. Симулятор не заявляет возникновения воли, интеллекта или AGI. | Не проверяется |
No. The simulator is a minimal instance of the mechanisms of the blueprint: internal simulation of actions, an inhibitory VETO, energy-gated depth of planning, and a sensorimotor boundary (the Markov blanket), in a toy world. The simplifications narrow what is demonstrated; they do not contradict the axioms. The theory fixes the structure of the decision (simulate first, suppress what does not pay), not a particular surprise measure, world model or environment.
Нет. Симулятор — минимальный пример механизмов чертежа: внутренняя симуляция действий, ингибиторное VETO, зависимость глубины планирования от энергии и сенсомоторная граница (Markov blanket) в игрушечном мире. Упрощения сужают то, что демонстрируется, но не противоречат аксиомам. Теория фиксирует структуру решения (сначала симулировать, подавлять то, что не окупается), а не конкретную меру удивления, модель мира или среду.