Skip to content

ariadne coph: demo 2a ready to show (docked panels, §8 labels, walkthrough), and a CoPH poster on Pages - #205

Merged
transfix merged 4 commits into
mainfrom
feat/coph-demo2a-polish
Nov 24, 2026
Merged

transfix merged 4 commits into
mainfrom
feat/coph-demo2a-polish

Conversation

@transfix

@transfix transfix commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Demo 2a (python -m grl_snam.ariadne coph, roadmap §3.2) made ready to show live or from a recording: a real window on libcvc master, the claims labelled per the roadmap's §8, and a scripted walkthrough with a recorder.

Fixed in the window

  • The floors were mirrored north-south. Lab.set_texture puts an image's row 0 at the quad's north edge, and Floor's row 0 is the south. The corridors, the heat map, the stage rectangles and the sensor rings were all flipped about y = 3.75 m. An agent on the north corridor had its ring drawn on the south one. texture() now flips the rows at upload.
  • Panels covered the scene. They are docked now: CoPH and Learning down the right, Headline above, Agents below (pos: [10000, ...], as libcvc's nav_city documents dock theirs, with sizes in percent). The camera fits the floors to the room that is left by projecting the box corners (fit, project).
    • The window opens at 1600x900 unless --width/--height say otherwise.
    • The Headline no longer clips, and all four Agents rows fit, with short arm names.
  • Which floor is which arm is on a nameplate north of each floor.
  • The Learning charts use a top legend and fit the window, so their markers no longer overlap at 1600 wide.

The §8 labels (Headline)

  • Green: what the reference established, with its own seed counts.
    • Crossing: 16/16 goals and 0 collisions over 2 seeds x 4 arms, with a 27.1 m team saving on both seeds (28.0 m predicted).
    • Hazard: 64/64 goals over 1 seed x 4 scenes x 8 arms, and a worst-case excess cost of 4.6 against 68.1.
  • Amber: what it has not established.
    • Replay runs in both arms.
    • Receiver field fitting runs in the CoPH arm. In hazard, the arm without it ties at 4.6.
    • Adaptive-rate sharing is in the vendored code, but neither demo calls it: staggered_demo exports every 0.96 s. The old text said it ran.
  • Amber: the validation gate can't reject.
    • Its slack (0.003) is about 100x the typical held-out field loss. The median over the reference's 40 episodes is 2.8e-5. Those 40 episodes kept all 5,212 updates, and 3,112 of the kept updates had a worse held-out loss (by at most 0.0022).
    • The line also counts this run's kept and rejected updates up to the play head.
  • The Agents table and the Learning combo mark pi (from replay) and the received bytes the same way.

Walkthrough

  • --tour plays the default arms as a sequence of captioned steps: camera moves, the play head at a set speed, and the heat map.
    • Its times are read from the episodes, for example the 4.0 s door sighting and the 4.8 s packet in crossing, and the carrier's 26.0 s packet and 43.5 s turn-back in hazard.
    • The CoPH window's Back, Next and Restart buttons drive it. Playing, or a drag of the slider, hands the run back.
  • coph walkthrough --from DIR runs crossing, then hazard ('severe').
    • --shots DIR writes a PNG at the end of each step.
    • --record PATH writes an H.264 mp4 through ffmpeg. Frames go in on pipe:0 and are trimmed to even sizes.
    • For walkthrough --record, the parent process holds the one encoder, and each tour sends its frames over a multiprocessing.connection pipe (PipeRecorder, relay). That way ffmpeg only has to encode: cvcpkg's ffmpeg 7.1.2 has no concat demuxer, concat or pad filter, or rawvideo encoder, so it cannot join two mp4s.
    • A tour computes missing episodes first.
  • The run never stops for a caption. During camera moves and holds it plays on slowly, and at the episode's end the camera drifts. Frozen frames in the video fell from 83 s of 175 s to none; the slow stretches left still move.
  • Agents pass through each other. CoPH-Stagewise models no contact between agents: each senses only its own copy of the world, and staggered_demo records "no inter-agent contact dynamics". In crossing they pass through each other at 63.5 s (CoPH) and 104.8 s (comms off). The tour shows the first pass close up with a caption saying why, and the status line says so whenever two driving agents overlap. Positions stay the reference's.
  • The hazard captions say what the code does. The scout's packets reach the carrier's router (terrain_anchors), priced at the carrier's own risk weight. Its fitted r covers only its kept stages, so the hazard isn't in it at 26 s.

The CoPH poster (pages/site/coph/)

  • The walkthrough video: 1920x1080, 2:36, re-encoded at CRF 24 to 11.9 MB, with chapter buttons for crossing and hazard.
  • The method in brief, and the �8 claims: green established results with their seed counts and a still each; amber unestablished, including the gate and the lack of agent contact.
  • How GRL-SNAM carries the method, what is coming (the live demo in the page, demo 2b), and credits (CoPH-Sense by SetasAditya, MIT).
  • The landing page links it with a card. pages/smoke.mjs checks that the poster's links, images and video resolve. Everything the poster loads is on the site's own origin, with no inline style or script (the smoke's CSP).
  • The video is committed (11.9 MB, the largest file in the repo). If a cvcpkg data package is preferred, as for the learning checkpoints, it can come out before the squash merge.
  • Going live: the site is deployed by transfix/grl-snam-demos from GRL-SNAM's pages/ scripts, so the poster appears on its first redeploy after this merges.
  • Overlap: scrub page: 30 fps, the Humvee's model, the pause, how far apart the runs drive, real tables, a legend #206 (the scrub page) also edits pages/README.md, pages/site/index.html, pages/smoke.mjs and grl_snam/ariadne/README.md. Whichever merges second needs a small merge.
  • Previewed locally: desktop and phone widths, no sideways scroll, and the chapter seek, served by a range-capable server as Pages is.

Checked

  • Libcvc build: master (4.0.6, 7f388fc3e), Release with pycvc_gl, on Windows (MSVC 19.44, cvcpkg deps). Python 3.11.13 with torch 2.8.0.
  • Episodes: the vendored runner computed the default arms headless. Crossing seed 76000: 4/4 goals, team saving 27.1 m (13.4 + 13.7). Hazard 'severe', seed 79000: the carrier's cost is 151.9 off against 83.8 shared. These are the reference's numbers.
  • Window: a real window ran on a live vendored crossing run, captured from the desktop with Win32 PrintWindow.
  • Walkthroughs: coph walkthrough ran in real windows (all 15 steps, both demos exit 0) and offscreen, with step shots checked against the episodes.
  • CI: passed on the first head (5499762): ci on cp311/cp312/cp313 (1331 passed each; the new tests ran, with only the ffmpeg one skipped there), pages and llm-gate.
  • Tests: tests/test_coph_walkthrough.py (11, no pycvc_gl needed) and tests/test_ariadne_coph.py (6) pass locally, as do black and ruff.

…scripted walkthrough)

- The floors' textures were mirrored north-south: Lab.set_texture puts an image's row 0 at
  the quad's north edge, and Floor's row 0 is the south. Corridors, the heat map, stage
  rectangles and sensor rings now sit under the cars (an agent on the north corridor had its
  ring drawn on the south one).
- Panels docked so the floors stay clear: CoPH and Learning down the right, Headline above,
  Agents below; the camera fits the floors to what is left, projecting the corners. The
  window opens at 1600x900 unless --width/--height say otherwise. A nameplate north of each
  floor names its arm. All four Agents rows fit, with short arm names.
- Headline labels per the roadmap's §8: the reference's established results with its seed
  counts (green); what it has not established (amber): replay, receiver field fitting, and
  adaptive-rate sharing, which neither demo exercises (fixed 0.96 s exports); and that the
  validation gate cannot reject at its 0.003 slack, with the reference's count (5,212 of
  5,212 kept over its 40 episodes) and this run's up to the play head.
- --tour plays a scripted walkthrough of the default arms, its times read from the episodes,
  captioned in the Headline, with Back/Next/Restart; Playing or a slider drag hands the run
  back. `coph walkthrough` runs crossing then hazard ('severe'). --shots writes a PNG per
  step; --record writes an H.264 mp4 through ffmpeg (stdin as pipe:0, frames trimmed to even
  sizes, for minimal builds). A tour computes missing episodes first.
- tests/test_coph_walkthrough.py: the gate count, the camera fit (pinhole check at three
  window sizes), the tour's steps and playback, the recorder; test_ariadne_coph.py: the
  tour's refusals and the walkthrough's two runs and concat.
…at the code does

- `walkthrough --record` keeps one Recorder in its own process; each tour sends its frames
  over a multiprocessing.connection pipe (PipeRecorder, authkey in the environment), so ffmpeg
  only encodes. cvcpkg's ffmpeg 7.1.2 has no concat demuxer, concat or pad filter, or rawvideo
  encoder, so it cannot join two mp4s. A tour that exits before it connects ends the wait.
- Recorder: frames go in on pipe:0 (that build rejects "-"), trimmed to even sizes; a clear
  error when ffmpeg stops reading.
- Hazard captions: the scout's packets reach the carrier's router (terrain_anchors, priced at
  its own risk weight); its fitted r covers only its kept stages, so the hazard is not in it at
  26 s. Step 2 shows the scout's own r instead, which does hold the hazard.
…hrough each other

- A tour step's camera move and hold used to stop the play head, which left 83 s of the
  175.5 s walkthrough as frozen frames that read as hangs. The run now plays on at the
  step's idle speed (0.25x for the intro, 0.5x elsewhere). At the episode's end, where
  nothing can move, the camera drifts slowly. Step ends were retimed so that each captioned
  event still plays on screen. Next never seeks back.
- CoPH-Stagewise models no contact between agents, so in crossing the two pass through each
  other on the south corridor (CoPH arm 63.5 s, comms off 104.8 s). passing() finds the
  closest approach in each arm. The tour shows the CoPH arm's pass close up with a caption
  that says why, and names the other in the arrivals caption. The status line says so
  whenever two driving agents overlap, for a presenter driving live.
- Tests: passing and overlapping on a synthetic overlap; the tour plays with at most one
  unchanged frame a step.
pages/site/coph/ (copied to the site's coph/ by assemble.py, as site/ is):
- The walkthrough video: `coph walkthrough --offscreen --width 1920 --height 1080 --record`
  on libcvc master (4.0.6+), 2:36, re-encoded at CRF 24 for the web (11.9 MB, H.264, faststart).
  Chapter buttons for crossing and hazard (coph.js).
- The method in brief, and the claims as the roadmap's §8 labels them:
  - green, what the reference establishes, with its seed counts (crossing 27.1 m, 16/16 goals,
    2 seeds x 4 arms; hazard 4.6 against 68.1, 1 seed x 4 scenes x 8 arms), each with a still;
  - amber, what it does not establish: replay, receiver field fitting, adaptive-rate sharing
    (not exercised), the gate that cannot reject, and agents with no contact between them;
  - how GRL-SNAM carries it, and what is coming: the live demo in the page, once torch is no
    longer needed in the browser (the C++ port's bindings), and demo 2b (exploratory).
- Credits: CoPH-Sense's CoPH-Stagewise by SetasAditya, MIT.

The landing page links it with a card. pages/smoke.mjs now also checks that the poster's links,
images and video resolve, and serves .mp4 as video/mp4. Everything the poster loads is on the
site's own origin, under the smoke's strict CSP (no inline style or script).
@transfix transfix changed the title ariadne coph: demo 2a ready to show (docked panels, §8 labels, scripted walkthrough) ariadne coph: demo 2a ready to show (docked panels, §8 labels, walkthrough), and a CoPH poster on Pages Nov 24, 2026
@transfix
transfix merged commit 30466ef into main Nov 24, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant