feat(pi-workflow): add human-readable run labels
This commit is contained in:
@@ -340,6 +340,8 @@ test("analysis scripts run persisted read-only Assignments with tool intersectio
|
||||
};
|
||||
const completed = await engine.execute(command);
|
||||
assert.equal(completed.status, "completed");
|
||||
assert.equal(completed.featureName, undefined);
|
||||
assert.equal(completed.request, "Audit persistence behavior");
|
||||
assert.equal(setup.workspace.prepareCalls, 0);
|
||||
const persisted = await setup.store.loadRun(completed.runId);
|
||||
assert.equal(persisted.mode, "analysis");
|
||||
@@ -3649,13 +3651,16 @@ test("feature names and branch collisions fail with actionable guidance", async
|
||||
|
||||
setup.workspace.branchExists = false;
|
||||
setup.executor.enqueue("discover", discoveryWithQuestions());
|
||||
const started = await engine.execute(
|
||||
startCommand({ idempotencyKey: "owner-key" }),
|
||||
);
|
||||
await engine.execute(startCommand({ idempotencyKey: "owner-key" }));
|
||||
setup.workspace.branchExists = true;
|
||||
const [owner] = await setup.store.listRuns();
|
||||
await assert.rejects(
|
||||
engine.execute(startCommand({ idempotencyKey: "second-owner-key" })),
|
||||
new RegExp(`${started.runId}.*inspect or decide`),
|
||||
(error: unknown) => {
|
||||
assert.match((error as Error).message, /inspect or decide/);
|
||||
assert.ok((error as Error).message.includes(owner!.runId));
|
||||
return true;
|
||||
},
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user