Description
PR #43170 added await coreObj.summary.write(); at actions/setup/js/parse_mcp_gateway_log.cjs:236, inside the non-async helper writeStepSummaryWithTokenUsage — a hard SyntaxError at require() time that hard-reds every workflow's "Parse MCP Gateway logs" and "Handle agent failure" steps on that PR ref (P0). The specific fix is tracked (#43200/#43201), but this class of module-load failure can recur for any bundled .cjs action script.
Add a compile-time / lock-generation validation (or a lint check on actions/**/js/*.cjs) that fails the build when await appears inside a non-async function, so the error is caught before lock files ship rather than at workflow runtime across both claude and copilot engines.
Expected Impact
Prevents an entire class of fleet-wide P0 module-load SyntaxError regressions from reaching runtime.
Suggested Agent
compiler-quality or eslint-factory agent.
Estimated Effort
Quick (< 1 hour)
Data Source
DeepReport Intelligence analysis run 2026-07-03 (workflow-run 28669423540); #43200/#43201.
Generated by 🔬 Deep Report · 171.9 AIC · ⌖ 17.4 AIC · ⊞ 10.2K · ◷
Description
PR #43170 added
await coreObj.summary.write();atactions/setup/js/parse_mcp_gateway_log.cjs:236, inside the non-async helperwriteStepSummaryWithTokenUsage— a hardSyntaxErroratrequire()time that hard-reds every workflow's "Parse MCP Gateway logs" and "Handle agent failure" steps on that PR ref (P0). The specific fix is tracked (#43200/#43201), but this class of module-load failure can recur for any bundled.cjsaction script.Add a compile-time / lock-generation validation (or a lint check on
actions/**/js/*.cjs) that fails the build whenawaitappears inside a non-async function, so the error is caught before lock files ship rather than at workflow runtime across both claude and copilot engines.Expected Impact
Prevents an entire class of fleet-wide P0 module-load
SyntaxErrorregressions from reaching runtime.Suggested Agent
compiler-quality or eslint-factory agent.
Estimated Effort
Quick (< 1 hour)
Data Source
DeepReport Intelligence analysis run 2026-07-03 (workflow-run 28669423540); #43200/#43201.