{"record":{"id":"23dccb0cd6b01b8f","repo":"Fission-AI/OpenSpec","slug":"invalid-profile-this-profileoverride-availab","errorCode":null,"errorMessage":"Invalid profile \"${this.profileOverride}\". Available profiles: core, custom","messagePattern":"Invalid profile \"(.+?)\"\\. Available profiles: core, custom","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/core/init.ts","lineNumber":444,"sourceCode":"      });\n      return { write: answer, persist: answer, optedOut: !answer, skippedUndecided: false };\n    }\n\n    // Non-interactive with no explicit signal: don't write, and leave the\n    // decision unpersisted so a later interactive run can still prompt.\n    return { write: false, optedOut: false, skippedUndecided: true };\n  }\n\n  private resolveProfileOverride(): Profile | undefined {\n    if (this.profileOverride === undefined) {\n      return undefined;\n    }\n\n    if (this.profileOverride === 'core' || this.profileOverride === 'custom') {\n      return this.profileOverride;\n    }\n\n    throw new Error(`Invalid profile \"${this.profileOverride}\". Available profiles: core, custom`);\n  }\n\n  /**\n   * Resolves the workflows the effective profile installs, so onboarding output\n   * only mentions commands that will actually exist.\n   */\n  private getActiveWorkflows(): string[] {\n    const globalCfg = getGlobalConfig();\n    const activeProfile: Profile = this.resolveProfileOverride() ?? globalCfg.profile ?? 'core';\n    return [...getProfileWorkflows(activeProfile, globalCfg.workflows)];\n  }\n\n  // ═══════════════════════════════════════════════════════════\n  // LEGACY CLEANUP\n  // ═══════════════════════════════════════════════════════════\n\n  /**\n   * Cleans repo-local legacy artifacts immediately and defers global Codex prompt","sourceCodeStart":426,"sourceCodeEnd":462,"githubUrl":"https://github.com/Fission-AI/OpenSpec/blob/6926ccb18afa4ff621112813e9968334576ee11a/src/core/init.ts#L426-L462","documentation":"Error \"Invalid profile \"${this.profileOverride}\". Available profiles: core, custom\" thrown in Fission-AI/OpenSpec.","triggerScenarios":"Thrown at src/core/init.ts:444 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6926ccb18afa4ff621112813e9968334576ee11a","analyzedAt":"2026-08-25T12:29:45.729Z","schemaVersion":2},"datasetVersion":"2026-08-25T16:17:27.014Z"}