feat(delegate): add task-tier profiles with per-task reasoning_effort and pool validation - #9255
Closed
MestreY0d4-Uninter wants to merge 1 commit into
Closed
Conversation
… reasoning_effort Unified implementation combining tier profiles (from stale PR NousResearch#5692) with model pool validation (inspired by PR NousResearch#5229). Features: - 5 named tiers: light, heavy, review, planning, research - Each tier configures model, provider, reasoning_effort, max_iterations - Reasoning floor guardrails prevent silent degradation: heavy/research >= medium, planning/review >= high - Per-task tier in batch mode overrides top-level tier - Optional delegation pool for model validation - override_reasoning_effort in _build_child_agent - resolve_tier_config() merges tier over flat base config - Schema updated with tier enum at top-level and per-task Resolution order: task.tier > top-level tier > default_tier > flat config > parent Config example: delegation: default_tier: heavy tiers: light: {model: gpt-5.4-mini, reasoning_effort: low, max_iterations: 25} review: {model: gpt-5.4, reasoning_effort: xhigh, max_iterations: 60} pool: - model: gpt-5.4, strengths: coding, debugging Tests: - 56 new unit tests (test_delegate_tiers.py) - 7 real integration tests (test_delegate_tiers_real.py) - 128 total delegate tests passing - Backward compatibility verified (flat configs work unchanged)
Contributor
Author
|
Closing — needs more real-world testing and calibration before submission. Will reopen with comprehensive data. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Unified delegation tier system combining named task profiles (model/routing/reasoning/iterations per tier) with optional model pool validation. Addresses open issues #3719, #6306 and supersedes the tier concept from stale PR #5692.
What this adds
5 named tiers —
light,heavy,review,planning,research— each configuring model, provider, reasoning_effort, and max_iterations:Reasoning floor guardrails prevent silent degradation:
heavy/research→ reasoning ≥ mediumplanning/review→ reasoning ≥ highPer-task tier in batch mode:
Optional model pool for validation (inspired by PR #5229):
Resolution order
task.tier→ top-leveltier→default_tier→ flat config → parent inheritFiles changed
tools/delegate_tool.pyresolve_tier_config(),_validate_pool_model(),_build_pool_description(),override_reasoning_effortin_build_child_agent(), per-task tier in batch loop, schema updatescli-config.yaml.exampletests/tools/test_delegate_tiers.pytests/tools/test_delegate_tiers_real.pyTest results
Related issues
Breaking changes
None. Without tiers configured, behavior is identical to before.