feat(pi-workflow): add human-readable run labels

This commit is contained in:
jb
2026-08-25 21:22:08 -04:00
parent a1d0b1415c
commit 54a7921227
17 changed files with 385 additions and 52 deletions
+9 -4
View File
@@ -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;
},
);
});
});