Skip to content

agentHost: support managed Ensemble defaults in Fusion - #342184

Closed
Ross Wollman (rwoll) wants to merge 16 commits into
mainfrom
agents/ensemble-managed-startup-defaults
Closed

Ross Wollman (rwoll) wants to merge 16 commits into
mainfrom
agents/ensemble-managed-startup-defaults

Conversation

@rwoll

@rwoll Ross Wollman (rwoll) commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Apply runtime-managed ensembleTier defaults in the Copilot Agent Host's Fusion picker. Known tiers display Standard / High / Max; wire values remain balance / high / max. Choices follow runtime availability, without duplicate synthetic tiers or hiding existing standalone HydraFusion selections.

Precedence and compatibility

  • New chats: explicit current-chat choice → applicable managed default → personal preference → ordinary fallback. Existing chats retain their available model and tier.
  • Explicit ensembleTier wins over legacy autoTier. unmanaged removes the managed tier and suppresses legacy policy fallback.
  • Legacy Auto policies and saved selections remain supported; display labels never determine routing. Unknown provider tiers retain their labels.
  • Removing policy restores new-chat fallback without persisting untouched managed defaults as personal preferences. Empty catalogs remain refreshable and defer model availability decisions to the runtime.

These are editable defaults, not strict locks. Tier-only policy does not select Auto, enable unavailable routing, or govern the model pool. No new VS Code setting.

Try it

{ "model": "auto", "ensembleTier": "high" }

Restart Agent Host and inspect Fusion → Details → Effort Level in a new Copilot chat. Expect High when available; change it before sending and confirm the choice survives send/reopen. Add "autoTier": "efficiency" to verify precedence, then set "ensembleTier": "unmanaged" to verify personal/default fallback. "ensembleTier": "balance" displays as Standard.

Local npm run compile, full-repository npm run eslint, and npm run hygiene passed, along with host/picker regressions and bundled-runtime policy, inference, and resume tests. Live-account UI validation remains outstanding; CI status is shown in the checks.

🤖 Authored with GitHub Copilot on behalf of Ross Wollman (@rwoll).

Ross Wollman (rwoll) and others added 5 commits October 16, 2026 13:31
Local checkpoint of the validated Ensemble prototype before merging latest main and adopting the bundled SDK contract. No publication.

🤖 Authored with GitHub Copilot on behalf of @rwoll.

Co-authored-by: Copilot <[email protected]>
Preserve upstream Fusion naming and canonical model option handling. Remove the temporary Ensemble SDK capability skip and use the released typed ensembleTier contract. Bundled SDK integration and schema tests pass: 38 passing, one pre-existing strict-mode skip.

🤖 Authored with GitHub Copilot on behalf of @rwoll.

Co-authored-by: Copilot <[email protected]>
Preserve main authentication and model-refresh generation guards alongside runtime-native Ensemble tier metadata. Validated SDK 1.0.23-preview.2/runtime 1.0.99-2: client typecheck, full dev build, hygiene, 2319 unit tests (one existing pending), and two runs of 38 integration tests (one existing strict-mode pending). All 14 Ensemble cases execute against the bundled runtime without an override.

🤖 Authored with GitHub Copilot on behalf of @rwoll.

Co-authored-by: Copilot <[email protected]>
Include main a7e1fc0. Changeset URI, service and Git-state suites pass: 253 tests, 30 existing pending. An upstream duplicate fixture property is corrected separately.

🤖 Authored with GitHub Copilot on behalf of @rwoll.

Co-authored-by: Copilot <[email protected]>
Remove the repeated gitService property introduced on main in #342128. Both entries referenced the same value. Client typecheck, full dev build, hygiene and all 89 Git-state tests pass.

🤖 Authored with GitHub Copilot on behalf of @rwoll.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 16, 2026 21:33
@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: a0c65203 Current: 0da21636

Changed (1)

sessions/chatCompositeBar/MixedStatuses/Light
Before After
before after

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Native-tier handling can hide existing HydraFusion selections and break fallback-only catalog recognition.

2 open issues
What changed in this PR

Adds editable runtime-managed Ensemble defaults to the Copilot Agent Host’s Fusion picker, building on managed model defaults.

Changes:

  • Applies ensembleTier precedence while preserving explicit and legacy choices.
  • Uses runtime-advertised tiers without synthetic HydraFusion duplicates.
  • Adds host, picker, and integration coverage.
File Description
src/​vs/​workbench/​contrib/​chat/​test/​browser/​widget/​input/​modelPicker/​modelPickerTabbedWidget.test.ts Tests native Fusion tier selection.
src/​vs/​workbench/​contrib/​chat/​common/​languageModels.ts Adds native-tier metadata.
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​input/​modelPicker/​modelPickerWidget.ts Disables legacy routing for native tiers.
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​input/​modelPicker/​modelPickerTabbedWidget.ts Separates native and synthetic tiers.
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​input/​modelPicker/​modelPickerPresentation.ts Adjusts native-tier labeling.
src/​vs/​platform/​agentHost/​test/​node/​providerIntegration/​copilotAutoTier.integrationTest.ts Tests runtime policy and tier compatibility.
src/​vs/​platform/​agentHost/​test/​node/​e2e/​README.md Documents Ensemble integration coverage.
src/​vs/​platform/​agentHost/​test/​node/​copilotSessionLauncher.test.ts Tests advertised tier identifiers.
src/​vs/​platform/​agentHost/​test/​node/​copilotManagedModelConfiguration.test.ts Tests precedence and scoped configuration.
src/​vs/​platform/​agentHost/​test/​node/​copilotAgent.test.ts Tests tier publication and availability updates.
src/​vs/​platform/​agentHost/​test/​node/​agentHostGitStateService.test.ts Removes a duplicate fixture property.
src/​vs/​platform/​agentHost/​node/​copilot/​copilotSessionLauncher.ts Passes native tiers into session creation.
src/​vs/​platform/​agentHost/​node/​copilot/​copilotManagedModelConfiguration.ts Projects managed defaults and runtime choices.
src/​vs/​platform/​agentHost/​node/​copilot/​copilotAgentSession.ts Includes session-specific tier catalogs in reports.
src/​vs/​platform/​agentHost/​node/​copilot/​copilotAgent.ts Publishes native tiers and applies defaults.
src/​vs/​platform/​agentHost/​common/​meta/​vscode/​agentModelFusionMeta.ts Reads and writes native-tier metadata.
src/​vs/​platform/​agentHost/​common/​autoModeTiers.ts Recognizes native routing identifiers.

Review effort: Balanced

Combine the two imports inherited from main into one declaration. No runtime behavior change. Full npm run compile, full npm run eslint (13584 files), and targeted hygiene passed.

🤖 Authored with GitHub Copilot on behalf of @rwoll.

Co-authored-by: Copilot <[email protected]>
Fix fallback catalogs and standalone native Fusion selections

Track empty-runtime catalog status separately from Auto projection identity. Keep base HydraFusion visible in native tier mode with legacy Balance routing disabled. Both regression tests reproduced the review findings before these fixes; full compile, ESLint, hygiene and 907 tests pass.

Stacked follow-up to #342184.

🤖 Authored with GitHub Copilot on behalf of @rwoll.

Co-authored-by: Copilot <[email protected]>
@rwoll
Ross Wollman (rwoll) enabled auto-merge (squash) October 16, 2026 22:30
Resolve conflicts by retaining main’s cancellation-aware managed-settings resolver together with native Auto tier catalog reporting. Preserve the merged fallback and HydraFusion regression fixes.

Before pushing: full compile, full-repository ESLint and hygiene passed; 2283 unit tests and 38 managed-settings integration tests passed (one existing pending in each selection). The prior Linux CI failure was a busy tmpfs held by bwrap after all E2E suites passed; this merge does not claim to fix that cleanup leak.

🤖 Authored with GitHub Copilot on behalf of @rwoll.

Co-authored-by: Copilot <[email protected]>
Reviewed-head: f601b70
Pull-request: #342184
Approved-by: rwoll via PR Sign-Off
Requested-by: astra
Preserve Standard/High/Max naming from main together with native tier metadata and standalone HydraFusion review fixes.

Validated before push: full compile, full-repository ESLint (13590 files), full hygiene (13570 files), 2289 unit tests and 38 managed-settings integration tests. The unrelated canvas lifecycle suite passed 40 local repetitions unchanged; no canvas assertions or production code were altered.

🤖 Authored with GitHub Copilot on behalf of @rwoll.

Co-authored-by: Copilot <[email protected]>
Reviewed-head: d2ba794
Pull-request: #342184
Approved-by: rwoll via PR Sign-Off
Requested-by: astra
@rwoll
Ross Wollman (rwoll) marked this pull request as draft October 17, 2026 00:12
@rwoll

Copy link
Copy Markdown
Member Author

there was some chrun on ensemble naming on main, so double checking this is still working as expected before re-publishing the PR.

Use Standard/High/Max for known Fusion routing IDs in catalogs and per-chat reports; retain provider labels for unknown IDs and ordinary Auto. Policy values, routing IDs and saved choices remain unchanged. Regressions reproduce the old labels before the fix.

Full compile, full-repository ESLint and hygiene passed. Validated 932 unit tests, 4 Fusion footer tests, and 38 native managed-settings integration tests.

🤖 Authored with GitHub Copilot on behalf of @rwoll.

Co-authored-by: Copilot <[email protected]>
Ross Wollman (rwoll) and others added 4 commits October 16, 2026 17:21
Include origin/main e630a74 with SDK 1.0.23-preview.5/runtime 1.0.100-1. Stop the quick-chat test agent before deleting its runtime home; the prior order reproduced ENOTEMPTY and leaked follow-on work after the SDK update.

Before push: full compile, full-repository ESLint/hygiene passed; 2290 affected unit tests passed twice (one existing pending), 40 direct SDK/model integrations passed (one existing strict-mode pending). Native Fusion label fix preserves routing and policy values.

🤖 Authored with GitHub Copilot on behalf of @rwoll.

Co-authored-by: Copilot <[email protected]>
Reviewed-head: 1593d3a
Pull-request: #342184
Approved-by: rwoll via PR Sign-Off
Requested-by: astra
Include fetched main a0c6520 after the SDK and Fusion label integration. Full compile, full-repository ESLint and hygiene passed before push; all 39 chat-composite-bar tests passed.

🤖 Authored with GitHub Copilot on behalf of @rwoll.

Co-authored-by: Copilot <[email protected]>
Reviewed-head: ecb0f6e
Pull-request: #342184
Approved-by: rwoll via PR Sign-Off
Requested-by: astra
@rwoll
Ross Wollman (rwoll) marked this pull request as ready for review October 17, 2026 00:34
@rwoll
Ross Wollman (rwoll) enabled auto-merge (squash) October 17, 2026 00:36
auto-merge was automatically disabled October 17, 2026 01:07

Pull request was closed

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.

4 participants