Repository navigation
refactor: share extension filesystem discovery helpers - #175740
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 21efe446a4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Codex review: needs maintainer review before merge. What this changesThis PR replaces duplicate extension filesystem probes, errno predicates, and POSIX quoting with existing shared helpers. Example: OpenShell encounters a dangling host symlink at /workspace/docs/link.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored PR open: the helper consolidation is useful and no actionable defect was found, but exact-head validation remains unsettled. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherExtension setup, discovery, migration, and cleanup code passes filesystem paths into existing Plugin SDK helpers and consumes metadata, availability results, or propagated errors. flowchart TD
A[Extension discovery and cleanup] --> B[Plugin SDK facades]
B --> C[Filesystem discovery owner]
B --> D[fs safe errno predicates]
C --> E[Node filesystem]
E --> F[Metadata or filesystem errors]
F --> A
Technical reviewBest possible solution: Retain the shared-helper cutover and settle the current-head validation through the normal landing workflow. Do we have a high-confidence way to reproduce the issue? This PR addresses duplicated implementation rather than a reported product failure; review used source and supplied evidence without executing target code. Is this the best way to solve the issue? Reusing the existing owners is appropriate because the replacements retain access modes, followed-target versus entry semantics, error policies, and shell escaping. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 45c6db39b27d. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -105, Other -1. Total -106 across 17 files. Added test files: 0. View PR surface stats
LabelsLabel changes: No label 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 HistoryReviewed October 17, 2026, 3:09 PM ET / 19:09 UTC (Revision 3). |
|
The native-isolation import now uses the existing Plugin SDK facade in3851f583d52483edd2c14194f040cc1193e6970b. Its source facade was executed and confirmed to preserve exact predicate identity; no isolation, error, bounds or authority behavior changed. Fresh independent incremental review found no actionable P0–P2 issue. The PR body contains current proof and gaps; the new exact head needs its own hosted CI. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Reduced exact head411bf27190dcea14445016504f451af837e9e881 withdraws the four changed core runtime files reachable from the unattributed PostgreSQL timeout, plus the proposed helper-only test. Each restored file is byte-exact main; no changed extension file was reachable. Fresh independent withdrawal review is clean at P0–P2. The remaining17-path extension area removes105net runtime lines. The original core proposal is preserved at deslop/r06-parked-fs-core-pg-replay-20261015 @3851f583d52483edd2c14194f040cc1193e6970b without a PR. Local baseline replay was unavailable; one queued Testbox was stopped before execution. No test timeout, retry, skip, assertion or suppression allowance was weakened. Current-head local suppression13/14 retains an unchanged base fixture defect, now independently fixed on main in df0358c. Current-head hosted CI, not prior green, is the broad gate. The PR body contains complete proof and remaining gaps. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Exact-head inherited-failure landing evidence for411bf27190dcea14445016504f451af837e9e881; CI39060791184 attempt1 remains failed, not green.
Actual CI mergef5720f52d51efe07a12f694653327009a7a38c0a has ordered parents75e255e63c3c4a73297f7ff95a0b6feacead7302 +411bf27190dcea14445016504f451af837e9e881. Its treeeabfb955b923be9097f05ce517f49a7b85893d3d equals independent successful merge-tree reconstruction; actual main-to-merge scope is exactly17paths/16extension runtime paths,105netruntime lines removed. The4corefiles+proposed helper-only test were withdrawn before this head; no unrelated extension hunk dropped. Full137-check census:72success59intentional-skips1neutral2superseded-metadata-cancellations3failures. Auto-response117478234217 replaced by successful same-head117482930316; label117478136595 replaced by successful117478234303. No cancelled product suite. PostgreSQL integrations, extension lint, production/test types, source/package contracts, selected consumer suites, security-fast117478458530 and selected security/quality areas passed. Fresh withdrawal review scoped-cleanP0–P2/.98; surviving original review/.98 and same-binding SDK repair/.99 remain valid. Local source suppression13/14 is an unchanged-base fixture defect independently fixed by main df0358c; no allowance expansion. Local OpenShell preparation stopped before assertions, no pass claimed. Native inherited-only admin exception retains current authority, review and security admission. No CI rerun or push merely for green. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* docs(secrets): refresh generated DeepSeek credential coverage Regenerate the SecretRef matrix and its published path list from buildSecretRefCredentialMatrix. The standalone DeepSeek search API added in #175729 intentionally accepts a search-specific key through standard SecretRef preparation; its generated documentation was missing. The exact matrix consistency test reproduces the missing entry before regeneration and passes afterward. Formatting and P2 review pass. * fix(feishu): remove an unused direct filesystem dependency Doctor now consumes the canonical path-existence SDK after #175740, so Feishu no longer imports @openclaw/fs-safe directly. Remove its redundant manifest and lockfile importer entries. SDK filesystem checks stay intact. Repository pnpm regenerated the lockfile. All other importer entries, package versions, snapshots and policies are unchanged. Three manifest contract checks, 24 Doctor tests, the Feishu typecheck, formatting and P2 review pass.
* refactor(fs): reuse discovery and descriptor recovery owners * refactor(openshell): reuse bounded filesystem metadata owner * refactor: use SDK filesystem predicate in native isolation * refactor: narrow filesystem recovery to extension callers
…#175873) * docs(secrets): refresh generated DeepSeek credential coverage Regenerate the SecretRef matrix and its published path list from buildSecretRefCredentialMatrix. The standalone DeepSeek search API added in openclaw#175729 intentionally accepts a search-specific key through standard SecretRef preparation; its generated documentation was missing. The exact matrix consistency test reproduces the missing entry before regeneration and passes afterward. Formatting and P2 review pass. * fix(feishu): remove an unused direct filesystem dependency Doctor now consumes the canonical path-existence SDK after openclaw#175740, so Feishu no longer imports @openclaw/fs-safe directly. Remove its redundant manifest and lockfile importer entries. SDK filesystem checks stay intact. Repository pnpm regenerated the lockfile. All other importer entries, package versions, snapshots and policies are unchanged. Three manifest contract checks, 24 Doctor tests, the Feishu typecheck, formatting and P2 review pass.
What Problem This Solves
Extension filesystem discovery repeats access, metadata, errno and quoting helpers that already have shared owners. This recovers the extension-caller area of the parked filesystem family (#175127), following the shared-owner area in #175622.
User Impact
No intended user-visible change, migration or operator action. Optional discovery, symlink/error policies, ownership receipts, credential checks and execution authority remain intact.
Why This Change Was Made
Use the existing discovery owner and fs-safe predicates instead of duplicate caller implementations. OpenShell metadata reads remain behind its existing filesystem concurrency limit with explicit ENOENT-only absence. WhatsApp uses the byte-equivalent existing POSIX escaping owner; PowerShell behavior is unchanged. Native isolation consumes the same errno predicate through the existing SDK facade.
Campaign rule11 area split: 105 net runtime production lines removed (+51/-156),16 extension paths. Entire17-path diff:+51/-157; the one-line obsolete native-isolation assertion allowance is excluded from runtime credit. Base:7bae0835f0b01106a89f3d1fa02b630f18f8f76a. Five preceding worktree migrations already on main receive no duplicate credit.
Best-effort tradeoffs accepted
Evidence
deslop/r06-parked-fs-core-pg-replay-20261015@3851f583d52483edd2c14194f040cc1193e6970b, no PR. Subsequently completed scheduled main39058564617/job117471751210 now reproduces that exact refusal/resume case/location/60000ms timeout; its test/worker sources match the earlier tested checkout. That new proof qualifies the9net core lines for the single final BELOW-500 residue rather than a tiny additional PR. They remain excluded from this fixed105-line extension head.Current-head CI attribution
Run39060791184 tests head411bf27190dcea14445016504f451af837e9e881 through actual mergef5720f52d51efe07a12f694653327009a7a38c0a onto75e255e63c3c4a73297f7ff95a0b6feacead7302. Its tree equals independent merge-tree reconstruction and the main-to-tested-merge delta is exactly17paths.
|PostgreSQL conformance (infra),117478458730|All seven exact cases/signatures reproduce on scheduled main39058564617/job117471751210 at ec36f9b: archive restore240000ms timeout and no-local-state error; Doctor v30 rollback120000ms timeout; Matrix full port450000ms timeout and resume expected2/received0; port-command refusal/resume60000ms timeout; retained-agent update recovery120000ms timeout. Five test blobs and named backup/port owners are byte-identical across schedule, actual tested main75e and mergef572. No surviving changed extension is reachable from the previously graphed port failure.|
|openclaw/ci-gate,117484156484|Derivative of those two attributed failed leaves, not an additional product failure.|
Completed exact-head census:137checks =72success,59intentional skips,1neutral,2superseded metadata cancellations and3failures. Cancelled auto-response117478234217 has same-head successful replacement117482930316; cancelled label117478136595 has successful replacement117478234303. No cancelled product suite. PostgreSQL integrations, extension lint, production/test types, source/package contracts, selected consumer suites, security-fast and selected Security High/Critical Quality areas passed.
Use the campaign-authorized native inherited-failure admin exception, preserving every ordinary review/security/authority check. CI remains failed, not green; no job rerun, warning allowance, timeout, retry, skip or assertion change. Local source-head suppression13/14 and stopped OpenShell preparation remain the explicit limitations above, not fabricated passes.