feat: rename design_task to research_task and update related documentation

This commit is contained in:
Lauren ten Hoor
2026-02-16 18:47:01 +08:00
parent d87b9f68a2
commit b57ede0863
15 changed files with 249 additions and 173 deletions

View File

@@ -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,
});

View File

@@ -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