1
0

fix: align robot jobs with active HQ plans

This commit is contained in:
2026-08-19 02:59:25 -07:00
parent e378a03740
commit 120eac878a
6 changed files with 56 additions and 48 deletions
+5 -4
View File
@@ -46,14 +46,15 @@ describe("robot operations and routes", () => {
}),
/simulated/,
);
const laPlan = new Plan(MATEO_COURT, { warn: false });
assert.throws(
() => resolveRobotOperations(plan, {
...LUMBRIDGE_HQ_ROBOT_OPERATIONS,
() => resolveRobotOperations(laPlan, {
...MATEO_COURT_ROBOT_OPERATIONS,
jobs: [{
id: "bad-route",
label: "Bad route",
kind: "deliver",
stationIds: ["sf-l1-parcel-pickup", "sf-l2-parcel-drop"],
stationIds: ["la-l1-parcel-pickup", "la-l2-parcel-drop"],
dwellTicks: 1,
}],
robots: [],
@@ -109,7 +110,7 @@ describe("robot activity determinism", () => {
it("exposes deterministic blocked recovery for a controlled robot", () => {
const plan = new Plan(LUMBRIDGE_HQ, { warn: false });
const operations = resolveRobotOperations(plan, LUMBRIDGE_HQ_ROBOT_OPERATIONS);
const id = "sf-l1-courier";
const id = "sf-studio-activity-01";
const activity = createRobotActivity(plan, operations, {
seed: 1,
robotIds: [id],