Skip to content

chore(release): prepare 0.21.2 - #754

Merged
steipete merged 1 commit into
mainfrom
release/0.21.2
Sep 28, 2026
Merged

steipete merged 1 commit into
mainfrom
release/0.21.2

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Prepare the 0.21.2 patch across the root package, the private native workspace, the native Cargo crate, and all seven platform packages. Both lockfiles were regenerated with the existing tooling; no external dependency versions change.

Unreleased was empty (this round's PRs did not edit the changelog), so the 0.21.2 section is written from the merged PRs. The headline is require-mode confinement of remove, recursive remove, mkdir, writable-open creation and overwrite move (#744, #751, #750, #752). An adversarial race fuzzer (#748) showed no outside or denied effects across about 2.8 million racing calls on Linux with and without openat2, macOS, and Windows. The notes also cover the macOS kqueue entry-scope transport (#753), the 27–34% watch-scan speedup (#747), and five fixes: watch and walk cancellation, mkdir: false parent aliases, EMFILE reporting, and the walker entry budget. The Compatibility section calls out the new require-mode helper-unavailable rejections and the Windows already-exists alignment (#745). Test- and CI-only changes are omitted. Unreleased is left empty.

Validation: node scripts/release-notes.mjs 0.21.2 renders the section; every linked PR was checked as merged; the linked security-model anchor exists; the release-proof tests pass (17 passed, 7 platform skips); cargo metadata --locked and git diff --check pass; independent Codex review is scoped-clean. After merge, the signed v0.21.2 tag drives the trusted-publishing workflow.

@steipete
steipete requested a review from a team as a code owner September 28, 2026 16:27
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement with limited blast radius. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 28, 2026, 12:30 PM ET / 16:30 UTC.

ClawSweeper review

What this changes

Prepares fs-safe 0.21.2 by synchronizing package and native crate versions, updating both lockfiles, and adding notes for merged security, watch, and bug-fix work.

Merge readiness

⛔ Blocked before merge - 6 items remain

Keep open: current main and the latest tagged release are still 0.21.1. The release preparation remains useful, but its security highlight needs two factual corrections and the strict-mode upgrade impact needs release-owner acceptance.

Priority: P2
Reviewed head: dad9a55b84b488f8ba5cb693d80e6c70474c6921
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The release inputs are coherent, but two security-note inaccuracies and an unresolved upgrade approval limit readiness.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The changed release manifests and notes feed the signed-tag workflow; the MEMBER-authored PR reports notes rendering and release validation, and its branch adds no runtime implementation. No stored-data contract changes.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The changed release manifests and notes feed the signed-tag workflow; the MEMBER-authored PR reports notes rendering and release validation, and its branch adds no runtime implementation. No stored-data contract changes.
Evidence reviewed 9 items Introduced release highlight: The new highlight describes overwrite move as using POSIX renameat2 and states that require mode confines mutations under hostile concurrency.
Overwrite implementation: The identity-checked overwrite path dispatches rustix::fs::renameat; the nearby renameat2 call is for no-replace moves.
Documented security limit: The platform matrix identifies best-effort admission on macOS and Linux without openat2, and explains that moving an admitted directory or changing a final name can race a later mutation.
Findings 2 actionable findings [P2] Qualify the require-mode confinement claim
[P2] Name the overwrite rename operation accurately
Security Needs attention Overstated release security guarantee: Consumers choosing require mode from the release notes could infer atomic hostile-race confinement where the platform documentation expressly retains best-effort admission and namespace race limits.

How this fits together

Package manifests and the changelog provide versions and notes to fs-safe’s signed-tag release workflow. That workflow validates the source, builds seven platform bindings, and publishes the npm packages and GitHub release.

flowchart LR
A[Main branch changes] --> B[Versioned manifests]
A --> C[Release notes]
B --> D[Release validation]
C --> D
E[Signed release tag] --> D
D --> F[npm packages and GitHub release]
Loading

Decision needed

Question Recommendation
Should 0.21.2 ship now with unsupported require-mode operations failing closed for users upgrading from 0.21.1? Ship with upgrade guidance: Correct the security highlight, explicitly accept the fail-closed upgrade behavior, and proceed through the signed-tag workflow.

Why: The behavior is already merged and documented, but deciding whether its compatibility impact belongs in this release requires release-owner intent.

Before merge

  • Qualify the require-mode confinement claim (P2) - The headline promises confinement under hostile concurrency, while the linked security model retains best-effort admission on macOS and Linux without openat2 and says an admitted directory can move before mutation. Describe the guarded parent-swap protection and its limits so the release does not imply an atomic boundary.
  • Name the overwrite rename operation accurately (P2) - The required overwrite-move path calls descriptor-relative renameat on POSIX. renameat2 appears in the separate Linux no-replace path, so the release note should say renameat or use a platform-neutral description.
  • Resolve security concern: Overstated release security guarantee - Consumers choosing require mode from the release notes could infer atomic hostile-race confinement where the platform documentation expressly retains best-effort admission and namespace race limits.
  • Resolve merge risk (P1) - Upgrading from 0.21.1 to this release can make existing require-mode recursive removal fail with helper-unavailable on Windows and Linux without openat2. The release owner should explicitly accept that operator impact before tagging.
  • Complete next step (P2) - Correct the security highlight and obtain explicit release-owner acceptance of the require-mode upgrade impact before signing the tag.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

  • [P2] Qualify the require-mode confinement claim — CHANGELOG.md:9
  • [P2] Name the overwrite rename operation accurately — CHANGELOG.md:9
  • [medium] Overstated release security guarantee — CHANGELOG.md:9
Agent review details

Security

Needs attention: The diff adds no new execution or dependency source, but its published confinement headline overstates the documented security boundary.

Review metrics

Metric Value Why it matters
Versioned release inputs 9 npm manifests, 1 Cargo crate, 2 lockfiles The signed-tag workflow requires these package versions to agree before publishing seven platform bindings and the root package.

Merge-risk options

Maintainer options:

  1. Correct and approve the release (recommended)
    Qualify the confinement claim, name the actual overwrite operation, and have the release owner accept the documented strict-mode upgrade impact.
  2. Pause the 0.21.2 tag
    Delay publication if affected require-mode deployments need a different compatibility path.

Technical review

Best possible solution:

Publish 0.21.2 through the protected signed-tag workflow with accurate, platform-qualified security notes and explicit guidance for require-mode upgrades.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this is release preparation rather than a bug report. Source inspection establishes both release-note discrepancies.

Is this the best way to solve the issue?

No: the version alignment follows the existing release path, but the security highlight must match the documented platform limits and actual overwrite syscall.

Full review comments:

  • [P2] Qualify the require-mode confinement claim — CHANGELOG.md:9
    The headline promises confinement under hostile concurrency, while the linked security model retains best-effort admission on macOS and Linux without openat2 and says an admitted directory can move before mutation. Describe the guarded parent-swap protection and its limits so the release does not imply an atomic boundary.
    Confidence: 0.91
  • [P2] Name the overwrite rename operation accurately — CHANGELOG.md:9
    The required overwrite-move path calls descriptor-relative renameat on POSIX. renameat2 appears in the separate Linux no-replace path, so the release note should say renameat or use a platform-neutral description.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.92

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 433207471396.

Labels

Label changes:

  • add P2: Release-note accuracy and a bounded strict-mode upgrade decision need normal-priority maintainer attention.
  • add merge-risk: 🚨 compatibility: The 0.21.2 release exposes helper-unavailable failures to some existing require-mode deployments.
  • add merge-risk: 🚨 security-boundary: An overbroad published confinement claim could lead consumers to rely on a stronger race guarantee than the platform contract provides.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The changed release manifests and notes feed the signed-tag workflow; the MEMBER-authored PR reports notes rendering and release validation, and its branch adds no runtime implementation. No stored-data contract changes.

Label justifications:

  • P2: Release-note accuracy and a bounded strict-mode upgrade decision need normal-priority maintainer attention.
  • merge-risk: 🚨 compatibility: The 0.21.2 release exposes helper-unavailable failures to some existing require-mode deployments.
  • merge-risk: 🚨 security-boundary: An overbroad published confinement claim could lead consumers to rely on a stronger race guarantee than the platform contract provides.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The changed release manifests and notes feed the signed-tag workflow; the MEMBER-authored PR reports notes rendering and release validation, and its branch adds no runtime implementation. No stored-data contract changes.

Evidence

Security concerns:

  • [medium] Overstated release security guarantee — CHANGELOG.md:9
    Consumers choosing require mode from the release notes could infer atomic hostile-race confinement where the platform documentation expressly retains best-effort admission and namespace race limits.
    Confidence: 0.88

What I checked:

  • Introduced release highlight: The new highlight describes overwrite move as using POSIX renameat2 and states that require mode confines mutations under hostile concurrency. (CHANGELOG.md:9, dad9a55b84b4)
  • Overwrite implementation: The identity-checked overwrite path dispatches rustix::fs::renameat; the nearby renameat2 call is for no-replace moves. (native/src/unix.rs:390, 433207471396)
  • Documented security limit: The platform matrix identifies best-effort admission on macOS and Linux without openat2, and explains that moving an admitted directory or changing a final name can race a later mutation. (docs/security-model.md:302, 433207471396)
  • Upgrade compatibility: Current documentation says unsupported require-mode mutations now fail with helper-unavailable, including recursive removal on Windows and Linux without openat2; auto retains its best-effort path. (README.md:92, 433207471396)
  • Version alignment: The diff changes the root and private native npm manifests, seven platform manifests, Cargo crate, and corresponding lockfile entries to 0.21.2 without changing external dependency versions. (package.json:3, dad9a55b84b4)
  • Release workflow: A protected annotated tag on main must match package and changelog versions; the workflow then validates, builds, packs, smoke tests, and publishes the packages. (.github/workflows/release.yml:54, 433207471396)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Raw commit d140ddf adds scripts/release-notes.mjs:11 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: d140ddfdbb33; files: scripts/release-notes.mjs)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Align the security highlight with the platform matrix and the renameat overwrite path.
  • Record release-owner acceptance of the require-mode upgrade behavior before tagging.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit 9ea5f11 into main Sep 28, 2026
50 checks passed
@steipete
steipete deleted the release/0.21.2 branch September 28, 2026 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. P2 Normal priority bug or improvement with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant