mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-02 19:08:33 +01:00
eval: freeze matched hiring admission with shared stock context
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
c471504099
commit
9f5404ad3a
8 files changed
+213
-9
No files matched your search
@@ -0,0 +1,127 @@
|
||||
{
|
||||
"schema": "paperclip.hiring-comparison-context.v1",
|
||||
"historicalHiringSourceSha": "d7bdfc422cadcc407f2945e211833a8382b80117",
|
||||
"hiringCandidateSourceSha": "57dcee147ed0b2d2e3cc657cd9e50fb16bf9ec25",
|
||||
"commonReducedAndNativeSourceSha": "f46492a45354eff21b83946407f5a7642cbaa2d6",
|
||||
"hiringFixtureDigest": "4d7f18420889325af89aa48eaaf021e8178aa6d26d504b92041635a15741f004",
|
||||
"restoredProductionFiles": [
|
||||
"packages/teams-catalog/catalog/bundled/company-defaults/core-exec-team/TEAM.md",
|
||||
"packages/teams-catalog/catalog/bundled/company-defaults/core-exec-team/agents/ceo/AGENTS.md",
|
||||
"packages/teams-catalog/catalog/bundled/company-defaults/core-exec-team/agents/cto/AGENTS.md",
|
||||
"packages/teams-catalog/catalog/bundled/company-defaults/core-exec-team/agents/qa/AGENTS.md",
|
||||
"packages/teams-catalog/catalog/bundled/product/product-design/TEAM.md",
|
||||
"packages/teams-catalog/catalog/bundled/product/product-design/agents/ux-designer/AGENTS.md",
|
||||
"packages/teams-catalog/catalog/bundled/software-development/product-engineering/agents/cto/AGENTS.md",
|
||||
"packages/teams-catalog/catalog/bundled/software-development/product-engineering/agents/qa/AGENTS.md",
|
||||
"packages/teams-catalog/catalog/bundled/software-development/product-engineering/agents/senior-coder/AGENTS.md",
|
||||
"packages/teams-catalog/generated/catalog.json",
|
||||
"server/src/onboarding-assets/ceo/AGENTS.md",
|
||||
"server/src/onboarding-assets/first-task/chief-of-staff/AGENTS.md",
|
||||
"server/src/services/default-agent-instructions.ts",
|
||||
"skills/paperclip-create-agent/SKILL.md",
|
||||
"skills/paperclip-create-agent/references/agent-instruction-templates.md",
|
||||
"skills/paperclip-create-agent/references/agents/coder.md",
|
||||
"skills/paperclip-create-agent/references/agents/qa.md",
|
||||
"skills/paperclip-create-agent/references/agents/securityengineer.md",
|
||||
"skills/paperclip-create-agent/references/agents/uxdesigner.md",
|
||||
"skills/paperclip-create-agent/references/baseline-role-guide.md",
|
||||
"skills/paperclip-create-agent/references/draft-review-checklist.md"
|
||||
],
|
||||
"excludedCandidateOnlyAssertions": [
|
||||
"materializes only the CEO entry file for claude_local via agents",
|
||||
"materializes only the CEO entry file for claude_local via agent-hires",
|
||||
"materializes only the CEO entry file for paperclip_runner via agents",
|
||||
"materializes only the CEO entry file for paperclip_runner via agent-hires"
|
||||
],
|
||||
"maxAutomaticRetries": 0,
|
||||
"executions": [
|
||||
"hiring-templates.runner-codex.local.hire-coder-template-reuse",
|
||||
"hiring-templates.runner-acpx-claude.local.hire-coder-template-reuse"
|
||||
],
|
||||
"productionSourceHashes": {
|
||||
"packages/teams-catalog/catalog/bundled/company-defaults/core-exec-team/TEAM.md": {
|
||||
"candidate": "e0c38e9af1a5dd1888fb81a72feba75a9ab1be4c78d8ceb658e2e5cd621c5096",
|
||||
"baseline": "4ab4f57f147e89a56a6753755d7ef142d91741b3c0159f2e53fb333cd2779eaf"
|
||||
},
|
||||
"packages/teams-catalog/catalog/bundled/company-defaults/core-exec-team/agents/ceo/AGENTS.md": {
|
||||
"candidate": "75848c6f794646a93e23bc73b80d31ef0eb8b83c105423eb98ea29e7685d2fd0",
|
||||
"baseline": "50f580c51807762265f09c6fe7bf32d7701d64caeb30595bfd577b2f5087c21b"
|
||||
},
|
||||
"packages/teams-catalog/catalog/bundled/company-defaults/core-exec-team/agents/cto/AGENTS.md": {
|
||||
"candidate": "d33bfdecdf2edcedde25599c72c383445365c595430109469a3919bf9cb12a3d",
|
||||
"baseline": "596e2e9fe08d7368b3b0cfe72c2635ea80444d92a2c0414157bfb0a17773fcaf"
|
||||
},
|
||||
"packages/teams-catalog/catalog/bundled/company-defaults/core-exec-team/agents/qa/AGENTS.md": {
|
||||
"candidate": "8b7fbdd93c0ecebddc1c87fb87d201340bd5f90297015da6cacd1681e7be70b8",
|
||||
"baseline": "2a139b88b4b98516048395c569c1bc74fd31cdc2da65db410e9779b8d92c0343"
|
||||
},
|
||||
"packages/teams-catalog/catalog/bundled/product/product-design/TEAM.md": {
|
||||
"candidate": "f950f4f77a26afa458ca0696994b51353a6bcfac81471fdc00c05f63950fcac5",
|
||||
"baseline": "205be8d3ef6c1f5e73729207913c387eee4cc9379191c3ce6d943fcf9ca2545d"
|
||||
},
|
||||
"packages/teams-catalog/catalog/bundled/product/product-design/agents/ux-designer/AGENTS.md": {
|
||||
"candidate": "301f2c7ed92bdd98036c06530588c77d74c3a3c6a8b9c724a3d35fee1142af6f",
|
||||
"baseline": "f5a4b5696d8249e9f9d808a4373c2a1e6b07faa463e72f83fd9d5bed98d2022f"
|
||||
},
|
||||
"packages/teams-catalog/catalog/bundled/software-development/product-engineering/agents/cto/AGENTS.md": {
|
||||
"candidate": "28849cb94cb506c4437fa4f9fa19dccb3e29b16175a9b99204a006dac721da48",
|
||||
"baseline": "0a1a73ec9e5008056bca0a26325131ded2fcf4c4680a5014ba1e13400b32c173"
|
||||
},
|
||||
"packages/teams-catalog/catalog/bundled/software-development/product-engineering/agents/qa/AGENTS.md": {
|
||||
"candidate": "577f585f6db5271cb7335861debe91fc3201fba9e1565e32611e957ddfab8e05",
|
||||
"baseline": "2d5738f831aa772befa3471c844a0c9e611584be668e3ec82580ca9e92dc13fc"
|
||||
},
|
||||
"packages/teams-catalog/catalog/bundled/software-development/product-engineering/agents/senior-coder/AGENTS.md": {
|
||||
"candidate": "e03e0eef79adc04b4ee558ac920bf2ef0581e9494510b7a12d5f1aea70858f18",
|
||||
"baseline": "b61071518755d9e584c099ae2082c7a78448d09586093ee91393082fe10872b5"
|
||||
},
|
||||
"packages/teams-catalog/generated/catalog.json": {
|
||||
"candidate": "e924b338b5bf24004eb57ca6a60daa7ae7e9c06b277e64ac8887e1379f16d492",
|
||||
"baseline": "28384fe47f2a24eee2f24f662bc3ac9725307df9c3b4f3106155c51a82e6db1c"
|
||||
},
|
||||
"server/src/onboarding-assets/ceo/AGENTS.md": {
|
||||
"candidate": "780fc699350b54471d8ff071716973b5cda184fbd202185f030db6fdc259c879",
|
||||
"baseline": "089ef9fc2f12934c882910ae35df048597729ee84d437a75d88ce8100c9f1862"
|
||||
},
|
||||
"server/src/onboarding-assets/first-task/chief-of-staff/AGENTS.md": {
|
||||
"candidate": "d568332c7209f19d03c89faba5c5405dd2da2c4edc9a1b87c41ed90aea75859d",
|
||||
"baseline": "986e1607ccd1faa80e2269afee1fc92e5b26eb89c8e76e38ab13b80ecd93f062"
|
||||
},
|
||||
"server/src/services/default-agent-instructions.ts": {
|
||||
"candidate": "8bd3b59f900c132db5ed89b96524f35ba7c8dafb9d58db1dac888430f08c4d63",
|
||||
"baseline": "5350ea86587087135b2ef46962d07a23a88078e03d67b234ecbfbefd7aa0e023"
|
||||
},
|
||||
"skills/paperclip-create-agent/SKILL.md": {
|
||||
"candidate": "00e3063a40bbe32592171fa613956bc1b503fe0a41c4973c8dae7b8cdf8c148a",
|
||||
"baseline": "66b935b273e2fd2f0abedc960b72c2063656c457633ac1bcc943b5fb274539f4"
|
||||
},
|
||||
"skills/paperclip-create-agent/references/agent-instruction-templates.md": {
|
||||
"candidate": "9ce87fc420b41e951cab664655886d0ee50fa253cb5b8647b4a7afa4a6082d2d",
|
||||
"baseline": "45787eaf0b7b751c5684518b73219b154af32b9cc23f99cbab539b365b83da6c"
|
||||
},
|
||||
"skills/paperclip-create-agent/references/agents/coder.md": {
|
||||
"candidate": "e04a25fbc8bb29910b2f4a3719730b8840553b0524ce1ec570617701aca20650",
|
||||
"baseline": "766c6f5db907f3dc2e317d540feb80e77358202c59d759449228a32450fa6202"
|
||||
},
|
||||
"skills/paperclip-create-agent/references/agents/qa.md": {
|
||||
"candidate": "2f1fc8f4c082ccac9f0a0428c8fba8e12fc50405dc39f3d3976da0afd2f25676",
|
||||
"baseline": "405119037d216deaa6476b0f21b69329115dfee9d10064b6820973a91c05bf65"
|
||||
},
|
||||
"skills/paperclip-create-agent/references/agents/securityengineer.md": {
|
||||
"candidate": "9eecf981844ab1f5896dd1bae6b76acce8471c448841608c5655497d691ba1a0",
|
||||
"baseline": "cd4f34687e873de4c9f0c6c43f268f8d95a43e283b20092c6e6216e0ec68dee4"
|
||||
},
|
||||
"skills/paperclip-create-agent/references/agents/uxdesigner.md": {
|
||||
"candidate": "f6341c7dd4ce19b7f90e613ad1b46b3f4ba2b5ac19bde1b7b3b4a60ec0376b43",
|
||||
"baseline": "d44fe590bf20e743cdf7f3de5a365d679e61335165d1da02d78e926a928adc3d"
|
||||
},
|
||||
"skills/paperclip-create-agent/references/baseline-role-guide.md": {
|
||||
"candidate": "0841c5c483526d8d64c7217df7164bca7f3f03edcf4578f2baefcca01cd156b0",
|
||||
"baseline": "9b86775beb3ea62a821a1593abe0e1a280b64944fc68fe76388ec29f8f1a9932"
|
||||
},
|
||||
"skills/paperclip-create-agent/references/draft-review-checklist.md": {
|
||||
"candidate": "1cbe0577a9888f31467f5c7beea01d0aa6435da2a0f577b5fdd3b5fe773984ad",
|
||||
"baseline": "517eb8d0033e2713053574c7a7ce685e2229fa9f61d094db70271c321dbfe397"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
import { createHash } from "node:crypto";
|
||||
import { readFile } from "node:fs/promises";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { loadDefaultAgentInstructionsBundle } from "../../server/src/services/default-agent-instructions.js";
|
||||
import { validateCatalog } from "../../packages/teams-catalog/src/catalog-builder.js";
|
||||
import { hiringTemplateDefinitionDigest } from "./hiring-template-cases.js";
|
||||
import { stockHarnessGates } from "./stock-harness-checks.mjs";
|
||||
|
||||
const root = new URL("../../", import.meta.url);
|
||||
const hash = (bytes) => createHash("sha256").update(bytes).digest("hex");
|
||||
const context = JSON.parse(await readFile(new URL("./hiring-comparison-context.json", import.meta.url), "utf8"));
|
||||
async function variant() {
|
||||
const loader = "server/src/services/default-agent-instructions.ts";
|
||||
const actual = hash(await readFile(new URL(loader, root)));
|
||||
const expected = context.productionSourceHashes[loader];
|
||||
expect([expected.candidate, expected.baseline]).toContain(actual);
|
||||
return actual === expected.candidate ? "candidate" : "baseline";
|
||||
}
|
||||
describe("frozen hiring comparison source admission", () => {
|
||||
it("validates the selected CEO files against this variant's loader", async () => {
|
||||
const current = await variant();
|
||||
const files = await loadDefaultAgentInstructionsBundle("ceo");
|
||||
expect(Object.keys(files)).toEqual(current === "candidate" ? ["AGENTS.md"] : ["AGENTS.md", "HEARTBEAT.md", "SOUL.md", "TOOLS.md"]);
|
||||
for (const [name, content] of Object.entries(files)) {
|
||||
expect(content).toBe(await readFile(new URL(`server/src/onboarding-assets/ceo/${name}`, root), "utf8"));
|
||||
}
|
||||
for (const path of context.restoredProductionFiles) {
|
||||
expect(hash(await readFile(new URL(path, root))), path).toBe(context.productionSourceHashes[path][current]);
|
||||
}
|
||||
expect(hiringTemplateDefinitionDigest).toBe(context.hiringFixtureDigest);
|
||||
});
|
||||
it("matches the canonical team catalog to this variant's production sources", async () => {
|
||||
const catalog = await validateCatalog(fileURLToPath(new URL("packages/teams-catalog/", root)));
|
||||
expect(catalog.errors).toEqual([]);
|
||||
});
|
||||
it("excludes exactly the four candidate-only CEO selection assertions and retains other boundaries", () => {
|
||||
const gate = stockHarnessGates.find(gate => gate.id === "SH-2");
|
||||
const filter = new RegExp(gate.testPattern);
|
||||
expect(context.excludedCandidateOnlyAssertions).toHaveLength(4);
|
||||
for (const name of context.excludedCandidateOnlyAssertions) expect(filter.test(`agent skill routes ${name}`)).toBe(false);
|
||||
for (const name of ["materializes minimal default instructions for non-CEO agents with no prompt template", "gives a CEO hire the core paperclip skills when none are requested", "omits the legacy operational skill from paperclip_runner CEO defaults", "materializes a managed AGENTS.md for directly created local agents"]) expect(filter.test(name)).toBe(true);
|
||||
});
|
||||
});
|
||||
@@ -50,7 +50,7 @@ import {
|
||||
type RunnerE2EResult,
|
||||
} from "./types.js";
|
||||
import { assertRunnerE2EPrerequisites } from "./prerequisites.js";
|
||||
import { prepareStockHarnessPreflight, STOCK_PREFLIGHT_ENV } from "./stock-harness-admission.js";
|
||||
import { prepareStockHarnessPreflight, STOCK_PREFLIGHT_ENV, requiresStockHarnessPrerequisites, effectiveAutomaticRetries } from "./stock-harness-admission.js";
|
||||
import {
|
||||
reapNewDetachedDarwinSharedMemory,
|
||||
snapshotDarwinSharedMemory,
|
||||
@@ -1028,7 +1028,7 @@ async function runExecutionWithRetry(input: {
|
||||
options.debug ||
|
||||
firstResult.status !== "failed" ||
|
||||
!firstResult.failureClass ||
|
||||
!shouldRetryFailure(firstResult.failureClass, options.maxAutomaticRetries)
|
||||
!shouldRetryFailure(firstResult.failureClass, effectiveAutomaticRetries(execution.suite.id, options.maxAutomaticRetries))
|
||||
) {
|
||||
return firstResult;
|
||||
}
|
||||
@@ -1105,7 +1105,7 @@ async function main() {
|
||||
);
|
||||
const summaryDir = path.join(resultsRoot, campaignId);
|
||||
await mkdir(summaryDir, { recursive: true });
|
||||
if (executions.some(execution => execution.suite.id === "stock-harness")) {
|
||||
if (executions.some(execution => requiresStockHarnessPrerequisites(execution.suite.id))) {
|
||||
process.env[STOCK_PREFLIGHT_ENV] = prepareStockHarnessPreflight(summaryDir);
|
||||
}
|
||||
|
||||
@@ -1134,7 +1134,8 @@ async function main() {
|
||||
`${JSON.stringify(
|
||||
{
|
||||
version: 1,
|
||||
maxAutomaticRetries: options.maxAutomaticRetries,
|
||||
maxAutomaticRetries: Math.max(...executions.map(execution => effectiveAutomaticRetries(execution.suite.id, options.maxAutomaticRetries))),
|
||||
perExecution: executions.map(execution => ({ id: execution.id, maxAutomaticRetries: effectiveAutomaticRetries(execution.suite.id, options.maxAutomaticRetries) })),
|
||||
retryClasses: ["transient_infrastructure", "provider_variance"],
|
||||
},
|
||||
null,
|
||||
|
||||
@@ -16,7 +16,7 @@ import { runEverydayFlow } from "./everyday-flow.js";
|
||||
import { gradeTaskTitle } from "./task-titles.js";
|
||||
import { runContextIntegrityFlow } from "./context-integrity-flow.js";
|
||||
import { captureStockHarness, gradeStockHarness, gradeStockHire } from "./stock-harness.js";
|
||||
import { verifyStockHarnessPreflight, STOCK_PREFLIGHT_ENV } from "./stock-harness-admission.js";
|
||||
import { verifyStockHarnessPreflight, STOCK_PREFLIGHT_ENV, requiresStockHarnessPrerequisites } from "./stock-harness-admission.js";
|
||||
import { createTaskThroughUi, submitTaskReply } from "./user-actions.js";
|
||||
|
||||
import { runFirstTaskFlow, setupFirstTaskFixtures } from "./first-task-flow.js";
|
||||
@@ -817,7 +817,7 @@ for (const execution of executions) {
|
||||
});
|
||||
|
||||
try {
|
||||
if (execution.suite.id === "stock-harness") {
|
||||
if (requiresStockHarnessPrerequisites(execution.suite.id)) {
|
||||
const receipt = verifyStockHarnessPreflight(process.env[STOCK_PREFLIGHT_ENV]);
|
||||
await writeSanitizedJson(snapshotsDir, "stock-harness-preflight.json", receipt, secrets);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { spawnSync } from "node:child_process";
|
||||
import { prepareStockHarnessPreflight, stockPreflightEnvironment, verifyStockHarnessPreflight } from "./stock-harness-admission.js";
|
||||
import { prepareStockHarnessPreflight, stockPreflightEnvironment, verifyStockHarnessPreflight, requiresStockHarnessPrerequisites, effectiveAutomaticRetries } from "./stock-harness-admission.js";
|
||||
import { CREDENTIAL_NAMES } from "./types.js";
|
||||
|
||||
vi.mock("node:child_process", () => ({ spawnSync: vi.fn() }));
|
||||
@@ -42,3 +42,15 @@ describe("stock harness credential-free admission", () => {
|
||||
expect(() => verifyStockHarnessPreflight("/fixture/preflight.json")).toThrow("stale source");
|
||||
});
|
||||
});
|
||||
|
||||
describe("frozen hiring comparison admission", () => {
|
||||
it("admits stock and hiring suites without expanding other campaigns", () => {
|
||||
expect(requiresStockHarnessPrerequisites("stock-harness")).toBe(true);
|
||||
expect(requiresStockHarnessPrerequisites("hiring-templates")).toBe(true);
|
||||
expect(requiresStockHarnessPrerequisites("chat")).toBe(false);
|
||||
});
|
||||
it("never retries a hiring model attempt, including infrastructure failures", () => {
|
||||
for (const configured of [0, 1]) expect(effectiveAutomaticRetries("hiring-templates", configured)).toBe(0);
|
||||
expect(effectiveAutomaticRetries("stock-harness", 1)).toBe(1);
|
||||
});
|
||||
});
|
||||
@@ -5,6 +5,14 @@ import path from "node:path";
|
||||
const root = path.resolve(import.meta.dirname, "../..");
|
||||
export const STOCK_PREFLIGHT_ENV = "PAPERCLIP_RUNNER_E2E_STOCK_PREFLIGHT";
|
||||
|
||||
// Comparison-ref admission and retry policy. Ordinary PR sources are unchanged.
|
||||
export function requiresStockHarnessPrerequisites(suiteId: string) {
|
||||
return suiteId === "stock-harness" || suiteId === "hiring-templates";
|
||||
}
|
||||
export function effectiveAutomaticRetries(suiteId: string, configured: number) {
|
||||
return suiteId === "hiring-templates" ? 0 : configured;
|
||||
}
|
||||
|
||||
// An allowlist keeps every provider credential, ambient auth override, and GH
|
||||
// token out of the prerequisite subprocess, including secrets added later.
|
||||
export function stockPreflightEnvironment(source: NodeJS.ProcessEnv): NodeJS.ProcessEnv {
|
||||
|
||||
@@ -19,7 +19,7 @@ export const stockHarnessGates = [
|
||||
"preserves stock Codex instructions on prepared recovery", "preserves stock Codex instructions on direct recovery",
|
||||
"captures exact provider frames and correlates", "exposes native completion consistently on fresh and resumed sessions",
|
||||
"passes caller-supplied native system instructions"] },
|
||||
{ id: "SH-2", name: "Production-default hire bundle", cwd: ".", files: [
|
||||
{ id: "SH-2", name: "Production-default hire bundle", cwd: ".", testPattern: "^(?!.*materializes only the CEO entry file).*$", files: [
|
||||
"server/src/__tests__/agent-skills-routes.test.ts",
|
||||
"server/src/services/onboarding-first-task-assets.test.ts",
|
||||
], required: ["materializes minimal default instructions for non-CEO agents with no prompt template"] },
|
||||
@@ -64,6 +64,12 @@ export const stockHarnessGates = [
|
||||
"changes when the evaluated tests/runner-e2e/native-completion-case.ts changes",
|
||||
"accepts the persisted blocker, owner and exact requested unblock action",
|
||||
"retains credential-free prerequisites inside the exact campaign root"] },
|
||||
{ id: "SH-hiring", name: "Matched production hiring oracle and source coverage", cwd: ".",
|
||||
config: "tests/runner-e2e/vitest.config.ts",
|
||||
files: ["tests/runner-e2e/hiring-template.test.ts", "tests/runner-e2e/catalog.test.ts", "tests/runner-e2e/live-fixtures.test.ts", "tests/runner-e2e/hiring-comparison-context.test.mjs"],
|
||||
required: ["compares each revision's bundle and example without imposing candidate length on baseline",
|
||||
"accepts only supported direct read arguments", "reads the actual default CEO selection and served hiring files",
|
||||
"validates the selected CEO files against this variant's loader", "matches the canonical team catalog to this variant's production sources"] },
|
||||
];
|
||||
|
||||
export function gradeGate(gate, report, exitCode) {
|
||||
@@ -82,7 +88,13 @@ export function gradeGate(gate, report, exitCode) {
|
||||
|
||||
export function sourceFingerprint() {
|
||||
const hash = createHash("sha256");
|
||||
const hiringContext = JSON.parse(readFileSync(join(root, "tests/runner-e2e/hiring-comparison-context.json"), "utf8"));
|
||||
const sources = new Set([
|
||||
...hiringContext.restoredProductionFiles,
|
||||
...["AGENTS.md", "HEARTBEAT.md", "SOUL.md", "TOOLS.md"].map(file => `server/src/onboarding-assets/ceo/${file}`),
|
||||
"tests/runner-e2e/hiring-comparison-context.json",
|
||||
...["cases", "flow", "scoring"].map(part => `tests/runner-e2e/hiring-template-${part}.ts`),
|
||||
"tests/runner-e2e/fixtures/hiring-templates/coder.d7bdfc4.md",
|
||||
...stockHarnessGates.flatMap(gate => gate.files.map(file => join(gate.cwd, file))),
|
||||
"tests/runner-e2e/stock-harness.ts", "tests/runner-e2e/stock-harness-checks.mjs", "tests/runner-e2e/catalog.ts",
|
||||
"tests/runner-e2e/stock-harness-admission.ts", "tests/runner-e2e/launch.ts", "tests/runner-e2e/runner.spec.ts",
|
||||
|
||||
@@ -7,7 +7,7 @@ const report = () => ({ testResults: [{ name: "/repo/boundary.test.ts", status:
|
||||
numTotalTests: 1, numPassedTests: 1, numFailedTests: 0, numPendingTests: 0 });
|
||||
describe("stock harness prerequisite coverage", () => {
|
||||
it("maps every implemented change to an executable gate", () => {
|
||||
expect(stockHarnessGates.map(gate => gate.id)).toEqual(["SH-1", "SH-2", "SH-3", "SH-3-hermes", "SH-4-tools", "SH-4-resume", "SH-eval"]);
|
||||
expect(stockHarnessGates.map(gate => gate.id)).toEqual(["SH-1", "SH-2", "SH-3", "SH-3-hermes", "SH-4-tools", "SH-4-resume", "SH-eval", "SH-hiring"]);
|
||||
expect(stockHarnessGates.every(gate => gate.files.length > 0 && gate.required.length > 0)).toBe(true);
|
||||
});
|
||||
it("accepts an executed passing boundary", () => expect(gradeGate(gate, report(), 0).passed).toBe(true));
|
||||
|
||||
Reference in new issue
Block a user