feat(gatorwalk-factory): studio Simulate mode: saved scenarios on the engine in the page, walk from here, Copy as scenario (swamp-club #2808) #414
Loading…
Reference in a new issue
No description provided.
Delete branch "cue/2808-gatorwalk-factory-studio"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes swamp-club #2808.
The studio's Simulate mode, which replaces the read-only Scenarios mode. The page plays every saved scenario of a factory on the real engine, in the browser, and re-runs them whenever the factory's model definition changes on disk. A person can step a work item through by hand from any frame, and copy that walk as a scenario entry for the agent to save. The page never writes.
What it does
globalArguments.scenarios) with the engine's ownrunScenario, on load and after everydefinitionevent, with a pass/fail per scenario naming each step that did not go as expected. It reads scenarios only through Design mode's loader and event; there is no new route or watch. A reload that fails the schema keeps the last results under the STALE note.globalArguments.scenarios, withexpect: { refused }on each refused step and a closingexpect: { stage }. It is re-run in the page to say whether it passes.statusreports it, and the walk actions), Journal, Metrics (computeMetricson the scenario clock) and Scenarios.scenario.tsandmetrics.tsjoin the page bundle; the script is 738 KB, under the 800 KB module limit.Tests
simulate_test.ts: the runner, walks, actions, exit states, Copy round trip, overlay and timeline.state_test.ts: a stubbed server, checking a reload re-run, walk replay, a broken file, a step during a reload, a discard during a step, and pause on step.acceptance_test.ts, the issue's acceptance:plan-churnfail at step 16 in the summary and the timeline;plan-churncopies an entry that passes the factory'svalidate.Docs
scenarios.md,driving.md).Follow-ups
🤖 Generated with Claude Code