Repository navigation
feat(delegation): require a helper tier when tiers are configured (RIG-8770) - #49
Merged
mattwilkinsonn merged 3 commits intoNov 10, 2026
Conversation
…G-8770) A delegation.tiers map (easy, medium, hard) routes each spawn to its tier's model. With tiers configured, a spawn without a known tier is refused; control actions need none. Without tiers, behaviour is unchanged. Co-authored-by: Matt Wilkinson <matt@rigel.build>
Internal callers such as /review and the lifecycle API keep the delegation route unless they pass a tier. A selected tier no longer inherits base route keys. Co-authored-by: Matt Wilkinson <matt@rigel.build>
A tier drops base request_overrides and fallback_providers too. Lifecycle launches reject a tier mixed with a model or provider override. Co-authored-by: Matt Wilkinson <matt@rigel.build>
Collaborator
Author
Review roundsRound 1 (e26afc9): 1 high, 2 medium, 1 low. All fixed in 5917ede.
Round 2 (5917ede): 3 medium, 2 low. All fixed in 8394323.
Round 3: all-clear on 8394323. 15 tier tests, 21 review-engine tests and 20 lifecycle tests pass. |
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.
What does this PR do?
Adds optional per-call helper tiers to
delegate_task. Withdelegation.tiersconfigured, the model must nameeasy,medium, orhardon every spawn, and each tier routes the child to its own model. A spawn without a known tier is refused and no child starts. Withoutdelegation.tiers, behaviour is unchanged.This is the fork half of Nemo's model-roles design: Hermes names a helper tier on every delegation, with no default tier.
Related Issue
RIG-8770 (Linear).
Type of Change
Changes Made
tools/delegate_tool.pytierparameter. The schema requires it only when tiers are configured._resolve_delegation_tier_routing_configvalidates the tier.model,provider,base_url,api_key,api_mode,request_overridesandfallback_providers.run_agent.pypassenforce_tier=True.list,steer,cancel) need no tier./review, the lifecycle API) keep the base route unless they pass a tier.agent/subagent_lifecycle.py:launch(..., tier=)uses the same resolver. With tiers configured, it rejects a tier combined with a per-launch model or provider.website/docs/user-guide/features/delegation.md,subagent-lifecycle-api.md, and thecli-config.yaml.exampletier block.How to Test
'error' in {'ok': True}; children gotfixture/default).scripts/run_tests.sh tests/tools/test_delegate*.py tests/agent/test_review_engine.py tests/agent/test_subagent_lifecycle.py -j 2with the API keys empty: 39 files, 342 passed, 0 failed.Checklist
Code
/reviewexemption, lifecycle, route isolation, and unconfigured tiersDocumentation & Housekeeping
For New Skills
N/A.
Screenshots / Logs
N/A.
Refs RIG-8770
Co-authored-by: Matt Wilkinson matt@rigel.build