paperclipai/paperclip · error
routineKey is required; valid values
Error message
routineKey is required; valid values: ${WIKI_MAINTENANCE_ROUTINE_KEYS.join(", ")} What it means
Error "routineKey is required; valid values: ${WIKI_MAINTENANCE_ROUTINE_KEYS.join(", ")}" thrown in paperclipai/paperclip.
Solutions
- Pass routineKey with one of the listed valid routine keys.
When it happens
Trigger: Thrown at packages/plugins/plugin-llm-wiki/src/worker.ts:71 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/9928e490cc46e0f3.
Report an issue: GitHub.
Appendix: source
Thrown at packages/plugins/plugin-llm-wiki/src/worker.ts:71
selectWikiAgentResource,
selectWikiProjectResource,
startWikiQuerySession,
spaceFolderStatus,
updateEventIngestionSettings,
updatePaperclipIngestionProfile,
updateSpace,
writeTemplate,
writeWikiPage,
} from "./wiki.js";
function stringField(value: unknown): string | null {
return typeof value === "string" && value.trim().length > 0 ? value.trim() : null;
}
function routineKeyField(value: unknown): (typeof WIKI_MAINTENANCE_ROUTINE_KEYS)[number] {
const routineKey = stringField(value);
if (!routineKey) {
throw new Error(`routineKey is required; valid values: ${WIKI_MAINTENANCE_ROUTINE_KEYS.join(", ")}`);
}
if (!WIKI_MAINTENANCE_ROUTINE_KEYS.includes(routineKey as (typeof WIKI_MAINTENANCE_ROUTINE_KEYS)[number])) {
throw new Error(`Unknown managed routine: ${routineKey}`);
}
return routineKey as (typeof WIKI_MAINTENANCE_ROUTINE_KEYS)[number];
}
function routineOverridesFromParams(params: Record<string, unknown>) {
const overrides: { assigneeAgentId?: string; projectId?: string } = {};
const assigneeAgentId = stringField(params.assigneeAgentId);
const projectId = stringField(params.projectId);
if (assigneeAgentId) overrides.assigneeAgentId = assigneeAgentId;
if (projectId) overrides.projectId = projectId;
return overrides;
}
let activeContext: PluginContext | null = null;
const PAPERCLIP_EVENT_INGESTION_EVENTS = [View on GitHub (pinned to 5716fe907e)