paperclipai/paperclip · error
Task bridge keys cannot use company-wide issue count APIs
Error message
Task bridge keys cannot use company-wide issue count APIs
What it means
403 from GET /companies/:companyId/issues/count: the actor is a task bridge key, and task bridge keys are restricted from company-wide issue count APIs by policy.
Source
Thrown at server/src/routes/issues.ts:6378
return { project, goal: defaultGoal };
}
return { project, goal: null };
}
function compactIssueProjectWorkspace(workspace: ProjectWorkspace | null | undefined) {
if (!workspace) return null;
return {
id: workspace.id,
companyId: workspace.companyId,
projectId: workspace.projectId,
name: workspace.name,
sourceType: workspace.sourceType,
cwd: workspace.cwd,
repoUrl: workspace.repoUrl,
repoRef: workspace.repoRef,
defaultRef: workspace.defaultRef,
visibility: workspace.visibility,
setupCommand: workspace.setupCommand,
cleanupCommand: workspace.cleanupCommand,
remoteProvider: workspace.remoteProvider,
remoteWorkspaceRef: workspace.remoteWorkspaceRef,
sharedWorkspaceKey: workspace.sharedWorkspaceKey,
runtimeConfig: workspace.runtimeConfig,
isPrimary: workspace.isPrimary,
createdAt: workspace.createdAt,
updatedAt: workspace.updatedAt,
};
}
function compactIssueProject(project: Awaited<ReturnType<typeof resolveIssueProjectAndGoal>>["project"]) {
if (!project) return null;
return {
id: project.id,
companyId: project.companyId,
urlKey: project.urlKey,View on GitHub (pinned to 01ad858492)
Solutions
- This is an authorization rule, not a bug: perform the action with an actor that satisfies the stated constraint (board user, the owning agent, or an in-scope resource).
- If access should be allowed, verify the actor's credentials/company scope and the resource's ownership before retrying.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at server/src/routes/issues.ts:6072 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of paperclipai/paperclip@01ad858492 (2026-08-18).
Data as JSON: /api/errors/a3b3aee96dd4bb28.
Report an issue: GitHub.