{"record":{"id":"7ab9eca7d5f17ad9","repo":"ruvnet/ruflo","slug":"team-not-found","errorCode":"TEAM_NOT_FOUND","errorMessage":"Team not found: ${validatedName}","messagePattern":"Team not found: (.+?)","errorType":"exception","errorClass":"TeammateError","httpStatus":null,"severity":"error","filePath":"v3/plugins/teammate-plugin/src/teammate-bridge.ts","lineNumber":805,"sourceCode":"  }\n\n  /**\n   * Load an existing team\n   */\n  async loadTeam(teamName: string): Promise<TeamState> {\n    this.ensureAvailable();\n\n    // Security: Validate team name to prevent path traversal\n    const validatedName = validateName(teamName, 'team');\n\n    const teamDir = path.join(this.teamsDir, validatedName);\n    // Security: Ensure path is within teams directory\n    validatePath(teamDir, this.teamsDir);\n\n    const configPath = path.join(teamDir, 'config.json');\n\n    if (!fs.existsSync(configPath)) {\n      throw new TeammateError(\n        `Team not found: ${validatedName}`,\n        TeammateErrorCode.TEAM_NOT_FOUND,\n        validatedName\n      );\n    }\n\n    // Security: Use safe JSON parsing\n    const configContent = fs.readFileSync(configPath, 'utf-8');\n    const config = safeJSONParse<TeamConfig>(configContent);\n\n    // Load state file if exists\n    const statePath = path.join(teamDir, 'state.json');\n    let teamState: TeamState;\n\n    if (fs.existsSync(statePath)) {\n      // Security: Use safe JSON parsing\n      const stateContent = fs.readFileSync(statePath, 'utf-8');\n      const savedState = safeJSONParse<any>(stateContent);","sourceCodeStart":787,"sourceCodeEnd":823,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/teammate-plugin/src/teammate-bridge.ts#L787-L823","documentation":"loadTeam() validated the team name and constructed the team directory, but config.json does not exist under teamsDir. The team was never created, was deleted, or lives on another storage root — the requested team simply has no on-disk state to load.","triggerScenarios":"Thrown at v3/plugins/teammate-plugin/src/teammate-bridge.ts:805 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the referenced identifier exists before use (list available items and match against user input).","Return a clear 404-style error listing valid identifiers, and have the caller retry with an existing id."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa13ee4ad60ac2090b1480656eb233521790d640","analyzedAt":"2026-08-18T21:34:22.708Z","contentChangedAt":"2026-08-18T21:34:22.708Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}