Repository navigation
Description
Pillar P8 of the Road to Parity roadmap · Milestone P8 — Scenarios.
Status (2026-07-20): scope updated by the 2026-07 realignment: the internal scenario model targets OpenSCENARIO 1.x XML first (validation-friendly, esmini-compatible); OpenSCENARIO 2.x is an explicit later sprint (#327) — export-only concrete-scenario subset at v0.1.0, no OSC2 import, no parser dependency. Scenario files live in the project container — fmt-s1 (#325) must land before scenario save. Persistence per ADR-0008.
Update (2026-07-27, roadmap review): the container precondition is satisfied — fmt-s1 #325 and fmt-s2 #326 are merged; scenario save has its Layer-2 home. GW-6 ownership flag: the roadmap says GW-6 is "drafted during P8 planning", but the only issue owning its authoring is #249 (p8-s5, fifth of six), no P8 discovery report exists yet, and #248's headline acceptance ("traffic-light scenario authorable end-to-end") ships before the workflow that would verify it — either the GW-6 draft moves to pillar planning/discovery or the roadmap prose should say "drafted in p8-s5 (#249)". Maintainer decision. Also worth noting at planning time:
rm:phasesalready mirrors OpenSCENARIO 1.4.0TrafficSignalController/Phase, so #245/#248's traffic-signal half is largely a binding exercise. Per-issue correction notes from the review are posted on each sprint issue.
Scope
Internal scenario model exporting OpenSCENARIO 1.x XML first, with OpenSCENARIO 2.x as an export-only subset sprint; Map↔Scenario mode; actor placement; lane-anchored routes; storyboard/condition logic editor; esmini preview hooks; GW-6 authoring.
Feeds
GW-6 (drafted during this pillar).
Update (2026-07-30): P8 is unblocked and STARTED. Everything that stood in
front of the first sprint is cleared —
discovery report
written (#505), the esmini-as-validator ruling made (§4), #327's
acceptance amended to match, #245's validate half scoped, and
GW-6
drafted ahead of the pillar (#521) so #245–#248 have an acceptance target
rather than shipping before the workflow that verifies them. §7 is therefore
closed; #249's scope was trimmed to refining GW-6 and replacing
esmini_smoke.py's syntheticXOSC_TEMPLATEwith a real exported scenario.#245 is in flight, planned as four PRs (ADR → model+writer →
reader+validator+esmini fixture → edit commands + signal decomposition +
bindings). Plan and the two new spec findings are
on the issue.Two findings from that spec read worth surfacing here:
OpenSCENARIO does publish checker-rule ids (76 annex references, e.g.
asam.net:xosc:1.0.0:data_type.phase_duration_positive), so "validation cites
normative rule ids" is met by anosc/rules.hppmirroring the OpenDRIVE
validator — additive to the esmini ruling, since esmini answers "does a
simulator accept this" and rule ids answer "which normative rule broke".
And §10.10 builds signal groups from the ASAM OpenDRIVE<controller>
element, independently confirming the one-controller-per-<controller>
decomposition.Also in P8's path but left to its own issue: #506 (esmini pinned twice —
the documented bump procedure silently no-ops), verified still real.
Sprints
- p8-s1: OpenSCENARIO data model #245 — p8-s1: OpenSCENARIO data model (1.x XML read/write/validate) — merged 2026-07-31 in four PRs (docs(decisions): ADR-0014 — a kernel-side scenario model on OpenSCENARIO 1.x (p8-s1) (#245) #522 ADR-0014, feat(osc): a kernel-side OpenSCENARIO scenario model and deterministic writer (p8-s1) (#245) #524 model+writer, feat(osc): read a .xosc back, and prove what esmini actually validates (p8-s1) (#245) #525 reader+validator+esmini fixture, feat(osc): build a scenario from a network, and edit one undoably (p8-s1) (#245) #526 decomposition+
osc::editcommand layer) - p8-s2: Map ↔ Scenario mode + actor placement #246 — p8-s2: Map ↔ Scenario mode + actor placement — complete, closed 2026-08-01. Seven PRs merged: the original five of 2026-07-31 (feat(osc): place actors on lanes, with speeds and a catalogue (p8-s2) (#246) #527 kernel
<LanePosition>/<SpeedAction>/actor catalogue, feat(editor): hold a scenario beside the scene, on one undo stack (p8-s2) (#246) #528 scenario onDocumentwith one undo stack, feat(editor): an Actor tool that places actors on lanes (p8-s2) (#246) #529 the Actor tool, feat(editor): draw placed actors as box proxies (p8-s2) (#246) #531 box-proxy rendering, feat(editor): Map ↔ Scenario mode, and the p8-s2 docs (#246) #532 Map↔Scenario mode + docs) plus the remainder checklist (feat(editor): actor attributes rows and Delete routing (p8-s2) (#246) #540 Attributes-pane actor rows + Delete routing, feat(editor): a Scenario branch and actor picking (p8-s2) (#246) #542 scene-tree scenario branch + viewport actor picking), which removed the ⚠ from GW-6 steps 3–4. - p8-s3: lane-anchored routes #247 — p8-s3: lane-anchored routes — complete, closed 2026-08-01. Five PRs: feat(core): a route model and writer for OpenSCENARIO (p8-s3) (#247) #541 (route model + writer), feat(core): read OpenSCENARIO routes, and round-trip them (p8-s3) (#247) #543 (reader + round trip + fuzz seeds), feat(core): resolve routes against the network, and edit them undoably (p8-s3) (#247) #544 (
osc::resolve_route/validate_routes— directed BFS over lane/road/junction links — plus five undoable waypoint commands, bindings, and the GW-6 steps 7–8 headless example), feat(editor): a Route tool, resolved-route overlay, and live route diagnostics (p8-s3) (#247) #545 (editor Route tool, resolved-route overlay, route findings in the Diagnostics panel viatopology_changed, and the mode gate generalized off its hardcoded Actor check), test(esmini): a routed fixture, and the measured route-anchor gate (p8-s3) (#247) #546 (tests/esmini/routed.{xodr,xosc}+ the MEASURED ruling that esmini v3.5.0 resolves route waypoint lane anchors — dangling roadId/laneId/s each fail the smoke gate, so the route half is genuinely simulator-gated, unlike the signal half p8: network-aware scenario validation — the signal half neither esmini nor validate_scenario checks #533 tracks). - p8-s4: storyboard / condition logic editor #248 — p8-s4: storyboard / condition logic editor
- p8-s5: esmini preview hooks + GW-6 authoring #249 — p8-s5: esmini preview hooks + GW-6 authoring
- p8-s6: OpenSCENARIO 2.x — export-only concrete-scenario subset #327 — p8-s6: OpenSCENARIO 2.x — export-only concrete-scenario subset
Follow-ups
2026-07-31 (roadmap review): filed #533 after measuring that the traffic-signal half of a scenario is validated by nobody — esmini accepts dangling
trafficSignalId/controller references silently (the 2026-07-30 measurement recorded above), andosc::validate_scenariotakes noRoadNetwork, so GW-6's "controller exists in the exported.xodrby the same id" criterion had no automated check anywhere. #248/#249's acceptance wording was scoped accordingly, and #327's body now carries the esmini acceptance the 2026-07-30 ruling already amended in comments. Also: #506 is CLOSED (the 2026-07-30 status block above still described it as open); #246 now carries its remainder as a checklist.
- p8: network-aware scenario validation — the signal half neither esmini nor validate_scenario checks #533 — network-aware scenario validation — the signal half neither esmini nor
validate_scenariochecks (2026-07-31 roadmap review; should land before or with p8-s5: esmini preview hooks + GW-6 authoring #249, whose acceptance references it) - fetch_asam_specs.py rewrites the tracked INDEX.md from a stale template, and adds an OpenSCENARIO row to it #523 —
fetch_asam_specs.pyrewrites the trackedINDEX.mdfrom a stale template (scripts/docs defect in P8's path; listed here so milestone 15's open count is explicable from this body)
Supersedes
(none)
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsTodo
Activity
JArmandoAnaya commentedon Jul 28, 2026
2026-07-28 roadmap review — P8 planning input (recorded now so the discovery report starts from it, since P8 is the next unstarted pillar and half of the product's name — "OpenDRIVE and OpenSCENARIO tool").
Pin the OpenSCENARIO minor version. Every roadmap document says only "OSC 1.x" / "2.x"; no doc names 1.2 vs 1.3 vs 1.4. The local ASAM reference bundle is OpenSCENARIO XML 1.4.0 — the discovery report should pin the target (1.4.0, or an explicit lower floor if esmini compatibility demands one) and define what "scenario parity" means, which no document currently does.
Maintainer prerequisite: the normative XSD is missing.
.claude/references/asam/openscenario-xml-1.4.0/has the text but itsschema/OpenSCENARIO.xsdrequires a manual gated ASAM download (flagged in that INDEX.md). p8-s6's acceptance says the exported 1.x file "validates against the schema" — that acceptance is unexecutable until the XSD is fetched. Worth doing before p8-s1 so validation is wired in from the first sprint.Write the P8 discovery report before p8-s1 lands. The README requires discovery "once per pillar, before its first sprint lands"; P3 already violated this irrevocably, P8 can still comply. Extra reason it matters here: p8-s2: Map ↔ Scenario mode + actor placement #246–p8-s5: esmini preview hooks + GW-6 authoring #249 have no committed scope text anywhere — the sprint cut exists only in issue bodies (the realignment appendix maps only p8-s1: OpenSCENARIO data model #245 and C11/p8-s6). The discovery report is the natural place to durably record the cut, resolve the GW-6 ownership flag above (still unresolved), and draft GW-6 itself.
Feature-area checklist for the discovery (from the OSC XML 1.4.0 chapter map; each row needs an in/out/deferred ruling):
.xodr) + SceneGraphFile linkage — natural first deliverable, RoadMaker owns both sidesExisting hooks the plan should exploit:
rm:phasesalready mirrorsTrafficSignalController/Phase(noted 2026-07-27 above), so p8-s1: OpenSCENARIO data model #245/p8-s4: storyboard / condition logic editor #248's traffic-signal half is largely a binding exercise; new kernel+editor: signal/object <validity> lane restrictions are preserved but invisible and unauthorable (§14.2/§13.6) #480 (signal<validity>lane restrictions) feeds lane-scoped signal semantics that OSC signal mapping will want; the esmini smoke job already exists in CI (noted on p8-s5: esmini preview hooks + GW-6 authoring #249 in the 2026-07-27 review).JArmandoAnaya commentedon Jul 29, 2026
P8 discovery report written (#505)
docs/roadmap/pillars/p8_discovery.md— P8 was the last pillar without one. Sprint order #245 → #246 → #247 → #248 → #249 → #327 stands; no resequencing implied. What follows needs decisions rather than work.1. #327's acceptance cannot be met as written — a licensing problem, not effort
It requires the exported 1.x file to "validate against the schema". There is no XSD in the tree,
scripts/fetch_asam_specs.py:432-444only checks for one and reportsMISSING, and the sharper fact: the ASAM reference texts are entirely untracked..gitignore:49-56says why in its own words — theINDEX.mdwhitelist is inert, because git cannot re-include files under an excluded parent.git ls-files .claude/references/is empty. CI has neither the schema nor the prose.Three substitutes, and only one works today with no new dependency:
rules.hppdoes for OpenDRIVEMaintainer decision needed, and #327's acceptance wording should be amended to match whichever is chosen. (b) also raises the value of #249's esmini work, since that job becomes the validation story rather than a smoke test.
2. One architectural constraint, decided in #245 rather than #249
Both golden-workflow replays drive
rm.edit.*throughEditStack, and the boundary is enforced at link level:python/CMakeLists.txt:36linksroadmaker::corealone,:12forcesRM_BUILD_EDITOR OFF, andbindings.cppcontains zeroeditor/includes.A GW-6 replay is possible if and only if scenario mutations are kernel
edit::Commands exposed viarm.edit.*, with a deterministic string-returningwrite_xoscfor the undo/redo fingerprint. If the model lands ineditor/src/document/, GW-6 loses its headless pre-flight evidence permanently and the gate narrows to three hand-runs with nothing behind them. Cheap to honour at the start of #245; impossible to retrofit at #249 without moving the model.3. The GW-6 ownership question — restated, not settled
Flagged in the 2026-07-27 review and unresolved. The roadmap says GW-6 is "drafted during P8 planning", but the only issue owning its authoring is #249, fifth of six, so #248's headline acceptance ("traffic-light scenario authorable end-to-end") ships before the workflow that would verify it.
docs/roadmap/_migration/00-inventory.md:110,144,186records GW-6's three hand-run issues as "Blocked by #249".The report recommends drafting
gw6_scenarios.mdnow, as part of this planning step: it costs a document, gives #245–#248 an acceptance target — the role GW-1…GW-5 play for their pillars — and unblocks those three gate issues from the fifth sprint. Maintainer decision.4. Findings that change sprint scope
junction.hpp:320-322), with one caveat it does not mention: RoadMaker's cycle is per-junction across N controllers, OSC'sTrafficSignalControlleris per-controller, so one timeline must be decomposed into N phase lists. That belongs here, not in p8-s4: storyboard / condition logic editor #248.routeappears nine times tree-wide, all prose; the OSM graph is an import graph, not a driving graph. This is the largest greenfield surface of the six despite sitting third. Worth re-checking its size before scheduling.SelectionEntry(selection_model.hpp:36-45) is a flat struct of six typed ids; adding a seventh kind is additive but every consumer switch follows (picking, properties, context menu, scene tree, gizmo). The reservedkScenariotoolbar tab and theEditor2DPageseam mean the hosting is free; the selection is not.5. Naming collisions to settle before the first header is written
Maneuveris already a public kernel type meaning something unrelated — an authored override for one connecting road's path through a junction, with a Python binding, an editor tool and anrm:maneuveruserData code. Namespace the OSC model or rename at the door.signalsis unusable as a member name at all. Qt#defines it, so a header carrying one is unparseable from any editor TU — already a documented trap twice undermesh/.Entityis used in prose throughout for "arena entity".6. A latent CI defect P8 will trip
Not P8's, but in its path: the esmini version is pinned twice —
ESMINI_VERSION: v3.5.0(ci.yml:690) and the literalv3.5.0in the cache key (:698) — whiledocs/contributing/ci.md:145instructs bumping only the env var. That would leave the cache serving the old binary and silently no-op the bump. Worth its own small issue.docs(roadmap): P8 discovery — what the scenario pillar collides with (#…
JArmandoAnaya commentedon Jul 30, 2026
Ruling: esmini is the de-facto OpenSCENARIO validator (maintainer decision, 2026-07-30)
Answering the §4 question raised from the P8 discovery report: option (b).
esmini's parser is the validation story for exported
.xosc. It is the only one of the three substitutes that works in CI today with no new dependency — esmini is already pinned, already in the pipeline, and MPL-2.0-cleared as a run-only subprocess (docs/standards/dependencies.md:104-112); linking or bundling it would not be, and nothing here changes that boundary.Consequences, to be applied as each sprint lands rather than up front:
.xsdin the tree; the ASAM references are entirely untracked because.gitignore's INDEX whitelist is inert), so the previous wording promised something the repository cannot do.scripts/esmini_smoke.py's hardcodedXOSC_TEMPLATE(a synthetic OpenSCENARIO 1.2 wrapper) must be replaced by a real exported scenario, which is §5's point.Not ruled out for later: hand-transcribing OSC Annex C rules into tests (option (a)), mirroring what
xodr/rules.hppdoes for OpenDRIVE. That would give citable rule IDs in diagnostics, which esmini's pass/fail cannot. It is additive to this ruling rather than an alternative, and is not required for v0.1.0.The §7 question (GW-6 ownership — draft now vs. leave in #249) is still open.
feat(osc): read a .xosc back, and prove what esmini actually validate…
docs(roadmap): repoint p8 discovery's two citations of the removed mi…