Repository navigation
Align model routing with AWF runtime, topology, and host support - #77212
Conversation
Co-authored-by: SivaKesava1 <[email protected]>
|
🔬 Test Quality Sentinel is analyzing test quality on this pull request... |
|
✂️ Ponytail Reviewer has started processing this pull request |
|
🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills... |
|
🔎 PR Code Quality Reviewer is reviewing code quality for this pull request... |
|
🔍 Design Decision Gate 🏗️ is checking for design decision records on this pull request... |
|
🚀 PR Specification Reviewer has started processing this pull request |
There was a problem hiding this comment.
🟡 Changes recommended
Object-form runs-on labels are incorrectly treated as compatible, allowing native Windows hosts without the WSL adapter to pass routing checks but fail at startup.
1 open issue
What changed in this PR
This PR aligns gh-aw’s model-routing defaults and compile-time validation with AWF runtime support, addressing #77208 while preserving authored model choices.
Changes:
- Shares runtime, topology, Docker-socket mount, and host compatibility checks between explicit and implicit routing.
- Enables eligible Cloud Hypervisor workflows to use default routing with AWF v0.29.12 or newer.
- Adds compatibility tests, updates documentation, and regenerates the affected workflow lock.
| File | Description |
|---|---|
pkg/workflow/model_routing.go |
Applies shared compatibility validation to explicit routing. |
pkg/workflow/model_routing_test.go |
Tests explicit routing compatibility and version precedence. |
pkg/workflow/model_routing_runtime.go |
Defines shared runtime, topology, mount, and host checks. |
pkg/workflow/model_routing_default.go |
Uses shared checks for implicit routing eligibility. |
pkg/workflow/model_routing_default_test.go |
Tests default eligibility, socket exposure, and runner labels. |
pkg/workflow/compiler_orchestrator_workflow.go |
Validates compatibility after runner selection is resolved. |
pkg/constants/version_constants.go |
Defines the minimum AWF version for Cloud Hypervisor routing. |
docs/src/content/docs/reference/model-routing.md |
Documents supported configurations and default eligibility. |
.github/workflows/daily-mcp-concurrency-analysis.lock.yml |
Adds conditional default routing and routing-result reporting. |
Review effort: Balanced (auto)
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "92555d2d55577918c4865631b6f1349d4170d1d7",
"kind": "requested",
"schema_version": "1",
"state": "37e81d265d1fe40146d8e7d4a9133adad3723da360da65c0a5fb6423d0ab3608",
"work": [
"42e5d572d9d75b7168fe7d0aeda0717cc07e65ed240f6d299e6fec661214f1ac"
],
"workflow": "pr-sous-chef"
}
|
…outing-awf Co-authored-by: gh-aw-bot <[email protected]>
Co-authored-by: gh-aw-bot <[email protected]>
Triage
|
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "9ce25a49451253615d42e9f94429d99f0b064e3d",
"kind": "requested",
"schema_version": "1",
"state": "251d984f2dcd6642abd370239f2b96a7a962f42e667dda572ab0c5fafcf171e9",
"work": [],
"workflow": "pr-sous-chef"
}
|
Co-authored-by: gh-aw-bot <[email protected]>
…outing-awf # Conflicts: # .github/workflows/daily-mcp-concurrency-analysis.lock.yml Co-authored-by: gh-aw-bot <[email protected]>
Co-authored-by: gh-aw-bot <[email protected]>
Triage summary
|
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "8eaad35e129c0710600030a6bbaf5cba6229d1b7",
"kind": "requested",
"schema_version": "1",
"state": "69743f1432e455171fe9585e64ccf01cf13251062c727dbfb2d4c0fd274ac341",
"work": [
"2ec1c55a56c3bbc3d439b0f0d819e0f964a9c8ea5c8bbe45cc9676c7e7802a18"
],
"workflow": "pr-sous-chef"
}
|
Merged main at 7517bb7 in f799a04b using
Updated from main in f799a04b using |
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "a68e51fd3524c37dd6d59eae8787d1de6cd9abc6",
"kind": "requested",
"schema_version": "1",
"state": "17253f99e8e243c870d0f92103494d89aa4dfe718a634cf65e7b3b52dab44d05",
"work": [],
"workflow": "pr-sous-chef"
}
|
|
@SivaKesava1 ready? |
…outing-awf # Conflicts: # .github/workflows/daily-mcp-concurrency-analysis.lock.yml Co-authored-by: gh-aw-bot <[email protected]>
Co-authored-by: gh-aw-bot <[email protected]>
Merged latest
Merged current
Merged latest |
…outing-awf Co-authored-by: copilot-swe-agent[bot] <[email protected]>
|
🎉 This pull request is included in a new release. Release: |

gh-aw's routing checks didn't match what AWF actually supports. Implicit default routing always skipped Cloud Hypervisor, even though AWF v0.29.12+ can route it. Explicit routing (
model: router/engine.model-routing) compiled on NVX,arc-dind, Docker-socket-exposing mounts, or native non-Linux runners, and AWF then refused those runs when the agent started.Changes
Shared compatibility helper in the new
pkg/workflow/model_routing_runtime.go. Implicit-default eligibility and explicit-routing validation both usemodelRoutingRuntimeCompatibility, so the two can't drift. Supported setups:sandbox.agent.runtimeomitted,docker, ordocker-sudo-iptables, all of which run on runc.cloud-hypervisorwhen the effective AWF version is at least the newconstants.AWFCloudHypervisorModelRoutingMinVersion(v0.29.12). The effective version uses the existing precedence:sandbox.agent.version, then firewall version, then the compiler default.Rejected setups:
runner.topology: arc-dind.findDockerSocketExposingMount:/var/run/docker.sockand/run/docker.sock./var/run/docker.sockor/run/docker.sockinside the agent, which AWF masks.windows-*andmacos-*labels, orself-hostedwith the reservedwindows/macoslabel. Literalruns-on: windows-lateststays allowed because of the WSL adapter. Runner groups, expressions, and custom self-hosted labels are never treated as proof of an OS.Implicit default (
defaultModelRoutingIneligibility): an incompatible setup now skips routing silently. The separate legacy-security exclusion is kept, so a runtime AWF can route explicitly doesn't automatically get the default.Explicit routing:
validateModelRoutingnow ends with the compatibility check. A second check inpopulateWorkflowBuildContextruns onceruns-onis resolved. Errors name the field and value, list the supported setups, and link Provide primary-agent and enclave parity across Docker, NVX, and Cloud Hypervisor gh-aw-firewall#10335:Lock change:
daily-mcp-concurrency-analysis.lock.ymlnow uses the implicit routing default. The other six Cloud Hypervisor workflows keep their chosen models, and no other locks change.Docs:
reference/model-routing.mdnow lists the supported runtimes, topology, and hosts, plus the eligibility rule for default routing.Review notes
TestGenerateModelRoutingConversationStep/arc-dindused to compile explicit routing on arc-dind. It now expects therunner.topologyerror.engine:line, matching the existingformatEngineSetupErrorbehaviour.TestBootstrapReleasePinsMatchCompilerDefaultsfails on main as well, because v0.29.12 has no release-integrity pin; this PR doesn't change it.