fix(workspace-manifest-writer): match the file's quote style for every added scalar #18364
All Vouch review confidence checks passed
Residual risk 0.36 = Change Risk (0.48) × (1 − Review Confidence (0.25)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 526 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 30% · 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.375
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #18364"
general
weight: 0.35
greptile-apps[bot]
Summary
The workspace manifest writer quotes a scalar that needs quoting with single quotes. pnpm/pnpm#15533 made
minimumReleaseAgeExcludeandtrustPolicyExcludeentries follow a double-quotedpnpm-workspace.yaml, but every other write path still adds single-quoted scalars. This PR applies the file's quote style to every write.Related to pnpm/pnpm#15079.
Problem
These write paths still add single-quoted scalars to a double-quoted file:
pnpm config setallowBuilds)overrides,configDependenciesandpatchedDependenciesyamlpatchProjects whose formatter enforces double quotes (Prettier, Biome, Oxfmt) get a formatting failure or diff after each of these commands.
To reproduce, start from this
pnpm-workspace.yamlnext to a minimalpackage.json:Then run:
The file keeps
- "."but gains- '@<scope>/<pkg>@1.0.0'.Change
ManifestDocument::into_text, which every write goes through.Alternatives considered
yamlpatchandpnpm-configserialize themselves.Tests
tests/quote_style.rscoverspnpm config set,allowBuildsand catalogs in double-quoted, single-quoted, unquoted and new manifests, plus an existing single-quoted key surviving in a double-quoted file.tests/render.rsunit-tests the pass, including the escape case.cargo nextest run -p pnpm-workspace-manifest-writerpasses (305 tests), as do thepnpm-package-managerminimum_release_age::tests.Checklist
pnpm changeset) if this PR changes any published package. Keep it short and written for pnpm users — it becomes a release note.---
Written by an agent (Claude Code, claude-opus-5-5).
<!-- codesmith:footer -->
---
<a href="https://dashboardbackend.blacksmith.sh/track/run-proof?expires=1797972397&installation_model_id=426870&pr_number=18364&ref=codesmith_pr_footer&repository=pnpm%2Fpnpm&return_to=https%3A%2F%2Fgithub.com%2Fpnpm%2Fpnpm%2Fpull%2F18364&variant=prove_it_works&signature=a52b0b0f5ccdef3f6d76dbaf8dde16cceeb2e008f4367f35522ce963e52bee52"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/proof-prove-it-works-v2-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/proof-prove-it-works-v2-light.svg"><img alt="Prove it works" src="https://pr-comments-assets.blacksmith.sh/codesmith/proof-prove-it-works-v2-dark-3x.png" width="129" height="28"></picture></a>
<sup><a href="https://app.blacksmith.sh/pnpm/codesmith/pnpm/pr/18364?autoLogin=true&ref=codesmith_pr_footer">Open in [code]smith</a> · Need help on this PR? Tag <code>@codesmith-bot</code> with what you need.</sup>
<!-- codesmith:autofix:disabled -->
<!-- /codesmith:footer -->