{"record":{"id":"2f6277fee73788f9","repo":"paperclipai/paperclip","slug":"watched-source-issue-not-found","errorCode":null,"errorMessage":"Watched source issue not found","messagePattern":"Watched source issue not found","errorType":"http","errorClass":null,"httpStatus":404,"severity":"error","filePath":"server/src/routes/issues.ts","lineNumber":4972,"sourceCode":"        isNull(issueRows.hiddenAt),\n      ))\n      .orderBy(asc(issueRows.issueNumber), asc(issueRows.createdAt), asc(issueRows.id));\n    return children[0] ?? null;\n  }\n\n  async function blockWatchdogParentOnCurrentChild(input: {\n    actor: ReturnType<typeof getActorInfo>;\n    watchdogParentIssueId: string | null | undefined;\n    currentChildIssueId: string | null | undefined;\n  }) {\n    if (!input.watchdogParentIssueId || !input.currentChildIssueId) return;\n    const watchdogParent = await svc.getById(input.watchdogParentIssueId);\n    if (!watchdogParent || watchdogParent.originKind !== TASK_WATCHDOG_ORIGIN_KIND) return;\n    if (watchdogParent.status !== \"in_progress\" && watchdogParent.status !== \"blocked\") return;\n\n    const relations = await svc.getRelationSummaries(watchdogParent.id);\n    const nextBlockedByIssueIds = mergeIssueBlockerIds(\n      relations.blockedBy?.map((relation) => relation.id) ?? [],\n      input.currentChildIssueId,\n    );\n    await svc.update(watchdogParent.id, {\n      status: \"blocked\",\n      blockedByIssueIds: nextBlockedByIssueIds,\n      actorAgentId: input.actor.agentId,\n      actorUserId: input.actor.actorType === \"user\" ? input.actor.actorId : null,\n    });\n    await logActivity(db, {\n      companyId: watchdogParent.companyId,\n      actorType: input.actor.actorType,\n      actorId: input.actor.actorId,\n      agentId: input.actor.agentId,\n      runId: input.actor.runId,\n      agentApiKeyId: input.actor.agentApiKeyId,\n      action: \"issue.task_watchdog_followups_serialized\",\n      entityType: \"issue\",\n      entityId: watchdogParent.id,","sourceCodeStart":4954,"sourceCodeEnd":4990,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/server/src/routes/issues.ts#L4954-L4990","documentation":"404 from the watchdog product-bug follow-up guard: the watched source issue could not be loaded or belongs to a different company, so the evidence source for the follow-up is missing.","triggerScenarios":"Thrown at server/src/routes/issues.ts:4808 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the id in the request path or body refers to an existing record in this company; re-list the parent collection to get a valid id.","Check that the record was not deleted or archived, and that the request is scoped to the correct companyId."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ad8584922b5d85292b1723cae71fa0d9b07a19","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}