feat: rename design_task to research_task and update related documentation
This commit is contained in:
@@ -213,7 +213,7 @@ describe("E2E bootstrap — hook injection", () => {
|
||||
|
||||
it("should resolve architect instructions with project override", async () => {
|
||||
h = await createTestHarness({ projectName: "arch-proj" });
|
||||
h.provider.seedIssue({ iid: 6, title: "Design API", labels: ["To Design"] });
|
||||
h.provider.seedIssue({ iid: 6, title: "Design API", labels: ["Planning"] });
|
||||
|
||||
await h.writePrompt("architect", "# Default Architect\nGeneral design guidelines.");
|
||||
await h.writePrompt("architect", "# Arch Proj Architect\nUse event-driven architecture.", "arch-proj");
|
||||
@@ -229,8 +229,8 @@ describe("E2E bootstrap — hook injection", () => {
|
||||
issueUrl: "https://example.com/issues/6",
|
||||
role: "architect",
|
||||
level: "senior",
|
||||
fromLabel: "To Design",
|
||||
toLabel: "Designing",
|
||||
fromLabel: "Planning",
|
||||
toLabel: "Planning",
|
||||
transitionLabel: (id, from, to) => h.provider.transitionLabel(id, from, to),
|
||||
provider: h.provider,
|
||||
});
|
||||
|
||||
@@ -28,6 +28,7 @@ import {
|
||||
DEFAULT_WORKFLOW,
|
||||
getActiveLabel,
|
||||
getRevertLabel,
|
||||
hasWorkflowStates,
|
||||
type WorkflowConfig,
|
||||
type Role,
|
||||
} from "../workflow.js";
|
||||
@@ -161,6 +162,10 @@ export async function checkWorkerHealth(opts: {
|
||||
} = opts;
|
||||
|
||||
const fixes: HealthFix[] = [];
|
||||
|
||||
// Skip roles without workflow states (e.g. architect — tool-triggered only)
|
||||
if (!hasWorkflowStates(workflow, role)) return fixes;
|
||||
|
||||
const worker = getWorker(project, role);
|
||||
const sessionKey = worker.level ? getSessionForLevel(worker, worker.level) : null;
|
||||
|
||||
@@ -430,6 +435,10 @@ export async function scanOrphanedLabels(opts: {
|
||||
} = opts;
|
||||
|
||||
const fixes: HealthFix[] = [];
|
||||
|
||||
// Skip roles without workflow states (e.g. architect — tool-triggered only)
|
||||
if (!hasWorkflowStates(workflow, role)) return fixes;
|
||||
|
||||
const worker = getWorker(project, role);
|
||||
|
||||
// Get labels from workflow config
|
||||
|
||||
Reference in New Issue
Block a user