{"record":{"id":"777cfcbe94e9a561","repo":"paperclipai/paperclip","slug":"createdbyrunid-is-not-valid-for-this-company","errorCode":null,"errorMessage":"createdByRunId is not valid for this company","messagePattern":"createdByRunId is not valid for this company","errorType":"http","errorClass":null,"httpStatus":403,"severity":"error","filePath":"server/src/routes/issues.ts","lineNumber":5169,"sourceCode":"      recoveryCause === \"successful_run_missing_state\" ||\n      recoveryCause === \"successful_run_missing_issue_disposition\"\n    ) {\n      return null;\n    }\n\n    const firstLine = body.split(/\\r?\\n/, 1)[0]?.trim() || \"Recovery update\";\n    const title = firstLine.length > 160 ? `${firstLine.slice(0, 159)}…` : firstLine;\n    return {\n      kind: \"system_notice\",\n      tone: \"info\",\n      title,\n      detailsDefaultOpen: false,\n      density: \"compact\",\n    };\n  }\n\n  async function assertDeliverableMutationAllowedByRunContext(\n    req: Request,\n    res: Response,\n    issue: { id: string; companyId: string },\n  ) {\n    const run = await loadActorRunContext(req, issue.companyId);\n    if (!run) return true;\n    if (!isStatusOnlyRecoveryContext(run.contextSnapshot)) return true;\n\n    res.status(403).json({\n      error: \"Status-only recovery runs cannot update issue documents, plans, or deliverable artifacts\",\n      details: {\n        issueId: issue.id,\n        runId: run.id,\n        recoveryIntent: \"status_only\",\n        resumeRequiresNormalModel: true,\n      },\n    });\n    return false;\n  }","sourceCodeStart":5151,"sourceCodeEnd":5187,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/server/src/routes/issues.ts#L5151-L5187","documentation":"403 from resolveWorkProductCreatedByRunId (board-actor branch): the requested run id does not resolve to a run within the target company, so a board user cannot attribute the work product to it.","triggerScenarios":"Thrown at server/src/routes/issues.ts:5013 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Include the required field(s) in the request path, query, or body as named by the error message, then retry.","Check the API contract in packages/shared validators for the exact required shape of this endpoint."],"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-14T05:17:10.506Z"}