{"record":{"id":"ade6bffa97804ebf","repo":"paperclipai/paperclip","slug":"source-artifact-is-not-quarantined-low-trust-outpu","errorCode":null,"errorMessage":"Source artifact is not quarantined low-trust output","messagePattern":"Source artifact is not quarantined low-trust output","errorType":"http","errorClass":null,"httpStatus":422,"severity":"error","filePath":"server/src/routes/issues.ts","lineNumber":8269,"sourceCode":"      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,\n          anchorConfidence: remap.thread.anchorConfidence,\n          snapshotId: remap.snapshot.id,\n        },\n      });","sourceCodeStart":8251,"sourceCodeEnd":8287,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/server/src/routes/issues.ts#L8251-L8287","documentation":"422 from POST /issues/:id/low-trust/promotions. Fires when the found source artifact exists but its stored trust level is not quarantined low-trust — only artifacts that were actually quarantined as low-trust output are eligible for promotion.","triggerScenarios":"Thrown at server/src/routes/issues.ts:7682 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["This is an authorization rule, not a bug: perform the action with an actor that satisfies the stated constraint (board user, the owning agent, or an in-scope resource).","If access should be allowed, verify the actor's credentials/company scope and the resource's ownership before retrying."],"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"}