{"record":{"id":"21d8725d6c7e350d","repo":"paperclipai/paperclip","slug":"unknown-managed-routine-routinekey","errorCode":null,"errorMessage":"Unknown managed routine: ${routineKey}","messagePattern":"Unknown managed routine: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/plugins/plugin-llm-wiki/src/worker.ts","lineNumber":74,"sourceCode":"  spaceFolderStatus,\n  updateEventIngestionSettings,\n  updatePaperclipIngestionProfile,\n  updateSpace,\n  writeTemplate,\n  writeWikiPage,\n} from \"./wiki.js\";\n\nfunction stringField(value: unknown): string | null {\n  return typeof value === \"string\" && value.trim().length > 0 ? value.trim() : null;\n}\n\nfunction routineKeyField(value: unknown): (typeof WIKI_MAINTENANCE_ROUTINE_KEYS)[number] {\n  const routineKey = stringField(value);\n  if (!routineKey) {\n    throw new Error(`routineKey is required; valid values: ${WIKI_MAINTENANCE_ROUTINE_KEYS.join(\", \")}`);\n  }\n  if (!WIKI_MAINTENANCE_ROUTINE_KEYS.includes(routineKey as (typeof WIKI_MAINTENANCE_ROUTINE_KEYS)[number])) {\n    throw new Error(`Unknown managed routine: ${routineKey}`);\n  }\n  return routineKey as (typeof WIKI_MAINTENANCE_ROUTINE_KEYS)[number];\n}\n\nfunction routineOverridesFromParams(params: Record<string, unknown>) {\n  const overrides: { assigneeAgentId?: string; projectId?: string } = {};\n  const assigneeAgentId = stringField(params.assigneeAgentId);\n  const projectId = stringField(params.projectId);\n  if (assigneeAgentId) overrides.assigneeAgentId = assigneeAgentId;\n  if (projectId) overrides.projectId = projectId;\n  return overrides;\n}\n\nlet activeContext: PluginContext | null = null;\nconst PAPERCLIP_EVENT_INGESTION_EVENTS = [\n  \"issue.created\",\n  \"issue.updated\",\n  \"issue.comment.created\",","sourceCodeStart":56,"sourceCodeEnd":92,"githubUrl":"https://github.com/paperclipai/paperclip/blob/5716fe907e596ce73501408fc6efdb19fb61edf2/packages/plugins/plugin-llm-wiki/src/worker.ts#L56-L92","documentation":"Error \"Unknown managed routine: ${routineKey}\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at packages/plugins/plugin-llm-wiki/src/worker.ts:74 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a known managed routine key; check the list of registered routines."],"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"}