Skip to content

The open-source app everyone uses to manage agents at work

test: use neutral references in chat hiring evals (#13752)

Dotta0103cb229245
diff --git a/tests/runner-e2e/README.md b/tests/runner-e2e/README.md
index 29f5694a7b..c8006b22e2 100644
--- a/tests/runner-e2e/README.md
+++ b/tests/runner-e2e/README.md
@@ -161,6 +161,11 @@ recorded separately. The suite uses production permission defaults and prompts.
Only hiring and cross-task status/review enable the opt-in native API tools.
Hiring uses a personal managed AI connection and verifies the hired worker's
actual execution account. This is not an onboarding-default qualification.
+The hiring checklist and review request a `Reference: ...` line. This gives the
+fixture marker a neutral label instead of leaving the agent to choose credential
+syntax such as `Tracking token: ...`. Exact marker, authorship, worker reuse,
+and saved-output checks remain required. This case tests coordination, not
+credential-redaction policy.
Stop during startup and Stop during an active response are separate boundaries.
The native active-response case requires a recorded provider turn start; generic
diff --git a/tests/runner-e2e/catalog.ts b/tests/runner-e2e/catalog.ts
index 73b6cd9927..3addfd186f 100644
--- a/tests/runner-e2e/catalog.ts
+++ b/tests/runner-e2e/catalog.ts
@@ -959,7 +959,7 @@ export const runnerSuites: readonly RunnerSuiteFixture[] = [
environments: [localEnvironment, daytonaWarmEnvironment], tasks: chatHardeningTasks, expectedMatrixSize: 18,
excludedExecutionIds: ["runner-codex", "runner-acpx-claude"].flatMap(profile =>
["stop-startup-new-resume", "hire-delegate-reuse", "blocked-status-review"].map(task => `agent-chat-hardening.${profile}.daytona.${task}`)),
- definitionMetadata: { version: 4, permissions: "production-defaults", instructions: "production", grading: "durable-state-and-source-evidence", scheduling: "explicit-only", restartMemory: "required-after-restart", statusEvidence: "structured-current-blocker-and-active-run-count", readOnlyState: "public-mutation-contract-and-relations" },
+ definitionMetadata: { version: 5, permissions: "production-defaults", instructions: "production", grading: "durable-state-and-source-evidence", scheduling: "explicit-only", restartMemory: "required-after-restart", statusEvidence: "structured-current-blocker-and-active-run-count", readOnlyState: "public-mutation-contract-and-relations", hiringReference: "neutral-document-reference-line" },
},
...(process.env.PAPERCLIP_RUNNER_E2E_CONNECTION_REVIEWS === "1" ? [connectionReviewSuite] : []),
{
diff --git a/tests/runner-e2e/chat-hardening.ts b/tests/runner-e2e/chat-hardening.ts
index 3c0d547c29..60f6058c93 100644
--- a/tests/runner-e2e/chat-hardening.ts
+++ b/tests/runner-e2e/chat-hardening.ts
@@ -125,7 +125,7 @@ export async function runChatHardeningFlow(context: {
try {
if (execution.task.id === "hire-delegate-reuse") {
const hireName = `Morgan Reviewer ${nonce}`;
- await turn(`Hire exactly one teammate named ${hireName}, reporting to you, using your native runner, model, and available AI connection. Have that teammate write a concise launch checklist as a saved Paperclip document containing ${marker}. Put the work in one assigned task in ${project.name}. Link it here and let the teammate complete it.`, 2);
+ await turn(`Hire exactly one teammate named ${hireName}, reporting to you, using your native runner, model, and available AI connection. Have that teammate write a concise launch checklist as a saved Paperclip document with the line "Reference: ${marker}". Put the work in one assigned task in ${project.name}. Link it here and let the teammate complete it.`, 2);
const first = (await tasks())[0]!;
expect(first).toBeTruthy();
const firstOutput = await output(first.id, marker);
@@ -133,7 +133,7 @@ export async function runChatHardeningFlow(context: {
const hired = assertChatHire({ agents: await agents(), leadId: f.agent.id, hireName,
connectionId: account.connectionId, binding: account.binding, taskIds: [first.id], tasks: await tasks(), runs: await allRuns() });
expect((firstOutput as Document).createdByAgentId).toBe(hired.id);
- await turn(`Have the existing ${hireName} review the checklist on ${first.identifier} and write a separate saved review document containing REVIEW${marker}. Create one review task in ${project.name}, assigned to that same teammate. Include the actual checklist in the handoff so they can review it. Preserve the original checklist and task.`, 4);
+ await turn(`Have the existing ${hireName} review the checklist on ${first.identifier} and write a separate saved review document with the line "Reference: REVIEW${marker}". Create one review task in ${project.name}, assigned to that same teammate. Include the actual checklist in the handoff so they can review it. Preserve the original checklist and task.`, 4);
const observed = await tasks();
const second = observed.find(task => task.id !== first.id)!;
expect(second).toBeTruthy();