Files
fusion/packages/engine
fusion-merge-train e5cae03f9a fix(engine): repair two stale test mocks broken by #1910
restart.integration.test.ts's `../pi.js` factory replaces the module
wholesale but omits ModelFallbackExhaustedError, which triage.ts references
via `err instanceof ModelFallbackExhaustedError` — evaluating the guard threw
"No ModelFallbackExhaustedError export is defined on the mock". Added a plain
Error-subclass stub (no restart test enters the fallback-exhausted branch).

mission-validation-trigger-gap.test.ts's two recovery-path missionStore mocks
omit getMission, which #1910's mission-active gate now walks
(getSlice → getMilestone → getMission) inside resolveFeatureMission. The throw
was swallowed by processTaskOutcome's catch, aborting recovery before it
ensured assertions / started the validator run — surfacing as
ensureFeatureAssertionLinked called 0 times. Added getMission returning an
active mission.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-05 19:56:06 +02:00
..
2026-07-03 13:10:20 -07:00
2026-07-03 13:10:20 -07:00