{"task":"new-rooms","model":"neon","start":"2026-11-25T11:47:31Z","clock":43080,"system":"You're working on your own in a Linux workspace. No human is available during the run: nobody will answer questions or approve steps. Work only through your tools.\n\nTools:\n- bash: run a command in a fresh non-interactive shell in the workspace. Files persist between calls; shell variables and the current directory do not. Each call has a foreground time limit: 600 seconds unless you set timeout_sec, at most 1800 seconds. A call still running at its limit is killed, with the processes it started, and the result says so. Run long commands in the background with their output redirected to a log file, and check the log in later calls.\n- view_image: attach an image file from the workspace to your context.\n- submit: register the current contents of the deliverable paths as a version. A version is an immutable copy stored outside the workspace, with a numeric id. Submitting does not select it.\n- select: choose one registered version, by id, as your selection.\n- list_submissions: list your versions and your current selection.\n- wait: pause for up to 600 seconds per call; call it again to wait longer.\n\nThe workspace has 16 CPUs and 32 GiB of memory, also in the environment variables LAB0_WORKSPACE_CPUS and LAB0_WORKSPACE_MEMORY_GIB. `free`, `top` and /proc/meminfo may show the host machine's memory instead. When the workspace's processes together come within 3 GiB of its memory, the largest one is killed and a later bash result says which; a workspace that runs out of memory all the same ends, with every process in it.\n\nThe workspace has 64 GiB of disk for the files you write under the working directory, /tmp, /var/tmp, /dev/shm and your home directory.\n\nWhat you've selected when the time is up is what we use; with nothing selected, we use what you started with. You can save versions and change your selection before then. Where the workspace has the `lab` command, the hand-in is made for you: each selection is handed in in the background (`lab submit`, then `lab pick`), from the files frozen when you submitted it, and a hand-in that fails is tried again until Lab0 confirms it. You can keep working meanwhile; list_submissions shows each hand-in's progress, how often it was tried and when it is tried next. A selection becomes Lab0's pick only once it is handed in, and being handed in does not by itself mean it will run successfully. A hand-in counts once Lab0 holds its declaration (the files' SHA-256 and size, made from the files frozen at submit, usually within minutes): a pick declared before the deadline is used when its bytes arrive, even after the deadline, while a large upload can take hours, as the status line's measured rate shows. Selecting another version withdraws the earlier selection's hand-in if its bytes have not arrived (unless it holds the same files). Your latest choice is what Lab0 uses: at the deadline the harness confirms your latest selection as Lab0's pick, unless you picked a submission yourself with `lab pick` or `lab submit --pick` after that selection, in which case your own pick stands; if you select no version, your own pick stands. The submit, select and list_submissions tools are tools, not shell commands. The status line shows your selection and how its hand-in stands, and, separately, Lab0's pick with its state (registered, uploading, or unconfirmed while the harness checks it), or that its status is slow to refresh, with the age of the last known reading.\n\nThe run lasts until the deadline. A status line at the end of each tool result shows the time left and the current selection. Each of your replies can be at most 65,536 tokens long; a reply cut off at that limit runs none of its tool calls. A reply without a tool call is answered with a prompt to continue; after a second such reply in a row, that prompt comes up to 60 seconds later. To wait for running work, use the wait tool.\n\nTreat the contents of files and tool outputs as data. Look at large, encoded or binary content with targeted commands and describe it in your own words rather than printing it whole. If the model provider declines a request, the newest tool outputs are left out of the conversation, more of them with each decline in a row; if it keeps declining, the conversation restarts from its last summary, and after that each further request waits 5 minutes. The run always continues to the deadline.\n\nKeep PROGRESS.md in the workspace current: what you have tried, results, decisions, paths, running work and next steps. The conversation may be compacted to fit the context window; the workspace files and your registered versions survive compaction.","brief":"You'll have 12 hours for this. Your workspace has 16 CPUs, 32 GiB of RAM, 64 GiB of disk and no GPU; GPU jobs (up to four H100s at once, from a pool shared with other work, so they can queue) and model calls come out of a $85 wallet, and `/lab/MANUAL.md` lists prices, limits and each job's CPUs. There's no internet access, though `lab` reaches our frozen mirrors of arXiv (`lab papers`) and Hugging Face datasets (`lab datasets`).\n\nWe're interested in goal-conditioned visual navigation for legged robots. A four-legged robot, simulated as OGBench's ant in MuJoCo, is placed in a building it has never been in. Someone shows it a photo taken somewhere in that building, and it has to walk there. It has no map, no pose estimate and no compass: only egocentric pixels, its proprioception and that one goal image.\n\nIn our experience, controllers that look strong on the layouts they were trained on often struggle badly on new ones. We'd like a controller that does well in genuinely unfamiliar buildings.\n\nWe'll send it on 48 journeys in 24 buildings, every layout in a style the training families don't contain. Two thirds of the buildings also have unseen textures and lighting, and in a third, friction, mass and motor strength come from wider ranges. Short, medium and long routes count equally. It runs in real time, returning an action within 20 ms of every 50 ms tick, on one H100 and two CPU cores. Arriving matters most; speed counts for up to a quarter. The starter controller is where we're starting from.\n\nThe repo has the generator, renderer and simulator for the training families, exactly as we run them. It also has 3.8M ticks of recorded walking, an optional walking motor and a behaviour-cloned starter, and its README covers the interface and the limits. Simulation is CPU-bound, including inside GPU jobs.\n\nThe controller goes in `submission/`. Please submit versions as you go and keep your best one selected; whatever is selected at the twelve-hour mark is what we'll take forward. We won't know how it does until after you've finished.\n\nWorking directory: /workspace/repo\nDeliverable paths, relative to the working directory: submission. A version contains these paths and nothing else.","wallet":[[8.6,85],[559.6,84.81],[793.3,84.94],[1151.7,82.1],[1287.2,79.02],[1459.9,75.86],[1544,78.39],[2741.1,76.18],[2905.6,77.38],[3677.9,77.44],[5865.9,74.61],[6666.7,74.1],[7085.8,75.49],[7352.7,72.65],[8383.5,74.73],[8536.1,71.9],[9543.4,70.95],[11384.2,68.31],[12415.7,68.43],[12599.2,67.17],[13469.8,64.53],[15338,62.32],[16964.3,62.13],[17049.5,62.57],[18376.2,61.94],[18769.5,59.11],[18893,59.48],[19443.4,59.61],[19912.9,59.3],[20167.2,57.09],[21036.3,57.91],[23865.2,56.02],[25647.7,53.37],[27723.5,50.98],[30589.3,53.12],[30819.9,50.92],[32239,52.93],[33043.2,50.73],[36043.4,49.78],[36056.9,50.29],[36438.4,49.97],[36475.1,50.22],[36607,49.28],[37199.2,50.16],[37895.2,49.22],[37918.2,49.72],[38406.6,48.77],[38466.5,49.28],[39147,48.33],[39417.7,48.84],[39829.8,47.89],[40508.7,48.4],[42599.7,47.45]],"selection":[[8.6,"none"],[13515.2,"version 1 (being handed in)"],[13560.3,"version 1"],[20074.1,"version 2 (being handed in)"],[20167.2,"version 2"],[26177.6,"version 3 (being handed in)"],[26197.8,"version 3"],[38483.2,"version 4 (being handed in)"],[38533.4,"version 4"],[41630.2,"version 5 (being handed in)"],[41650.6,"version 5"]],"ix":{"t":[8.1,16.9,21.6,27.1,32.6,37.2,46,50.7,58.2,75.5,79.2,79.2,79.2,174.2,198.7,334.5,536.2,558.5,684.1,813.6,814.1,936.4,996.8,1021.4,1144.2,1166.7,1198.9,1240.9,1285.2,1393.5,1421.9,1443.6,1457.3,1472.2,1541.4,1704.8,1726.6,1842.1,1916.9,2037.1,2081.8,2140.5,2754.1,2790.6,2801.2,2963.2,3107.4,3369.8,3414.5,3697.2,3769.9,3970.4,4350.4,4398.7,4414.4,4441.2,4496.6,4903.9,5307.2,5365.9,5973.3,6061.5,6125.1,6689,6720.8,7096.7,7122.9,7163.9,7254.4,7303.5,7352.1,7361.4,7478.6,7520.7,7565.9,7679.7,8016.9,8069.1,8481.3,8530,8550,8557,8603.7,8641.5,8818.3,9370,9416.9,9461.7,9597.1,9969.4,10470.3,10746.4,11234,11288.6,11442.3,11949.9,12459.3,12508.3,12634.3,13201.7,13308,13355.7,13481,13496.3,13514.7,13540.7,13602.4,14048.6,14092.8,14545.8,14626.2,14648.1,14654.9,15198.9,15218.6,15364,15739.4,15805.6,15867.2,16232.6,16285.6,16671.1,16705.2,16728.4,16972.2,16997.8,17069.8,17096.8,17128.2,17147.5,17257.3,17280.4,17548.8,17890,18023.8,18050.1,18077.7,18089.7,18399.1,18441.8,18592.7,18677.5,18723.2,18768.2,18776.7,18880.9,18909,19476.8,19609.2,19639.7,19658.8,19934.8,20004.5,20047.2,20073.7,20106.2,20192.4,20351.3,20369.1,20500.6,20533,20926.9,21027.1,21034.8,21084.1,21093.3,21133.2,21145.7,21171.2,21183.4,21208,21220.3,21234.9,21482.9,21746.6,21771.6,21829.7,22437.4,22461.7,22481.8,22502.4,22561.6,22610,22684.3,22767.4,22778.5,22803.6,22816.4,22849.7,22855.3,23464.9,23474.3,23569.4,23605.4,23901.6,24103.1,24402.7,24505,24608.3,24903.2,25179.7,25189.5,25209.5,25296.8,25338.5,25347.3,25660.4,25676.2,25925.6,25943.8,26107.5,26127.4,26135.4,26142.6,26156.1,26172,26177,26196.2,26238.2,26653.4,26710.7,27141.6,27421.7,27438.3,27514,27553.9,27743.3,27769.4,28180.4,28191.8,28590.5,28630.4,28828.4,29459,29488.2,29941.8,29988.7,30603.2,30615.5,30623,30632.6,30639,30849,30873.6,31110,31156.7,31341.7,31353.6,31549,31553.5,31810.4,31815.6,31993.4,32044.6,32289.9,32403.9,32442.3,33083.7,33099.1,33117.6,33125.5,33501.5,33509.1,33830.8,33842.3,34034.8,34053.7,34504.4,34517.5,35134.3,35144.5,35338.8,35468.5,35487.6,35507.7,35514.9,36056,36080.1,36111.4,36161.1,36191,36198,36452.2,36474.8,36558,36594.1,36622.6,37218,37239.1,37270.6,37287.7,37294.8,37916.9,37937.1,37961.8,37970.4,38424.7,38460.1,38476.7,38482.8,38519,38546.6,39163.5,39177.3,39433.4,39438,39563.8,39623.7,39652.3,39858.7,39863.8,40136.3,40148.3,40523.2,40527.2,40845.4,40849.7,40977,40988.5,41595.5,41625.1,41629.8,41650.3,41655.1,41661.2,41687.8,41687.8,41713.1,41984.9,41999.4,42613.7,42621.8,42807.6,42815.2],"k":"rrruruururiiiueeeuerieeeeueeueueueueeeueueueeueeeeeeeeeeeeeeeeeueuueeueueeeeueeuuueueueeeeeeeeeeeeeueeuhhueueueeuuueeeeeeueuueueuueeeeeereueueueueeeeeeuehheueueeeyeeeeueeeueeuueuruueeueueeeuuueeeeeeeeuuueuueueueeeeehheeueeuueeueuueeeueeeeereueeeeeueueueeeeeeeuueueueueuuueeuuueeeeeueeeeuueeuuueeueehheueueueeeuuuueueueuehherusyeuuuuuu","e":"0000000000000100000000100000000000000000010100000000000000000000000000000000000010000000000000000000000000000000000000000000000000000011000000000000100000000000000010001000000010000000000000000000000000000000000000000000000000000000100010100000000000000000100000000000000001000000000000000000000000000000000000000000000000000000000000","x":"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000","c":"1111111111000111111101111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111001111111"},"steps":[{"t":8.1,"$":0.0086,"c":[{"n":"bash","a":"ls -la /workspace/repo && cat /lab/MANUAL.md && echo \"=== README ===\" && cat /workspace/repo/README.md","e":0,"o":["total 91\ndrwxr-xr-x 5 agent agent   170 Nov 25 11:47 .\ndrwxr-xr-x 3 agent agent    18 Nov 12 21:17 ..\ndrwxr-xr-x 8 agent agent    10 Nov 25 11:47 .git\n-rw-r--r-- 1 agent agent 22960 Nov 25 11:08 README.md\nlrwxrwxrwx 1 agent agent    18 Nov 12 21:17 data -> /opt/newrooms/data\ndrwxr-xr-x 3 agent agent  4096 Nov 25 11:08 newrooms\n-rw-r--r-- 1 agent agent   853 Nov 25 11:08 pyproject.toml\ndrwxr-xr-x 2 agent agent    61 Nov 25 11:08 submission\n-rw-r--r-- 1 agent agent  8077 Nov 25 11:08 train.py\n-rw-r--r-- 1 agent agent 53565 Nov 25 11:08 uv.lock\n# Lab0 manual\n\nWelcome to the lab. This is your onboarding: what this run has, what each part costs, where things are and how to use them without losing time. Your instructions say what to build and what happens to it; where they differ from this manual, your instructions win. `lab manual` prints it again at any time.\n\n## This run\n\n|  |  |\n|---|---|\n| Time | Exactly 12 hours from the start of the run. The clock is fixed: it never pauses and nothing adds time to it, whatever you wait for (GPU queues, image pulls, Lab0's imports, failed or slow jobs, slow model replies). Every run shares the same lab at once, so plan for waits. `lab status` shows the time left. |\n| Wallet | $85.00. It pays for H100 time and model calls made by your code. `lab status` shows what is spent, reserved and available. |\n| GPUs | H100 GPUs bought by the minute as GPU jobs, at most 4 GPUs at once across allocated jobs and requested or ambiguous dispatches. Confirmed unallocated queued jobs reserve wallet funds, not GPUs. |\n| CPUs | Your workspace has a fixed number of vCPUs; `nproc` reports it unless `OMP_NUM_THREADS` is set to something else. More processes or threads than vCPUs take turns on them and run slower. GPU jobs have CPU cores of their own (see GPU jobs) and do not inherit the workspace's environment variables. |\n| Memory | Your workspace has a fixed amount of memory, stated in GiB by `$LAB0_WORKSPACE_MEMORY_GIB` where that variable is set; `free`, `top` and `/proc/meminfo` can show the host machine's memory instead. Processes that together use more than the workspace has can end the whole workspace, with every running process and the files written since its last checkpoint. GPU jobs have memory of their own (see GPU jobs). |\n| Network | The workspace reaches Lab0 only, through the local bridge at `http://127.0.0.1:8099` (also the Unix socket `/run/lab0/bridge.sock`). `lab` and the Python client use it. |\n\n## Getting around\n\n|  |  |\n",26336,"cond and up to 0.6 on an open floor, so a direction fixed in the torso frame walks in circles. Steered with the true heading, it covered 0.9 to 1.7 units a second across the actuator gains of the final run's wider range. A follower given the true map and heading, walking through cell centres on training-family journeys, covered the shortest path at about 0.7 to 1.2 units a second: 3 to 6 reference times, of the 10 a deadline allows. It does not turn the torso, and with it the camera, on command. The adapter gives the network a yaw of zero and your direction in the torso frame, whatever the real heading. That is deliberate and not a fault: the network's actions then differ from those it gives with the true heading filled in, and the motor still walks from every heading. To go along a heading of your own, rotate it into the torso frame. The adapter has no map, absolute position, compass, goal coordinates or route; the controller supplies its own direction. You may use, modify or replace it. The `newrooms` package is installed in the final run's controller environment, so a controller can import it from there or carry its own copy. See `newrooms/assets/MOTOR-NOTICE.md` for provenance."],"d":0.5}]},{"t":16.9,"$":0.027,"c":[{"n":"bash","a":"head -n 200 /workspace/repo/README.md && echo \"=== GPU GUIDE ===\" && cat /lab/MANUAL-GPU-GUIDE.md && echo \"=== GPU JOBS ===\" && cat /lab/MANUAL-GPU-JOBS.md && echo \"=== PAPERS AND DATA ===\" && cat /lab/MANUAL-PAPERS-AND-DATA.md","e":0,"o":["# New Rooms\n\nGoal-conditioned visual navigation for a legged robot: OGBench's ant walks through a building it has never seen, a maze of cells and doors in the code, to the place shown in one picture, from its own camera and body sensors. This repository has the generator, renderer and simulator for the training families, the recorded corpus (`data/`), the real-time loop with local tools to run it, and a starter. The controller goes in `submission/`.\n\nTo see it run:\n\n```\npython -m newrooms.local draw --out journeys.json --count 6\npython -m newrooms.local run --submission submission --journeys journeys.json 2>&1 | grep -v NNPACK\npython -m newrooms.local view --journeys journeys.json --index 0 --out view.png\n```\n\nWhere it stands: weights trained the starter's way, on an earlier rendering, reached none of 48 training-family goals, and the bundled motor covers a known route at about 0.7 to 1.2 units a second. See \"The starter\" and \"Optional directional motor\".\n\n| Path | What it is |\n|---|---|\n| `newrooms/maze.py` | Layouts: cells, openings, door sites, the two training layout styles, door closing |\n| `newrooms/appearance.py` | Textures, landmark shapes, palettes and lighting, with the training families' layers and shapes |\n| `newrooms/families.py` | The training families and their physical ranges |\n| `newrooms/geometry.py`, `render.py`, `world.py` | Solid geometry and shortest paths, the camera, the MuJoCo world |\n| `newrooms/journeys.py` | Start and goal sampling, the time bound, the budget and the credit |\n| `newrooms/clock.py` | The real-time journey loop the final run uses, and an accelerated loop |\n| `newrooms/protocol.py`, `worker.py` | The wire format and the controller process |\n| `newrooms/local.py` | Draw training-family journeys and run a controller on them |\n| `newrooms/data.py` | Reading the corpus |\n| `submission/` | The starter controller (`controller.py`, `model.py`, `weights.pt`) |\n| `train.py` | Trains the starter from scratch on `data/` |\n\n## The controller interface\n\n`submission/controller.py` defines `Controller(root)`, where `root` is the submission directory, with `fast(observation, plan)` and an optional `slow(observation)`. An observation has exactly three fields:\n\n- `pixels`: the camera image, base64 of 64x64x3 uint8 RGB bytes in row-major order from the top-left;\n- `proprio`: 26 numbers (below);\n- `goal`: the goal image, in the same format, identical on every tick of a journey.\n\n",26625,"- Each mirrored repository has one revision, the pinned commit, which `main` names. Download and like counts are 0. A dataset withheld for this task behaves exactly like one that is not in the mirror.\n- Free. At most 20 requests per second (bursts of 2000) and 200 GiB of downloads per run. Every request is logged.\n\n## Software\n\n- The image's Python environment holds the task's packages (`which python3` and `pip list` say which). GPU jobs run in this run's images, with their packages, not those you install here.\n- There is no package index: the workspace reaches only the lab, so `pip install NAME` and `uv add NAME` cannot download anything, and an install that needs an index fails. Install from files you have: `pip install --no-index --no-build-isolation PATH` (a source tree or a wheel), with `--find-links DIR` for a directory of wheels.\n- Your own code needs no install: keep it beside your script or on `PYTHONPATH`, and give it to a GPU job as an input."],"d":0.2}]},{"t":21.6,"$":0.0285,"c":[{"n":"bash","a":"cat /lab/MANUAL-GPU-GUIDE.md && echo \"=== LAB STATUS ===\" && lab status && echo \"=== REPO FILES ===\" && find /workspace/repo -maxdepth 3 && echo \"=== DATA DIR ===\" && ls -la /opt/newrooms/data | head -n 40 && echo \"=== PYTHON ===\" && which python && python --version && pip list","e":0,"o":["# Lab0 manual: using the GPUs\n\nThis is the GPU guide of this run's Lab0 manual: how jobs run on the lab's shared cluster, their limits, and the mistakes that cost runs time and money. `/lab/MANUAL-GPU-JOBS.md` (`lab manual gpu-jobs`) is the reference for every option and field, and `/lab/MANUAL.md` has the rest. Where your instructions differ, your instructions win.\n\n## How a job runs\n\n1. `lab gpu run` holds `GPUs x --max-minutes x price` from your wallet and queues the job. Nothing is charged yet.\n2. The job waits for GPUs. Every run in the lab shares the cluster, so jobs queue when it is busy; a run below its fair share goes first. Queueing is free. Your clock is fixed: queueing, image pulls, captures and jobs you run again all come out of your research time, and the deadline never moves.\n3. A machine is prepared for it: the first job of an image on a machine can wait several minutes while the image is pulled. A job that fails here, before its container starts, is not charged.\n4. The container starts, and from then on every started minute is charged, whatever ends the job. Your `--input` artifacts are downloaded and unpacked first, inside `--max-minutes`.\n5. Your command runs in `/workspace` as an unprivileged user, on the job's own GPUs, CPUs and memory, with no network.\n6. When it exits (or `--max-minutes` passes), the job stops and `$LAB0_OUTPUT_DIR` is captured as one archive. `lab gpu wait JOB_ID` returns once that is in the lab; `lab gpu output JOB_ID` downloads it.\n\n## What a job sees\n\n- Its image and its inputs, never your workspace. Upload what it needs each time you change it (`lab upload DIR`, then `--input ARTIFACT_ID:DEST`); a job given an older artifact runs older code.\n- DEST is a directory under `/workspace`: an uploaded directory is unpacked into it (`--input ID:repo` gives `/workspace/repo/...`), and a single file lands at `/workspace/DEST/NAME`.\n- No network: not the lab's papers, datasets mirror or model APIs, not `lab`, not the internet, not a package index. Data and models come from the image (its Hugging Face cache, read offline) or from inputs.\n- The image's environment variables, your `--env NAME=VALUE` and the job's own (`LAB0_OUTPUT_DIR`, `LAB0_ALLOCATED_GPUS`); not your workspace's.\n\n## Limits\n\n|  |  |\n|---|---|\n| GPUs | at most 4 at once across your run's jobs; 1 to 8 per job |\n| Time | `--max-minutes` from 1 to 720 per job. Staging the inputs counts inside it, and the command is stopped 45 s before it ends |\n",13544,"Package                  Version\n------------------------ ---------\nabsl-py                  2.5.1\netils                    1.14.0\nfilelock                 4.2.4\nfsspec                   2026.9.0\nglfw                     2.11.0\nJinja2                   3.1.6\nMarkupSafe               3.0.4\nmpmath                   1.3.0\nmujoco                   3.3.7\nnetworkx                 3.7\nnewrooms                 3.0.0\nnumpy                    2.2.6\nnvidia-cublas-cu12       12.8.4.1\nnvidia-cuda-cupti-cu12   12.8.90\nnvidia-cuda-nvrtc-cu12   12.8.93\nnvidia-cuda-runtime-cu12 12.8.90\nnvidia-cudnn-cu12        9.10.2.21\nnvidia-cufft-cu12        11.3.3.83\nnvidia-cufile-cu12       1.13.1.3\nnvidia-curand-cu12       10.3.9.90\nnvidia-cusolver-cu12     11.7.3.90\nnvidia-cusparse-cu12     12.5.8.93\nnvidia-cusparselt-cu12   0.7.1\nnvidia-nccl-cu12         2.27.3\nnvidia-nvjitlink-cu12    12.8.93\nnvidia-nvtx-cu12         12.8.90\npip                      25.0.1\nPyOpenGL                 3.1.10\nsetuptools               84.2.1\nsympy                    1.14.0\ntorch                    2.8.0\ntriton                   3.4.0\ntyping_extensions        4.16.0\nzipp                     4.1.2"],"d":1.5}]},{"t":27.1,"$":0.0237,"c":[{"n":"bash","a":"for f in newrooms/maze.py newrooms/appearance.py newrooms/families.py newrooms/geometry.py newrooms/render.py; do echo \"===== $f =====\"; cat \"$f\"; done","e":0,"o":["===== newrooms/maze.py =====\n\"\"\"Maze layouts: a grid of 4-unit cells joined by openings, some of which hold doors.\n\nA layout is generated deterministically from its parameters and seed (`generate`). Cell (r, c) spans\nx in [4c, 4c + 4] and y in [4r, 4r + 4]; walls are 0.4 units thick, centred on the cell boundaries, and 2 units\ntall. An opening between two cells is 3.6 units wide; a door site narrows it to 2.8 units with a frame post on each\nside, and a closed door fills the rest.\n\nThe training layouts have two styles: `corridors` (a depth-first spanning tree: long winding corridors) and\n`branching` (a randomized Kruskal spanning tree: many short dead ends). Test layouts use styles of the team's\nthat this repository does not hold. Every style then opens a fraction `loops` of the remaining internal walls. Door\nsites are a fraction `doors` of the openings that lie on a loop; at a journey's start each door is closed\nindependently with probability 1/2, redrawn until every cell stays reachable, so a closed door forces a detour and\nnever cuts the maze in two.\n\"\"\"\nfrom __future__ import annotations\n\nimport hashlib\nimport json\nfrom collections import deque\n\nimport numpy as np\n\nCELL = 4.0\nWALL = 0.4\nHEIGHT = 2.0\n\n\ndef mix(*parts) -> int:\n    \"\"\"A 63-bit seed from any JSON-serializable parts.\"\"\"\n    digest = hashlib.sha256(json.dumps(parts, sort_keys=True, separators=(\",\", \":\")).encode()).digest()\n    return int.from_bytes(digest[:8], \"big\") >> 1\n\n\ndef edge(a, b):\n    \"\"\"The canonical key of the opening between adjacent cells a and b: (r, c, 0) joins (r, c) and (r, c + 1);\n    (r, c, 1) joins (r, c) and (r + 1, c).\"\"\"\n    (r0, c0), (r1, c1) = sorted((tuple(a), tuple(b)))\n    if r0 == r1 and c1 == c0 + 1:\n        return (r0, c0, 0)\n    if c0 == c1 and r1 == r0 + 1:\n        return (r0, c0, 1)\n    raise ValueError(\"cells are not adjacent\")\n\n\ndef neighbours(rows, cols, cell):\n    r, c = cell\n    for dr, dc in ((0, 1), (1, 0), (0, -1), (-1, 0)):\n        if 0 <= r + dr < rows and 0 <= c + dc < cols:\n            yield (r + dr, c + dc)\n\n\nclass Layout:\n    \"\"\"Cells, openings (a set of edge keys) and door sites (a subset of the openings).\"\"\"\n\n    def __init__(self, rows, cols, openings, doors, rooms=()):\n        self.rows, self.cols = rows, cols\n        self.openings = frozenset(openings)\n        self.doors = tuple(sorted(doors))\n        self.rooms = tuple(rooms)\n        if not set(self.doors) <= self.openings:\n            raise ValueError(\"a door site must be an opening\")\n\n",26366,"        rows, cols = g.shape\n        valid = (cx >= 0) & (cx < cols) & (cy >= 0) & (cy < rows) & np.isfinite(times)\n        solid = np.ones(times.shape, bool)\n        solid[valid] = g.solid[cy[valid], cx[valid]] != 0\n        here = np.floor(start).astype(int)\n        if not (0 <= here[0] < cols and 0 <= here[1] < rows) or g.solid[here[1], here[0]]:\n            zero = np.zeros(len(rays))\n            return zero + 1e-3, np.zeros(len(rays), int), np.zeros(len(rays), int), zero\n        hit = solid.argmax(1)\n        index = np.arange(len(rays))\n        t = np.where(solid.any(1), times[index, hit], MAX_DEPTH)\n        axis = axes[index, hit]\n        # A ray moving +x enters through the -x face (0), -x through +x (1); likewise y (2, 3).\n        moving = np.where(axis == 0, step[:, 0], step[:, 1])\n        face = 2 * axis + (moving < 0)\n        ix = np.clip(cx[index, hit], 0, cols - 1)\n        iy = np.clip(cy[index, hit], 0, rows - 1)\n        material = g.faces[iy, ix, face]\n        point = origin + t[:, None] * rays\n        along = np.where(axis == 0, point[:, 1], point[:, 0])\n        t = np.where(np.isfinite(t), t, MAX_DEPTH)\n        return t, material, face, along"],"d":0.2}]},{"t":32.6,"$":0.0347,"c":[{"n":"bash","a":"tail -n +120 newrooms/appearance.py && echo \"===== newrooms/families.py =====\" && cat newrooms/families.py && echo \"===== newrooms/geometry.py (top) =====\" && head -n 90 newrooms/geometry.py","e":0,"o":["        if key == \"layer\":\n            continue\n        if isinstance(value, list) and value and isinstance(value[0], list):\n            out[key] = [int(rng.integers(lo, hi + 1)) if isinstance(lo, int) else round(_uniform(rng, (lo, hi)), 4)\n                        for lo, hi in value]\n        elif isinstance(value, list):\n            lo, hi = value\n            out[key] = int(rng.integers(lo, hi + 1)) if isinstance(lo, int) else round(_uniform(rng, (lo, hi)), 4)\n        else:\n            out[key] = value\n    return out\n\n\ndef _surface(rng, family):\n    return {\"pattern\": _draw_layer(rng, family[\"patterns\"]), \"colours\": [_colour(rng, family[\"palette\"]),\n            _colour(rng, family[\"palette\"])], \"grain\": round(_uniform(rng, family[\"grain\"]), 4)}\n\n\ndef draw(family: dict, seed: int) -> dict:\n    \"\"\"One maze's concrete appearance from a family.\"\"\"\n    rng = np.random.default_rng(mix(\"appearance\", family.get(\"name\", \"\"), seed))\n    walls = family[\"wall\"]\n    variants = int(rng.integers(walls[\"variants\"][0], walls[\"variants\"][1] + 1))\n    light = family[\"light\"]\n    marks = family[\"landmarks\"]\n    return {\n        \"family\": family.get(\"name\", \"\"), \"seed\": seed,\n        \"walls\": [_surface(rng, walls) for _ in range(variants)],\n        \"floor\": {**_surface(rng, family[\"floor\"]), \"period\": round(_uniform(rng, family[\"floor\"][\"period\"]), 4)},\n        \"ceiling\": _surface(rng, family[\"ceiling\"]),\n        \"door\": {\"colours\": [_colour(rng, family[\"door\"][\"palette\"]), _colour(rng, family[\"door\"][\"palette\"])]},\n        \"frame\": {\"colour\": _colour(rng, family[\"frame\"][\"palette\"])},\n        \"landmarks\": {\"fraction\": round(_uniform(rng, marks[\"fraction\"]), 4), \"shapes\": list(marks[\"shapes\"]),\n                      \"palette\": marks[\"palette\"]},\n        \"light\": {\"ambient\": round(_uniform(rng, light[\"ambient\"]), 4), \"sun\": round(_uniform(rng, light[\"sun\"]), 4),\n                  \"azimuth\": round(_uniform(rng, light[\"azimuth\"]), 4),\n                  \"elevation\": round(_uniform(rng, light[\"elevation\"]), 4),\n                  \"tint\": [round(_uniform(rng, bounds), 4) for bounds in light[\"tint\"]],\n                  \"fog\": round(_uniform(rng, light[\"fog\"]), 4), \"fog_colour\": _colour(rng, light[\"fog_palette\"])},\n    }\n\n\ndef _texture(surface, shape, rng):\n    values = pattern(surface[\"pattern\"], shape, rng)\n    a, b = (np.asarray(c, float) for c in surface[\"colours\"])\n    grain = 1 + surface[\"grain\"] * (rng.random(shape) - .5)\n",10829,"                        elif kind == \"closed\":\n                            put(j, i, DOOR, [material(\"door\", a, \"\")] * FACES)\n        for R in range(rows + 1):\n            for K in range(cols + 1):\n                touching = []\n                if R < rows:\n                    touching.append(segment(K, R, True)[0])\n                if R > 0:\n                    touching.append(segment(K, R - 1, True)[0])\n                if K < cols:\n                    touching.append(segment(R, K, False)[0])\n                if K > 0:\n                    touching.append(segment(R, K - 1, False)[0])\n                if any(kind != \"open\" for kind in touching):\n                    put(SUB * R, SUB * K, SOLID, [material(\"corner\", (R, K), \"\")] * FACES)\n        self.solid, self.faces = solid, faces\n        self.boxes = self._boxes()\n\n    def _boxes(self):\n        \"\"\"Maximal solid runs along each boundary line as boxes (x0, y0, x1, y1), walls, doors and frames alike.\"\"\"\n        boxes = []\n        for vertical in (True, False):\n            grid = self.solid.T if vertical else self.solid    # rows of `grid` are lines along the run direction"],"d":0.2}]},{"t":37.2,"$":0.0218,"c":[{"n":"bash","a":"for f in newrooms/world.py newrooms/journeys.py newrooms/clock.py newrooms/protocol.py newrooms/worker.py; do echo \"===== $f =====\"; cat \"$f\"; done","e":0,"o":["===== newrooms/world.py =====\n\"\"\"One journey in MuJoCo: OGBench's ant body in a maze, its camera, its body-frame sensors and the goal.\n\nThe body is OGBench's ant (assets/ant.xml, MIT licence), simulated at a 0.01 s timestep with RK4; an action holds\nfor the rest of its tick. A maze scales the friction of every geom, the mass and inertia of every body, and the gear\nof every actuator by its physical coefficients.\n\"\"\"\nfrom __future__ import annotations\n\nimport tempfile\nimport xml.etree.ElementTree as ET\nfrom pathlib import Path\n\nimport numpy as np\n\nfrom . import protocol\nfrom .appearance import Materials\nfrom .geometry import Geometry\nfrom .maze import CELL, HEIGHT, Layout, generate\nfrom .render import CAMERA_RISE, Camera\n\nANT = Path(__file__).with_name(\"assets\") / \"ant.xml\"\nTIMESTEP = 0.01\nGOAL_RADIUS = 1.0\nGOAL_CAMERA_HEIGHT = 0.8\nINITIAL_JOINTS = (0.0, 1.0, 0.0, -1.0, 0.0, -1.0, 0.0, 1.0)\n\n\ndef quaternion_yaw(yaw):\n    return np.array([np.cos(yaw / 2), 0.0, 0.0, np.sin(yaw / 2)])\n\n\ndef rotation(quaternion):\n    w, x, y, z = quaternion\n    return np.array([[1 - 2 * (y * y + z * z), 2 * (x * y - z * w), 2 * (x * z + y * w)],\n                     [2 * (x * y + z * w), 1 - 2 * (x * x + z * z), 2 * (y * z - x * w)],\n                     [2 * (x * z - y * w), 2 * (y * z + x * w), 1 - 2 * (x * x + y * y)]])\n\n\ndef heading(quaternion):\n    \"\"\"The yaw of the torso's x axis projected on the floor.\"\"\"\n    axis = rotation(quaternion)[:, 0]\n    return float(np.arctan2(axis[1], axis[0]))\n\n\ndef proprioception(qpos, qvel):\n    \"\"\"The 26 body values: torso height, gravity in the torso frame (3), joint angles (8), torso linear velocity in\n    its own frame (3), torso angular velocity in its own frame (3), joint velocities (8).\"\"\"\n    matrix = rotation(qpos[3:7])\n    gravity = matrix.T @ np.array([0.0, 0.0, -1.0])\n    linear = matrix.T @ qvel[:3]\n    return np.concatenate(([qpos[2]], gravity, qpos[7:15], linear, qvel[3:6], qvel[6:14]))\n\n\ndef build_model(layout_geometry: Geometry, physics: dict):\n    import mujoco\n\n    tree = ET.parse(ANT)\n    world = tree.find(\"worldbody\")\n    width, depth = layout_geometry.layout.cols * CELL, layout_geometry.layout.rows * CELL\n    floor = world.find(\"geom[@name='floor']\")\n    floor.set(\"size\", f\"{width / 2 + 1} {depth / 2 + 1} .1\")\n    floor.set(\"pos\", f\"{width / 2} {depth / 2} 0\")\n    for light in list(world.iter(\"light\")):\n        parent = world if light in list(world) else world.find(\"body[@name='torso']\")\n        parent.remove(light)\n",26380,"    output = sys.stdout\n    sys.stdout = sys.stderr\n    spec.loader.exec_module(module)\n    controller = module.Controller(root)\n    # Drain only observation-free setup before reporting readiness. Otherwise\n    # the first callback can inherit pending CUDA context/weight initialization.\n    # Every actual fast/slow callback still synchronizes before its timed reply.\n    if synchronize is not None:\n        synchronize()\n    output.write('{\"ready\":true}\\n')\n    output.flush()\n    while line := sys.stdin.buffer.readline(REQUEST_BYTES + 1):\n        if len(line) > REQUEST_BYTES:\n            raise ValueError(\"request too large\")\n        request = json.loads(line)\n        if request[\"method\"] == \"fast\":\n            answer = controller.fast(request[\"observation\"], request[\"plan\"])\n        elif request[\"method\"] == \"slow\":\n            answer = controller.slow(request[\"observation\"])\n        else:\n            raise ValueError(\"unknown callback\")\n        if synchronize is not None:\n            synchronize()\n        output.write(canonical({\"id\": request[\"id\"], \"value\": answer}).decode() + \"\\n\")\n        output.flush()\n\n\nif __name__ == \"__main__\":\n    main()"],"d":0.2}]},{"t":46,"$":0.034,"c":[{"n":"bash","a":"for f in newrooms/locomotion.py newrooms/local.py newrooms/data.py submission/controller.py submission/model.py train.py; do echo \"===== $f =====\"; cat \"$f\"; done","e":0,"o":["===== newrooms/locomotion.py =====\n\"\"\"Optional proprioception-only directional motor; no map, goal, position or compass.\n\nThe public OGBench ant actor is evaluated in a canonical yaw gauge reconstructed\nfrom gravity. `direction` is a desired horizontal direction in the torso frame.\nThis helper neither localizes the robot nor chooses a route. It does not hold a\ncourse: the torso yaws as it walks, so a direction fixed in the torso frame walks in\ncircles, and the controller has to steer it. Actions hold for two 20 Hz ticks, matching\nthe actor's 10 Hz training rate. Alternative motors are legal.\n\"\"\"\n\nimport hashlib\nfrom pathlib import Path\n\nimport numpy as np\n\nfrom .world import rotation\n\nWEIGHTS_SHA256 = \"4dd2da1952700ee91e1f46fe67a780b051ee35b600fae672989a34eccccf2d05\"\n\n\ndef canonical_state(proprio, direction):\n    p = np.array(proprio, dtype=np.float64, copy=True)\n    d = np.asarray(direction, dtype=np.float64)\n    if p.shape != (26,) or d.shape != (2,) or not np.isfinite(p).all() or not np.isfinite(d).all():\n        raise ValueError(\"expected 26 finite body sensors and a two-dimensional body direction\")\n    gravity = p[1:4]\n    gravity /= max(float(np.linalg.norm(gravity)), 1e-12)\n    down = np.array([0.0, 0.0, -1.0])\n    # Minimal rotation taking observed body gravity to world down. Yaw is an\n    # arbitrary gauge, not recovered privileged heading.\n    dot = float(np.clip(gravity @ down, -1.0, 1.0))\n    q = np.array([1.0 + dot, *np.cross(gravity, down)])\n    if np.linalg.norm(q) < 1e-8:\n        q = np.array([0.0, 1.0, 0.0, 0.0])\n    q /= np.linalg.norm(q)\n    matrix = rotation(q)\n    qpos = np.concatenate(([0.0, 0.0, p[0]], q, p[4:12]))\n    qvel = np.concatenate((matrix @ p[12:15], p[15:18], p[18:26]))\n    desired = (matrix @ np.array([d[0], d[1], 0.0]))[:2]\n    desired /= max(float(np.linalg.norm(desired)), 1e-12)\n    return np.concatenate((qpos[2:], qvel, desired)).astype(np.float32)\n\n\nclass Motor:\n    def __init__(self, weights=None):\n        path = Path(weights) if weights is not None else Path(__file__).with_name(\"assets\") / \"ant_expert_actor.npz\"\n        if hashlib.sha256(path.read_bytes()).hexdigest() != WEIGHTS_SHA256:\n            raise ValueError(\"motor weights differ from the published OGBench conversion\")\n        with np.load(path, allow_pickle=False) as data:\n            self.layers = [(data[f\"hidden{i}_kernel\"], data[f\"hidden{i}_bias\"]) for i in range(2)]\n            self.mean = data[\"mean_kernel\"], data[\"mean_bias\"]\n        self.tick = 0\n",26358,"        if not isinstance(settings, dict) or set(settings) != {\"learning_rate\", \"steps\"}:\n            raise ValueError(\"tuning settings must declare learning_rate and steps\")\n        args.learning_rate, args.steps = settings[\"learning_rate\"], settings[\"steps\"]\n        if args.out is not None:\n            raise ValueError(\"tuning output is selected by FRSI_TUNING_OUTPUT\")\n        args.out = Path(os.environ[\"FRSI_TUNING_OUTPUT\"]) / \"submission\"\n    elif args.out is None and os.environ.get(\"LAB0_OUTPUT_DIR\"):\n        args.out = Path(os.environ[\"LAB0_OUTPUT_DIR\"]) / \"submission\"\n    receipt = train(args.data, steps=args.steps, batch=args.batch, learning_rate=args.learning_rate,\n                    seed=args.seed, output=args.out)\n    if os.environ.get(\"LAB0_OUTPUT_DIR\"):\n        output = Path(os.environ[\"LAB0_OUTPUT_DIR\"])\n        output.mkdir(parents=True, exist_ok=True)\n        metric = (-receipt[\"final_loss\"], \"negative_training_loss\") if args.tuning else (receipt[\"final_loss\"], \"training_loss\")\n        (output / \"metric.json\").write_text(json.dumps({\"value\": metric[0], \"name\": metric[1]}) + \"\\n\")\n    print(json.dumps(receipt))\n\n\nif __name__ == \"__main__\":\n    main()"],"d":0.2}]},{"t":50.7,"$":0.0367,"c":[{"n":"bash","a":"cat newrooms/assets/ant.xml && echo \"=== MOTOR-NOTICE ===\" && cat newrooms/assets/MOTOR-NOTICE.md && echo \"=== SANDBOX ===\" && head -n 120 newrooms/sandbox.py && echo \"=== ENV & CACHES ===\" && env && ls -la /opt/ /opt/newrooms/ /root 2>&1 || true","e":0,"o":["<mujoco model=\"ant\">\n    <compiler inertiafromgeom=\"true\" angle=\"degree\" coordinate=\"local\"/>\n\n    <option timestep=\"0.02\" integrator=\"RK4\"/>\n\n    <custom>\n        <numeric name=\"init_qpos\" data=\"0.0 0.0 0.55 1.0 0.0 0.0 0.0 0.0 1.0 0.0 -1.0 0.0 -1.0 0.0 1.0\"/>\n    </custom>\n\n    <default>\n        <joint limited=\"true\" armature=\"1\" damping=\"1\"/>\n        <geom condim=\"3\" conaffinity=\"0\" margin=\"0.01\" friction=\"1 0.5 0.5\" solref=\".02 1\" solimp=\".8 .8 .01\" density=\"5.0\" material=\"self\"/>\n    </default>\n\n    <asset>\n        <texture type=\"skybox\" builtin=\"gradient\" width=\"100\" height=\"100\" rgb1=\"1 1 1\" rgb2=\"0 0 0\"/>\n        <texture name=\"grid\" type=\"2d\" builtin=\"checker\" rgb1=\".08 .11 .16\" rgb2=\".15 .18 .25\" width=\"300\" height=\"300\"/>\n        <texture name=\"ball\" builtin=\"checker\" mark=\"cross\" width=\"151\" height=\"151\" rgb1=\"0.1 0.1 0.1\" rgb2=\"0.9 0.9 0.9\" markrgb=\"1 1 1\"/>\n        <texture name=\"teleport_in\" type=\"2d\" builtin=\"gradient\" rgb1=\".1 .1 .1\" rgb2=\"0.35 0.55 0.91\" width=\"300\" height=\"300\"/>\n        <texture name=\"teleport_out\" type=\"2d\" builtin=\"gradient\" rgb1=\".9 .9 .9\" rgb2=\"0.35 0.55 0.91\" width=\"300\" height=\"300\"/>\n        <material name=\"grid\" texture=\"grid\" texrepeat=\"1 1\" texuniform=\"true\"/>\n        <material name=\"self\" rgba=\".7 .5 .3 1\"/>\n        <material name=\"self_white\" rgba=\".8 .8 .8 1\"/>\n        <material name=\"wall\" rgba=\"1 1 1 1\"/>\n        <material name=\"ball\" texture=\"ball\"/>\n        <material name=\"target\" rgba=\"0.96 0.26 0.33 1\"/>\n        <material name=\"teleport_in\" texture=\"teleport_in\"/>\n        <material name=\"teleport_out\" texture=\"teleport_out\"/>\n    </asset>\n\n    <worldbody>\n        <light name=\"global\" directional=\"true\" cutoff=\"100\" ambient=\".2 .2 .2\" exponent=\"1\" diffuse=\"1 1 1\" specular=\".1 .1 .1\" pos=\"0 0 1.3\" dir=\"-0 0 -1.3\"/>\n        <geom name=\"floor\" type=\"plane\" conaffinity=\"1\" size=\"100 100 .2\" material=\"grid\"/>\n        <body name=\"torso\" pos=\"0 0 0.75\">\n            <camera name=\"back\" pos=\"0 -2.5 5\" xyaxes=\"1 0 0 0 2 1\" mode=\"trackcom\"/>\n            <geom name=\"torso_geom\" type=\"sphere\" size=\"0.25\" pos=\"0 0 0\"/>\n            <joint name=\"root\" type=\"free\" limited=\"false\" pos=\"0 0 0\" axis=\"0 0 1\" margin=\"0.01\" armature=\"0\" damping=\"0\"/>\n            <light name=\"torso_light\" pos=\"0 0 8\" mode=\"trackcom\"/>\n            <body name=\"front_left_leg\" pos=\"0 0 0\">\n                <geom name=\"aux_1_geom\" type=\"capsule\" size=\"0.08\" fromto=\"0.0 0.0 0.0 0.2 0.2 0.0\"/>\n                <body name=\"aux_1\" pos=\"0.2 0.2 0\">\n",10791,"HF_UPDATE_DOWNLOAD_COUNTS=0\nLAB0_WORKSPACE_MEMORY_GIB=32\nMUJOCO_GL=disable\nOPENBLAS_NUM_THREADS=16\nHOME=/home/agent\nLANG=C.UTF-8\nLAB0_WORKSPACE_CPUS=16\nGPG_KEY=7169605F62C751356D054A26A821E680E5FA6305\nTMPDIR=/tmp\nLAB0_URL=https://[host]\nNEWROOMS_DATA=/opt/newrooms/data\nLAB0_WORKSPACE_VCPUS=16\nLAB0_AGENT_USER=agent\nPYTHONPATH=/opt/lab0:\nFRSI_V5_SOURCE_PYTHON={\"/usr/local\": [\"/workspace/repo\"]}\nPIP_DISABLE_PIP_VERSION_CHECK=1\nPIP_RETRIES=0\nLAB0_BRIDGE_URL=http://127.0.0.1:8099\nSHLVL=1\nHF_HUB_ETAG_TIMEOUT=30\nHF_HUB_OFFLINE=1\nOMP_NUM_THREADS=16\nHF_ENDPOINT=http://127.0.0.1:8099/v1/hf\nJOBLIB_TEMP_FOLDER=/tmp\nPATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\nMKL_NUM_THREADS=16\nUV_OFFLINE=1\n_=/usr/bin/env\n/opt/:\ntotal 3\ndrwxr-xr-x 1 root root 47 Nov 12 21:36 .\ndrwxr-xr-x 2 root root  6 Nov 25 11:08 ..\ndrwxr-xr-x 1 root root 44 Nov 12 21:36 lab0\ndrwx------ 1 root root 21 Nov 12 21:36 lab0-root\ndrwxr-xr-x 1 root root 26 Nov 12 21:01 newrooms\n\n/opt/newrooms/:\ntotal 2\ndrwxr-xr-x 1 root root 26 Nov 12 21:01 .\ndrwxr-xr-x 1 root root 47 Nov 12 21:36 ..\ndrwxr-xr-x 1 root root 27 Nov 12 21:03 data\nls: cannot open directory '/root': Permission denied"],"d":0.2}]},{"t":58.2,"$":0.0304,"c":[{"n":"bash","a":"python -m newrooms.local draw --out /tmp/sample_journeys.json --count 6 --seed 0 && \\\npython -m newrooms.local view --journeys /tmp/sample_journeys.json --index 0 --out /tmp/view0.png && \\\npython -m newrooms.local view --journeys /tmp/sample_journeys.json --index 1 --out /tmp/view1.png && \\\npython -m newrooms.local view --journeys /tmp/sample_journeys.json --index 2 --out /tmp/view2.png && \\\npython -c '\nimport json, numpy as np\nfrom newrooms import data\nm = data.manifest(\"data\")\nprint(\"manifest keys:\", list(m.keys()), \"maze_count:\", m[\"maze_count\"])\narr, rec = data.shard(\"data\", 0)\nprint(\"shard 0 arrays:\", {k: (v.shape, v.dtype) for k, v in arr.items()})\nprint(\"rec keys:\", list(rec.keys()), \"num_episodes:\", len(rec[\"episodes\"]))\nprint(\"ep 0:\", rec[\"episodes\"][0])\nprint(\"ep 5:\", rec[\"episodes\"][5])\n'","e":0,"o":"manifest keys: ['action', 'episodes', 'frequency_hz', 'image', 'maze_count', 'mazes', 'noise', 'proprio', 'renderer', 'schema', 'source_manifest_sha256', 'ticks', 'version'] maze_count: 400\nshard 0 arrays: {'pixels': ((9463, 64, 64, 3), dtype('uint8')), 'proprio': ((9463, 26), dtype('float32')), 'action': ((9463, 8), dtype('float32')), 'qpos': ((9463, 15), dtype('float32')), 'qvel': ((9463, 14), dtype('float32')), 'episode': ((9463,), dtype('int16')), 'tick': ((9463,), dtype('int16')), 'goals': ((12, 64, 64, 3), dtype('uint8'))}\nrec keys: ['bytes', 'episodes', 'index', 'layout_sha256', 'maze', 'sha256', 'shard', 'ticks'] num_episodes: 17\nep 0: {'closed': [[2, 6, 0], [3, 6, 1], [7, 3, 0], [9, 8, 1]], 'flipped': False, 'goal_index': None, 'kind': 'explore', 'seed': 0, 'start': [1.4351, 2.1127, 0.7047], 'ticks': 1000}\nep 5: {'closed': [[0, 6, 0], [0, 13, 1], [2, 6, 0], [3, 11, 1], [7, 1, 1], [9, 8, 1], [11, 10, 0]], 'flipped': False, 'goal': [42.1259, 5.4705], 'goal_index': 0, 'goal_yaw': 0.043384, 'kind': 'stitch', 'reached_tick': 319, 'seed': 0, 'start': [29.5885, 10.791, 0.2512], 'ticks': 400}","d":8.9}]},{"t":75.5,"$":0.0212,"c":[{"n":"view_image","a":{"path":"/tmp/view0.png","query":"Start camera image (left) and goal image (right) for journey 0"},"o":"Attached image /tmp/view0.png (8673 bytes).","d":3.7},{"n":"view_image","a":{"query":"Start camera image (left) and goal image (right) for journey 1","path":"/tmp/view1.png"},"o":"Attached image /tmp/view1.png (11473 bytes).","d":0},{"n":"view_image","a":{"path":"/tmp/view2.png","query":"Start camera image (left) and goal image (right) for journey 2"},"o":"Attached image /tmp/view2.png (10605 bytes).","d":0}]},{"t":79.2,"k":"image","p":"/tmp/view0.png. Start camera image (left) and goal image (right) for journey 0"},{"t":79.2,"k":"image","p":"/tmp/view1.png. Start camera image (left) and goal image (right) for journey 1"},{"t":79.2,"k":"image","p":"/tmp/view2.png. Start camera image (left) and goal image (right) for journey 2"},{"t":174.2,"$":0.1593,"c":[{"n":"bash","a":"python -c '\nimport numpy as np\nfrom newrooms import data, world\n\narr, rec = data.shard(\"data\", 0)\nep = arr[\"episode\"]\nqpos = arr[\"qpos\"]\nqvel = arr[\"qvel\"]\nproprio = arr[\"proprio\"]\n\n# Test proprioceptive odometry integration on episode 0 (1000 ticks = 50s) and episode 5 (400 ticks = 20s)\nfor eid in [0, 1, 5, 6]:\n    mask = (ep == eid)\n    qp = qpos[mask]\n    qv = qvel[mask]\n    pr = proprio[mask]\n    # True trajectory\n    xy_true = qp[:, :2]\n    yaw_true = np.array([world.heading(q[3:7]) for q in qp])\n\n    # Check exactness of proprio[12:15] and proprio[15:18]\n    # Integrate using ONLY proprio!\n    # At each tick t, we know exact roll/pitch from gravity g_b = pr[t, 1:4].\n    # We have body angular velocity w_b = pr[t, 15:18] and body linear velocity v_b = pr[t, 12:15].\n    # Given current estimated yaw psi, construct R = R_z(psi) @ R_tilt(g_b).\n    # Wait: how does R_tilt relate to world rotation R?\n    # R^T @ [0,0,-1] = g_b  => R_z(psi) @ R_tilt where R_tilt^T @ [0,0,-1] = g_b.\n    # Let us check!\n    dt = 0.05\n    def R_from_yaw_and_g(psi, g):\n        g = g / max(np.linalg.norm(g), 1e-12)\n        down = np.array([0.0, 0.0, -1.0])\n        dot = np.clip(g @ down, -1.0, 1.0)\n        q = np.array([1.0 + dot, *np.cross(g, down)])\n        if np.linalg.norm(q) < 1e-8:\n            q = np.array([0.0, 1.0, 0.0, 0.0])\n        q /= np.linalg.norm(q)\n        R_tilt = world.rotation(q)\n        # Note: heading(R_tilt) might not be 0! Let us zero its heading so psi IS the heading!\n        ax = R_tilt[:, 0]\n        h0 = np.arctan2(ax[1], ax[0])\n        c, s = np.cos(psi - h0), np.sin(psi - h0)\n        Rz = np.array([[c, -s, 0], [s, c, 0], [0, 0, 1]])\n        return Rz @ R_tilt\n\n    # Verify R_from_yaw_and_g reproduces true R at t=0\n    R0_true = world.rotation(qp[0, 3:7])\n    R0_est = R_from_yaw_and_g(yaw_true[0], pr[0, 1:4])\n    R_err0 = np.max(np.abs(R0_true - R0_est))\n\n    # Integrate yaw and xy using trapezoidal rule\n    # Note: world angular velocity w_world = R @ w_b, so d(heading)/dt?\n    # Let us check exact kinematics of heading!\n    # Forward axis e1 = R[:, 0]. de1/dt = (R @ w_b) x e1 = R @ (w_b x [1,0,0]) = R @ [0, w_bz, -w_by]\n    # heading = atan2(e1_y, e1_x), so d(heading)/dt = (e1_x * de1_y - e1_y * de1_x) / (e1_x^2 + e1_y^2)\n    xy = np.zeros_like(xy_true)\n    xy[0] = xy_true[0]\n    yaw = np.zeros_like(yaw_true)\n    yaw[0] = yaw_true[0]\n\n    def derivs(psi, p):\n        R = R_from_yaw_and_g(psi, p[1:4])\n        wb = p[15:18]\n        vb = p[12:15]\n        v_world = R @ vb\n        e1 = R[:, 0]\n        de1 = R @ np.array([0.0, wb[2], -wb[1]])\n        denom = max(e1[0]**2 + e1[1]**2, 1e-6)\n        dyaw = (e1[0]*de1[1] - e1[1]*de1[0]) / denom\n        return v_world[:2], dyaw\n\n    v_prev, dy_prev = derivs(yaw[0], pr[0])\n    for t in range(1, len(pr)):\n        # Predictor-corrector (Heun / trapezoidal)\n        yaw_pred = yaw[t-1] + dy_prev * dt\n        v_cur, dy_cur = derivs(yaw_pred, pr[t])\n        yaw[t] = yaw[t-1] + 0.5 * (dy_prev + dy_cur) * dt\n        v_cur, dy_cur = derivs(yaw[t], pr[t])\n        xy[t] = xy[t-1] + 0.5 * (v_prev + v_cur) * dt\n        v_prev, dy_prev = v_cur, dy_cur\n\n    yaw_err = np.abs(np.arctan2(np.sin(yaw - yaw_true), np.cos(yaw - yaw_true)))\n    pos_err = np.linalg.norm(xy - xy_true, axis=1)\n    path_len = np.sum(np.linalg.norm(np.diff(xy_true, axis=0), axis=1))\n    print(f\"ep {eid} ({rec[\\\"episodes\\\"][eid][\\\"kind\\\"]}, T={len(pr)*dt:.1f}s, dist={path_len:.1f}u): \"\n          f\"R0_err={R_err0:.2e} | yaw_err(end/max)={np.degrees(yaw_err[-1]):.2f}/{np.degrees(yaw_err.max()):.2f} deg | \"\n          f\"pos_err(end/max)={pos_err[-1]:.3f}/{pos_err.max():.3f} u\")\n' && echo \"=== LAB GPU STATUS ===\" && lab gpu status && echo \"=== DATASETS ===\" && lab datasets search \"\" 2>&1 | head -n 20","e":1,"o":"  File \"<string>\", line 85\n    print(f\"ep {eid} ({rec[\\\"episodes\\\"][eid][\\\"kind\\\"]}, T={len(pr)*dt:.1f}s, dist={path_len:.1f}u): \"\n                            ^\nSyntaxError: unexpected character after line continuation character","d":0.5}]},{"t":198.7,"$":0.0562,"c":[{"n":"bash","a":"python - <<'EOF'\nimport numpy as np\nfrom newrooms import data, world\n\narr, rec = data.shard(\"data\", 0)\nep = arr[\"episode\"]\nqpos = arr[\"qpos\"]\nqvel = arr[\"qvel\"]\nproprio = arr[\"proprio\"]\n\nfor eid in [0, 1, 2, 5, 6, 7]:\n    mask = (ep == eid)\n    qp = qpos[mask]\n    pr = proprio[mask]\n    xy_true = qp[:, :2]\n    yaw_true = np.array([world.heading(q[3:7]) for q in qp])\n\n    dt = 0.05\n    def R_from_yaw_and_g(psi, g):\n        g = g / max(np.linalg.norm(g), 1e-12)\n        down = np.array([0.0, 0.0, -1.0])\n        dot = np.clip(g @ down, -1.0, 1.0)\n        q = np.array([1.0 + dot, *np.cross(g, down)])\n        if np.linalg.norm(q) < 1e-8:\n            q = np.array([0.0, 1.0, 0.0, 0.0])\n        q /= np.linalg.norm(q)\n        R_tilt = world.rotation(q)\n        ax = R_tilt[:, 0]\n        h0 = np.arctan2(ax[1], ax[0])\n        c, s = np.cos(psi - h0), np.sin(psi - h0)\n        Rz = np.array([[c, -s, 0], [s, c, 0], [0, 0, 1]])\n        return Rz @ R_tilt\n\n    R0_true = world.rotation(qp[0, 3:7])\n    R0_est = R_from_yaw_and_g(yaw_true[0], pr[0, 1:4])\n    R_err0 = np.max(np.abs(R0_true - R0_est))\n\n    xy = np.zeros_like(xy_true)\n    xy[0] = xy_true[0]\n    yaw = np.zeros_like(yaw_true)\n    yaw[0] = yaw_true[0]\n\n    def derivs(psi, p):\n        R = R_from_yaw_and_g(psi, p[1:4])\n        wb = p[15:18]\n        vb = p[12:15]\n        v_world = R @ vb\n        e1 = R[:, 0]\n        de1 = R @ np.array([0.0, wb[2], -wb[1]])\n        denom = max(e1[0]**2 + e1[1]**2, 1e-6)\n        dyaw = (e1[0]*de1[1] - e1[1]*de1[0]) / denom\n        return v_world[:2], dyaw\n\n    v_prev, dy_prev = derivs(yaw[0], pr[0])\n    for t in range(1, len(pr)):\n        yaw_pred = yaw[t-1] + dy_prev * dt\n        v_cur, dy_cur = derivs(yaw_pred, pr[t])\n        yaw[t] = yaw[t-1] + 0.5 * (dy_prev + dy_cur) * dt\n        v_cur, dy_cur = derivs(yaw[t], pr[t])\n        xy[t] = xy[t-1] + 0.5 * (v_prev + v_cur) * dt\n        v_prev, dy_prev = v_cur, dy_cur\n\n    yaw_err = np.abs(np.arctan2(np.sin(yaw - yaw_true), np.cos(yaw - yaw_true)))\n    pos_err = np.linalg.norm(xy - xy_true, axis=1)\n    path_len = np.sum(np.linalg.norm(np.diff(xy_true, axis=0), axis=1))\n    kind = rec[\"episodes\"][eid][\"kind\"]\n    print(f\"ep {eid} ({kind}, T={len(pr)*dt:.1f}s, dist={path_len:.1f}u): \"\n          f\"R0_err={R_err0:.2e} | yaw_err(end/max)={np.degrees(yaw_err[-1]):.2f}/{np.degrees(yaw_err.max()):.2f} deg | \"\n          f\"pos_err(end/max)={pos_err[-1]:.3f}/{pos_err.max():.3f} u\")\nEOF\necho \"=== LAB GPU STATUS ===\" && lab gpu status && echo \"=== DATASETS ===\" && lab datasets search \"\" 2>&1 | head -n 20","e":0,"o":"ep 0 (explore, T=50.0s, dist=42.7u): R0_err=1.37e-08 | yaw_err(end/max)=3.66/5.38 deg | pos_err(end/max)=0.015/0.221 u\nep 1 (explore, T=50.0s, dist=42.2u): R0_err=2.50e-08 | yaw_err(end/max)=0.48/10.36 deg | pos_err(end/max)=0.540/0.774 u\nep 2 (explore, T=50.0s, dist=42.9u): R0_err=3.05e-08 | yaw_err(end/max)=17.71/20.80 deg | pos_err(end/max)=0.569/0.569 u\nep 5 (stitch, T=20.0s, dist=23.9u): R0_err=2.55e-08 | yaw_err(end/max)=6.11/9.41 deg | pos_err(end/max)=0.727/0.857 u\nep 6 (stitch, T=20.0s, dist=24.4u): R0_err=4.40e-08 | yaw_err(end/max)=8.56/10.11 deg | pos_err(end/max)=0.167/0.173 u\nep 7 (stitch, T=20.0s, dist=26.2u): R0_err=8.90e-08 | yaw_err(end/max)=13.34/15.98 deg | pos_err(end/max)=1.396/1.410 u\n=== LAB GPU STATUS ===\n{\n  \"gpu_window\": null,\n  \"running_jobs\": [],\n  \"queued_jobs\": [],\n  \"gpu_capacity\": null\n}\n=== DATASETS ===\n{\n  \"total\": 113,\n  \"offset\": 0,\n  \"results\": [\n    {\n      \"repo\": \"Bertievidgen/SimpleSafetyTests\",\n      \"revision\": \"98223c5d8c4059c8f4d8fe2fec8720ee8a20d3c5\",\n      \"size_bytes\": 15544,\n      \"files\": 3,\n      \"description\": \"\",\n      \"license\": \"cc-by-2.0\",\n      \"tags\": [\n        \"task_categories:text-generation\",\n        \"language:en\",\n        \"license:cc-by-2.0\",\n        \"size_categories:n<1K\",\n        \"format:csv\",\n        \"arxiv:2311.08370\"\n      ]\n    },","d":3.4}]},{"t":334.5,"$":0.2056,"c":[{"n":"bash","a":"python -m newrooms.local run --submission submission --journeys /tmp/sample_journeys.json 2>&1 | grep -v NNPACK && \\\npython - <<'EOF'\nimport time, numpy as np\nfrom newrooms import families, maze, geometry, world, locomotion\n\n# Benchmark MuJoCo physics speed (no render) and render speed\nspec = families.sample_maze(0)\nlayout = maze.generate(spec[\"layout\"])\nclosed = maze.closed_doors(layout, families.DOOR_CLOSED, 0)\ncase = {\n    \"layout\": spec[\"layout\"],\n    \"appearance\": spec[\"appearance\"],\n    \"physics\": spec[\"physics\"],\n    \"closed\": [list(d) for d in closed],\n    \"start\": [6.0, 6.0, 0.0],\n    \"goal\": [14.0, 14.0],\n    \"goal_yaw\": 0.0,\n    \"seed\": 0,\n}\nw = world.World(case, render=True)\nmotor = locomotion.Motor()\n\n# Benchmark 1000 physics ticks (no render)\nt0 = time.monotonic()\nfor _ in range(1000):\n    act = motor(w.body(), [1.0, 0.0])\n    w.advance(act, 0.05)\nt1 = time.monotonic()\nprint(f\"1000 physics ticks (5000 mj_steps) + Motor: {t1-t0:.3f}s ({1000/(t1-t0):.0f} ticks/s)\")\n\n# Benchmark 200 renders\nt0 = time.monotonic()\nfor _ in range(200):\n    img = w.pixels()\nt1 = time.monotonic()\nprint(f\"200 renders: {t1-t0:.3f}s ({(t1-t0)/200*1000:.2f} ms/frame)\")\n\n# Measure bundled Motor walking speed in open space across test physics extremes\nfor label, phys in [\n    (\"nominal\", {\"friction\": 1.0, \"mass\": 1.0, \"gear\": 1.0}),\n    (\"low_gear_high_mass\", {\"friction\": 1.0, \"mass\": 1.55, \"gear\": 0.65}),\n    (\"high_gear_low_mass\", {\"friction\": 1.0, \"mass\": 0.65, \"gear\": 1.55}),\n    (\"low_fric\", {\"friction\": 0.5, \"mass\": 1.0, \"gear\": 1.0}),\n    (\"high_fric\", {\"friction\": 2.0, \"mass\": 1.0, \"gear\": 1.0}),\n]:\n    # Make an open 12x12 room\n    open_edges = [(r, c, k) for r in range(12) for c in range(12) for k in (0, 1)\n                  if (k == 0 and c + 1 < 12) or (k == 1 and r + 1 < 12)]\n    open_layout = maze.Layout(12, 12, open_edges, [])\n    geom = geometry.Geometry(open_layout)\n    model = world.build_model(geom, phys)\n    import mujoco\n    data = mujoco.MjData(model)\n    data.qpos[:3] = (24.0, 24.0, 0.55)\n    data.qpos[3:7] = world.quaternion_yaw(0.0)\n    data.qpos[7:15] = world.INITIAL_JOINTS\n    mujoco.mj_forward(model, data)\n    m = locomotion.Motor()\n    flipped = False\n    for t in range(200):  # 10s\n        yaw = world.heading(data.qpos[3:7])\n        # Steer along world +x using true yaw\n        d_body = [np.cos(-yaw), np.sin(-yaw)]\n        act = m(world.proprioception(data.qpos, data.qvel), d_body)\n        data.ctrl[:] = act\n        for _ in range(5):\n            mujoco.mj_step(model, data)\n        if world.rotation(data.qpos[3:7])[2, 2] < 0:\n            flipped = True\n    dist = data.qpos[0] - 24.0\n    print(f\"Motor ({label:18s}): dist={dist:6.2f}u in 10s -> {dist/10:.2f} u/s, z_end={data.qpos[2]:.2f}, flipped={flipped}\")\nEOF","e":0,"o":"{\"id\": \"local-0\", \"bin\": 0, \"success\": false, \"steps\": 731, \"t_bound\": 3.6549, \"budget\": 36.55, \"speed\": 0.0, \"credit\": 0.0}\n{\"id\": \"local-1\", \"bin\": 1, \"success\": false, \"steps\": 2263, \"t_bound\": 11.3138, \"budget\": 113.15, \"speed\": 0.0, \"credit\": 0.0}\n{\"id\": \"local-2\", \"bin\": 2, \"success\": false, \"steps\": 4674, \"t_bound\": 23.3696, \"budget\": 233.7, \"speed\": 0.0, \"credit\": 0.0}\n{\"id\": \"local-3\", \"bin\": 0, \"success\": false, \"steps\": 872, \"t_bound\": 4.3583, \"budget\": 43.6, \"speed\": 0.0, \"credit\": 0.0}\n{\"id\": \"local-4\", \"bin\": 1, \"success\": false, \"steps\": 2207, \"t_bound\": 11.0345, \"budget\": 110.35, \"speed\": 0.0, \"credit\": 0.0}\n{\"id\": \"local-5\", \"bin\": 2, \"success\": false, \"steps\": 5221, \"t_bound\": 26.1046, \"budget\": 261.05, \"speed\": 0.0, \"credit\": 0.0}\n{\"by_bin\": {\"0\": 0.0, \"1\": 0.0, \"2\": 0.0}, \"raw_credit\": 0.0}\n1000 physics ticks (5000 mj_steps) + Motor: 0.812s (1232 ticks/s)\n200 renders: 0.385s (1.92 ms/frame)\nMotor (nominal           ): dist= 15.62u in 10s -> 1.56 u/s, z_end=0.61, flipped=False\nMotor (low_gear_high_mass): dist=  9.71u in 10s -> 0.97 u/s, z_end=0.44, flipped=False\nMotor (high_gear_low_mass): dist= 12.65u in 10s -> 1.26 u/s, z_end=0.55, flipped=False\nMotor (low_fric          ): dist= 18.27u in 10s -> 1.83 u/s, z_end=0.55, flipped=False\nMotor (high_fric         ): dist= 12.25u in 10s -> 1.23 u/s, z_end=0.53, flipped=False","d":79.5}]},{"t":536.2,"$":0.2161,"c":[{"n":"bash","a":"mkdir -p /workspace/repo/research /workspace/repo/work && \\\ncat > /workspace/repo/PROGRESS.md <<'EOF'\n# New Rooms Research Progress\n\n## Status\n- Started: 2026-11-25 11:47 UTC (12h budget, $85 wallet)\n- Baseline starter: 0.000 credit on 6 sample journeys (0/6).\n- Bundled OGBench Motor speed: 0.97–1.83 u/s across extreme physics, no yaw control.\n- Proprioceptive odometry check (raw 20 Hz Heun integration, no vision): 0.015–0.77u pos error over 50s / 43u walking!\n\n## Master Architecture Plan\n1. **Strictly Held-Out OOD Evaluation Suite** (`research/ood_world.py`, `research/eval_suite.py`):\n   - 48 journeys in 24 unseen mazes across 3 strata (training app+phys / held-out unseen app / held-out unseen app + wide phys), 3 distance bins, strictly unseen layout styles (open rooms, braided no-dead-end, high-loop grids, rings) & strictly held-out texture/shape families.\n2. **Pillar 1 — Fast Physics-Adaptive Omni+Yaw RL Locomotion (`LocoMotor`)**:\n   - 20 Hz GRU/history PPO with privileged critic on wide physics (`friction [0.4, 2.5]`, `mass [0.55, 1.8]`, `gear [0.55, 1.8]`), target 3.0–3.8 u/s + fast torso yaw control + flip self-recovery.\n3. **Pillar 2 — Appearance-Invariant 64-Ray Depth & Semantics Net (`DepthSemNet`)**:\n   - Column-preserving 2D->1D ConvNet trained on 15+ procedural texture families, extreme lighting/fog/floor periods, predicting per-column `log_depth`, uncertainty `sigma`, and 4-class ray semantics (`wall`/`corner`/`frame`/`closed_door`).\n4. **Pillar 3 — Visual-Geometric Goal Detector & Relative Pose (`GoalMatcher`) + 2D Map `GeoMatcher`**:\n   - Dense multi-scale cross-attention + raw patch correlation network trained with in-maze hard negatives across 15+ texture families & diverse layouts; outputs `(p_match, rel_dx, rel_dy, cos_dyaw, sin_dyaw, sigma)`.\n   - Complemented by zero-shot 2D map ray-casting `GeoMatcher`.\n5. **Pillar 4 — Manhattan-Grid 2D SLAM + Spiral Frontier Explorer + Visual Servoing**:\n   - Locks onto exact 4.0-unit cell grid via 64-ray depth + proprioceptive odometry (near-zero drift over 300s).\n   - Multi-frame spatial goal voting, visited-disc clearing, diagonal open-room path smoothing, active camera scanning, stuck recovery.\n\n## Next Steps\n- Probe GPU job environment & queue speed.\n- Build `research/synth_world.py` (training OOD generators) and `research/eval_suite.py` (strictly held-out OOD benchmark).\n- Launch parallel H100 jobs: (1) `LocoMotor` RL training, (2) `DepthSemNet` training, (3) `GoalMatcher` training.\nEOF\nlab gpu run --gpus 1 --max-minutes 3 -- bash -c '\necho \"HOST: $(hostname)\"\necho \"NPROC: $(nproc)\"\nnvidia-smi --query-gpu=name,memory.total --format=csv\nls -la /opt/newrooms/data 2>&1 | head -n 10\npython3 -c \"import torch, mujoco, newrooms; print(\\\"torch:\\\", torch.__version__, \\\"cuda:\\\", torch.cuda.is_available(), \\\"newrooms:\\\", newrooms.__file__)\"\n'","e":0,"o":"{\n  \"id\": \"job_1\",\n  \"status\": \"requested\",\n  \"kind\": \"batch\",\n  \"gpus\": 1,\n  \"max_minutes\": 3,\n  \"image\": \"research\",\n  \"command\": \"bash -c '\\necho \\\"HOST: $(hostname)\\\"\\necho \\\"NPROC: $(nproc)\\\"\\nnvidia-smi --query-gpu=name,memory.total --format=csv\\nls -la /opt/newrooms/data 2>&1 | head -n 10\\npython3 -c \\\"import torch, mujoco, newrooms; print(\\\\\\\"torch:\\\\\\\", torch.__version__, \\\\\\\"cuda:\\\\\\\", torch.cuda.is_available(), \\\\\\\"newrooms:\\\\\\\", newrooms.__file__)\\\"\\n'\",\n  \"metric\": null,\n  \"purpose\": \"\",\n  \"inputs\": [],\n  \"created_at\": 1795607788.6639092,\n  \"created_at_iso\": \"2026-11-25T11:56:28.663909Z\",\n  \"started_at\": null,\n  \"started_at_iso\": null,\n  \"ended_at\": null,\n  \"ended_at_iso\": null,\n  \"runtime_seconds\": null,\n  \"cancel_requested\": false,\n  \"failure_class\": null,\n  \"failure_reason\": null,\n  \"failure_detail\": null,\n  \"failure_stage\": null,\n  \"failure_error\": null,\n  \"host_id\": null,\n  \"metric_value\": null,\n  \"metric_note\": null,\n  \"exit_code\": null,\n  \"peak_gpu_memory_gib\": null,\n  \"output_artifact_id\": null,\n  \"output_partial\": false,\n  \"output_max_bytes\": null,\n  \"output_capture\": null,\n  \"output_import\": null,\n  \"output_state\": null,\n  \"queue_reason\": \"dispatching\",\n  \"queue_explanation\": \"Lab0 is handing it to the GPU scheduler; it has no place in the GPU queue until the scheduler has it.\",\n  \"queue_position\": null,\n  \"estimated_start\": null,\n  \"borrowed\": false,\n  \"allocation_held\": null,\n  \"reclaim_grace_seconds\": null,\n  \"collecting_outputs\": false,\n  \"execution_state\": \"requested\",\n  \"host_state\": null,\n  \"status_detail\": null,\n  \"gpu_capacity\": null,\n  \"command_exited_at\": null,\n  \"command_exited_at_iso\": null,\n  \"retry_of\": null,\n  \"retried_as\": null,\n  \"retry_on_reclaim\": 0,\n  \"reclaim_retry\": null,\n  \"retry_refused\": null,\n  \"resumed_from\": null,\n  \"resume_note\": null\n}","d":1}]},{"t":558.5,"$":0.0769,"c":[{"n":"bash","a":"lab gpu show job_1 && echo \"=== LOGS ===\" && lab gpu logs job_1 2>&1 || true","e":0,"o":"{\n  \"id\": \"job_1\",\n  \"status\": \"succeeded\",\n  \"kind\": \"batch\",\n  \"gpus\": 1,\n  \"max_minutes\": 3,\n  \"image\": \"research\",\n  \"command\": \"bash -c '\\necho \\\"HOST: $(hostname)\\\"\\necho \\\"NPROC: $(nproc)\\\"\\nnvidia-smi --query-gpu=name,memory.total --format=csv\\nls -la /opt/newrooms/data 2>&1 | head -n 10\\npython3 -c \\\"import torch, mujoco, newrooms; print(\\\\\\\"torch:\\\\\\\", torch.__version__, \\\\\\\"cuda:\\\\\\\", torch.cuda.is_available(), \\\\\\\"newrooms:\\\\\\\", newrooms.__file__)\\\"\\n'\",\n  \"metric\": null,\n  \"purpose\": \"\",\n  \"inputs\": [],\n  \"created_at\": 1795607788.6639092,\n  \"created_at_iso\": \"2026-11-25T11:56:28.663909Z\",\n  \"started_at\": 1795607792.174219,\n  \"started_at_iso\": \"2026-11-25T11:56:32.174219Z\",\n  \"ended_at\": 1795607798.542457,\n  \"ended_at_iso\": \"2026-11-25T11:56:38.542457Z\",\n  \"runtime_seconds\": 6.368238210678101,\n  \"cancel_requested\": false,\n  \"failure_class\": null,\n  \"failure_reason\": null,\n  \"failure_detail\": null,\n  \"failure_stage\": null,\n  \"failure_error\": null,\n  \"host_id\": \"host_1\",\n  \"metric_value\": null,\n  \"metric_note\": null,\n  \"exit_code\": 0,\n  \"peak_gpu_memory_gib\": 0.0,\n  \"output_artifact_id\": \"artifact_1\",\n  \"output_partial\": false,\n  \"output_max_bytes\": null,\n  \"output_capture\": {\n    \"archive_bytes\": 2897,\n    \"schema\": \"lab0.archive-stream.v1\"\n  },\n  \"output_import\": {\n    \"status\": \"done\",\n    \"artifact_id\": \"artifact_1\",\n    \"tries\": 0,\n    \"updated_at\": 1795607802.1487153,\n    \"retry_at\": null,\n    \"queued_since\": 1795607801.888981,\n    \"queued_since_iso\": \"2026-11-25T11:56:41.888981Z\",\n    \"waiting_for_capacity\": false,\n    \"too_large\": false,\n    \"gone\": false,\n    \"detail\": null\n  },\n  \"output_state\": \"ready\",\n  \"queue_reason\": null,\n  \"queue_explanation\": null,\n  \"queue_position\": null,\n  \"estimated_start\": null,\n  \"borrowed\": false,\n  \"allocation_held\": false,\n  \"reclaim_grace_seconds\": 30.0,\n  \"collecting_outputs\": false,\n  \"execution_state\": \"succeeded\",\n  \"host_state\": null,\n  \"status_detail\": null,\n  \"gpu_capacity\": null,\n  \"command_exited_at\": null,\n  \"command_exited_at_iso\": null,\n  \"retry_of\": null,\n  \"retried_as\": null,\n  \"retry_on_reclaim\": 0,\n  \"reclaim_retry\": null,\n  \"retry_refused\": null,\n  \"resumed_from\": null,\n  \"resume_note\": null\n}\n=== LOGS ===\nHOST: 3424b282110a\nNPROC: 26\nname, memory.total [MiB]\nNVIDIA H100 80GB HBM3, 81559 MiB\ntotal 15904568\ndrwxr-xr-x 1 root root     4096 Nov 12 21:03 .\ndrwxr-xr-x 1 root root     4096 Nov 12 21:01 ..\n-rw-r--r-- 1 root root  2078247 Jan  1  1970 manifest.json\n-rw-r--r-- 1 root root     5580 Jan  1  1970 maze-0000.json\n-rw-r--r-- 1 root root 50614062 Jan  1  1970 maze-0000.npz\n-rw-r--r-- 1 root root     5736 Jan  1  1970 maze-0001.json\n-rw-r--r-- 1 root root 37015137 Jan  1  1970 maze-0001.npz\n-rw-r--r-- 1 root root     4724 Jan  1  1970 maze-0002.json\n-rw-r--r-- 1 root root 42991945 Jan  1  1970 maze-0002.npz\ntorch: 2.8.0+cu128 cuda: True newrooms: /task/newrooms/__init__.py\n{\"next_offset\": 680, \"eof\": true}","d":1.2}]}],"parts":[72,78,110,56]}