{"record":{"id":"9b3095964a892aec","repo":"ruvnet/ruflo","slug":"invalid-arguments","errorCode":"INVALID_ARGUMENTS","errorMessage":"Missing required variables: ${missing.join(', ')}","messagePattern":"Missing required variables: (.+?)","errorType":"validation","errorClass":"GasTownError","httpStatus":null,"severity":"error","filePath":"v3/plugins/gastown-bridge/src/formula/executor.ts","lineNumber":1423,"sourceCode":"    return formula;\n  }\n\n  /**\n   * Validate required variables are provided\n   */\n  private validateVariables(formula: Formula, vars: Record<string, string>): void {\n    if (!formula.vars) return;\n\n    const missing: string[] = [];\n\n    for (const [name, varDef] of Object.entries(formula.vars)) {\n      if (varDef.required && !(name in vars) && !varDef.default) {\n        missing.push(name);\n      }\n    }\n\n    if (missing.length > 0) {\n      throw new GasTownError(\n        `Missing required variables: ${missing.join(', ')}`,\n        GasTownErrorCode.INVALID_ARGUMENTS,\n        { missing }\n      );\n    }\n  }\n\n  /**\n   * Resolve step dependencies using WASM or JS fallback\n   */\n  private resolveStepDependencies(steps: Step[]): Step[] {\n    const loader = this.wasmLoader.isInitialized() ? this.wasmLoader : this.jsFallback;\n    return loader.resolveStepDependencies(steps);\n  }\n\n  /**\n   * Get ordered execution units (steps or legs) from formula\n   */","sourceCodeStart":1405,"sourceCodeEnd":1441,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/gastown-bridge/src/formula/executor.ts#L1405-L1441","documentation":"validateVariables() collected every formula variable that is required, absent from the caller's vars, and has no default — and found at least one. The INVALID_ARGUMENTS error lists all missing variable names so the caller can supply them in one fix.","triggerScenarios":"Thrown at v3/plugins/gastown-bridge/src/formula/executor.ts:1423 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide all required parameters listed in the message.","Validate required fields before dispatch and report the full set of missing fields at once."],"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"}