Repository navigation
refactor(native): remove empty pre-observation callbacks - #770
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 30, 2026, 7:24 PM ET / 23:24 UTC (Revision 6). ClawSweeper reviewWhat this changesThe branch removes unused callbacks from native Root removal and overwrite moves, updates race tests, and expands required-native CI coverage. Merge readiness✅ Ready for maintainer review Keep open. Current main and v0.21.3 retain the callbacks, while the merged Windows error fix addresses a separate behavior. The previous Windows test compilation finding is fixed at this head; no new blocking defect was found. Priority: P3 Review scores
Verification
How this fits togetherNode.js Root operations pass retained parent handles and expected file identities to native filesystem helpers. The helpers check the selected entry before removing or renaming it, then return either a result or an error. flowchart LR
A[Root removal or overwrite move] --> B[Retained parent handle]
B --> C[Native filesystem helper]
C --> D[Check name and identity]
D --> E[Unlink or rename]
D --> F[Reject changed entry]
E --> G[Operation result]
Before mergeNone. Agent review detailsSecurityNone. Review metricsNone. Technical reviewBest possible solution: Keep the native name and identity checks intact and qualify the callback-free helpers through the expanded platform matrix. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a behavior-preserving cleanup. The relevant native calls and race-test paths are identifiable in source. Is this the best way to solve the issue? Yes. Removing private callbacks supplied only with empty closures is a narrow cleanup, and the current head preserves the checks around the filesystem operations. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 851bd85a4013. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
|
The coordinator has reviewed this diff and lifted the performance hold. Production callers only passed |
d27b43a to
fbd8fba
Compare
Remove four private native callbacks whose production callers always supplied an empty closure. They ran before the first filesystem observation, so race tests can make their substitutions immediately before calling the operation while retaining the original expected identity. The identity-checked Unix rename now owns its body directly instead of forwarding through a second function.
The exported native methods, descriptor ownership, identity/type checks, and syscall/error ordering are preserved. Required-native removal and overwrite integration coverage is explicit across the native platform matrix and both musl architectures. The integration includes #771's Windows nonempty-directory error fix and its regression assertions.
At d27b43a, managed P2 review, all nine full checks, six package-consumer jobs, nine native lanes, mutation, and coverage passed. CodeQL was skipped because this PR is draft. Installed Windows Node 22/24 qualification passed, including the nonempty-directory preservation cases. The original counter reports 56,941 production lines, 11 fewer than base 9543f52; main receives no credit before merge.
Performance hold
Keep this PR in draft. Performance remains unresolved:
No speedup or landing clearance is claimed from the source reduction, passing correctness checks, or benchmark smoke workflow.