{"record":{"id":"c5206cd0d5258b4a","repo":"paperclipai/paperclip","slug":"paperclip-ingestion-policy-denied-purpose-pape","errorCode":null,"errorMessage":"Paperclip ingestion policy denied ${purpose}: Paperclip ingestion is not enabled for space \"${space.slug}\".","messagePattern":"Paperclip ingestion policy denied (.+?): Paperclip ingestion is not enabled for space \"(.+?)\"\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/plugins/plugin-llm-wiki/src/wiki/core.ts","lineNumber":474,"sourceCode":"async function requirePaperclipIngestionPolicy(\n  ctx: PluginContext,\n  input: { companyId: string; wikiId: string; spaceSlug?: string | null },\n  purpose: PaperclipIngestionPolicyPurpose,\n  options: { requireEnabledProfile?: boolean } = {},\n): Promise<WikiSpace> {\n  const space = await resolveSpace(ctx, {\n    companyId: input.companyId,\n    wikiId: input.wikiId,\n    spaceSlug: input.spaceSlug,\n  });\n  const profile = await profileForSpace(ctx, input.companyId, space);\n  const decision = evaluatePaperclipProfilePolicy({\n    space,\n    profile,\n    purpose,\n    requireEnabledProfile: options.requireEnabledProfile,\n  });\n  if (!decision.allowed) throw new Error(decision.message);\n  return decision.space;\n}\n\nfunction assertPaperclipSourceScopePayload(input: { projectId?: string | null; rootIssueId?: string | null }) {\n  if (input.projectId && input.rootIssueId) {\n    throw new Error(\"Paperclip source scope must specify either projectId or rootIssueId, not both.\");\n  }\n}\n\nfunction assertRequestedCharacterLimit(name: string, value: unknown, max: number) {\n  if (value == null) return;\n  if (typeof value !== \"number\" || !Number.isFinite(value) || value < 1) {\n    throw new Error(`${name} must be a positive number.`);\n  }\n  if (Math.floor(value) > max) {\n    throw new Error(`${name} exceeds the hard Paperclip ingestion cap of ${max} characters.`);\n  }\n}","sourceCodeStart":456,"sourceCodeEnd":492,"githubUrl":"https://github.com/paperclipai/paperclip/blob/5716fe907e596ce73501408fc6efdb19fb61edf2/packages/plugins/plugin-llm-wiki/src/wiki/core.ts#L456-L492","documentation":"Error \"Paperclip ingestion policy denied ${purpose}: Paperclip ingestion is not enabled for space \"${space.slug}\".\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at packages/plugins/plugin-llm-wiki/src/wiki/core.ts:475 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Enable Paperclip ingestion for the space, or choose a space where it is enabled."],"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-14T00:17:10.932Z"}