Skip to content

fix(plugins): Doctor fails after native capture directories disappear - #160291

Merged
steipete merged 8 commits into
mainfrom
steipete/update-plugin-capture-companion-enoent
Sep 28, 2026
Merged

steipete merged 8 commits into
mainfrom
steipete/update-plugin-capture-companion-enoent

Conversation

@steipete

@steipete steipete commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes post-update Doctor and channel setup failing with Cannot capture plugin source .../README.md / ENOENT when a persisted native-plugin receipt points to a capture directory that no longer exists.

User Impact

Plugins can load again by admitting the installed package into a fresh capture. This is a candidate-side repair: published 9.x updaters keep their existing protocol, package-swap ordering, and configuration. No schema, dependency, environment variable, or migration changes are required.

Why This Change Was Made

Native admission already rejects a missing namespace for reuse. The hardlink reconciliation introduced in #159650 then revisited every persisted namespace, including the rejected one, and tried to hash its missing companions. The reported missing README was the first member encountered; the whole admission directory was absent.

Only probe namespaces containing a member affected by the current admission, then skip a disappeared namespace before reading or promoting any of its identities. An unrelated inaccessible receipt therefore cannot block another plugin. Existing namespaces still require installed-byte and captured-digest agreement. The ordinary-companion verification from commit 68442a8 remains intact, including rejection of equal-size edits with restored mtime. Production delta: +4 lines; no owner, export, or shipped-driver contract was removed.

Evidence

  • The new capture-API regression fails on the original main code with the exact README/ENOENT error at createNamespace, then passes with this fix.
  • pnpm test src/plugins/plugin-generation-artifact.admission.test.ts --maxWorkers=1: 12 passed, 185.00 s wall after the sixth main integration on the loaded macOS host, including cold compiler preparation. The existing file also tests persistent admission, private inspection custody, SDK host replacement, immutable captures, and integrity checks; its test time was about 74 s on this heavily loaded host run.
  • pnpm update:compat:check: passed; pinned lazy-import inventories for published 2026.9.1–2026.9.6 are unchanged.
  • Independent Codex review: scoped-clean through P2 after narrowing the probe. ClawSweeper’s unrelated-inaccessible-namespace finding was reproduced on the first patch and fixed in b9afb939247e; the final revision retains the same four-line production delta.
  • git diff --check: passed.
  • Preserved Linux proof from b9afb939247e (unchanged admission-test and fix bytes): 12 passed, 44.52 s test-runner wall (42.71 s Vitest); verified source b9afb939247e. The complete remote command took 245.302 s. Lease tbx_01m3kszag8x63qthhzr5y6925c stopped successfully. Run.
  • node scripts/check-changed.mjs --dry-run and its runnable checks: passed (core, all 25 test type graphs, formatting, lint, dead-export scans, and all selected guards). After the review correction, repeated the affected core/plugin test type graphs, lint, formatting, line-cap ratchet, and compatibility inventory successfully.
  • Published-driver proof on b9afb939247e completed: Doctor and Gateway startup, health, readiness, and status probes passed. The coordinator authorized retaining all three green cells after the clean main merge because none of the specified plugin-owner paths changed. The initial two upgrade cells were intentionally stopped after the review correction superseded their head, and are not passing proof.
  • Prior-head CI failed before tests at 134 Node rows against the 130-row cap. Main commit 492f665864fa fixes the planner; it is included in the integration below. Fresh CI is required on the pushed merge head; the old run was not rerun.
Published baseline Scenario Live Result
2026.9.6 base, default restart mode 0 LANE_EXIT=0; Doctor + Gateway passed; 1,498.379 s remote command; lease tbx_01m3kqs26m46bvhtkvc00vdkn8 stopped (run)
2026.9.5 base, default restart mode 0 LANE_EXIT=0; 1,201.264 s remote command; lease tbx_01m3kvrbwg7esyt68xr3brz040 stopped (run)
2026.7.35 plugin-deps-cleanup 0 LANE_EXIT=0; 837.545 s remote command; lease tbx_01m3kx5tq2z8n8byda63stb4bv stopped (run)

The first final-head 2026.9.5 warmup received HTTP 429 while fetching the Blacksmith workflow; no test command ran. Its single authorized fresh retry passed. No unambiguous creation receipt was returned for that failed warmup, so its pending recovery key is preserved and no unrelated inventory entry was stopped. All identified task leases are stopped.

ClawSweeper completed its exact-head review of 5861328f60cb524a6b077bcfdfe77276967c8c1d at 2026-09-28T17:22:02.637Z: ready, no findings, no before-merge items. The plugin production and admission-test bytes remain unchanged. Both prior red checks now pass: check-source-contracts and Select Critical Quality shards. No infrastructure rerun was needed.

Release-note context: Fix post-update Doctor and plugin setup failures when recorded native capture directories have disappeared, while preserving source-integrity validation.

Main integration rounds

  1. Merged main dfd4cc8a5d5cd2c398d380e55c6427aa5c250e91 cleanly into the existing branch, producing 179db97c72cad5915936ff6f65a8f84aaec822c7. This includes planner fix 492f665864fa. No conflicts or custom code edits. The fix and admission test file are byte-identical to b9afb939247e, and the merge changed none of src/plugins/plugin-native-*, plugin-source-file.ts, or plugin-generation-*; the three green cells above stand under the coordinator's order. Revalidation: 12 admission tests passed in 76.91 s wall, compatibility inventory passed, and git diff --check passed.

  2. Standing re-merge round 1: CI run 36420783635 failed only in ui/src/e2e/session-progress-widget.e2e.test.ts, case “keeps target liveness when the selected agent scope changes” (expected spinner count 1, observed 0); 17 sibling jobs were cancelled. This mocked UI path and its fixture are outside this PR. Main CI at the exact merge base succeeded; its push coverage is security-fast only, not a full test baseline. Under the coordinator's standing re-merge authority, merged main d9ba38955764f04f1149d7c01e2ed5f6acc3da6e cleanly, producing 327bae55b821c2a7a9bef1e5b4fc14a167550bf9. No custom code edits; no specified plugin-owner paths changed, and retained upgrade proof still applies. Admission: 12 passed in 135.93 s wall; compatibility and diff checks passed. The failed UI test was not changed, so a passing fresh run would not establish a fix for that failure.

The second run, 36423726050, UI shard 4/9, repeated the same spinner assertion (353 tests passed, one failed; 24 sibling jobs cancelled). Landing stopped pending an owning repair. The coordinator subsequently reproduced it on unfixed main: a late key-only mocked sessions.describe reply overwrote the running session row. This fixture path cannot reach the native admission change.

  1. Merged the owning main repair from fix(test): seed canonical progress-widget session liveness #160463 (741c9cb56bde) and follow-up 1a94ee9ed7e2, which seeds consistent canonical session liveness and waits for the target descriptor before releasing held replies. Main 9b730f0cfb47281b51a01bdd3415e7c645e61b3a merged cleanly, producing 09260b5b332550eb959b20378323edfc091231e0. No custom code edits or conflicts. No specified plugin-owner paths changed, so all three green upgrade cells stand under the coordinator's renewed order. Revalidation: 12 admission tests passed in 104.90 s wall; compatibility and diff checks passed. Fresh exact-head CI will validate the integrated fixture repair. No new Testbox leases were needed.

  2. The coordinator authorized the named inventory repair 02a95db98aa1 (fix(tests): remove retired voice-call runtime API guard #160526), removing the retired voice-call runtime API guard while preserving the remaining inventory checks. Merged main 9e7bb186dc1f670bbb45da53197a69fc74a4007c cleanly, producing 4d7e17cdd6d70f2b342dabef830245071ca0f1c8. A concurrent fetch had already advanced the shared main ref to the exact downloaded commit; that identity and repair ancestry were verified before merging. No custom code edits, conflicts, or specified plugin-owner path changes. Revalidation: 12 admission tests passed in 68.23 s wall; compatibility and diff checks passed. All three upgrade cells stand. No new Testbox leases were needed.

  3. First additional round under the renewed order: CI 36448891945, UI shard 1/9 failed the untouched ui/src/e2e/session-owner-filter-keyboard.e2e.test.ts:59 case “navigates session filters and display controls with Tab, arrows, Space, and Escape”: Owners was inactive instead of focused. Both previously failing shards passed; this new shard had 357 passing tests and one failure. Main already contained owning fix 94cbd1335dfb, which waits for the initial owner roster before opening the menu. Merged main d9569745764fa53d540dbfe3a0b536975bc69a7d cleanly, producing b887b58ec975b6da2ef6b24db7afb135f0fe075b. No custom code edits, conflicts, or specified plugin-owner path changes. Revalidation: 12 admission tests passed in 148.36 s wall; compatibility and diff checks passed. All three upgrade cells remain valid. No new Testbox leases were needed.

  4. The coordinator identified the remaining source-contract failure on b887b58ec975: nine daemon CLI lazy-forwarder export collisions introduced by main 5de949fc4620. Owning fix 385ac2893544 restores named zero-argument loaders; the coordinator independently ran the guard successfully on main f010fc0b5790. Merged main 46a227c518675291a38d001d7e83ce5978a94e4b, which includes that verified baseline, cleanly into the branch, producing 5861328f60cb524a6b077bcfdfe77276967c8c1d. No custom code edits, conflicts, or specified plugin-owner path changes. Revalidation: 12 admission tests passed in 185.00 s wall; compatibility and diff checks passed. The prior CodeQL selector HTTP 403 is a named infrastructure error; the coordinator authorized fresh planning through this push and one failed-job rerun if it recurs. All three upgrade cells remain valid; no new Testbox leases were needed.

Resolved inherited inventory failure

CI run 36445839661, checks-node-changed-5 failed src/plugins/contracts/plugin-sdk-runtime-api-guardrails.test.ts, case “keeps runtime api surfaces classified and guarded exports pinned”: the expected 40-file inventory still includes extensions/voice-call/runtime-api.ts, while the actual inventory has 39 files. Main commit bfcec878635d (#160362) removed that file without updating the guard. Neither path is changed by this PR, and this filesystem inventory assertion does not execute plugin native admission. The aggregate gate failed; 105 sibling jobs were cancelled.

The earlier stop preserved the failed CI result because no qualifying hourly main job was available. The coordinator subsequently authorized integration on the named owning fix 02a95db98aa1, without requiring an hourly main baseline. Fresh CI is required on the new head; no failed run was rerun or waived.

Prior infrastructure failure

CodeQL Critical Quality run 36452089309, selector job 109029098971 failed on head b887b58ec975b6da2ef6b24db7afb135f0fe075b before selecting analysis shards:

gh: API rate limit exceeded for installation. (HTTP 403)
Error: Process completed with exit code 1.

This was GitHub installation quota exhaustion before analysis. The earlier watcher stopped on it; the coordinator subsequently authorized replanning on the newly integrated head and one failed-job rerun for a repeated named infrastructure failure. The failure is retained here and is not counted as passing proof.

Main CI run 36452090030 subsequently failed check-source-contracts on the daemon export collisions described in round 6. That owning fix is now included. No merge request has been submitted.

Bounded reproduction result

CI run 36457089856, real-Gateway UI shard 2/2 failed the untouched ui/src/e2e/chat-thinking-metadata.real-gateway.e2e.test.ts:332 case “offers only harness Ultra without advertising a default or changing the session”:

TimeoutError: locator.waitFor: Timeout 30000ms exceeded.
waiting for locator('.slash-menu[role=listbox]') to be visible

The failure follows filling /think, pressing Tab, and confirming the composer contains /think . The shard had 41 passing tests and one failure. No owning main repair was found in the failing test or the inspected slash-menu/composer paths. The initial stop preserved this unowned test failure. The coordinator then authorized and performed one bounded reproduction attempt on the unchanged head; no source fix was made. All scoped checks and retained upgrade cells above remain valid.

The coordinator's single bounded reproduction attempt, real-Gateway shard job 109057680699, run 36457089856 attempt 2, passed at 2026-09-28T17:59:23Z. This is a non-reproduction, not a fix; the untouched /think slash-menu timeout remains documented above. The coordinator also confirmed main's latest real-Gateway shards passed and decided to land the reviewed production change. No further reruns were requested. The attempt-2 CI gate job passed at 2026-09-28T18:01:32Z; native preparation is being refreshed for the unchanged pinned head.

Persisted admission facts can outlive their native capture directories.
Fresh admission already rejects these namespaces for reuse, but hardlink
identity reconciliation reopened their missing companions and failed Doctor
with README.md ENOENT. Skip absent namespaces without promoting old facts;
all checks for existing captures and installed bytes remain intact.

Update behavior: candidate-side plugin loading recaptures installed bytes
for post-update Doctor. Shipped updater protocols, package swap ordering,
configuration, and schemas are unchanged.

Regression reproduced on current main through the capture API. All 11
admission tests pass, including equal-size edits with restored mtime.
Update compatibility inventory passes for 2026.9.1 through 2026.9.6.
Independent Codex review found no actionable P0-P2 findings.
@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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: S labels Sep 28, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 28, 2026, 2:11 PM ET / 18:11 UTC (Revision 15).

ClawSweeper review

What this changes

Native plugin admission recaptures installed files when a saved capture directory is missing, with a persisted-receipt regression test and updated plugin documentation.

Regression provenance

Possible regression — probable (reproduction; reviewed change). No predecessor PR is attributed.

Merge readiness

✅ Ready for maintainer review

Current main still cannot recover an already-missing persisted native capture. A merged Doctor fix addresses one cause of disappearing captures, but existing stale receipts remain a distinct problem. The reviewed branch has focused regression and upgrade evidence, with no actionable finding.

Priority: P0
Reviewed head: 5861328f60cb524a6b077bcfdfe77276967c8c1d

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A narrow owner-level repair has a pre-fix regression, unchanged-code upgrade proof across shipped drivers, and successful exact-head checks.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The changed native admission owner is exercised by a persisted-receipt capture regression and by recorded published-updater runs in isolated real installations; the latter report Doctor and Gateway success after the fix across three shipped baselines. The proof revision's production and test bytes match the reviewed head. Existing-state compatibility is supported by the persisted-receipt case and updater runs; no receipt format or schema changes.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The changed native admission owner is exercised by a persisted-receipt capture regression and by recorded published-updater runs in isolated real installations; the latter report Doctor and Gateway success after the fix across three shipped baselines. The proof revision's production and test bytes match the reviewed head. Existing-state compatibility is supported by the persisted-receipt case and updater runs; no receipt format or schema changes.
Evidence reviewed 9 items Introduced recovery guard: The introduced check skips a missing persisted namespace only after the current admission affected one of its members; intact namespaces still reach digest verification.
Current main still has the failing path: After the affected-member check, current main hashes the prior captured companion without checking whether its capture directory still exists. The reviewed production file has no changes between the pinned base and fetched main.
Fresh admission remains the owner: A namespace that fails the currentness check is rejected for reuse, and the capture owner creates a new namespace from installed package files.
Findings None None.
Security None None.

How this fits together

OpenClaw uses an SQLite installed-plugin index to reuse verified native plugin captures across runs. Doctor and Gateway plugin loading consume those captures when preparing installed plugins.

flowchart LR
 A[Installed plugin index] --> C[Native admission]
 B[Installed package files] --> C
 C --> D{Saved capture exists?}
 D -->|Yes| E[Verify capture]
 D -->|No| F[Capture installed files]
 E --> G[Doctor and plugin loading]
 F --> G
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +4, Tests +78, Docs +3. Total +85 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 1 4 0 +4
Tests 1 79 1 +78
Docs 1 4 1 +3
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 87 2 +85

Review metrics

Metric Value Why it matters
Published updater scenarios 3 successful remote command cells The recorded Doctor and Gateway outcomes cover current and older shipped updater drivers.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #160214
Summary: The issue records the same missing-capture Doctor failure. This PR recovers stale receipts; related Doctor work addresses capture lifetime and publication.

Members:

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

Technical review

Best possible solution:

Keep stale-receipt recovery in native admission alongside the separate Doctor capture-lifetime repair, while continuing to reject changed installed or captured bytes.

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

Yes. Persist a native admission receipt, remove its capture directory, then invoke the capture API: current main reaches the missing companion hash. The PR records a failing pre-fix regression; this read-only review did not execute it.

Is this the best way to solve the issue?

Yes. The repair sits in the existing native admission owner and preserves verification for captures that still exist.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P0: A missing saved capture can block post-update Doctor and plugin setup without an in-product recovery path for affected users.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The changed native admission owner is exercised by a persisted-receipt capture regression and by recorded published-updater runs in isolated real installations; the latter report Doctor and Gateway success after the fix across three shipped baselines. The proof revision's production and test bytes match the reviewed head. Existing-state compatibility is supported by the persisted-receipt case and updater runs; no receipt format or schema changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed native admission owner is exercised by a persisted-receipt capture regression and by recorded published-updater runs in isolated real installations; the latter report Doctor and Gateway success after the fix across three shipped baselines. The proof revision's production and test bytes match the reviewed head. Existing-state compatibility is supported by the persisted-receipt case and updater runs; no receipt format or schema changes.

Evidence

What I checked:

  • Introduced recovery guard: The introduced check skips a missing persisted namespace only after the current admission affected one of its members; intact namespaces still reach digest verification. (src/plugins/plugin-native-admission.ts:257, 5861328f60cb)
  • Current main still has the failing path: After the affected-member check, current main hashes the prior captured companion without checking whether its capture directory still exists. The reviewed production file has no changes between the pinned base and fetched main. (src/plugins/plugin-native-admission.ts:256, d0be0545c44e)
  • Fresh admission remains the owner: A namespace that fails the currentness check is rejected for reuse, and the capture owner creates a new namespace from installed package files. (src/plugins/plugin-native-admission.ts:564, 5861328f60cb)
  • Persisted-state regression: The test persists a real admission receipt, removes its capture, then exercises the capture API and verifies fresh bytes and continued rejection of an edited companion. Its second case checks that an unrelated inaccessible receipt is not probed. (src/plugins/plugin-generation-artifact.admission.test.ts:460, 5861328f60cb)
  • Published-updater behavior proof: The captured PR body, whose SHA-256 matched the live body, records successful remote Doctor and Gateway results for published 2026.9.6, 2026.9.5, and 2026.7.35 updater scenarios. The linked allocation workflows were cancelled during lease cleanup, so their workflow conclusions are not presented as command results. (b9afb939247e)
  • Proof applies to the reviewed code: The native admission implementation and admission test have no byte differences between the proof revision and the reviewed head. (src/plugins/plugin-native-admission.ts:257, 5861328f60cb)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Jason (Json): Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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.

History

Review history (14 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-28T12:50:54.356Z sha 327bae5 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-28T13:22:57.089Z sha 327bae5 :: blocked before merge. :: none
  • reviewed 2026-09-28T15:50:25.444Z sha 09260b5 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-28T16:06:03.598Z sha 09260b5 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-28T16:15:51.686Z sha 4d7e17c :: needs maintainer review before merge. :: none
  • reviewed 2026-09-28T16:45:41.949Z sha b887b58 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-28T17:22:02.637Z sha 5861328 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-28T17:53:55.588Z sha 5861328 :: needs maintainer review before merge. :: none

@steipete
steipete marked this pull request as ready for review September 28, 2026 08:41
@clawsweeper clawsweeper Bot added P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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
An unrelated inaccessible receipt must not prevent another plugin's native
admission. Probe the capture directory only after finding a member whose
identity this admission affected; skip a missing namespace without promotion.

Extend the persisted-receipt regression to inject an unrelated EACCES. It
fails on the previous patch and passes with the narrower guard. All 12
admission cases pass; existing equal-size restored-mtime edits still fail.
Focused types, lint, formatting, compatibility, and independent review pass.
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 28, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Sep 28, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete
steipete merged commit 7d8f806 into main Sep 28, 2026
405 of 414 checks passed
@steipete
steipete deleted the steipete/update-plugin-capture-companion-enoent branch September 28, 2026 18:27
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
…openclaw#160291)

* fix(plugins): reload native plugins after capture directories disappear

Persisted admission facts can outlive their native capture directories.
Fresh admission already rejects these namespaces for reuse, but hardlink
identity reconciliation reopened their missing companions and failed Doctor
with README.md ENOENT. Skip absent namespaces without promoting old facts;
all checks for existing captures and installed bytes remain intact.

Update behavior: candidate-side plugin loading recaptures installed bytes
for post-update Doctor. Shipped updater protocols, package swap ordering,
configuration, and schemas are unchanged.

Regression reproduced on current main through the capture API. All 11
admission tests pass, including equal-size edits with restored mtime.
Update compatibility inventory passes for 2026.9.1 through 2026.9.6.
Independent Codex review found no actionable P0-P2 findings.

* fix(plugins): limit capture probes to affected native namespaces

An unrelated inaccessible receipt must not prevent another plugin's native
admission. Probe the capture directory only after finding a member whose
identity this admission affected; skip a missing namespace without promotion.

Extend the persisted-receipt regression to inject an unrelated EACCES. It
fails on the previous patch and passes with the narrower guard. All 12
admission cases pass; existing equal-size restored-mtime edits still fail.
Focused types, lint, formatting, compatibility, and independent review pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant