{"record":{"id":"3faf31b3d27f061f","repo":"ruvnet/ruflo","slug":"plugin-already-initialized","errorCode":null,"errorMessage":"Plugin already initialized","messagePattern":"Plugin already initialized","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/plugins/agentic-qe/src/plugin.ts","lineNumber":711,"sourceCode":"    // Register agents\n    const agents = this.getAgents();\n    if (registry.registerAgents) {\n      registry.registerAgents(agents);\n    } else if (registry.registerAgent) {\n      for (const agent of agents) {\n        registry.registerAgent(agent);\n      }\n    }\n\n    this.updateHealth('registry', 'healthy', 'Plugin registered successfully');\n  }\n\n  /**\n   * Initialize the plugin with context\n   */\n  async initialize(context: IPluginContext): Promise<void> {\n    if (this.initialized) {\n      throw new Error('Plugin already initialized');\n    }\n\n    this.context = context;\n    const configData = context.getConfig?.() ?? context.config ?? {};\n    this.config = parseWithDefaults(PluginConfigSchema, configData) as AQEPluginConfig;\n\n    // Initialize context mapper\n    this.contextMapper = new ContextMapper();\n    context.set?.('aqe.contextMapper', this.contextMapper);\n    this.updateHealth('contextMapper', 'healthy', 'Context mapper initialized');\n\n    // Initialize security sandbox\n    this.sandbox = new SecuritySandbox(this.config.sandbox ?? undefined);\n    context.set?.('aqe.sandbox', this.sandbox);\n    this.updateHealth('sandbox', 'healthy', 'Security sandbox initialized');\n\n    // Initialize memory namespaces\n    try {","sourceCodeStart":693,"sourceCodeEnd":729,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/agentic-qe/src/plugin.ts#L693-L729","documentation":"AQE plugin initialize() was invoked a second time while this.initialized is already true. The plugin is single-initialization by design; a repeated initialize() call indicates a lifecycle bug in the host or a plugin re-registration.","triggerScenarios":"Thrown at v3/plugins/agentic-qe/src/plugin.ts:711 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the initialized flag before calling initialize(), and skip re-initialization if the plugin is already up.","Make initialize() idempotent, or call shutdown/reset first if a fresh initialization is intended."],"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-14T00:17:10.932Z"}