Repository navigation
feat(runtime): add opt-in Jev task routing - #77
Merged
lg2m merged 5 commits intoSep 19, 2026
Merged
Conversation
J6b core foundation. Start with routing_spend_survives_preparation_cancellation_and_recovery; preserve pending and known spend through cancellation, reload and recovery. Seed budgets once without changing context occupancy. Production Jev activation, model-pin provenance and child inheritance remain unfinished.
J6b: persist fallback provenance without opting legacy sessions into routing. Cover pinned-route rejection, loader precedence, migration and wire defaults; update ADR and design documentation.
J6b: use bounded authorized candidates, preserve declared model capabilities and explicit pins, inherit parent routing activation, and expose direct ask decisions. Include candidate identity in cached plans and retain shared spend accounting. Validate with 1597 workspace tests and independent reviews.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
J6b: opt-in model and effort routing
Jev can choose an authorized model and declared effort before a task starts. Routing is independently off by default; stored credentials do not activate it, and explicit model/profile/worker choices remain pinned. This PR is stacked on #76 (
feat/eng-791-jev-routing).Spec: J6. Tracking: ENG-791; Linear connector still requires reauthentication.
Behavior
reasoning_efforts; unknown support preserves omission.askuses the same router and loader, reports decisions/spend on stderr and retains its existing ephemeral execution contract.Verification
At cf61126: 1,597 workspace tests passed, five ignored. Final configuration representation check: 249 application/config tests passed, one ignored. Formatting, strict all-target/all-feature Clippy and workspace build pass. Independent Spec and Standards rechecks approved the fixes.
Commands used
--locked --offlineand the shared target directory:env -u NO_COLOR cargo test --workspace --no-fail-fast --quiet,cargo test -p qq -p qq-config --quiet,cargo fmt --all -- --check,cargo clippy --workspace --all-targets --all-features -- -D warnings,cargo build --workspace.Tests cover HTTP masking/body bounds, strict choice validation, pin/profile/cache precedence, inherited policy, migration/replay/cancellation, unknown spend and exact-once budget accounting. No live paid inference was performed.
Performance and remaining qualification
30 alternating release A/B pairs against retained #76 binaries, plus 30 A/A pairs:
Tool p95: 70,945→70,783 ns; A/A median +1.23%. This incremental median fits the 5% budget, but the earlier #76 performance gate and quiet-host full-stack qualification remain open. Raw evidence:
target/qq-perf/jev-routing-2026-09-18/paired.json. This is not proof of Jev acceleration or task-quality improvement. Hosted checks for this head remain pending.Compatibility and docs
Protocol 24→25 (old/new fixtures retained), schema 30→32 (durable routing and conservative model-pin migration), descriptor 8→9. ADRs 0032–0034, architecture/protocol/provider docs, Jev runbook, plan and ledger are updated. Passive advisory observation remains the next separate slice; this draft does not claim the entire stack is merge-ready.