Skip to content

refactor: unify delegation strategy into single DelegationExecutor#532

Merged
FL4TLiN3 merged 2 commits intomainfrom
refactor/unify-delegation-strategy
Feb 15, 2026
Merged

refactor: unify delegation strategy into single DelegationExecutor#532
FL4TLiN3 merged 2 commits intomainfrom
refactor/unify-delegation-strategy

Conversation

@FL4TLiN3
Copy link
Contributor

Summary

  • Replaced DelegationStrategy interface, SingleDelegationStrategy, ParallelDelegationStrategy, and selectDelegationStrategy factory with a single DelegationExecutor class
  • ParallelDelegationStrategy already handled any delegation count correctly, making the Strategy pattern unnecessary abstraction
  • Deleted unused buildDelegateToState from checkpoint.ts (only referenced in its own tests)

Test plan

  • pnpm typecheck — clean
  • pnpm test — all 1080 unit tests pass (delegation-strategy, checkpoint, run tests updated)
  • pnpm build — 22/22 packages
  • pnpm format-and-lint — clean on changed files
  • E2E: delegate.test.ts — single delegation chain event sequence
  • E2E: continue.test.ts — parallel delegation + continue

🤖 Generated with Claude Code

FL4TLiN3 and others added 2 commits February 15, 2026 15:01
ParallelDelegationStrategy works correctly for any delegation count (including 1),
making the Strategy pattern and SingleDelegationStrategy unnecessary abstraction.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@FL4TLiN3 FL4TLiN3 merged commit 9737c0c into main Feb 15, 2026
11 checks passed
@FL4TLiN3 FL4TLiN3 mentioned this pull request Feb 15, 2026
FL4TLiN3 added a commit that referenced this pull request Feb 16, 2026
Align file name with class name DelegationExecutor introduced in #532.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
FL4TLiN3 added a commit that referenced this pull request Feb 16, 2026
Align file name with class name DelegationExecutor introduced in #532.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
@FL4TLiN3 FL4TLiN3 deleted the refactor/unify-delegation-strategy branch February 25, 2026 13:36
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.

1 participant