{"record":{"id":"8ffc77f337b984fa","repo":"paperclipai/paperclip","slug":"low-trust-source-artifact-not-found","errorCode":null,"errorMessage":"Low-trust source artifact not found","messagePattern":"Low-trust source artifact not found","errorType":"http","errorClass":null,"httpStatus":404,"severity":"error","filePath":"server/src/routes/issues.ts","lineNumber":8265,"sourceCode":"      runId: actor.runId,\n      agentApiKeyId: actor.agentApiKeyId,\n      action: result.created ? \"issue.document_created\" : \"issue.document_updated\",\n      entityType: \"issue\",\n      entityId: issue.id,\n      details: {\n        key: doc.key,\n        documentId: doc.id,\n        title: doc.title,\n        format: doc.format,\n        revisionNumber: doc.latestRevisionNumber,\n        redirectedFromLockedDocument,\n        ...summarizeIssueReferenceActivityDetails({\n          addedReferencedIssues: referenceDiff.addedReferencedIssues.map(summarizeIssueRelationForActivity),\n          removedReferencedIssues: referenceDiff.removedReferencedIssues.map(summarizeIssueRelationForActivity),\n          currentReferencedIssues: referenceDiff.currentReferencedIssues.map(summarizeIssueRelationForActivity),\n        }),\n      },\n    });\n\n    for (const remap of remappedAnnotations) {\n      await logActivity(db, {\n        companyId: issue.companyId,\n        actorType: actor.actorType,\n        actorId: actor.actorId,\n        agentId: actor.agentId,\n        runId: actor.runId,\n        agentApiKeyId: actor.agentApiKeyId,\n        action: \"issue.document_annotation_remapped\",\n        entityType: \"issue\",\n        entityId: issue.id,\n        details: {\n          key: doc.key,\n          documentId: doc.id,\n          threadId: remap.thread.id,\n          revisionNumber: doc.latestRevisionNumber,\n          anchorState: remap.thread.anchorState,","sourceCodeStart":8247,"sourceCodeEnd":8283,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/server/src/routes/issues.ts#L8247-L8283","documentation":"404 from POST /issues/:id/low-trust/promotions. Fires when lookupLowTrustSourceArtifact cannot find an artifact matching the given sourceArtifactKind/sourceArtifactId for this issue and company — i.e. the referenced quarantined output does not exist or belongs to another issue.","triggerScenarios":"Thrown at server/src/routes/issues.ts:7678 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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."],"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"}