fix(dispatcher): keep built-in strategies registered across a strategy switch #256
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/dispatcher-retain-builtin-strategies"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Prerequisite for activating
dispatcher.strategy: sequential(PR254) on agents that already randirect.Defect (reproduced at
ea6805f):Dispatcher.start()recovers only the selected strategy. After switchingdirect->sequential, every retainedready/runningdirect task is blocked withStrategy direct@1 unavailable; restore the matching plugin, then resolve and resume.Switching back strands the sequential tasks the same way.Fix: the built-in
directandsequentialstrategies stay registered for recovery/claim, matched by their persisted name and version. New submissions use only the configured strategy. Unknown or removed strategies still block visibly, and replay/reconcile policy is taken from the matching trusted strategy.Tests: new regression tests in
test/dispatcher.test.ts(fails before, passes after). Typecheck and build are green. Full serial suite: 1450/1451; the one failure is an unrelated load-dependent timeout (maintenance-cli-lifecycle, passes in isolation 2/2; a parallel run showed a similar Wasm timeout). Persistent exact-diff review vsea6805f: passed, 0 blockers. Its P2 concernsdispatcher-sequential.tsoutside this diff.