Join a multi-line description into a single-line `Summary` #3332
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 288 lines diff across 3 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.339
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3332"
general
weight: 0.35
messense
A multi-line
package.descriptionin Cargo.toml (easy to get with a"""string) orproject.descriptionin pyproject.toml is written toMETADATA/PKG-INFOwith its line breaks. The break ends the header block, so every field afterSummaryis read as part of the long description:Keywords,Author,License-Expression,Requires-Python,Description-Content-TypeandProject-URL.For a bin crate with
maturin sdistonmainwrites thisPKG-INFO:and
packaging.metadata.parse_emailreads it assummary='A test project',requires_python=None. Installers lose theRequires-Pythonbound.packaging.metadata.Metadata.from_rawalso rejects the value itself with'summary' must be a single line.Summaryis a one-line field, so the description is now split into lines, each line is trimmed, blank lines are dropped and the rest is joined with a space. That is what hatchling does withproject.description. The upload form reads the samesummaryvalue, so it is fixed too. A single-line description is only trimmed, as the Cargo.toml one already was. With the change the same project givesSummary: A test project written in Rustfollowed byRequires-Python: >=3.9, andparse_emailreturns both.The guide's dynamic-metadata list now says that line breaks are joined.
Changelog.mdis left alone because AGENTS.md says git-cliff generates it.Tests
metadata::tests::test_multiline_description_from_cargo_toml(anexpect!snapshot of the fullMETADATA) andtest_multiline_description_from_pyproject_toml. Both fail onmainand pass with the change.cargo test --lib: 284 passed.cargo fmt --all -- --checkandcargo clippy --tests --all-features -- -D warningsare clean.pre-commit run --files src/metadata.rs guide/src/metadata.mdpasses.cargo-denywas skipped because it is not installed locally, and no dependencies changed.tests/run.rs,tests/cli.rs). No test crate has a multi-line description, so their outputs should not change.