← Back to Pull requests

fix: install dependencies from uv.lock, not a fresh resolve (RT#1564) #71

Merged
fatherlinux merged 3 files (271 lines) on Nov 10, 2026 07:47 UTC
View on GitHub
fatherlinux fatherlinux commented on Nov 10, 2026 07:14 UTC
Author

What changed

The builder stage ran pip install ., which reads only pyproject.toml's
floor-pins and re-resolves every dependency fresh on each build — versions
no test in this repo's CI ever ran against. This is the same failure shape
that caused a prod outage on mcp-gemini (shipped google-genai 3.0.0 vs the
CI-tested 2.34.0; fixed in mcp-gemini #72) and in trentina.

A lock stage is added at the top of the Containerfile that exports the
committed, Dependabot-maintained uv.lock with uv export --frozen --no-dev
--no-emit-project --format requirements-txt
. The builder stage now installs
that exported requirements file with pip install --no-deps before
installing the project itself, also with --no-deps, so pip cannot
re-resolve anything underneath either install.

Patch version bump (0.4.1 -> 0.4.2) in pyproject.toml, the Containerfile
LABEL version=, and a dated ## [0.4.2] / ### Fixed entry in
CHANGELOG.md. No IMAGE_TAG file exists in this repo. No dependency
version, upper bound, or uv.lock content was changed.

Does this downgrade anything?

No. Built the image locally and dumped installed distributions via
importlib.metadata (the runtime image is distroless and has no pip),
then diffed against uv export --frozen --no-dev --no-emit-project
--format requirements-txt
, with lockfile environment markers evaluated
against the actual image interpreter (CPython 3.14.9, linux/x86_64).

Result: all 64 locked runtime dependencies installed in the image match
the lock exactly — no version mismatches in either direction. The only
packages in the image not in the lock export are mcp-mediawiki-crunchtools==0.4.2
(this repo's own package, installed --no-deps after the dependency layer)
and pip==26.2 (the build tool itself). Unlike mcp-gemini, this repo had
not silently drifted, so the fix changes nothing about what ships today —
it just pins the build to the tested set going forward so the next
Dependabot-driven dependency bump can't silently drift it either.

Part of RT#1564

🤖 Generated with Claude Code

https://claude.ai/code/session_01R7Y1jesjfgxHeqtKJCvay6

Diff: 271 lines (+203 / -68) across 3 files Reviewer: None requested Review duration: 32m
All Vouch review confidence checks passed
Residual risk 0.32 = Change Risk (0.56) × (1 − Review Confidence (0.44)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.56 · 271 lines diff across 3 files
0.56
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 10%
44%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.335
No Reviewer Assigned no_reviewer_assigned
0.120
Ai Authored ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #71"
general weight: 0.35
Reviewers
None requested
Assignees
fatherlinux fatherlinux
Labels
risk: low confidence: 44.2% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 56.5% (MEDIUM) · Higher = larger blast radius
56.5%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 44.2% · Lower = rushed or shallow review
44.2%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 31.5% · Safe to merge
31.5%