Repository navigation
Use model: router for explicitly routed Pi workflows - #21183
Conversation
Refs #21182 Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Test Quality Sentinel: model: router migration
Reviewed head: 719739eb318c5fbf247c8b6f8da1219b08f819d2 (re-verified open, non-draft, same head before submission).
Score: N/A. Verdict: COMMENT (non-blocking).
The four modified assertions in three test files match all 19 migrated sources at head, and the lock diffs are metadata-only. The legacy model-routing block is gone from every committed workflow. However, the new patterns pin only engine: id: pi and model: router. The routing objective (goal: cost, mode: auto) is no longer asserted at source level for 11 sources, and the engine pattern still passes if a nested model-routing block is re-added. I did not execute the tests; findings come from reading the diff and replaying the regexes against committed blobs.
Action: Add assert.doesNotMatch(source, /model-routing:/) to the four modified scenarios (or an explicit "requested":"router" lock check) before merge, or accept the reduced coverage explicitly.
Scope and method
- Test files changed:
workflow-contract-compliance.test.mjs(EU CRA loop),workflow-contract-selfcare-dashboard.test.mjs(1 scenario),workflow-contract-selfcare-docs.test.mjs(2 scenarios). Four modified behavioral scenarios; no tests added or deleted. - Replayed each new regex against committed
.github/workflows/*.mdat719739eb: 19/19 match^engine:\n +id: pi$and^model: router$. The oldmodel-routingpattern matches 0 sources. - Lock diffs vs
453e35b: onlygh-aw-metadatafingerprints andGH_AW_INFO_MODEL_CONFIG, which gains"requested":"router". Routing staysenabled,goal: cost,mode: auto. No other lock changes. - Synthetic check: a source with
engine: id: pi, a nestedmodel-routing: goal: qualityblock, andmodel: routerpasses both new regexes. - The local working tree was stale relative to the PR head (it held pre-PR text), so all evidence uses committed blobs at
719739eb.
Per-scenario classification
| Scenario | File | Sources | Classification | New edge/failure cases | Regression that now escapes |
|---|---|---|---|---|---|
| EU CRA workflows preserve advisory and human-review boundaries | workflow-contract-compliance.test.mjs | 8 | Configuration conformance | 0 | Routing objective changed, or nested model-routing re-added beside model: router (previously pinned goal: cost and mode: auto) |
| SelfCare dashboard performance worker selects one highest-ROI small win | workflow-contract-selfcare-dashboard.test.mjs | 1 | Configuration conformance | 0 | Same |
| SVG visual audit covers every tracked SVG in both color schemes | workflow-contract-selfcare-docs.test.mjs | 1 | Configuration conformance | 0 | Same |
| SelfCare accessibility checker audits the served docs site | workflow-contract-selfcare-docs.test.mjs | 1 | Configuration conformance | 0 | Same |
Score is N/A. The rubric does not settle whether source-text conformance checks count as design or implementation tests, and the set adds no edge, failure, or authorization cases, so the diagnostic would not discriminate.
Coverage observations
- Source-level assertions for the objective were removed from 11 sources (8 EU CRA, plus the SelfCare dashboard, SVG audit, and accessibility checker). The other 8 migrated sources were never asserted in source-text tests, so nothing regresses there.
tests/unit/workflow-contract-compilation.test.mjsstill asserts the escaped objective foruk-ai-advisory-campaign-maintainerandeu-cra-compliance-campaign-maintainerfrom generated output. That covers two campaign maintainers only.- Suggested minimal fix: keep the new patterns and add
assert.doesNotMatch(source, /model-routing:/)in each modified scenario, so a legacy nested block cannot coexist withmodel: router. Optionally assert"requested":"router"in one compiled lock.
Not verified
- Did not run
npm test,gh aw compile, or CI. PR-body claims (84/84 strict compile, 12 docs tests) are unverified here.
Generated by Test Quality Sentinel for #21183 · copilot · routed: haiku55 xhigh · ~5 AIC · ⌖ ~1 AIC · ⊞ 4.7K
Comment /test-quality to run again
|
For the Test Quality Sentinel suggestion, I’m keeping the tests focused on the authored |
There was a problem hiding this comment.
Summary
This moves 19 Pi workflow sources from the nested model-routing block to a top-level model: router. The committed lock metadata keeps the routing objective unchanged (goal: cost, mode: auto) and adds requested: "router". Each lock diff is a two-line metadata change. I found no correctness or authority defect. The one gap is that the updated test assertions no longer pin the routing objective.
Action: No blocking change is required. Consider adding a lock-level assertion for "goal":"cost","mode":"auto" before merge.
Evidence
- All 19 changed
.mdsources at719739econtain exactly one top-levelmodel: routerandengine: id: pi. - All 19 lock files record
"requested":"router"alongside the unchangedgoal/mode. - No
model-routing:nested block remains in workflow sources, shared control modules, or tests at head. - The
uk-ai-advisory-operational-resilience.mdmodel:matches aremodel: smallagent definitions in the body, not duplicates.
Verification limits
- Tests were not executed. Policy forbids running PR tests, and the local checkout does not match PR head. The review is static, based on committed content at
headRefOid. gh awis not installed here, so compilation was not re-run. Compile success relies on the lock metadata and the PR's stated results.
Generated by Matt Pocock Skills Reviewer for #21183 · copilot · routed: haiku55 xhigh · ~5 AIC · ⌖ ~1 AIC · ⊞ 3.8K
Comment /matt to run again
There was a problem hiding this comment.
Validator results
- FAIL: npm run test:unit (1287 passed, 11 failed of 1299)
- FAIL: npm run test:integration (300 passed, 1 failed of 301)
- PASS: npm run test:load (10 of 10)
- PASS: agentic-workflows compile (84 workflows valid, 0 errors, 0 warnings)
- PASS: npm run docs:build
Failure analysis
- 8 tests in dashboard-site-build.test.mjs and 1 in the Pages simulation test fail with esbuild errors: Could not resolve
@xterm/xterm,@xterm/addon-fit,@xterm/addon-web-links,@xterm/xterm/css/xterm.css and strip-ansi, imported by dashboard/site/src/components/cli-terminal-runtime.js. The runner has no dashboard/site/node_modules because npm ci fails against (packagefeedproxy.microsoft.io/redacted) with DEPTH_ZERO_SELF_SIGNED_CERT. The lockfile declares these packages, so this appears to be an install-environment limitation, not a defect in the changed code. - dashboard-postgres-fixtures.test.mjs: requires an explicitly configured disposable POSTGRES_URL, which this runner does not provide.
- workflow-contract-compilation.test.mjs (clean-room compilation): produced no lock files in the first run, and the log shows the same
@xtermbuild errors. It passes when rerun alone. - control-standalone-compilation.test.mjs (integration): the gh aw version check did not match the pinned v1.2.3 in the first run. It passes when rerun alone.
Requested action
- Rerun test:unit and test:integration where dashboard/site dependencies install from the feed and POSTGRES_URL is set. No code change is requested based on these first-run results.
Generated by Workflow PR Validator for #21183 · copilot · routed: haiku55 xhigh · ~6 AIC · ⌖ ~1 AIC · ⊞ 2.8K
|
Follow-up to the Workflow PR Validator’s change request: I reran the requested suites on The manual run is red overall: four separate campaign lifecycle jobs failed during setup, before they could exercise routing. The root fixture found no prebuilt CAO runtime for this SHA; CAO Evolution, Optimization, and Dependabot reported @pelikhan, the requested rerun no longer reproduces the validator failures. Please re-review on that basis; I’ve left the blocking decision in place for maintainer review. |
Use top-level
model: routerfor the 19 Pi workflows that already request automatic, cost-oriented routing. This keeps the same model choices and prepares these workflows for eventual deprecation of the nested goal/mode syntax. The other 65 workflows are unchanged.All 19 changed workflows compiled with pinned gh-aw v1.2.3. Their generated locks match the previous locks except for the source fingerprints and metadata recording the requested
routervalue. Repository-wide strict compilation passed (84/84, with four warnings in the unchanged modernization workflow). The 12 SelfCare docs tests passed locally. The upstream workflow contracts and dashboard contracts passed in CI.Fixes #21182