Install changed dependencies automatically before dev, run and test #363
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.46) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.46 · 457 lines diff across 5 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.367
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #363"
general
weight: 0.35
alvarosanchez
pyronaut dev,runandtestnow run the install step automatically when the project dependencies changed since the lastpyronaut install, so editingpyproject.tomlno longer needs a manual install first.How staleness is detected (managed projects)
[tool.pyronaut]table plus the Pyronaut version in__pyronaut__/install-state.json. Missing classpath manifests, a different table, or a Pyronaut upgrade runpyronaut install. The check reads parsed TOML, so the schema directive install prepends and edits outside[tool.pyronaut](description, version…) do not trigger a reinstall..venv/.pyronaut-requirements.json. For pip that means[project].dependencies,[dependency-groups]andrequirements.txt; for uv it meansuv.lock(the shared check from #359). A self-managed.venvis never stale. A Python-only change refreshes.venvwithout running the Java resolver.pyproject.toml.)run/testalready install there.Output
One line before the install renders its own progress:
Dev mode
pyproject.tomlwas already watched. On a dependency change the restart loop now stops the application first, then installs, processes, validates and restarts. Restarts without a dependency change keep the existing parallel stop/refresh. This follows the one-writer-per-terminal rule: the application's shutdown output and the installer's progress never interleave.Opt-out
From highest to lowest precedence:
--no-installon a singledev/run/testinvocation. The CLI strips the flag before delegating; after--it stays an application argument.PYRONAUT_AUTO_INSTALL=false(trueoverrides the settings file).~/.pyronaut/settings.toml:With auto-install off, the command still warns that dependencies are stale and names the setting that skipped the install. An invalid value fails the command with a clear message.
Tests
auto_install_test.py(23 tests, isolated from the developer's own settings and environment) covers: fresh state, changed deps, missing manifests, Pyronaut upgrade, metadata-only edits, legacy installs,--no-install(and after--), the settings/env opt-outs and their precedence and validation, uv projects and self-managed venvs not being reinstalled, Python-only changes, failed install,test, explicitinstallrecording state, external builds, and the dev restart orderprocess, start, stop, install, process, start.*_test.pydiscovery on top of #359: 534 tests OK (CPython 3.13).auto_install_testalso passes on GraalPy. No native-image builds were run.Docs: a new "Automatic install" section in the CLI guide, the opt-outs documented,
--no-installadded to dev/run/test, and the doctor note updated.Fixes #142