fix(agents): trust load-path harness owners · openclaw/openclaw@d1026a3
vincentkoc
·
2026-06-22
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -80,6 +80,18 @@ describe("activation planner", () => {
|
80 | 80 | }, |
81 | 81 | origin: "workspace", |
82 | 82 | }, |
| 83 | +{ |
| 84 | +id: "load-path-harness-plugin", |
| 85 | +providers: [], |
| 86 | +channels: [], |
| 87 | +cliBackends: [], |
| 88 | +skills: [], |
| 89 | +hooks: [], |
| 90 | +activation: { |
| 91 | +onAgentHarnesses: ["load-path-harness"], |
| 92 | +}, |
| 93 | +origin: "config", |
| 94 | +}, |
83 | 95 | { |
84 | 96 | id: "demo-channel", |
85 | 97 | channels: ["telegram"], |
@@ -216,6 +228,33 @@ describe("activation planner", () => {
|
216 | 228 | ).toEqual(["custom-harness-plugin"]); |
217 | 229 | }); |
218 | 230 | |
| 231 | +it("treats load-path manifest owners as explicitly trusted for activation planning", () => { |
| 232 | +expect( |
| 233 | +resolveManifestActivationPluginIds({ |
| 234 | +trigger: { |
| 235 | +kind: "agentHarness", |
| 236 | +runtime: "load-path-harness", |
| 237 | +}, |
| 238 | +requireExplicitManifestOwnerTrust: true, |
| 239 | +}), |
| 240 | +).toEqual(["load-path-harness-plugin"]); |
| 241 | + |
| 242 | +expect( |
| 243 | +resolveManifestActivationPluginIds({ |
| 244 | +config: { |
| 245 | +plugins: { |
| 246 | +deny: ["load-path-harness-plugin"], |
| 247 | +}, |
| 248 | +}, |
| 249 | +trigger: { |
| 250 | +kind: "agentHarness", |
| 251 | +runtime: "load-path-harness", |
| 252 | +}, |
| 253 | +requireExplicitManifestOwnerTrust: true, |
| 254 | +}), |
| 255 | +).toEqual([]); |
| 256 | +}); |
| 257 | + |
219 | 258 | it("keeps ids-only provider, agent harness, channel, and route planning stable", () => { |
220 | 259 | expect( |
221 | 260 | resolveManifestActivationPluginIds({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。