Repository navigation
fix: explain why installed plugin tools are missing from sessions - #199068
Open
roboclaw-bot wants to merge 4 commits into
Open
roboclaw-bot wants to merge 4 commits into
roboclaw-bot wants to merge 4 commits into
Conversation
Co-authored-by: jacobtomlinson <[email protected]>
Worked on by: - @jacobtomlinson Co-authored-by: jacobtomlinson <[email protected]> OpenClaw-Publication: e9f86f9f-fa75-403b-aac2-4c13afd4dc51
Contributor
|
🦞👀 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. |
Contributor
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
Co-authored-by: jacobtomlinson <[email protected]>
Worked on by: - @jacobtomlinson Co-authored-by: jacobtomlinson <[email protected]> OpenClaw-Publication: 013441c2-b2e7-42f4-9893-db254b59fad3
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Fixes missing or misleading guidance when a plugin validates and registers successfully but its tools are absent from a session.
User Impact
Plugin authors and operators can distinguish registration, profile selection, explicit policy, and runtime availability instead of repeatedly rebuilding or reloading a valid plugin. Tool selection, permission defaults, and existing allow/deny behavior are unchanged; no migration is required.
Why This Change Was Made
Connect the quickstart and missing-tool checklist to the existing session diagnostics, manifest profile grants, the two callback signatures, and reload handoff behavior. Complete diagnostic inventories with manifest-declared candidates using the existing policy explainer, and project owner-scoped manifest profiles in the tool catalog. New scaffolds test their own declarative callback through public package imports, without depending on internal SDK test helpers.
The diagnostic addition does not import skipped plugin runtimes or execute their factories merely to explain policy. A policy-allowed tool absent from the preview remains unavailable with construction and health explicitly unconfirmed. The existing full preview retains its normal construction behavior.
Evidence
Runtime proof — attached redacted CLI capture · head
d9734e4b6ce3df30bc41f85c235037db744d5484· captured November 14, 2026 at 19:57 UTC. The inspectable text attachment is below; prior verification details are preserved.git diff --checkpassed.pnpm build:runtimeexited 0; the canonical runtime-package integrity check passed.ERR_PACKAGE_PATH_NOT_EXPORTEDfor the initially used internal test helper; the repair removes that import rather than expanding SDK exports, and the regression checks generated imports against the actual package export map.fixture/echosupplied synthetic model metadata only. This proves the Gateway diagnostic/config/plugin-execution paths, not live model selection. No operator Gateway, live configuration, or source plugin instance was changed. The owned Gateway exited cleanly and its port returnedECONNREFUSEDafterward.e3e825aa9d44ffc02f906f03475eb30eceaa4315to the snapshot committed ase89c389139a92b5da4579595c89ea201189f6cca: scoped-clean; no actionable findings. It assessed the supplied runtime/consumer evidence without executing project code. The publishedd9734e4b6ce3df30bc41f85c235037db744d5484tree is identical to that reviewed repair commit.e3e825aa9d44ffc02f906f03475eb30eceaa4315had zero findings and identified the shipped-entrypoint proof gap addressed below. That historical hosted verdict has not been rerun or claimed for the repaired head.docs:check-links:anchorsreports two existing failures in untouched files: duplicateagent-process-environmentindocs/tools/acp-agents-setup.mdand theagents-api-mvprelease-note link indocs/releases/2026.10.1.md; no new broken links were reported.Runtime proof
Inline text attachment:
pr-199068-runtime-proof-d9734e4.txt(4,733 bytes; not a separate CDN/file upload).SHA256:
6fd6b4bc6d33016dccc8c7805c95cf633217be11d5212fc72b9d7d95786fc812.Open the attached redacted actual CLI capture
Built Gateway and packaged-consumer commands and observations
The fixture config selected
tools.profile: "coding". Its plugin declaredcontracts.tools: ["guidance_echo"]andtoolMetadata.guidance_echo.profiles: ["messaging"]. All commands used the same disposableOPENCLAW_HOME,OPENCLAW_STATE_DIR,OPENCLAW_CONFIG_PATH,OPENCLAW_PROFILE,OPENCLAW_GATEWAY_PORT, and synthetic token. The actual Gateway selected Node 26.12.1.Observed results, asserted independently:
The grant transition is asserted on
tools.effective. Direct operatortools.invokeexplicitly requests a named plugin tool, so its pre-grant behavior is not used as an agent-selection denial oracle.Consumer proof used the real built CLI's
plugins init, then the supported self-contained package owner (node scripts/package-openclaw-for-docker.mjs --skip-build --runtime-only --allow-unreleased-changelog --output-dir <fixture-package-dir> --output-name openclaw-consumer.tgz). The owner restored all temporary package-source changes, and tarball integrity passed. Generatednpm test -- --maxWorkers=1ran 2 passing tests against the extracted package's publicdist/plugin-sdk/tool-plugin.js; existing test/dependency installations were reused, with no source SDK aliases. Native resolution still rejectedopenclaw/plugin-sdk/plugin-test-runtimewithERR_PACKAGE_PATH_NOT_EXPORTED.Source binding: the runtime was built from
e3e825aa9d44ffc02f906f03475eb30eceaa4315plus the reviewed two-file repair later committed ase89c389139a92b5da4579595c89ea201189f6cca; all five owning source-file SHA256 values were checked against that commit. Publication added only a tree-identical attribution commit.Simplification: reuse the policy/explanation and manifest-eligibility owners rather than adding another evaluator, SDK API, configuration option, or standing prompt. The consumer repair removes the internal-helper dependency; no SDK exports or selection machinery are added.
Contributor credit
Requested and co-authored with @jacobtomlinson.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by