paperclipai/paperclip · error
Test run not found
Error message
Test run not found
What it means
Error "Test run not found" thrown in paperclipai/paperclip.
Source
Thrown at server/src/routes/company-skills.ts:572
router.get("/companies/:companyId/skills/:skillId/test-runs", async (req, res) => {
const companyId = req.params.companyId as string;
const skillId = req.params.skillId as string;
assertCompanyAccess(req, companyId);
const query = companySkillTestRunListQuerySchema.parse({
inputId: firstQueryString(req.query.inputId),
});
res.json(await svc.listTestRuns(companyId, skillId, query));
});
router.get("/companies/:companyId/skills/:skillId/test-runs/:runId", async (req, res) => {
const companyId = req.params.companyId as string;
const skillId = req.params.skillId as string;
const runId = req.params.runId as string;
assertCompanyAccess(req, companyId);
const result = await svc.getTestRunDetail(companyId, skillId, runId);
if (!result) {
res.status(404).json({ error: "Test run not found" });
return;
}
res.json(result);
});
router.post(
"/companies/:companyId/skills/:skillId/test-runs",
validate(companySkillTestRunCreateSchema),
async (req, res) => {
const companyId = req.params.companyId as string;
const skillId = req.params.skillId as string;
await assertCanMutateCompanySkills(req, companyId, "skills.test", () => skillPolicyResource({ companyId, skillId }));
await assertCanOrchestrateSkillTestHarness(req, companyId, {
assigneeAgentId: req.body.agentId,
});
const actor = getActorInfo(req);
const result = await svc.createTestRun(companyId, skillId, req.body, skillActor(req), {
createHarnessIssue: async (harnessIssue) => {View on GitHub (pinned to 120ae5428f)
Solutions
- Verify the id in the request path or body refers to an existing record in this company; re-list the parent collection to get a valid id.
- Check that the record was not deleted or archived, and that the request is scoped to the correct companyId.
When it happens
Trigger: Thrown at server/src/routes/company-skills.ts:572 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of paperclipai/paperclip@120ae5428f (2026-08-18).
Data as JSON: /api/errors/7a654dc18d593b71.
Report an issue: GitHub.