feat: add python-baseline profile #460
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.36) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 200 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.317
Real PR Conversation Timeline
1 comments
"Review active on #460"
general
weight: 0.35
evankanderson
Closes #459
Adds a
python-baselineprofile for Python repositories, along with three new rule types.Rules
All rules are tool-agnostic and skip non-Python repositories automatically (no pyproject.toml, requirements.txt, setup.py, setup.cfg, or Pipfile present).
python_type_checker_configuredPasses if mypy, pyright, or pytype is detected via pyproject.toml sections (
[tool.mypy],[tool.pyright],[tool.pytype]), dedicated config files (mypy.ini,.mypy.ini,pyrightconfig.json), or a GitHub Actions workflow step. Remediation only triggers when none are found.python_linter_configuredPasses if ruff, flake8, or pylint is detected via pyproject.toml sections, dedicated config files (
.flake8,.pylintrc,ruff.toml), or a CI workflow. Same approach — never overrides an existing choice.python_pyproject_toml_existsChecks for the presence of
pyproject.toml. Skipped if the repo shows no other sign of being a Python project. Includes a remediation PR that adds a minimal template.python_lock_file_exists(existing rule, included in profile)Profile
profiles/github/python-baseline.yamlbundles all four rules with alerting on and remediation off by default, following the same convention as other profiles in this repo.Test plan