{"record":{"id":"7dd1915222acdbf9","repo":"paperclipai/paperclip","slug":"kind-must-be-manual-retry-backfill-priority-ove","errorCode":null,"errorMessage":"kind must be manual, retry, backfill, priority_override, or review_patch","messagePattern":"kind must be manual, retry, backfill, priority_override, or review_patch","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/plugins/plugin-llm-wiki/src/worker.ts","lineNumber":700,"sourceCode":"        autoApply: params.autoApply === true ? true : params.autoApply === false ? false : undefined,\n        expectedProjectPageHash: stringField(params.expectedProjectPageHash),\n        includeSupportingPages: params.includeSupportingPages !== false,\n        workItemId: workItem.workItemId,\n        operationIssueId: operation.issue.id,\n      });\n      return { ...result, workItem, operation };\n    });\n\n    ctx.actions.register(\"create-paperclip-distillation-work-item\", async (params) => {\n      const kind = stringField(params.kind);\n      if (\n        kind !== \"manual\" &&\n        kind !== \"retry\" &&\n        kind !== \"backfill\" &&\n        kind !== \"priority_override\" &&\n        kind !== \"review_patch\"\n      ) {\n        throw new Error(\"kind must be manual, retry, backfill, priority_override, or review_patch\");\n      }\n      const priority = stringField(params.priority);\n      if (priority && priority !== \"critical\" && priority !== \"high\" && priority !== \"medium\" && priority !== \"low\") {\n        throw new Error(\"priority must be critical, high, medium, or low\");\n      }\n      return createPaperclipDistillationWorkItem(ctx, {\n        companyId: readCompanyIdFromParams(params),\n        wikiId: stringField(params.wikiId),\n        spaceSlug: stringField(params.spaceSlug),\n        kind,\n        projectId: stringField(params.projectId),\n        rootIssueId: stringField(params.rootIssueId),\n        requestedByIssueId: stringField(params.requestedByIssueId),\n        priority: priority as \"critical\" | \"high\" | \"medium\" | \"low\" | null,\n        idempotencyKey: stringField(params.idempotencyKey),\n        metadata: typeof params.metadata === \"object\" && params.metadata != null ? params.metadata as Record<string, unknown> : null,\n      });\n    });","sourceCodeStart":682,"sourceCodeEnd":718,"githubUrl":"https://github.com/paperclipai/paperclip/blob/5716fe907e596ce73501408fc6efdb19fb61edf2/packages/plugins/plugin-llm-wiki/src/worker.ts#L682-L718","documentation":"Error \"kind must be manual, retry, backfill, priority_override, or review_patch\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at packages/plugins/plugin-llm-wiki/src/worker.ts:704 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set kind to manual, retry, backfill, priority_override, or review_patch."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5716fe907e596ce73501408fc6efdb19fb61edf2","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}