Skip to content

fix(plugins): isolate capability memos by server URL - #5719

Open
ktz03 wants to merge 12 commits into
volcengine:mainfrom
ktz03:fix/server-capability-memo-url
Open

ktz03 wants to merge 12 commits into
volcengine:mainfrom
ktz03:fix/server-capability-memo-url

Conversation

@ktz03

@ktz03 ktz03 commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Current verification — main synchronization (2026-11-24)

Head d5d138bc6753059d8ac6e1a7271985d1e7bf0c43 normally merges main 300ab8eb0746d917b7b968b7f739a28a5a5c04b5. The conflict resolution preserves the original fix and current upstream behavior.

Preserved URL-scoped capability/context/peer memos and legacy no-URL behavior. The shared delivery now covers all seven current plugins, with each affected release strictly above this main and paired metadata/locks aligned. Focused native Node checks pass 93 cases; the four original URL regressions fail on the exact main control. Generated copies and the version gate on the actual committed HEAD pass.

The current-head official workflows report action_required, with zero actual jobs at 2026-11-24 02:59:52 UTC. They have not executed and are not CI passes. Earlier verification sections below remain attached to their named historical heads.

Description

After changing the configured server URL, shared memory-plugin recall can reuse a different server's six-hour capability downgrade. This skips context search, drops peer_scope: "actor" on legacy recall, and makes doctor report the previous server's rejection.

Key the default context and peer memos by the full resolved baseUrl || endpoint, including the base path. Recall readers/writers and doctor use the same URL key. Switching back can reuse that server's unexpired memo.

Human Involvement

  • A human participated in the implementation or review loop
  • This PR was generated entirely by AI agents without human participation in the loop

Related Issue

Fixes #5718.

Related boundaries: #4078 covers the six-hour cache after an upgrade at the same URL; #4752 concerns rejection classification; #5433/#5480 concern server-side peer scope. This change leaves those behaviors and implementations untouched.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement
  • Test update

Changes Made

  • Derive one SHA256 URL directory for both capability memos; persist no raw URL or credential fields.
  • Leave old unbound global JSON files in place and start URL-bound probes cold. Keep low-level path/now and six-hour expiry behavior, and honor explicit high-level cache paths, including forwarding peerScopeMemoPath to the legacy recall owner.
  • Add four regressions, update the option declaration and EN/ZH guidance, regenerate the required copies, and move all six affected releases above main with paired/config/lock versions aligned.

Testing

Current verification — main 49f7780 synchronization (2026-10-09)

Current head 99660f89a52206614a7f09f2d48bb9c6532d233e ordinarily merges exact official main 49f778011ef4f0b556d6064d4ec90343643668cf into previous head 0dd41f01aa5bf162f4922ac6917a77d5673d86b0. The original fix and regression tests and every non-owned automatic-merge entry are preserved. Upstream #5459, #5661, #5790 OpenClaw/Pi transport fixes, the gateway rename and DSH changes are retained. Beyond the clean automatic merge, only 17 version fields in 15 owned metadata files change; dependency entries remain unchanged. The six owned releases are Claude 0.7.7, Codex 0.11.6, agent hooks 0.5.15, OpenCode 0.5.9, DSH 0.5.21, and Pi 0.4.14, each strictly newer than main. Paired host/package/config/runtime/lock versions align.

This PR's exact tree 3a4581e53fe169e897d05e67ef6fe38d7a23e7d2 was tested separately on Windows and Ubuntu WSL with Node 24.21.0: recall core and doctor 64 passed, shared release config/sync/HTTP contracts 97 passed, and current Codex config/marketplace/usage 41 passed on each platform. Current-main DSH controls give 95 passed / 1 opt-in live-recall skip on each platform. These matrices overlap and are not added together. Existing cached dependencies were reused; no fresh dependency installation occurred.

The official generator leaves tracked output unchanged, relevant module syntax passes, and the unchanged version gate passes on the real committed HEAD. Independent reviews verified actual log byte/hash/TAP results, exact tested/prepared/committed tree linkage, ordinary commit parents, metadata-only edits, retained upstream entries and source cleanliness. Earlier broader Windows failures or skips below remain historical; this refresh does not assert Windows-wide or full repository success.

Current official CI

Current head 99660f89a52206614a7f09f2d48bb9c6532d233e: 6 SUCCESS / 5 conditional SKIPPED / 0 FAILURE. All 3 current-head parent runs completed (checked 2026-10-09T06:44:41.614360+00:00). Conditional jobs did not execute.

API/CLI job 113686712975 completed 2026-10-09T06:01:22Z: SUCCESS; filesystem API 14 passed, basic API 54 passed / 1 skipped, released CLI v0.4.4 compatibility 16 passed, source CLI 25 passed / 21 skipped, with zero test failures. Skipped cases are not counted as executed coverage.

The basic-API skip is a Find request returning 401 because PR CI cannot access VLM/Embedding API keys. The 21 source-CLI skips comprise 19 unavailable upstream-authentication cases, one existing CLI/server timeout-parameter mismatch, and one unavailable skill fixture for show. These skips do not establish complete authentication or model coverage.

Conditional skips: Build and Deploy Docs, cuvs-tests, build, langchain-tests, sdk-python-tests. These jobs did not execute.

The newly completed API/CLI job's full 554,037-byte log was read. Prior full-log evidence for the other 5 completed non-skipped jobs (372,019 bytes) is reused for the unchanged run/job metadata signatures; those old logs were not downloaded or read again. Dependency and version jobs are static checks.

The API/CLI log records official checkout 660392040627a5666934c6649362c43d2f6efbfd, with exact main 49f778011ef4f0b556d6064d4ec90343643668cf and this head as parents. Its tree 3a4581e53fe169e897d05e67ef6fe38d7a23e7d2 matches this PR's reviewed and locally tested tree.

These checks do not establish complete authentication or model coverage, a deployed OpenViking service, real host UI/IM, macOS or performance coverage. Historical results retain their named heads and platform limits.

Historical verification — main 961fb46 synchronization (2026-10-08)

Current head 0dd41f01aa5bf162f4922ac6917a77d5673d86b0 normally merges main 961fb4639505cff3051cc8faf74c757d50e085f0 into 82cf0fce78bb91bdf8a3039dbda93ef42e80816b. The original fix and regressions are retained, including the upstream #5738 usage/configuration changes and #5733 dependency ranges and lock entries. Beyond the automatic merge, only 13 version fields in 12 metadata files advance the five affected releases. Versions are Claude 0.7.6, Codex 0.11.5, agent hooks 0.5.14, OpenCode 0.5.8, DSH 0.5.20, and Pi 0.4.13; paired/config/lock versions align and all six strictly exceed main. DSH 0.5.20 is unchanged by this second refresh.

Windows/WSL Node 24.21.0: recall-core/doctor-core 64 passed, DSH 95 passed / 1 opt-in live-recall skip, shared config/sync 74 passed, and current Codex config/marketplace/usage 72 passed on each platform. Existing dependency installations were reused. Full plugin/installer/OpenClaw/server suites were not repeated for this scoped refresh. The original URL memo paragraph and the complete upstream usage/output schema documentation are both retained.

The generator and version gate on the real committed HEAD pass. Matrices overlap and are not added together. Eight full-plugin skips mean one live recall, four optional Pi SessionManager cases, and three optional Pi transcript-helper cases. No full local server/API, live authentication/models, deployed OpenViking server, real host UI/IM, macOS or performance validation is claimed.

Historical official CI — before head 99660f8

Official checks rechecked at 2026-10-08T11:58:13.507040+00:00 for head 0dd41f01aa5bf162f4922ac6917a77d5673d86b0: 6 SUCCESS / 5 SKIPPED / 0 failures. All 3 parent runs and all actual jobs are completed.

  • Plugin job 113262621143: 1279 passed / 8 skipped / 0 failed; installer 22 passed / 0 skipped / 0 failed. The eight plugin skips are one opt-in live recall, four optional Pi SessionManager cases and three optional Pi transcript-helper cases.
  • API/CLI job 113262619864: filesystem 14 passed; basic API 54 passed / 1 skipped; released CLI 0.4.4 compatibility 16 passed; source CLI 25 passed / 21 skipped. The basic Find test skips after a 401 because embedding credentials are unavailable. Source CLI skips are 19 upstream-authentication cases, one existing timeout-parameter mismatch, and one missing show-skill fixture.
  • OpenClaw job 113264363668: 42 files / 746 tests passed. The official command excludes architecture-boundaries.test.ts; it was not executed.
  • Docs job 113262619700: 61 tests passed / 0 failed / 0 skipped, with the docs build and built-link/anchor checks successful. Deployment is conditionally skipped.
  • check-deps 113262620866 and plugin-versions 113262621113 succeed; these are static dependency/version checks.

Conditional skips: Build and Deploy Docs, build, cuvs-tests, langchain-tests, sdk-python-tests. These jobs were not executed.

All 6 completed non-skipped job logs / 953,213 bytes were read in full and verified against fresh complete run/job metadata. Every log records checkout 6eb5d8ba8480e88757f9683d9725ae81c5cc6e12; its REST-confirmed parents are main 961fb4639505cff3051cc8faf74c757d50e085f0 and head 0dd41f01aa5bf162f4922ac6917a77d5673d86b0, and tree a69a476062213c43b9b32440a6241ebaa4e62b31 exactly matches the reviewed/committed tree.

These results cover the recorded main 961fb463 checkout. They do not establish results for a later complete main merge, full authentication/VLM/Embedding, a deployed OpenViking service, real-host UI/IM, online-model behavior, macOS or performance. Historical results below remain attached to their named heads.

Historical local validation — before head 0dd41f0

Historical verification — 82cf0fc before main 961fb46

Current head 82cf0fce78bb91bdf8a3039dbda93ef42e80816b is an ordinary merge of main 57a6ea5fdef4f62456996d3dac5583ba36fe1420 into 141a03b6b0c7f1dcb2513f607f9a930902b4509c. The original implementation, regressions and generated copies are unchanged; upstream changes, including #5733 dependency ranges and lock entries, are retained. Beyond the automatic merge, only the four DSH version fields in config/package/lock metadata advance from 0.5.19 to 0.5.20. The six releases are Claude Code 0.7.5, Codex 0.11.4, agent hooks 0.5.13, OpenCode 0.5.7, DSH 0.5.20, and Pi 0.4.12, with paired/config/lock versions aligned and all six strictly newer than main. Generator, syntax and the version gate on the real committed HEAD pass.

On Windows and WSL with Node 24.21.0, recall-core and doctor-core: 64 passed on each platform; DSH: 95 passed / 1 opt-in live-recall skip on each; shared plugin-config and synchronization: 74 passed on each. Existing locked dependencies were reused, without a fresh installation. These scopes overlap and are not added together. Full plugin/installer/OpenClaw/server suites were not repeated for this release synchronization; their earlier results below belong to the named historical heads. This scoped check does not establish Windows-wide success, live authentication/models, real host UI/IM, a deployed OpenViking server, macOS or performance coverage.

Latest main 35fa35bea39cd60503060f0f82de111e21a50844 differs only in .github/workflows/docs-tos.yml. The actual merge is clean and the product scopes match this reviewed/tested tree; the complete later main merge tree was not tested locally. A later landing still needs a fresh version comparison.

Historical local validation — 141a03b / 55c3493

Tested current commit 141a03b6b0c7f1dcb2513f607f9a930902b4509c, after an ordinary merge of main 55c34934e7b61a8755303e0df1da7a4d4cffcc53, with Node 24.21.0. The original URL-memo implementation, regressions, guidance and generated copies are unchanged. The merge preserves upstream #5733 dependency ranges and #5737 Windows bypass behavior.

  • Recall-core and doctor-core: 64 pass / 0 fail on Windows and WSL (node --test --test-concurrency=1 with those two test files). The original four regressions had reproduced as 60 pass / 4 fail on exact main 81805e90 before the URL-memo fix.

  • Windows and WSL: 13 fresh-child public controls each through config loading, actual localhost HTTP and reportPeer; verify A-to-B-to-A, context/actor requests, doctor ownership and unchanged old global JSON bytes. The original independent compatibility controls remain historical 9/9 results.

  • Fresh Linux complete tracked-source snapshot at this committed HEAD, with fresh locked DSH/Pi installs: the official plugin file list with concurrency 1 gives 1278 pass / 8 skip / 0 fail; installer 22/22. The eight skips are one opt-in live recall, four optional Pi SessionManager cases and three optional Pi transcript-helper cases.

  • Windows related shared/host and DSH suites: 354 pass / 1 opt-in live-recall skip / 0 fail. The earlier Codex directory-bypass failure is now resolved by upstream fix(memory-plugins): match slash-form bypass patterns against Windows paths #5737; no URL-memo assertion or implementation was changed for it.

  • Generator output, tracked diff checks, and the version gate on the real committed HEAD against 55c34934 pass. All six releases are strictly above current main: Claude 0.7.5, Codex 0.11.4, agent-hook 0.5.13, OpenCode 0.5.7, DSH 0.5.19 and Pi 0.4.12, with paired/config/lock versions aligned. Test matrices overlap and are not added together.

  • I have added tests that prove my fix is effective or that my feature works

  • New and existing unit tests pass locally with my changes

  • I have tested this on the following platforms:

    • Linux
    • macOS
    • Windows

The unchecked all-tests item reflects the limited suites listed above; the complete server/workspace was not tested locally. These are local results, not official PR CI. No deployed OpenViking server, real host UI, online model, performance or same-URL credential-isolation test was run. Direct low-level calls without a URL and callers providing explicit memo paths keep their existing path contract; the separate experimental Pi implementation is outside this change.

Checklist

  • My code follows the project's coding style
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

The URL-memo fix introduces no dependent implementation or dependency requirement; the merge retains upstream dependency changes. The same-URL upgrade cache still expires after six hours.

Historical official CI — 82cf0fc before main 961fb46

Actual jobs collected at 2026-10-08T09:27:40.627581+00:00 for head 82cf0fce78bb91bdf8a3039dbda93ef42e80816b: 3 SUCCESS / 2 QUEUED / 1 IN_PROGRESS / 5 SKIPPED. 1 parent run(s) completed; 2 remain unfinished. The individual actual jobs and completed full-log results are separated below.

The completed Docs job's full log shows theme tests 61 passed / 0 failed, followed by successful documentation consistency, build, link and anchor checks.
These 1 completed non-skipped job logs were read in full (50,879 bytes), after their parent runs completed. Their log-recorded checkout is 5ba8fdffd66b119706855e32f28db8a7fc54e1d0, merging this head into 35fa35bea39cd60503060f0f82de111e21a50844. Dependency/version checks are static checks.

API/CLI is still unfinished, so current-head API/released-CLI/source-CLI pass counts are not claimed. Other successful job metadata without a completed parent run and full log does not establish test counts. Earlier full logs and successful API/CLI counts below remain historical and do not establish this new head's results.

Historical official CI — 141a03b / 55c3493

At 2026-10-08T06:10:16.779752+00:00, current head 141a03b6 has 6 SUCCESS / 5 conditional SKIP / 0 FAIL, with all three runs completed. API/CLI run 37733745037, job 113168516071, completed SUCCESS at 2026-10-08T06:00:38Z. Its complete log shows filesystem 14 pass; basic API 54 pass / 1 Find-401 skip; released CLI 0.4.4 compatibility 16 pass; source CLI 25 pass / 21 skip (19 upstream-auth unavailable, 1 existing timeout parameter mismatch, 1 missing show-skill fixture). VLM/Embedding credentials were unavailable, so this does not establish complete authenticated/model or real-host coverage.

All six successful jobs have complete logs: plugin 1278 pass / 8 skip and installer 22 pass; OpenClaw 42 files / 746 pass (architecture-boundaries excluded); Docs 61 pass and build success; version/dependency checks success. The eight plugin skips are one opt-in live recall, four optional Pi SessionManager cases and three optional Pi transcript-helper cases. Actual checkout 477711d6533c3f3e56432b4eefbb9e27fae87004 has parents main 55c34934 and current head 141a03b6; its tree matches the independently reviewed and locally tested tree. These official results belong to this head; the previous head's results below remain historical. Local suites above are separate evidence. Test matrices overlap and are not added together.

Previous-head official CI

At 2026-10-07 17:09 UTC, the previous head d248354c completed with 6 SUCCESS / 5 conditional SKIP / 0 FAIL. Completed logs show plugin 1277 pass / 8 skip and installer 22 pass, OpenClaw 42 files / 746 pass (architecture-boundaries excluded), Docs 61 pass and a successful build, plus version/dependency checks. API/CLI run 37654687829, job 112906680372 completed SUCCESS: filesystem 14 pass; basic API 54 pass / 1 Find-401 skip; released CLI 0.4.4 compatibility 16 pass; source CLI 25 pass / 21 skip (19 upstream-auth unavailable, 1 existing timeout parameter mismatch, 1 missing skill fixture). VLM/Embedding credentials were unavailable, so this does not establish complete authenticated/model or real-host coverage. The actual checkout is 23a156e914f9ccc1cc3d977d336baabb2a1521d3, parents main 6e1030d9 and previous head d248354c; its tree matches the independently checked actual merge. Test matrices overlap and are not added together.

Maintenance validation (2026-10-12, main 9093583)

Synchronized this existing branch with upstream 9093583b34050619ba6f5a6a11b003b0adca15e7 after the upstream plugin releases changed. The affected release versions are now Claude 0.7.9, Codex 0.11.8, agent-hook 0.5.17, OpenCode 0.5.11, DSH 0.5.23, and Pi 0.4.16, strictly above that main. Paired manifests, configuration, and lock metadata remain consistent.

Windows and Linux each pass 65 focused regressions, 97 release/configuration checks, and 41 Codex configuration/marketplace checks. The DSH suite passes 95 checks and skips one live-host check on each platform. Syntax, generated-copy consistency, and the version gate also pass on the actual commit. These suites overlap and their counts are not added. Ignored runtime dependencies are cached; this validation does not cover a live host, model, deployment, or the full server.

For current head 062d4a0500ca903d8ccc7fe923c7414b1fa91de4, the actual official jobs read at 2026-10-12T05:39:21.679603+00:00 report 5 in_progress, 1 skipped. Conditional skips are not executions; queued or running jobs are not passes. Earlier CI/validation sections describe their earlier heads.

Maintenance validation (2026-10-12, main 2e706d7)

Synchronized this existing branch with upstream 2e706d7193aa47c05d986e68b61b3b994d41fa55 after the upstream plugin releases changed. The affected release versions are now Claude 0.7.10, Codex 0.11.9, agent-hook 0.5.18, OpenCode 0.5.12, DSH 0.5.24, and Pi 0.4.17, strictly above that main. Paired manifests, configuration, and lock metadata remain consistent.

Windows and Linux each pass 95 focused regressions (including the 30 current-main capture-text regressions), 97 release/configuration checks, and 41 Codex configuration/marketplace checks. The DSH suite passes 95 checks and skips one live-host check on each platform. Syntax, generated-copy consistency, and the version gate also pass on the actual commit. These suites overlap and their counts are not added. Ignored runtime dependencies are cached; this validation does not cover a live host, model, deployment, or the full server.

For current head 945b30f0e0e2eb83322d02d4d65245e8411bd251, the actual official job payloads collected between 2026-10-12T07:05:49.512313+00:00 and 2026-10-12T07:05:52.842024+00:00 report 5 in_progress, 1 skipped. Conditional skips are not executions; queued or running jobs are not passes. Earlier CI/validation sections describe their earlier heads.

@ZaynJarvis ZaynJarvis added the agent-plugins Agent harness and plugin integrations label Oct 8, 2026
@ktz03
ktz03 marked this pull request as ready for review October 9, 2026 02:30

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-plugins Agent harness and plugin integrations

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

[Bug]: memory-plugin capability memos carry downgrade decisions across server URLs

2 participants