PROMPT-IN 002 / THE COMPLETE BRIEF
Plan a route.
Check the next move.
Complete brief / keep the acceptance checks
Build Switchyard as a single offline HTML file: a responsive 12-by-9 depot made from keyboard-accessible buttons. Dispatch D is cell 49, destinations A/B/C are 10/58/106, and couriers 1/2/3 start at 48/60/72. Number cells row-major from zero. Initial walls are 18,30,42,66,78,90. Queue six parcels A,B,C,A,C,B. Each tick, couriers in ID order pick up at D, deliver to the named destination, then return to D or home when the queue is empty. Use breadth-first shortest paths; treat walls and other couriers as obstacles. Reserve destination squares sequentially, prohibit overlaps and swaps, and count waiting ticks. Prefer a safe wait when blocked. Show a traffic-jam message after eight waits; do not claim deadlock freedom. Supply Run/Pause, One tick, Reset, an editable A/B/C parcel queue, and JSON notebook export/import. Validate every imported field, protected square, courier ID, collision and delivery total before replacing state. Allow wall edits only while paused and protect stations, homes and occupied squares. Arrow keys move cell focus. Pause on blur/hidden. Test shortest paths, unreachable targets, collision freedom, delivery of the default queue and invalid-import preservation. Deliver the file, tests and usage notes.