fix(test): restore the e2e model's context window between tests #689
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 231 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.326
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #689"
general
weight: 0.35
ericcurtin
Why main is red
Not a flake. Since #684 the daemon honors a request's
num_ctx, and Cline's Ollama provider sends 32768 (itsollamaApiOptionsCtxNumdefault, checked incline@2.18.0). The e2e suite shares one daemon warmed at 262144, so after the Cline test the model is reloaded at 32768 for every later test (daemon log:loaded with a context of 262144; unloading it to load it with 32768):launch_hermes_with_model:context window of 32,768 tokens, which is below the minimum 64,000 required by Hermes Agent.launch_qwen_with_model:request (38105 tokens) exceeds the available context size (32768 tokens).That failed 7 of 8 E2E targets on the latest main run.
Fix
tests/launch_e2e.rs:warm_modelrecords the window the model loads with; before each test the model is reloaded unless it has at least that window (an idle model loads at the default). A live daemon that will not unload the model fails the warm-up instead of setting a wrong baseline.daemon::running_context_length: reads the window from/api/pswithout loading an idle model (split out ofloaded_context_length).Verification
/api/chatwithnum_ctx: 32768, thenllmman launch hermesfails with the CI message. With the fixlaunch_hermes_with_modelpasses against a pre-shrunk daemon.e2eis skipped on PRs, so it was dispatched on this branch: https://github.com/llmmanorg/llmman/actions/runs/39182143004Not addressed:
launch hermesstill fails with Hermes's own 64K error if another client leaves a model loaded below 64K. That is a launcher decision.