{"record":{"id":"3eb2880b8dda2780","repo":"paperclipai/paperclip","slug":"company-not-found-3eb288","errorCode":null,"errorMessage":"Company not found","messagePattern":"Company not found","errorType":"http","errorClass":null,"httpStatus":404,"severity":"error","filePath":"server/src/routes/agents.ts","lineNumber":3636,"sourceCode":"        actorId: actor.actorId,\n        action: \"agent.skills_synced\",\n        entityType: \"agent\",\n        entityId: updated.id,\n        agentId: actor.agentId,\n        runId: actor.runId,\n        agentApiKeyId: actor.agentApiKeyId,\n        details: {\n          adapterType: updated.adapterType,\n          desiredSkills,\n          desiredSkillEntries,\n          assignmentMode: req.body.mode,\n          mode: snapshot.mode,\n          supported: snapshot.supported,\n          entryCount: snapshot.entries.length,\n          warningCount: snapshot.warnings.length,\n        },\n      });\n\n      res.json(snapshot);\n    },\n  );\n\n  router.get(\"/companies/:companyId/agents\", async (req, res) => {\n    const companyId = req.params.companyId as string;\n    assertCompanyAccess(req, companyId);\n    const unsupportedQueryParams = Object.keys(req.query).sort();\n    if (unsupportedQueryParams.length > 0) {\n      res.status(400).json({\n        error: `Unsupported query parameter${unsupportedQueryParams.length === 1 ? \"\" : \"s\"}: ${unsupportedQueryParams.join(\", \")}`,\n      });\n      return;\n    }\n    const result = await filterAgentsForActor(req, await svc.list(companyId));\n    const canReadConfigs = await actorCanReadConfigurationsForCompany(req, companyId);\n    if (canReadConfigs) {\n      res.json(result.map((agent) => redactAgentRowForResponse(agent)));","sourceCodeStart":3618,"sourceCodeEnd":3654,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/server/src/routes/agents.ts#L3618-L3654","documentation":"The agent hire flow looked up the company by id after normalizing inputs and found no row. The company targeted by the hire no longer exists, so hire creation aborts with a not-found error.","triggerScenarios":"Thrown at server/src/routes/agents.ts:3182 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the company id is correct and the company exists."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ad8584922b5d85292b1723cae71fa0d9b07a19","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}