Repository navigation
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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR consolidates filesystem discovery and descriptor helpers across core and bundled plugins. Example: Browser discovery checks /opt/chromium/chrome on Linux.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-directed consolidation is useful, the obsolete assertion baseline is corrected, and no introduced code defect was found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherCore and plugin discovery pass paths and access modes into shared filesystem observers, which return metadata or availability; callers retain responsibility for authorization and later effects. flowchart TD
A[Core discovery] --> C[Filesystem observation owner]
B[Bundled plugins] --> D[Private SDK facade]
D --> C
C --> E[Node filesystem and fs safe]
E --> F[Metadata and availability]
F --> G[Caller decisions]
Technical reviewBest possible solution: Retain the shared observation owners and complete normal exact-head CI before landing. Do we have a high-confidence way to reproduce the issue? This is a refactor without a reported product defect; inspection verifies the duplicated policies and their replacements without executing target code. Is this the best way to solve the issue? The change extends existing filesystem owners, removes equivalent local implementations, and preserves caller-specific policies and effect checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c23b09a59fba. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -184, Tests +54, Docs +1, Config +7, Other +1. Total -121 across 50 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 17, 2026, 1:36 AM ET / 05:36 UTC (Revision 2). |
|
@clawsweeper re-review The follow-up commit only removes the obsolete assertion-safety baseline row required by the deleted cast. The local ratchet passes and the narrow independent review is clean; production source is unchanged. The PR body records retained proof, the inherited suppression-count mismatch, and the separately traced portable-worker packaging failure. |
|
🦞👀 Re-review progress:
|
|
Preserving this slice under the coordinator's unattended parking rule, rather than leaving a PR slot blocked on an unsupported native admission contract. Exact source head: Run 39006398214, attempt 1: 175 jobs, 154 successful, 18 skipped, two failed, one cancelled. All 246 head checks were enumerated; separate dependency/security statuses succeeded.
The current native cancellation contract supports other job shapes, but not the PostgreSQL conformance cancelled step plus its actual assertion annotations. This is a supported-route capability gap, not two infrastructure failures and not authority for direct fallback. No failure is omitted or relabeled green. No job was rerun, test weakened, gate changed, or merge attempted. The slice can resume from the preserved head when that native route is available; closing this PR frees the bounded factory slot for the next independent area. |
Related: #173431
What Problem This Solves
Filesystem discovery and optional-stat helpers are copied across core and bundled plugins, with subtly different missing-path and executable policies obscured by repeated implementations.
User Impact
No user-visible change or migration is intended. Existing missing-path, access-mode, symlink, error, permission, and durability behavior remains unchanged.
Why This Change Was Made
Extend the existing path-existence, errno, and descriptor owners; migrate the matching callers and delete their private copies. Expose only narrow official-plugin runtime reexports and register them through the existing canonical SDK generator. Filesystem observations do not authorize later effects.
Keep ENOENT-only worktree behavior distinct from ENOENT/ENOTDIR discovery, exact Node errno classification distinct from broader portable errors, asynchronous access-first discovery distinct from synchronous stat-first discovery, and existing Windows access modes. Share the unchanged flush/hash/finally-close descriptor sequence without removing durability or integrity operations. Phase E, persisted schemas, public configuration, security authority, and dependency versions are untouched.
Fresh-main strict production count at base
b8e70ec60630a6eee18e67f0e83953d1ca0613d0: 46 production files, +185/-360, 175 net production lines removed, including SDK source/export metadata. Two test files add 54 lines separately; the documentation addition and shrink-only assertion baseline deletion are excluded. The whole change has 50 paths. This area split completes the original helper family; its size floor is coordinator-waived.Best-effort tradeoffs accepted
Evidence
The complete 43-file source/test component is independently scoped-clean P0-P2 across two full-module review passes. Fresh-main reconstruction preserves intervening backup manifest/PostgreSQL/config-capture changes and applies only the disjoint optional-stat hunk there; the other 42 source/test paths have no main-side drift. The six metadata/docs changes separately received a scoped-clean P0-P2 review. Canonical SDK export generation and its check mode passed while preserving the landed owner's registrations; unrelated JSON wrapping was excluded.
git diff --checkand canonical formatting of all 43 source/test files passed. First exact-head CI required removal of the now-obsolete native-skill-isolation assertion baseline entry (actual zero versus grandfathered one); the source cast is already gone, and no retained allowance is enlarged. That one-row repair passed the assertion-safety ratchet and a separate scoped-clean P0-P2 review; production source is unchanged.Retained input-identical owner proof: two files, 17 passing tests, covering default/strict optional lstat, ENOTDIR, dangling links, executable/access policies, and owned descriptor closure on flush failure. Both owner modules, errno, and the two owner test files have SHA-256 identities matching the reviewed/proved preparation. The mandatory suppression check completed serially with one worker and isolated state, including again before the repair push: two cases passed; one failed on the inherited backup-restore preserve-caught-error count (actual 2, expected 1). Both determining files are unchanged from this branch's base; no lint-suppression allowance was changed. First-head hosted build and package-boundary checks passed. Final exact-head SDK/API/surface/build/cycle checks remain the broad gate; no broad local suite or build is claimed. Package-boundary declarations are absent locally and require the prohibited broad SDK build, so typing remains a hosted gate.
A pre-publication consumer attempt selected only browser Playwright-cache discovery and Codex native-skill isolation, serially with one worker and isolated state. The sparse preparation first failed before assertions because it lacked a test-runner source prerequisite. The full installed donor, with all 43 reviewed source/test hashes verified identical and the reviewed registration hunks applied, then exhausted the unchanged 600-second outer budget during cold compiled-subprocess preparation (exit 124/child 143), also before assertions. Neither attempt establishes a product failure or a passing consumer verdict; no timeout, retry, skip, or baseline was changed. Final exact-head hosted CI remains the broad gate.
Initial CI's node-worker-launch-wire E2E failed at line 439 with a missing deployed
config/sessions/session-transcript.worker.mjs, also reproduced on the independent plugin area. The existing exec capability-read path requires this subprocess, while the unchanged portable archive allowlist/stager cannot ship it. The determining producer/consumer files are unchanged from the CI base; this is an inherited packaging defect, not a generic timeout or a failed SDK-build consequence. Security and permission checks remain intact. The failure is recorded for the packaging owner rather than hidden by deleting helper migrations.Final exact-head CI attribution
Head
cbd7b00485af4665b755a143e90fb493b463eb1f, run 39006398214, attempt 1: 175 jobs, 154 successful, 18 skipped, two failed and one cancelled. All 246 current-head check runs and three commit-status contexts were enumerated; no additional red or active check was omitted. Build artifacts, package boundary, baseline ratchets and the selected UI E2E shards passed. Skipped jobs are not passing coverage.checks-node-changed-23/ 117320294771737a0ac25447438a039295a6200ced99d6bc4a6d, job 117309836508, has the identical assertion and missing-module signature. The actual tested merge preserves the unchanged archive/staging/capability-read chain.openclaw/ci-gate/ 117325697258The actual tested merge is
37852d8ddf59a1a72105e37e070fe3a15dff40c1, with parents15a39da700dab0966debe2c033b4020e44fba1dfand the exact candidate head. Its 50 changed paths do not modify the determining fixture, environment-selector, Doctor preflight, test setup, conformance driver or workflow paths. The inherited filesystem dependency upgrade is main-owned; this PR does not alter the lockfile or Vitest version.PostgreSQL completed the infra project with 294 passing and two failing tests. Only three command diagnostics assertions finished before cancellation; no complete commands summary, extension database-worker project or Matrix account-state project ran to completion. That remaining coverage is explicitly unproven. No CI rerun, timeout, retry, skip, suppression or allowance change was used to obtain a different result. Native inherited-failure landing remains pending a supported admission route for this fully disclosed PostgreSQL cancellation.