Skip to content

chore: land campaign batch (#949) - #951

Merged
steipete merged 1 commit into
mainfrom
campaign2/batch-202610111209
Oct 11, 2026
Merged

steipete merged 1 commit into
mainfrom
campaign2/batch-202610111209

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Campaign batch: lands each PR below as its own commit on main via a SHA-pinned rebase merge, so one CI run proves the combination instead of one strict-up-to-date cycle per PR. Each original PR already had green exact-head CI and a clean autoreview.

The originals are closed with a link once this lands.

@steipete
steipete requested a review from a team as a code owner October 11, 2026 12:10
@clawsweeper

clawsweeper Bot commented Oct 11, 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: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 11, 2026
@clawsweeper

clawsweeper Bot commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR rejects rounded numeric filesystem identities and retains exact bigint identities through publication, directory guards, writes, and trash checks.

Example: File IDs 18014398509481984 and 18014398509481985 round to the same JavaScript Number.

  • Before: A rounded expected-source identity can match the wrong source and allow publication.
  • After: Publication rejects the unsafe Number with path-mismatch and directs callers to bigint stats.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The focused repair has no discrete finding, but its changed authority boundaries lack inspectable final-effect evidence.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A caller's expected source can match a different file when Windows file IDs round to the same Number.
Reason: The maintainer-authored direction repairs a concrete identity contract failure without adding an API or option, and documents intentional refusal of unsafe numeric inputs.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep this PR open: it repairs an identity precision defect still present on main and v0.26.0, and no introduced correctness defect was found.

Priority: P2
Reviewed head: 09c4ea792ff6e07a3224e6b7cd4a102dbc31bb3a

Before merge

  • Add real behavior proof - Authority-chain proof required: the linked PR reports Windows Server 2022, Node 24.19.0 NTFS sampling, exact publications, and fallback overwrite, but provides no captured changed-path rejection output. Supply redacted public-API logs or terminal screenshots showing valid exact-input publication, unsafe or stale-source refusal with no target created, and replacement-directory refusal before rename or removal; redact IPs, keys, and non-public endpoints. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve security concern: Verify retained directory authority at the final mutation - The private exact snapshot is consumed by shared rename and removal guards; demonstrate that replacing the admitted directory invalidates that authority before either effect.
  • Resolve merge risk - The new private directory-identity authority has not been demonstrated to reject replacement of the admitted directory before the final mutation.

Findings

  • [medium] Verify retained directory authority at the final mutation — src/directory-guard.ts:118

Tests

  • Missing end-to-end proof: Captured public-API output is needed for exact-input success, rounded or stale-source rejection before target creation, and changed-directory rejection before mutation.
Agent review details

How this fits together

The identity layer compares caller expectations, retained descriptors, and pathname observations before filesystem effects, returning metadata or typed errors.

flowchart TD
  A[Caller paths and identities] --> B[Identity admission]
  B --> C[Exact filesystem observations]
  C --> D[Directory and descriptor fences]
  D --> E[Publication and mutation]
  E --> F[Verification and guarded cleanup]
  F --> G[Metadata and errors]
Loading

Technical review

Best possible solution:

Retain exact bigint authority internally, reject rounded caller expectations, and preserve numeric public metadata and documented compatibility fallbacks.

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

Main's numeric expectation branch and comparator establish rounded-ID acceptance, and the added publication regression asserts refusal without creating a target; this review ran no target code.

Is this the best way to solve the issue?

The shared comparator and exact internal observations address the root cause while preserving safe Number inputs, numeric public results, strict cleanup ownership, and the explicit FUSE compatibility path.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against e2f70f180afa.

Merge-risk options

Maintainer options:

  1. Demonstrate rejection at the filesystem effect (recommended)
    Provide public-API output showing exact-input success, rounded or stale-source refusal without target creation, and replaced-directory refusal before rename or removal.
  2. Pause the batch
    Leave this PR and fix(identity): never accept rounded Windows file IDs as a match #949 open until the changed authority boundaries have inspectable evidence.

Provenance checked

Testing

Proof path: in-process harness.

Security

Needs attention: No introduced bypass or supply-chain regression was found, but the changed filesystem authority still requires final-effect evidence.

Evidence

Security concerns:

  • [medium] Verify retained directory authority at the final mutation — src/directory-guard.ts:118
    The private exact snapshot is consumed by shared rename and removal guards; demonstrate that replacing the admitted directory invalidates that authority before either effect.
    Confidence: 0.94

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit ee747c5 adds src/file-identity.ts:25 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ee747c56b0cb; files: src/file-identity.ts)
  • Vincent Koc: Raw commit dc0ea4e adds src/file-identity.ts:11 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: dc0ea4e269b3; files: src/file-identity.ts)
  • Jeremy Lautman: Raw commit 09614f4 adds src/file-identity.ts:18 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 09614f41d3a2; files: src/file-identity.ts)

Review metrics

Metric Value Why it matters
Introduced scope Production +58/-41; tests +99/-16; documentation and changelog +20/-1. The growth supports one precision repair through exact observations, focused regressions, and caller guidance.

Root-cause cluster

Relationship: same_root_cause
Canonical: #949
Summary: This campaign PR carries the original identity precision repair.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • add P2: Large filesystem IDs expose an owned library identity defect, without evidence of an urgent deployed incident.
  • add merge-risk: 🚨 security-boundary: Retained identity observations authorize filesystem effects, and replacement-directory rejection at the final mutation remains unproven.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Label justifications:

  • P2: Large filesystem IDs expose an owned library identity defect, without evidence of an urgent deployed incident.
  • merge-risk: 🚨 security-boundary: Retained identity observations authorize filesystem effects, and replacement-directory rejection at the final mutation remains unproven.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rank-up moves

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

  • Add final-effect proof for valid exact identities and substituted sources, and show that directory replacement invalidates retained authority before mutation.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only; repair and merge need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

Reviewed October 11, 2026, 8:12 AM ET / 12:12 UTC.

@steipete
steipete merged commit e26eff5 into main Oct 11, 2026
59 checks passed
@steipete
steipete deleted the campaign2/batch-202610111209 branch October 11, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant