fix(engine): teach merger fix agent to rebuild stale dist artifacts
The verification-fix agent prompt previously forbade modifying files unrelated to the failure, which blocked the natural fix when deterministic merge verification failed because of stale/missing plugin `dist/` outputs in sibling workspace packages (e.g. `Failed to resolve import "./cli-spawn.js"` from `fusion-plugin-hermes-runtime/dist`). - Add explicit guidance to detect stale-artifact failure signatures and rebuild the affected package(s) before editing source. - Allow the agent to fix pre-existing breakage on the base branch, preferring the smallest change that makes verification green. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
5
.changeset/merger-fix-agent-rebuild-stale-dist.md
Normal file
5
.changeset/merger-fix-agent-rebuild-stale-dist.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@runfusion/fusion": patch
|
||||
---
|
||||
|
||||
Improve merger verification-fix agent: detect stale/missing sibling-workspace `dist/` artifacts (e.g. `Failed to resolve import "./X.js"`, `ERR_MODULE_NOT_FOUND` into another package) and rebuild before assuming a code fix is needed. The agent may also modify files unrelated to the task's original change when needed to make pre-existing build/test breakage on the base branch pass.
|
||||
Reference in New Issue
Block a user