cd 'D:\1C_Labs'
ollama launch codex --config
New-Item -ItemType Directory -Force '.\logs' | Out-Null
4..15 | ForEach-Object {
$n = $_
$task = "Read AGENTS.md and all Markdown files in the workspace root. Complete lab $n only, following its methodic. Skip it if its verified .dt already exists. Create a separate 1C infobase, add test data, verify the result in 1C, export a .dt, and update the status file. If blocked, record the exact error and finish this lab. Do not ask me questions."
codex --profile ollama-launch -m 'huihui_ai/gemma-4-abliterated:12b' --ask-for-approval never exec --sandbox workspace-write --skip-git-repo-check --output-last-message ('.\logs\lab{0:D2}-result.txt' -f $n) $task 2>&1 | Tee-Object -FilePath ('.\logs\lab{0:D2}.log' -f $n)
}