{"record":{"id":"625edf9f1074cf73","repo":"paperclipai/paperclip","slug":"board-access-is-required-to-resolve-companies-acro","errorCode":null,"errorMessage":"Board access is required to resolve companies across the instance. Use a company ID/prefix for your current company, or run with board authentication.","messagePattern":"Board access is required to resolve companies across the instance\\. Use a company ID/prefix for your current company, or run with board authentication\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"cli/src/commands/client/company.ts","lineNumber":1968,"sourceCode":"\n          if (!target && ctx.companyId) {\n            const scoped = await ctx.api.get<Company>(apiPath`/api/companies/${ctx.companyId}`, { ignoreNotFound: true });\n            if (scoped) {\n              try {\n                target = resolveCompanyForDeletion([scoped], normalizedSelector, by);\n              } catch {\n                // Fallback to board-wide lookup below.\n              }\n            }\n          }\n\n          if (!target) {\n            try {\n              const companies = (await ctx.api.get<Company[]>(\"/api/companies\")) ?? [];\n              target = resolveCompanyForDeletion(companies, normalizedSelector, by);\n            } catch (error) {\n              if (error instanceof ApiRequestError && error.status === 403 && error.message.includes(\"Board access required\")) {\n                throw new Error(\n                  \"Board access is required to resolve companies across the instance. Use a company ID/prefix for your current company, or run with board authentication.\",\n                );\n              }\n              throw error;\n            }\n          }\n\n          if (!target) {\n            throw new Error(`No company found for selector '${normalizedSelector}'.`);\n          }\n\n          assertDeleteConfirmation(target, opts);\n\n          await ctx.api.delete<{ ok: true }>(apiPath`/api/companies/${target.id}`);\n\n          printOutput(\n            {\n              ok: true,","sourceCodeStart":1950,"sourceCodeEnd":1986,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/cli/src/commands/client/company.ts#L1950-L1986","documentation":"Company-scoped lookup failed and the fallback GET /api/companies returned 403 'Board access required', so the CLI cannot enumerate companies to resolve the deletion selector; an auth-scope guard.","triggerScenarios":"Thrown at cli/src/commands/client/company.ts:1968 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a company ID/prefix for your current company, or authenticate with board credentials."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"120ae5428fa29bee300bcf806491cd4d965fbb7c","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}