Skip to content

IGN-221: course clavier contre pilotes appris (#17, #9) - #88

Merged
salim4n merged 2 commits into
devfrom
cursor/circuit-human-race
Nov 13, 2026
Merged

salim4n merged 2 commits into
devfrom
cursor/circuit-human-race

Conversation

@salim4n

@salim4n salim4n commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Draft PR for Linear IGN-221. Implements the remaining playable slice of GitHub #17 under the parent spec Circuit Racing (#9).

Merge approved on e52c271 after Talos acceptance (13/11). Ticket is not complete: GPU human race is NON VÉRIFIÉE.

Base: dev @ 28c6420b4aadcef4a6d5705ff7ccf479327c21a1. Head: e52c2712a882ff6e7d433fd7aa5597ef3e937c10.

What changed

  • Garage load refuses missing/incompatible checkpoints with an explicit error (no rule-controller substitute).
  • Shared keyboard mapping (actionFromKeys) for the nine-action V2 contract.
  • Human vs frozen learned race can finish on the same clock; opponent weights stay bit-identical.
  • Results overlay Nouvelle course returns to the garage; a second start is a new session.
  • Playwright CPU-WebGL (SwiftShader) path: garage → keyboard → pause → finish against bundled-29 → results → new race, with screenshots, console, and network logs.
  • Docs: HUMAN-RACE.md, updated VALIDATION.md.

No retraining, no new GLB/checkpoint, no physics/contract change. Interactive races stay circuit-race-v2-ghost-v1 (existing maintainer exception vs contact in spec #9). Training/eval still use contact rules.

Contract / checkpoints / circuit

Item Value
Driving circuit-racing-v2
Observations racing-observation-v1
Race rules (interactive) circuit-race-v2-ghost-v1
Circuit alpine-park-v1
Vehicles race.glb (Formule R), sedan-sports.glb (Sport GT), Kenney CC0 unchanged
Opponent bundled imitation V2 seed 29 (bundled-29)
Player finish in Playwright frozen imitation seed 11 on the same discrete contract

Tests and commands (executed)

Command Exit
corepack pnpm install --frozen-lockfile 0
corepack pnpm --filter demo-car-circuit test 0 (75 tests)
corepack pnpm --filter demo-car-circuit build 0
corepack pnpm typecheck 2 (42 pre-existing packages/web TS2307 missing @/public/images/*; zero demo-car-circuit errors on tsc --build --force)
corepack pnpm test 0 (542 passed, 3 skipped HF)
corepack pnpm --filter demo-car-circuit exec vite --host 127.0.0.1 --port 3020 running (HTTP 200)
CIRCUIT_URL=http://127.0.0.1:3020 corepack pnpm --filter demo-car-circuit e2e:human-race 0

Note: pnpm --filter demo-car-circuit dev -- --host 127.0.0.1 did not pass --host through pnpm here; Vite was started with exec vite --host 127.0.0.1. vite.config.ts now defaults server.host to 127.0.0.1.

Playwright measurements (SwiftShader, not GPU)

Chromium 158, ANGLE SwiftShader Device (Subzero), 1280×720. Keyboard hold → 72 km/h. Finish times depend on machine FPS and are not reproducible as-is (Talos rerun: player 2 laps, no finish; bundled-29 3 laps in 59.13 s). The previously quoted player time is withdrawn. New race countdown 3 s. 90 frames: median 50 ms, p95 100 ms, ~17 FPS. No 60 FPS claim. Artifacts: packages/demo-car-circuit/evidence/ign-221/.

Console includes a pre-existing React setState during Vehicle render warning.

GPU human race

NON VÉRIFIÉE. Procedure: packages/demo-car-circuit/HUMAN-RACE.md.

Spec gaps (preserved, not silent protocol edits)

  • Interactive races use ghost mode (circuit-race-v2-ghost-v1) as previously requested; spec [Spec] Circuit Racing : entraîner des pilotes et courir contre eux #9 still describes car contacts. Training/evaluation keep contact.
  • Playwright completes the player slot with a frozen learned policy after real keyboard/pause checks. That is not the human GPU acceptance test.
Open in Web Open in Cursor 

…ivers

Close the playable #17 loop on existing V2 contracts and bundled imitation
checkpoints: explicit garage load errors, shared frozen policies, results
and new race, plus Playwright CPU-WebGL evidence. GPU human race remains
unverified. No retraining, no new assets, no rule-controller substitute.

Co-authored-by: Salim <salim4n@users.noreply.github.com>
@vercel

vercel Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ignition-rl Ready Ready Preview Nov 13, 2026 9:29am UTC

Request Review

@salim4n
salim4n marked this pull request as ready for review November 13, 2026 09:41
@salim4n
salim4n merged commit 9944232 into dev Nov 13, 2026
9 checks passed
@salim4n
salim4n deleted the cursor/circuit-human-race branch November 13, 2026 09:41
salim4n added a commit that referenced this pull request Nov 15, 2026
Release dev → main : démo Dock spatial (IGN-118), circuit (#88), licences MIT (#87)

This branch was successfully deployed

1 active deployment
Preview — 33118130 Deployed Nov 13, 2026 by vercel[bot]
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.

2 participants