{"record":{"id":"b5e9336c4d0ed1a3","repo":"paperclipai/paperclip","slug":"setup-token-start-failed","errorCode":"SETUP_TOKEN_START_FAILED","errorMessage":"The setup-token login session could not start.","messagePattern":"The setup-token login session could not start\\.","errorType":"http","errorClass":null,"httpStatus":503,"severity":"error","filePath":"server/src/routes/agents.ts","lineNumber":5230,"sourceCode":"      return;\n    }\n    const agent = await svc.remove(id);\n    if (!agent) {\n      res.status(404).json({ error: \"Agent not found\" });\n      return;\n    }\n\n    await logActivity(db, {\n      companyId: agent.companyId,\n      actorType: \"user\",\n      actorId: req.actor.userId ?? \"board\",\n      action: \"agent.deleted\",\n      entityType: \"agent\",\n      entityId: agent.id,\n    });\n\n    res.json({ ok: true });\n  });\n\n  router.get(\"/agents/:id/keys\", async (req, res) => {\n    assertBoard(req);\n    const id = req.params.id as string;\n    const agent = await getAccessibleAgent(req, res, id);\n    if (!agent) {\n      return;\n    }\n    const keys = await svc.listKeys(id);\n    res.json(keys);\n  });\n\n  router.post(\"/agents/:id/keys\", validate(createAgentKeySchema), async (req, res) => {\n    assertBoard(req);\n    const id = req.params.id as string;\n    const agent = await getAccessibleAgent(req, res, id);\n    if (!agent) {\n      return;","sourceCodeStart":5212,"sourceCodeEnd":5248,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/server/src/routes/agents.ts#L5212-L5248","documentation":"The setup-token login session could not be started: the spine's start step failed (session creation or login bootstrap error) after validation and guards passed; treated as a retryable session-start failure.","triggerScenarios":"Thrown at server/src/routes/agents.ts:4693 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the login start","Check server logs for the underlying session-start error","Verify adapter login dependencies are available on the host"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ad8584922b5d85292b1723cae71fa0d9b07a19","analyzedAt":"2026-08-21T17:58:32.592Z","contentChangedAt":"2026-08-21T17:58:32.592Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}