diff --git a/tests/runner-e2e/chat-catalog-domains/internal-private-delegation.ts b/tests/runner-e2e/chat-catalog-domains/internal-private-delegation.ts index b1d7fd16b94..ef6d9e88f7d 100644 --- a/tests/runner-e2e/chat-catalog-domains/internal-private-delegation.ts +++ b/tests/runner-e2e/chat-catalog-domains/internal-private-delegation.ts @@ -21,8 +21,7 @@ export function gradePrivateDelegation(value: unknown) { "The private conversation and existing private project remain restricted while both authorized agents retain actual access."); c.add("one-authorized-confidential-task", o.tasks.length === 1 && !!saved && saved.companyId === o.companyId && saved.projectId === p.id && saved.assigneeAgentId === worker.id && !(saved as PrivateTask).conversationAgentId - && /\b(?:confidential|private)\b/i.test(`${saved.title} ${saved.description ?? ""}`) - && /\b(?:announcement|launch)\b/i.test(`${saved.title} ${saved.description ?? ""}`) + && /\b(?:announcements?|announce|launch\s+(?:message|copy|notice|post))\b/i.test(`${saved.title} ${saved.description ?? ""}`) && o.activity.some(row => row.action === "issue.created" && row.entityId === saved.id && row.agentId === o.leadId) && hasLink(o, "issues", saved), "Exactly one ordinary confidential launch task belongs to the actual private project and authorized Morgan, with an inspectable source link."); c.add("morgan-retains-effective-access", o.workerTaskStatus === 200, "The actual assignee's independent bearer can retrieve the private delegated task."); diff --git a/tests/runner-e2e/chat-catalog-domains/internal.test.ts b/tests/runner-e2e/chat-catalog-domains/internal.test.ts index b477ca1b20f..ef73f2382f2 100644 --- a/tests/runner-e2e/chat-catalog-domains/internal.test.ts +++ b/tests/runner-e2e/chat-catalog-domains/internal.test.ts @@ -523,6 +523,10 @@ describe("governed completion calibration", () => { }); describe("private delegation audience calibration", () => { + it("accepts natural announcement wording without requiring privacy adjectives in the task text", () => { + const o = valid("tasks.private-task"); o.tasks[0]!.title = "Draft Acorn launch announcement"; o.tasks[0]!.description = "Write an announcement for the upcoming launch."; + expect(gradeInternal(o).passed).toBe(true); + }); it("rejects a public source conversation even when the new project is private", () => { const o = valid("tasks.private-task"); Object.assign(o, { sourcePrivate: false }); expect(gradeInternal(o).passed).toBe(false); });