Skip to content

Restore legacy AWF model-multiplier shim to prevent agent startup crashes#43299

Closed
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/bugfix-agent-job-module-not-found
Closed

Restore legacy AWF model-multiplier shim to prevent agent startup crashes#43299
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/bugfix-agent-job-module-not-found

Conversation

Copilot AI commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

gh-aw v0.77.5 workflows could fail before Copilot execution in the agent job due to a missing runtime module: merge_awf_model_multipliers.cjs. The failure pattern indicates older compiled workflow scripts still reference that legacy filename even after multiplier handling moved to the newer frontmatter merge module.

  • Backward-compatibility shim

    • Added actions/setup/js/merge_awf_model_multipliers.cjs as a compatibility entrypoint.
    • The shim delegates to merge_frontmatter_models.cjs and preserves legacy surface area, including writeMergedModelMultipliersJSON.
  • Legacy API continuity

    • Re-exported current merge helpers from the shim so old require paths keep working without changing runtime behavior.
    • Kept implementation minimal to avoid introducing a second merge path.
  • Regression coverage

    • Added actions/setup/js/merge_awf_model_multipliers.test.cjs to assert shim exports and legacy alias availability.
// actions/setup/js/merge_awf_model_multipliers.cjs
const frontmatterModels = require("./merge_frontmatter_models.cjs");

module.exports = {
  ...frontmatterModels,
  writeMergedModelMultipliersJSON: frontmatterModels.writeMergedModelsJSON,
};

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix MODULE_NOT_FOUND error in Intake Triage agent job Restore legacy AWF model-multiplier shim to prevent agent startup crashes Jul 4, 2026
Copilot AI requested a review from pelikhan July 4, 2026 04:32
@pelikhan

pelikhan commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

@copilot validate that this issue is not present on the current build, do not install legacy shim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] Intake Triage agent job: MODULE_NOT_FOUND for merge_awf_model_multipliers.cjs (5 failures in 8d, v0.77.5)

2 participants