mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-03 03:36:57 +01:00
test(hermes): add paid browser qualification campaigns
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
b0f54fc1a2
commit
f7c75cff29
8 files changed
+248
-12
No files matched your search
@@ -1465,14 +1465,17 @@ immutable Daytona image; no private hooks or fixture database writes are used.
|
||||
|
||||
## Extended ACP harnesses (explicit only)
|
||||
|
||||
`--suite extended-harnesses` declares 30 Product E2E cells: Cursor, Copilot,
|
||||
and Pi on local and Daytona, each exercising authenticated completion,
|
||||
`--suite extended-harnesses` declares 40 Product E2E cells: Cursor, Copilot,
|
||||
Pi and Hermes on local and Daytona, each exercising authenticated completion,
|
||||
question/answer continuation, revision-bound semantic plan approval, restart
|
||||
with pending input, and file edit plus independent byte validation. The file
|
||||
case uses a public project workspace so Daytona copy-back is graded too.
|
||||
These are candidate definitions, not a claim of provider qualification. Native
|
||||
provider-specific questions, plan decisions, restrictive permissions and steering
|
||||
need their separate conformance/qualification evidence.
|
||||
Hermes uses an existing managed OpenRouter connection through the ordinary
|
||||
connection fixture. It remains pending qualification; the native transport
|
||||
fixture does not substitute for these browser and remote workflows.
|
||||
|
||||
```sh
|
||||
pnpm test:e2e:runner -- --list --suite extended-harnesses
|
||||
|
||||
@@ -146,10 +146,10 @@ describe("runner E2E catalog", () => {
|
||||
expect(localIntegrityTasks).toHaveLength(2);
|
||||
expect(openRouterBreadthTasks).toHaveLength(3);
|
||||
expect(runnerSuites.map((suite) => suite.expectedMatrixSize)).toEqual([
|
||||
63, 12, 6, 8, 2, 2, 2, 30, 3, 16, 16, 2, 6, 8, 46, 23, 15, 52, 6, 6, 20, 26, 52, 28, 18, 2, 6, 6, 12, 10, 48, 16, 10, 2, 1, 1, 116,
|
||||
63, 12, 6, 8, 2, 2, 2, 40, 3, 16, 16, 2, 6, 8, 46, 23, 15, 52, 6, 6, 20, 26, 52, 28, 18, 2, 6, 6, 12, 10, 48, 16, 10, 2, 1, 1, 116,
|
||||
]);
|
||||
expect(validateRunnerCatalog()).toHaveLength(698);
|
||||
expect(new Set(runnerMatrix.map((entry) => entry.id)).size).toBe(698);
|
||||
expect(validateRunnerCatalog()).toHaveLength(708);
|
||||
expect(new Set(runnerMatrix.map((entry) => entry.id)).size).toBe(708);
|
||||
expect(
|
||||
runnerMatrix.filter((entry) => entry.suite.id === "core-compatibility"),
|
||||
).toHaveLength(48);
|
||||
|
||||
@@ -174,7 +174,7 @@ function nativeProfile(input: {
|
||||
provider: "codex" | "opencode" | "acpx";
|
||||
model: string;
|
||||
credential: RunnerProfileFixture["credential"];
|
||||
acpxAgent?: "claude" | "codex" | "grok" | "cursor" | "copilot" | "pi";
|
||||
acpxAgent?: "claude" | "codex" | "grok" | "cursor" | "copilot" | "pi" | "hermes";
|
||||
qualificationCandidate?: RunnerProfileFixture["qualificationCandidate"];
|
||||
supportedEnvironments?: readonly (typeof ENVIRONMENT_IDS)[number][];
|
||||
modelQualification?: RunnerProfileFixture["modelQualification"];
|
||||
@@ -338,6 +338,11 @@ export const runnerProfiles: readonly RunnerProfileFixture[] = [
|
||||
// Explicit qualification choices from authenticated model discovery, not shipped
|
||||
// defaults. Cursor has local/Daytona proof; Copilot and Pi remain pending.
|
||||
export const extendedHarnessProfiles: readonly RunnerProfileFixture[] = [
|
||||
nativeProfile({
|
||||
id: "runner-acpx-hermes", label: "Runner Hermes (candidate)", provider: "acpx", acpxAgent: "hermes",
|
||||
qualificationCandidate: "hermes", credential: "OPENROUTER_API_KEY", model: "deepseek/deepseek-v4-flash-0731",
|
||||
modelQualification: { source: "candidate_runner_profile", qualificationId: "hermes:v2026.9.24:openrouter:pending" },
|
||||
}),
|
||||
nativeProfile({
|
||||
id: "runner-acpx-cursor", label: "Runner Cursor", provider: "acpx", acpxAgent: "cursor",
|
||||
qualificationCandidate: "cursor", credential: "CURSOR_AUTH_TOKEN",
|
||||
@@ -1180,7 +1185,7 @@ export const runnerSuites: readonly RunnerSuiteFixture[] = [
|
||||
description: "Explicit candidate qualification through real Paperclip tools, browser interactions, file edits and restart recovery.",
|
||||
groups: ["native"], profiles: extendedHarnessProfiles, environments: runnerEnvironments,
|
||||
tasks: [...openRouterBreadthTasks, localIntegrityTasks[1]!, extendedHarnessFileTask],
|
||||
expectedMatrixSize: 30,
|
||||
expectedMatrixSize: 40,
|
||||
definitionMetadata: { version: 1, qualification: "pending", scheduling: "explicit-only", admission: "host-exact-candidate-and-model", authenticatedDiscoveryDate: "2026-09-28" },
|
||||
},
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@ import { findSecretLeak, redactText } from "./redaction.js";
|
||||
const selected = runnerMatrix.filter(cell => cell.suite.id === "extended-harnesses");
|
||||
describe("extended ACP harness qualification", () => {
|
||||
it("has exactly five real product journeys per provider in both environments, excluded from all", () => {
|
||||
expect(selected).toHaveLength(30);
|
||||
expect(selected).toHaveLength(40);
|
||||
expect(new Set(selected.map(cell => cell.environment.id))).toEqual(new Set(["local", "daytona"]));
|
||||
expect(new Set(selected.map(cell => cell.task.id))).toEqual(new Set([
|
||||
"hello-complete", "question-resume-complete", "plan-approve-complete", "structured-question-restart-resume", "file-edit-validate",
|
||||
@@ -18,6 +18,7 @@ describe("extended ACP harness qualification", () => {
|
||||
});
|
||||
it("uses exact discovered models, encrypted credential references and current qualification metadata", () => {
|
||||
expect(extendedHarnessProfiles.map(profile => profile.model)).toEqual([
|
||||
"deepseek/deepseek-v4-flash-0731",
|
||||
"gpt-5.6-luna[context=272k,reasoning=medium,fast=false]", "gpt-5.6-luna", "openrouter/deepseek/deepseek-v4-flash-0731",
|
||||
]);
|
||||
for (const profile of extendedHarnessProfiles) {
|
||||
@@ -28,7 +29,7 @@ describe("extended ACP harness qualification", () => {
|
||||
}
|
||||
});
|
||||
it("replaces ambient admission with the selected exact pairs and strips raw provider credentials from server", () => {
|
||||
const cell = selected[0]!;
|
||||
const cell = selected.find(cell => cell.profile.qualificationCandidate === "cursor")!;
|
||||
const ambient = { PAPERCLIP_RUNNER_ACPX_QUALIFICATION: "ambient", CURSOR_AUTH_TOKEN: "cursor", CURSOR_API_KEY: "cursor-key", COPILOT_GITHUB_TOKEN: "copilot", GH_TOKEN: "github", GITHUB_TOKEN: "github" };
|
||||
const env = buildRunnerE2EProcessEnvironment(ambient, [cell]);
|
||||
expect(env.PAPERCLIP_RUNNER_ACPX_QUALIFICATION).toBeUndefined();
|
||||
|
||||
@@ -92,6 +92,7 @@ describe("live runner fixtures", () => {
|
||||
});
|
||||
|
||||
it.each([
|
||||
["runner-acpx-hermes", "extended-harnesses", "hello-complete"],
|
||||
["runner-codex", "hiring-templates", "hire-coder-template-reuse"],
|
||||
["runner-acpx-claude", "hiring-templates", "hire-coder-template-reuse"],
|
||||
["runner-codex", "everyday-workflows", "hire-reuse"],
|
||||
@@ -110,7 +111,7 @@ describe("live runner fixtures", () => {
|
||||
e.environment.id === "local",
|
||||
)!;
|
||||
const provider =
|
||||
profile === "runner-acpx-claude" ? "anthropic" : profile === "runner-opencode" ? "openrouter" : "openai";
|
||||
profile === "runner-acpx-claude" ? "anthropic" : ["runner-opencode", "runner-acpx-hermes"].includes(profile) ? "openrouter" : "openai";
|
||||
let connected = false;
|
||||
let agentBody: any;
|
||||
const api = {
|
||||
|
||||
@@ -241,7 +241,8 @@ export async function setupLiveFixtures(input: {
|
||||
},
|
||||
});
|
||||
|
||||
const managedHiring = isManagedHiringCase(execution.suite.id, execution.task.id);
|
||||
const managedHiring = isManagedHiringCase(execution.suite.id, execution.task.id)
|
||||
|| execution.profile.qualificationCandidate === "hermes";
|
||||
if (managedHiring) {
|
||||
registry.register<ManagedAccountFixture>({
|
||||
id: "ai-connection",
|
||||
|
||||
@@ -78,7 +78,7 @@ export interface RunnerProfileFixture {
|
||||
| "openrouter_rankings_snapshot";
|
||||
qualificationId: string;
|
||||
};
|
||||
qualificationCandidate?: "cursor" | "copilot" | "pi";
|
||||
qualificationCandidate?: "cursor" | "copilot" | "pi" | "hermes";
|
||||
ranking?: {
|
||||
rank: number;
|
||||
canonicalModelId: string;
|
||||
|
||||
Reference in new issue
Block a user