Q51: agents may only move work they own, manage or review; done needs evidence and sign-off
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ddc8b485e9
commit
d9cb86a999
9 files changed
+175
-28
No files matched your search
@@ -192,7 +192,7 @@ describe("autonomous bootstrap run", () => {
|
||||
if (taskId && !alreadyClosed) {
|
||||
return {
|
||||
text: "Reviewed the goal; closing the kickoff.",
|
||||
toolCalls: [call("update_task_status", { task_id: taskId, status: "done" })],
|
||||
toolCalls: [call("update_task_status", { task_id: taskId, status: "done", evidence: "Operating plan posted in #general." })],
|
||||
rawResponseJson: JSON.stringify({ id: "resp_goal_close" }),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ describe("task dependencies", () => {
|
||||
.toThrow(`"${parentTitle}" has open subtasks: Hire the CTO. It can close once they are done.`);
|
||||
const ctx = { orgId: h.orgId, agent: { id: h.ceoId, modelProviderId: null, modelId: null }, taskProjectId: null, taskGoalId: null, taskId: null, sourceThreadId: null, workspace: null };
|
||||
const deps = { db: h.connection.db, organization: h.organization, chat: new ChatService(h.connection.db) };
|
||||
expect(dispatchAgentTool(deps, ctx, { id: "c1", name: "update_task_status", arguments: { task_id: parentId, status: "done" } }))
|
||||
expect(dispatchAgentTool(deps, ctx, { id: "c1", name: "update_task_status", arguments: { task_id: parentId, status: "done", evidence: "Delegated." } }))
|
||||
.toBe(`ERROR: "${parentTitle}" has open subtasks: Hire the CTO. It can close once they are done.`);
|
||||
|
||||
// A run queued before the subtask existed is superseded instead of running ahead of it.
|
||||
|
||||
Reference in new issue
Block a user