An editor for building driving scenarios, designed so the author can see the gap between the plan and the run.עורך לבניית תרחישי נהיגה, שמראה ליוצר את הפער בין התכנון להרצה.
A self-driving team can't wait for the road to produce a dangerous moment, so someone builds one: take a recorded drive, add a car that cuts in, run it in simulation. That person plans what should happen. The simulation decides what does, because the vehicle under test drives itself.
The Scenario Designer is where they do it, from scratch or from a recording. In Foretellix's flow, that covers the first two steps. I designed it so the author can see where the run and the plan part ways, before pressing Preview and after.
My role. I owned the editor's UX from the first export panel to the unified editor: the research, the flows, the specification and the shared components it was built from. I led two designers on the Smart Replay side, and for the first months I was also its acting product manager.
Each of the four decisions below tries to answer the question in the title.
A scenario author builds a near-miss on purpose. In a cut-in, a car changes lane just ahead of the vehicle under test, to check that it brakes or steers back to a safe drive. But that vehicle drives itself. If it is a little faster or slower than the author assumed, the cut-in comes at the wrong moment and tests nothing.
Same plan, three runs. The author only finds out after a full run.
At first there was no editor at all. Smart Replay, an export panel in the run debugger, could only vary a recorded drive. New actors, like the cut-in car, opened the gap between plan and run, and the work grew from there into one editor where an author builds a scenario from a recording or an empty map.
As acting product manager I defined the features, wrote the user stories and acceptance criteria, and set the priorities. I had no direct contact with the people who would use the editor, but I wasn't working blind. A contact at the main customer, our design partner, worked closely with us on requirements, and a second customer sent a clear written list of needs. The rest came from:
The questions became the specification. With no product manager to turn needs into one, asking well, in writing, was the deliverable.
Without direct access to users, the product team and I built the picture from what we could reach: the design partner, application engineers and the written requirements. It became six personas and a journey map of ten roles across the steps of the flow, from importing a run to approving a scenario.
I also compared eleven scenario-authoring tools on nine aspects. They split on how to describe a path, and most kept a structured view of the scene beside the map: the questions behind decisions 1 and 2.
What customers asked for. One customer aimed for hundreds of variations per recording, which drawing by hand cannot reach. Getting an exact sideways shift was, in their words, very hard. Another customer's developers built scenarios in scripts, so a flow made only of clicks slowed them down.
The problem
A cut-in only works if the new car is in the right place at the right time. So the path has to say when, not only where.
The benchmark showed two ways to describe one. Some tools use waypoints: points on the map that the car passes in order. Others use segments: one stretch of driving after another, each with its own behaviour.
Build the path from waypoints. The author clicks A, then B, then C on the map, and each waypoint carries a time or a speed.
It's how animation tools move objects, and how people describe a manoeuvre. And distance and time read together: points far apart with little time between them mean fast.
One of the application engineers I interviewed before making this choice asked to see the waypoints on the timeline as well as on the map. I designed it: one row for each actor, one dot for each waypoint. It was cut before production and never built, because customers didn't seem to need it.
Segments returned later. An actor may have to follow one stretch of its path exactly and adapt to traffic on the next, and that setting belongs to the stretch between two waypoints. So the author still places waypoints, and the segment between them carries the behaviour.
The problem
By early 2026 a scene held the vehicle under test, recorded actors, added actors, segments, triggered actions and parameters. In a flat list, people lost their place.
Drag the handle to compare
Make the scene's structure a permanent surface: a tree beside the map that lists everything in the scenario and drives what the map and the inspector show.
Six of the eleven benchmarked tools put a structured scene list beside the map. The PM and the tech lead weren't convinced it was a must, so I built a working prototype in the product's own code. The PM came round as the feature details got deeper, and I believe the prototype helped.
The tree also carries an idea that was the PM's: set a behaviour on a group and every actor in it follows. My part was the rule for exceptions. An actor you changed by hand keeps its value until you reset it.
When an argument can't be held in a static file, build it in the real material. It changes who is able to judge it.
The problem
Some problems can be known from the plan itself. Others only a run can reveal. An author who can't tell them apart doesn't know whether to fix the plan or run it again.
Sort issues by when they can be known.
I wrote this model as the specification engineering built from: the severities, what blocks Preview, and how each issue clears. An issue also shows up where the author is looking: on the waypoint that causes it, with the reason.
The problem
To check a plan, the author had to leave the editor, launch, choose a configuration, wait for the run, then find the result elsewhere in Foretify Manager. The plan and its run were never on the same screen.
Comparing started in the run debugger: a result is checked against the original noisy log, and against other versions and variations of the same test.
Preview runs the scenario inside the editor and shows the result as its own layer beside the plan.
The check is gradual, cheapest first:
The PM and I wanted two levels, with Preview on the customer's full configuration. That was too slow and cost the customer more, and the middle level was the tech lead's solution. My part was where the result lands: as its own layer on the same map as the recording and the plan, so nothing has to be opened somewhere else.
I first carried the debugger's compare into the editor as it was. But in the editor, one side is being edited: my first model turned a recorded actor into an editable one, destroying the recording it had to be compared with. My team caught it before it was built.
The fix: promoting an actor duplicates it. The original stays as a reference layer, and the edit sits on top.
A run only means something next to what it came from, so an edit must never replace it.
The problem
Every panel existed twice, once as a Figma component and once as a shared component in code. Keeping them in step cost work on every ticket.
Each panel of the editor started as a master component in Figma: the inspector, the tree, the actor controller. Every ticket's delivery screens were built from them, with each state numbered and annotated.
When an idea had to be tried rather than looked at, I built it in a prototype branch of the product, on the same shared components engineering uses, as with the tree.
In the last year I could close that gap myself: with Claude Code I changed the shared components and merged them into the main repository, where Storybook documents them.
By my own estimate, UX delivery took 50 to 70% less time. People reacted to a working prototype on the real product rather than to pictures of it. Developers started from a live branch instead of a spec, so the pixel-by-pixel review after build often wasn't needed.
I maintained the shared components myself. About six that I built for the editor moved into the shared library, and two of them already appear on about four other screens.
The build reached early access in about six months. By September 2026 the editor had shipped and met both of the design partner's targets: about 10 minutes to create a variation, and no code editor to change a scenario. In an internal usability session, a stand-in user built a cut-in scenario in about 15 minutes.
Use at the design partner then slowed for a reason outside the editor: for a while, their priority moved to generating maps from sensor logs, which Foretellix supported in other products.
Push the automation direction earlier. I had built a working mock of prompt-based authoring inside the editor and didn't fight for it. Two customers kept asking for exactly that. Next time the mock goes in front of customers early, and the cost of having no direct user access gets written down on day one.
Editing by prompt, with an AI agent that makes the change, was one of the first things customers asked for, and that mock is where I wanted the editor to go next. The author describes a change, and the assistant answers with a proposal: drawn on the map beside the plan, named in the editor's own terms, and waiting for Accept or Discard.
צוות של רכב אוטונומי לא יכול לחכות שהכביש ייצר רגע מסוכן, אז מישהו בונה אותו: לוקחים נסיעה מוקלטת, מוסיפים רכב שנדחק לנתיב, ומריצים בסימולציה. מי שבונה מתכנן מה אמור לקרות. הסימולציה מחליטה מה קורה בפועל, כי הרכב הנבדק נוהג בעצמו.
Scenario Designer הוא המקום שבו עושים את זה, מאפס או מתוך הקלטה. ב-flow של Foretellix, אלה שני השלבים הראשונים. עיצבתי אותו כך שהיוצר יראה איפה ההרצה והתכנית נפרדות, לפני שלוחצים Preview ואחרי.
התפקיד שלי. הובלתי את חוויית המשתמש של העורך מפאנל הייצוא הראשון ועד העורך המאוחד: המחקר, ה-flows, האפיון והרכיבים המשותפים שהוא נבנה מהם. הובלתי שני מעצבים בצד של Smart Replay, ובחודשים הראשונים הייתי גם מנהל המוצר בפועל שלו.
כל אחת מארבע ההחלטות שבהמשך מנסה לענות על השאלה שבכותרת.
יוצר התרחיש בונה כמעט-תאונה בכוונה. ב-cut-in, רכב עובר נתיב ממש לפני הרכב הנבדק, כדי לבדוק שהוא בולם או מסיט את ההגה וחוזר לנסיעה בטוחה. אבל הרכב הזה נוהג בעצמו. אם הוא קצת מהיר יותר או איטי יותר ממה שהיוצר הניח, ה-cut-in מגיע ברגע הלא נכון ולא בודק כלום.
תכנית אחת, שלוש הרצות. היוצר מגלה את זה רק אחרי הרצה מלאה.
בהתחלה לא היה עורך בכלל. Smart Replay, פאנל ייצוא ב-run debugger, ידע רק לגוון נסיעה מוקלטת. ה-actors החדשים, כמו רכב ה-cut-in, פתחו את הפער בין התכנית להרצה, ומשם העבודה גדלה לעורך אחד שבו בונים תרחיש מתוך הקלטה או ממפה ריקה.
כמנהל המוצר בפועל הגדרתי את הפיצ'רים, כתבתי את ה-user stories ואת קריטריוני הקבלה, וקבעתי את סדרי העדיפויות. לא היה לי קשר ישיר עם מי שישתמשו בעורך, אבל לא עבדתי בעיניים עצומות. איש קשר אצל הלקוח העיקרי, שותף העיצוב שלנו, עבד איתנו מקרוב על הדרישות, ולקוח שני שלח רשימת צרכים כתובה וברורה. השאר הגיע ממקורות אחרים:
השאלות הפכו לאפיון. בלי מנהל מוצר שיהפוך צרכים לאפיון, לשאול טוב, בכתב, היה התוצר.
בלי גישה ישירה למשתמשים, צוות המוצר ואני בנינו את התמונה ממה שיכולנו להגיע אליו: שותף העיצוב, מהנדסי האפליקציה והדרישות הכתובות. ממנה יצאו שש פרסונות ומפת מסע של עשרה תפקידים לאורך שלבי ה-flow, מייבוא הרצה ועד אישור תרחיש.
השוויתי גם אחד-עשר כלים ליצירת תרחישים בתשעה היבטים. הם נחלקו בדרך שבה מתארים מסלול, ורובם החזיקו תצוגה מובנית של הסצנה לצד המפה: השאלות שמאחורי החלטות 1 ו-2.
מה הלקוחות ביקשו. לקוח אחד כיוון למאות וריאציות לכל הקלטה, מספר שאי אפשר להגיע אליו בציור ידני. להזיז רכב הצידה בדיוק למרחק הרצוי היה, במילים שלהם, קשה מאוד. אצל לקוח אחר המפתחים בנו תרחישים בסקריפטים, כך שתהליך שכולו לחיצות האט אותם.
הבעיה
ה-cut-in עובד רק אם הרכב החדש נמצא במקום הנכון בזמן הנכון. לכן המסלול צריך להגיד מתי, ולא רק איפה.
ההשוואה הראתה שתי דרכים לתאר אותו. חלק מהכלים משתמשים ב-waypoints: נקודות על המפה שהרכב עובר בהן לפי הסדר. אחרים משתמשים ב-segments: קטע נסיעה אחרי קטע, ולכל אחד התנהגות משלו.
לבנות את המסלול מ-waypoints. היוצר לוחץ על A, אחר כך B, אחר כך C על המפה, ולכל waypoint יש זמן או מהירות.
כך כלי אנימציה מזיזים אובייקטים, וכך אנשים מתארים תמרון. ומרחק וזמן נקראים יחד: נקודות רחוקות עם מעט זמן ביניהן הן נסיעה מהירה.
אחד ממהנדסי האפליקציה שראיינתי לפני ההחלטה ביקש לראות את ה-waypoints גם על ציר הזמן, ולא רק על המפה. עיצבתי את זה: שורה לכל actor, נקודה לכל waypoint. זה ירד לפני הפיתוח ולא נבנה, כי ללקוחות לא נראה שזה נחוץ.
ה-segments חזרו מאוחר יותר. ייתכן ש-actor יצטרך לעקוב בדיוק אחרי קטע אחד במסלול שלו, ולהסתגל לתנועה בקטע הבא, וההגדרה הזו שייכת לקטע שבין שני waypoints. אז היוצר עדיין מציב waypoints, וה-segment שביניהם נושא את ההתנהגות.
הבעיה
בתחילת 2026 סצנה כבר הכילה את הרכב הנבדק, actors מוקלטים, actors שנוספו, segments, triggered actions ו-parameters. ברשימה שטוחה, אנשים איבדו את מקומם.
גררו את הידית כדי להשוות
להפוך את מבנה הסצנה למשטח קבוע: עץ לצד המפה שמציג את כל מה שיש בתרחיש, וקובע מה מוצג במפה וב-inspector.
שישה מתוך אחד-עשר הכלים שנבדקו הציבו רשימת סצנה מובנית לצד המפה. מנהל המוצר וראש הצוות הטכני לא השתכנעו שזה הכרחי, אז בניתי אב טיפוס עובד בקוד של המוצר עצמו. מנהל המוצר השתכנע ככל שפרטי הפיצ'ר העמיקו, ואני מאמין שאב הטיפוס עזר.
העץ נושא גם רעיון של מנהל המוצר: מגדירים התנהגות על קבוצה, וכל actor בה הולך אחריה. החלק שלי היה הכלל לחריגים: actor ששיניתם ידנית שומר על הערך שלו עד שמאפסים אותו.
כשטיעון לא מחזיק בקובץ סטטי, בונים אותו בחומר האמיתי. זה משנה מי מסוגל לשפוט אותו.
הבעיה
על חלק מהבעיות אפשר לדעת מהתכנית עצמה. אחרות רק הרצה יכולה לחשוף. יוצר שלא מבחין ביניהן לא יודע אם לתקן את התכנית או להריץ שוב.
למיין בעיות לפי מתי אפשר לדעת עליהן.
כתבתי את המודל הזה כאפיון שההנדסה בנתה ממנו: רמות החומרה, מה חוסם את ה-Preview, ואיך כל בעיה נעלמת. בעיה מופיעה גם במקום שבו היוצר מסתכל: על ה-waypoint שגורם לה, עם הסיבה.
הבעיה
כדי לבדוק תכנית, הכותב היה צריך לצאת מהעורך, להריץ, לבחור תצורה, לחכות להרצה, ואז למצוא את התוצאה במקום אחר ב-Foretify Manager. התכנית וההרצה שלה אף פעם לא היו על אותו מסך.
ההשוואה התחילה ב-run debugger: תוצאה נבדקת מול הלוג הרועש המקורי, ומול גרסאות ווריאציות אחרות של אותה בדיקה.
Preview מריץ את התרחיש בתוך העורך ומציג את התוצאה כשכבה משלה לצד התכנית.
הבדיקה הדרגתית, מהזולה ביותר:
מנהל המוצר ואני רצינו שתי רמות, עם Preview על התצורה המלאה של הלקוח. זה היה איטי מדי ועלה ללקוח יותר, והרמה האמצעית הייתה הפתרון של ראש הצוות הטכני. החלק שלי היה איפה התוצאה נוחתת: כשכבה משלה על אותה מפה עם ההקלטה והתכנית, כך ששום דבר לא צריך להיפתח במקום אחר.
בהתחלה העברתי את ההשוואה מה-debugger לעורך כמו שהיא. אבל בעורך, צד אחד נמצא בעריכה: המודל הראשון שלי הפך actor מוקלט לכזה שאפשר לערוך, והרס את ההקלטה שהיה צריך להשוות אליה. הצוות שלי תפס את זה לפני שזה נבנה.
התיקון: קידום (promote) של actor משכפל אותו. המקור נשאר כשכבת ייחוס, והעריכה יושבת מעליו.
להרצה יש משמעות רק לצד מה שממנו היא באה, ולכן עריכה לעולם לא צריכה להחליף אותה.
הבעיה
כל פאנל היה קיים פעמיים, פעם כרכיב ב-Figma ופעם כרכיב משותף בקוד. השמירה על התאמה ביניהם עלתה בעבודה בכל טיקט.
כל פאנל בעורך התחיל כ-master component ב-Figma: ה-inspector, העץ, ה-actor controller. מסכי המסירה של כל טיקט נבנו מהם, וכל מצב בהם ממוספר ומוער.
כשאת הרעיון היה צריך לנסות, לא רק לראות, בניתי אותו ב-prototype branch של המוצר, על אותם רכיבים משותפים שההנדסה משתמשת בהם, כמו עם העץ.
בשנה האחרונה יכולתי לסגור את הפער הזה בעצמי: עם Claude Code שיניתי את הרכיבים המשותפים ומיזגתי אותם ל-repository הראשי, שם Storybook מתעד אותם.
לפי הערכה שלי, מסירת ה-UX לקחה 50 עד 70% פחות זמן. אנשים הגיבו לאב טיפוס עובד על המוצר האמיתי, ולא לתמונות שלו. המפתחים התחילו מ-branch חי במקום מאפיון, ולכן בדיקת הפיקסלים אחרי הפיתוח לרוב לא הייתה נחוצה.
תחזקתי את הרכיבים המשותפים בעצמי. כשישה רכיבים שבניתי לעורך עברו לספרייה המשותפת, ושניים מהם כבר מופיעים בכארבעה מסכים אחרים.
הבנייה הגיעה לגישה מוקדמת בתוך כשישה חודשים. עד ספטמבר 2026 העורך יצא ועמד בשני היעדים של שותף העיצוב: כ-10 דקות ליצירת וריאציה, ובלי עורך קוד כדי לשנות תרחיש. במבחן שמישות פנימי, עמית בתפקיד היוצר בנה תרחיש cut-in בכ-15 דקות.
השימוש אצל שותף העיצוב האט אחר כך מסיבה שמחוץ לעורך: לתקופה, העדיפות שלהם עברה ליצירת מפות מלוגים של חיישנים, ש-Foretellix תמכה בה במוצרים אחרים.
לדחוף את כיוון האוטומציה מוקדם יותר. בניתי mock עובד של יצירה מבוססת prompt בתוך העורך ולא נלחמתי עליו. שני לקוחות ביקשו בדיוק את זה שוב ושוב. בפעם הבאה ה-mock יגיע ללקוחות מוקדם, והמחיר של היעדר גישה ישירה למשתמשים ייכתב כבר ביום הראשון.
עריכה באמצעות prompt, עם סוכן AI שמבצע את השינוי בעצמו, הייתה מהבקשות הראשונות של הלקוחות, וה-mock הזה הוא הכיוון שרציתי שהעורך ילך אליו. היוצר מתאר שינוי, וה-assistant עונה בהצעה: מצוירת על המפה לצד התכנית, מנוסחת במונחים של העורך עצמו, ומחכה ל-Accept או ל-Discard.