{"record":{"id":"7b7a0262ddc417ab","repo":"paperclipai/paperclip","slug":"result-detail","errorCode":null,"errorMessage":"result.detail","messagePattern":"result\\.detail","errorType":"http","errorClass":null,"httpStatus":403,"severity":"error","filePath":"server/src/routes/issues.ts","lineNumber":4789,"sourceCode":"      createdByUserId?: string | null;\n    },\n  ): Promise<{\n    restriction: IssueThreadInteractionCanonicalResolverPolicy | IssueThreadInteractionResolverRestriction;\n    binding: \"explicit\" | \"legacy\";\n  } | null> {\n    if (\n      issue.status !== \"in_review\"\n      || interaction.status !== \"pending\"\n      || (\n        interaction.kind !== \"request_confirmation\"\n        && interaction.kind !== \"request_checkbox_confirmation\"\n      )\n    ) return null;\n    if (!(await isIssueReviewVerdictInteraction(db, { issue, interaction }))) return null;\n    const requester = await resolveIssueReviewRequester(db, issue);\n    const binding = requester?.reviewInteractionId === interaction.id ? \"explicit\" : \"legacy\";\n    if (issue.reviewPolicy == null || issue.reviewPolicy === \"anyone\") {\n      return { restriction: \"anyone\", binding };\n    }\n    if (issue.reviewPolicy === \"human_only\") {\n      return { restriction: { policy: \"human_only\", source: \"issue_review\" }, binding };\n    }\n    return {\n      restriction: {\n        policy: \"not_creator\",\n        source: \"issue_review\",\n        excludedActor: requester ? { type: requester.type, id: requester.id } : null,\n      },\n      binding,\n    };\n  }\n\n  async function assertPendingReviewInteractionVerdictAllowed(\n    req: Request,\n    issue: {\n      id: string;","sourceCodeStart":4771,"sourceCodeEnd":4807,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/server/src/routes/issues.ts#L4771-L4807","documentation":"taskWatchdogScopeAllowsIssueMutation denied creating under the chosen parent: the proposed parent lies outside the watched subtree (allowWatchdogIssue caveat not applicable), and result.detail carries the precise scope rejection reason.","triggerScenarios":"Thrown at server/src/routes/issues.ts:4625 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Correct the request so it satisfies the condition stated in the error message, then retry; see the throwing line in the named file for the exact check."],"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"}