paperclipai/paperclip · error
kind must be manual, retry, backfill, priority_override, or…
Error message
kind must be manual, retry, backfill, priority_override, or review_patch
What it means
Error "kind must be manual, retry, backfill, priority_override, or review_patch" thrown in paperclipai/paperclip.
Solutions
- Set kind to manual, retry, backfill, priority_override, or review_patch.
When it happens
Trigger: Thrown at packages/plugins/plugin-llm-wiki/src/worker.ts:704 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of paperclipai/paperclip@5716fe907e (2026-08-18).
Data as JSON: /api/errors/7dd1915222acdbf9.
Report an issue: GitHub.
Appendix: source
Thrown at packages/plugins/plugin-llm-wiki/src/worker.ts:700
autoApply: params.autoApply === true ? true : params.autoApply === false ? false : undefined,
expectedProjectPageHash: stringField(params.expectedProjectPageHash),
includeSupportingPages: params.includeSupportingPages !== false,
workItemId: workItem.workItemId,
operationIssueId: operation.issue.id,
});
return { ...result, workItem, operation };
});
ctx.actions.register("create-paperclip-distillation-work-item", async (params) => {
const kind = stringField(params.kind);
if (
kind !== "manual" &&
kind !== "retry" &&
kind !== "backfill" &&
kind !== "priority_override" &&
kind !== "review_patch"
) {
throw new Error("kind must be manual, retry, backfill, priority_override, or review_patch");
}
const priority = stringField(params.priority);
if (priority && priority !== "critical" && priority !== "high" && priority !== "medium" && priority !== "low") {
throw new Error("priority must be critical, high, medium, or low");
}
return createPaperclipDistillationWorkItem(ctx, {
companyId: readCompanyIdFromParams(params),
wikiId: stringField(params.wikiId),
spaceSlug: stringField(params.spaceSlug),
kind,
projectId: stringField(params.projectId),
rootIssueId: stringField(params.rootIssueId),
requestedByIssueId: stringField(params.requestedByIssueId),
priority: priority as "critical" | "high" | "medium" | "low" | null,
idempotencyKey: stringField(params.idempotencyKey),
metadata: typeof params.metadata === "object" && params.metadata != null ? params.metadata as Record<string, unknown> : null,
});
});View on GitHub (pinned to 5716fe907e)