Repository navigation
Add cross-module model-routing contract coverage - #67254
Conversation
Co-authored-by: SivaKesava1 <11771739+SivaKesava1@users.noreply.github.com>
|
Verified
@copilot /pr-finisher (and add the |
Co-authored-by: SivaKesava1 <11771739+SivaKesava1@users.noreply.github.com>
Added a direct in-process |
|
@copilot Please revert the change to The underlying problem is real, but it's on |
There was a problem hiding this comment.
🟡 Changes recommended
The contract assertions leave mapped session effort and footer contents insufficiently verified, while failure classification remains duplicated.
3 open findings
What changed in this PR
Adds cross-module contracts to keep model-routing behavior consistent across harnesses, attribution, sessions, and telemetry.
Changes:
- Extracts reusable routing-resolution helpers for all four engines.
- Adds endpoint, mismatch, and 28-case effort-matrix contract coverage.
- Reconciles finalized routing attribution and verifies non-routed OTEL output.
| File | Description |
|---|---|
actions/setup/js/awf_model_routing.cjs |
Adds routing failure classification. |
actions/setup/js/claude_harness.cjs |
Extracts Claude routing resolution. |
actions/setup/js/codex_harness.cjs |
Improves Codex failure outcomes. |
actions/setup/js/copilot_harness.cjs |
Extracts Copilot routing resolution. |
actions/setup/js/pi_models_json.cjs |
Extracts Pi endpoint outcome recording. |
actions/setup/js/unified_session.cjs |
Reconciles outcomes with finalized attribution. |
actions/setup/js/unified_session.test.cjs |
Tests finalized effort reconciliation. |
actions/setup/js/send_otlp_span.test.cjs |
Tests non-routed telemetry attributes. |
actions/setup/js/model_routing_contract.test.cjs |
Adds cross-module routing contracts. |
actions/setup/js/fixtures/model_routing_contract.cjs |
Provides routing contract fixtures. |
🧠 Review effort: Balanced
Co-authored-by: SivaKesava1 <11771739+SivaKesava1@users.noreply.github.com>
Reverted the unified-session merge and matching |
|
@copilot address the following outstanding work in one pass:
Push the necessary fixes, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved. Use the pr-finisher skill and stop when only human review or CI remains; do not trigger CI. Sous-chef head: 392b544
|
…odule-routing-coverage Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Merged latest |
|
Ready for review. Verified |

Routing decisions could diverge between harnesses, proxy attribution, session events, and OTEL even when each module passed its own tests. This adds in-process contracts across those stages and measures harness routing coverage directly.
none→offmapping and fail-closed cases.Example endpoint-override contract: