# GENESIS_OMEGA_RUN {run-genesis-001}
> description: Alustaa termisen Game of Life -simulaation AST-puun kautta.
> type: execution_plan
## ALLOCATE_MEMORY {step-mem-01}
> description: Varataan jaettu muistipankki 20x10 matriisille.
> command: MEMORY_CREATE
> payload: {"sizeBytes": 4096}
> export: BANK_ID
## SPAWN_SANDBOX {step-inst-01}
> description: Luodaan Cgroup-eristetty V8-moottori ja ladataan pelilogiikka.
> command: INSTANCE_CREATE
> payload: {"memoryBankId": "$BANK_ID", "safeMode": true}
> export: INST_ID
> code:
export function execute() {
const W = 20, H = 10;
for(let i=0; i<W*H; i++) {
sharedMem[i] = (Math.random() > 0.7) ? 1 : 0;
}
console.log("AST-Injektointi onnistui. Solut alustettu!");
}
## RESUME_EXECUTION {step-res-01}
> description: Vapautetaan V8-moottorin lukko CDP:n kautta.
> command: INSTANCE_RESUME
> payload: {"targetId": "$INST_ID"}
## FETCH_INITIAL_LOGS {step-log-01}
> description: Luetaan hiekkalaatikon ensimmC$iset lokitulosteet.
> command: LOG_TAIL
> payload: {"targetId": "$INST_ID", "lines": 5}