{"record":{"id":"6c6af527d4185643","repo":"coleam00/Archon","slug":"invalid-run-config-at-issuepath-error-mess","errorCode":null,"errorMessage":"Invalid run config at '${issuePath}': ${error.message}.","messagePattern":"Invalid run config at '(.+?)': (.+?)\\.","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/core/src/config/run-config.ts","lineNumber":113,"sourceCode":"}\n\nfunction normalizePreset(path: string, preset: ModelAliasPreset): ModelAliasPreset {\n  try {\n    return normalizeStrictRunModelPreset(preset);\n  } catch (error) {\n    if (!(error instanceof RunModelPresetValidationError)) throw error;\n    const issuePath = `${path}.${error.issue.field}`;\n    if (error.issue.kind === 'unknown-provider') {\n      const available = getRegisteredProviders()\n        .map(entry => entry.id)\n        .sort()\n        .join(', ');\n      throw new Error(\n        `Invalid run config at '${issuePath}': unknown provider '${error.issue.provider}'.` +\n          (available ? ` Available: ${available}.` : ' No providers are registered.')\n      );\n    }\n    throw new Error(`Invalid run config at '${issuePath}': ${error.message}.`);\n  }\n}\n\n/** Validate and normalize constraints owned by the live provider registry and lifecycle. */\nexport function normalizeRunConfigSemantics(layer: WorkflowRunConfigLayer): WorkflowRunConfigLayer {\n  if (layer.assistant !== undefined) {\n    assertRegisteredProvider(layer.assistant, 'assistant');\n  }\n  const assistants: Record<string, Record<string, unknown>> = {};\n  for (const [provider, defaults] of Object.entries(layer.assistants ?? {})) {\n    assertRegisteredProvider(provider, `assistants.${provider}`);\n    if (provider === 'pi' && Object.hasOwn(defaults, 'env')) {\n      throw new Error(\n        \"Run config key 'assistants.pi.env' cannot apply: Pi extension environment mutates \" +\n          'process.env and is process-scoped.'\n      );\n    }\n    if (provider === 'pi' && Object.hasOwn(defaults, 'maxConcurrent')) {","sourceCodeStart":95,"sourceCodeEnd":131,"githubUrl":"https://github.com/coleam00/Archon/blob/0773b9745896ef0612e709c80845a0f7db315b19/packages/core/src/config/run-config.ts#L95-L131","documentation":"Error \"Invalid run config at '${issuePath}': ${error.message}.\" thrown in coleam00/Archon.","triggerScenarios":"Thrown at packages/core/src/config/run-config.ts:113 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":"0773b9745896ef0612e709c80845a0f7db315b19","analyzedAt":"2026-09-01T02:28:07.064Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T05:18:18.240Z"}