Skip to content

test(delegation): executable class map for fallback-chain resolution (#80450) - #80474

Open
ayushnangia wants to merge 2 commits into
NousResearch:mainfrom
ayushnangia:classmap/delegation-fallback
Open

test(delegation): executable class map for fallback-chain resolution (#80450)#80474
ayushnangia wants to merge 2 commits into
NousResearch:mainfrom
ayushnangia:classmap/delegation-fallback

Conversation

@ayushnangia

Copy link
Copy Markdown
Contributor

Summary

Test-only companion to the cross-PR map on #80450: an executable definition of the delegation/fallback resolution class — "which fallback chain does a non-head agent get?" No production code changes; nothing here competes with the fixes in flight.

Changes

tests/tools/test_delegation_fallback_class.py, one test per open member:

All xfails are strict=False: the suite is green on main today, and each member's landing turns its test into a visible XPASS — so the audit item on tracker #79686 has a checklist that runs in CI rather than in prose. Chain-entry members (#80209 explicit api_mode, #79840 benched credentials) and auxiliary-agent members (#79750) carry suites in their own PRs and are referenced in the module docstring rather than duplicated.

Validation

scripts/run_tests.sh tests/tools/test_delegation_fallback_class.py: 1 passed, 3 xfailed, 1 skipped, 0 failed. Neighbor suite tests/tools/test_delegate.py: 63/63. Harness reuses _make_mock_parent + patched run_agent.AIAgent from the existing delegate tests.

Scope notes

One test per open member of the 'which fallback chain does a non-head
agent get?' class (NousResearch#80450 cross-PR map): pinned delegation.provider
overridden by inherited chain (NousResearch#80450, PR NousResearch#80465), configured
delegation.fallback_providers ignored (NousResearch#65038, PRs NousResearch#80438/NousResearch#80421),
explicit-empty chain contract, and the pin+declared-chain composition
question (skipped pending the maintainer's precedence call). Members
with fixes in flight are xfail(strict=False): the suite is green today,
documents the class, and flips to XPASS as each fix lands. Baseline
inheritance behavior is guarded green.
@ayushnangia

Copy link
Copy Markdown
Contributor Author

Companion map: #80450 (comment)

@alt-glitch alt-glitch added type/test Test coverage or test infrastructure comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint tool/delegate Subagent delegation P3 Low — cosmetic, nice to have labels Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint P3 Low — cosmetic, nice to have tool/delegate Subagent delegation type/test Test coverage or test infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants