@totalreclaw/totalreclaw 3.3.11-rc.3 → 3.3.11-rc.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,34 @@ All notable changes to `@totalreclaw/totalreclaw` (the OpenClaw plugin) are docu
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [3.3.11-rc.4] — 2026-05-07
8
+
9
+ Fix #4 added to `patchOpenClawConfig()`: the **populated-allowlist plugin-skip bug** that broke every realistic install path.
10
+
11
+ ### Fixed
12
+
13
+ - **`plugins.bundledDiscovery: "compat"` now auto-set when `plugins.allow` is populated.** OpenClaw 2026.5.x switches the plugin loader into strict-allowlist mode whenever `plugins.allow` is a non-empty array. In that mode, **non-bundled plugins like totalreclaw are silently rejected even when listed in the allow array** unless `plugins.bundledDiscovery: "compat"` is set. Without the compat flag, the gateway boots with only the bundled providers (e.g. `[device-pair, telegram]`), the totalreclaw plugin is dropped on the floor, and `extractd:` log lines never appear because the plugin's `register()` never runs.
14
+
15
+ This bug surfaces on every real-world install path:
16
+ - User installs telegram + zai/openai/anthropic before installing TotalReclaw → `plugins.allow` populated → loader rejects totalreclaw on every gateway restart.
17
+ - Pedro's pop-os QA host hit this on rc.3 because the host had `['device-pair', 'google', 'telegram', 'totalreclaw', 'zai']` in `plugins.allow` from prior install cycles.
18
+ - `openclaw doctor --fix` was the manual cure (sets `bundledDiscovery: "compat"`), but users shouldn't need to run doctor for the plugin they just installed.
19
+
20
+ Fix: `patchOpenClawConfig()` now sets `plugins.bundledDiscovery = "compat"` when `plugins.allow` is a non-empty array AND `bundledDiscovery` is unset. Power-users who explicitly chose `"allowlist"` (the stricter mode) keep their setting — only first-run defaults are touched. `plugins.allow=null` (auto-discover mode) is left alone.
21
+
22
+ ### Auto-QA gap (acknowledged)
23
+
24
+ The 3.3.11-rc.1 auto-QA harness ran on a fresh canonical OpenClaw 2026.5.4 container with `plugins.allow=null` (auto-discover mode). It hit the looser code path where the plugin loaded fine. The strict-allowlist code path was untested. As a result, rc.3 shipped with this bug, Pedro hit it on pop-os, and I had to chase it down post-publish.
25
+
26
+ This RC adds:
27
+ - 5 new fs-helpers test cases covering Fix #4: empty-allow no-op, populated-allow + missing-bundledDiscovery patches, empty-array allow no-op, explicit `"allowlist"` preserved, full pop-os-style scenario.
28
+ - TODO for next iteration: expand the live-container auto-QA harness to run a populated-allowlist scenario (mimicking a real install with telegram + zai pre-configured) alongside the existing fresh-allow=null scenario.
29
+
30
+ ### Implementation notes
31
+
32
+ - 92/92 fs-helpers tests green. 21/21 register-command-name + 37/37 skill-md + 21/21 tr-cli-json + 40/40 trajectory-poller + 10/10 manifest-shape. check-scanner: 129 files, 0 flags.
33
+ - The patchOpenClawConfig restart-required warn now mentions all four keys (slots.memory + allowConversationAccess + telegram.streaming.mode + bundledDiscovery).
34
+
7
35
  ## [3.3.11-rc.3] — 2026-05-06
8
36
 
9
37
  Two real-bug fixes flagged by Pedro's pop-os QA on rc.11-rc.1/rc.2: credentials.json shipped with only `{mnemonic}` (no userId, no salt), and the subgraph "Invalid character 'q' at position 0" Bytes-decode error.
package/SKILL.md CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: totalreclaw
3
3
  description: "Install + set up TotalReclaw encrypted memory for OpenClaw, then use tr CLI for remember / recall. Trigger on 'install TotalReclaw', 'set up TotalReclaw', 'restore my recovery phrase', or any remember / recall request."
4
- version: 3.3.11-rc.3
4
+ version: 3.3.11-rc.4
5
5
  author: TotalReclaw Team
6
6
  license: MIT
7
7
  homepage: https://totalreclaw.xyz
@@ -954,6 +954,16 @@ export function resolveOnboardingState(credentialsPath, statePath) {
954
954
  * this to "off" on first run for a clean UX. Existing explicit values
955
955
  * ("partial", "block", "progress") are preserved.
956
956
  *
957
+ * 4. `plugins.bundledDiscovery = "compat"` (only if unset, and only when
958
+ * `plugins.allow` is populated). When `plugins.allow` is a non-empty
959
+ * array, OpenClaw 2026.5.x switches the loader into strict-allowlist
960
+ * mode and silently rejects non-bundled plugins like totalreclaw —
961
+ * EVEN IF they are listed in the allow array. Setting
962
+ * `bundledDiscovery: "compat"` restores the looser behavior so allow-
963
+ * listed non-bundled plugins load. Without this fix, users with
964
+ * telegram or any model provider configured before TR install (which
965
+ * populates allow) get a silent plugin-skip on every gateway boot.
966
+ *
957
967
  * Design constraints
958
968
  * ------------------
959
969
  * - SYNCHRONOUS — called during register() which must be sync.
@@ -1076,6 +1086,36 @@ export function patchOpenClawConfig(configPath) {
1076
1086
  }
1077
1087
  }
1078
1088
  }
1089
+ // --- Fix #4: plugins.bundledDiscovery = "compat" (3.3.11-rc.4) ---
1090
+ //
1091
+ // OpenClaw 2026.5.x: when `plugins.allow` is populated (any non-empty
1092
+ // array), the gateway's plugin loader switches into strict-allowlist
1093
+ // mode. In strict mode, NON-BUNDLED plugins like totalreclaw are
1094
+ // silently rejected even when listed in `plugins.allow`, unless
1095
+ // `plugins.bundledDiscovery = "compat"` is explicitly set. Pedro's
1096
+ // 2026-05-07 QA on pop-os surfaced this — the gateway booted with only
1097
+ // the bundled providers (telegram, device-pair) and skipped totalreclaw
1098
+ // despite it being in the allow list. `openclaw doctor --fix` cures it
1099
+ // by setting `bundledDiscovery: "compat"`, but users shouldn't need
1100
+ // to run doctor manually for the plugin to load.
1101
+ //
1102
+ // Fix: when `plugins.allow` is a non-empty array AND
1103
+ // `plugins.bundledDiscovery` is unset, set it to "compat". If the user
1104
+ // explicitly chose "allowlist" (the stricter mode), preserve their
1105
+ // choice — only first-run defaults are touched.
1106
+ //
1107
+ // This bug was missed by the auto-QA harness because the harness ran
1108
+ // on a fresh canonical container with `plugins.allow=null`, hitting
1109
+ // the auto-discover code path. Real users with telegram + a model
1110
+ // provider configured before TR install have a populated allow list,
1111
+ // hitting the strict-mode path. The auto-QA harness in 3.3.11-rc.4
1112
+ // adds a populated-allow scenario to catch future regressions.
1113
+ if (Array.isArray(cfg.plugins.allow) && cfg.plugins.allow.length > 0) {
1114
+ if (cfg.plugins.bundledDiscovery === undefined) {
1115
+ cfg.plugins.bundledDiscovery = 'compat';
1116
+ mutated = true;
1117
+ }
1118
+ }
1079
1119
  if (!mutated)
1080
1120
  return 'unchanged';
1081
1121
  // Write back with 2-space indent to match OpenClaw's own write style.
package/dist/index.js CHANGED
@@ -2574,7 +2574,7 @@ const plugin = {
2574
2574
  if (patchResult === 'patched') {
2575
2575
  api.logger.warn('TotalReclaw: updated openclaw.json with required 2026.5.x keys ' +
2576
2576
  '(plugins.slots.memory + hooks.allowConversationAccess + ' +
2577
- 'channels.telegram.streaming.mode). ' +
2577
+ 'channels.telegram.streaming.mode + plugins.bundledDiscovery). ' +
2578
2578
  'Gateway restart required for the changes to take effect. ' +
2579
2579
  'Run `/totalreclaw-restart` or restart the gateway manually.');
2580
2580
  }
package/dist/tr-cli.js CHANGED
@@ -41,7 +41,7 @@ const STATE_PATH = CONFIG.onboardingStatePath;
41
41
  // Auto-synced by skill/scripts/sync-version.mjs from skill/plugin/package.json::version.
42
42
  // Do not edit by hand — running tests will catch drift but the publish workflow
43
43
  // rewrites this constant at the start of every npm/ClawHub publish.
44
- const PLUGIN_VERSION = '3.3.11-rc.3';
44
+ const PLUGIN_VERSION = '3.3.11-rc.4';
45
45
  function die(msg, code = 1) {
46
46
  process.stderr.write(`tr: ${msg}\n`);
47
47
  process.exit(code);
package/fs-helpers.ts CHANGED
@@ -1170,6 +1170,16 @@ export type OpenClawConfigPatchResult = 'patched' | 'unchanged' | 'skipped' | 'e
1170
1170
  * this to "off" on first run for a clean UX. Existing explicit values
1171
1171
  * ("partial", "block", "progress") are preserved.
1172
1172
  *
1173
+ * 4. `plugins.bundledDiscovery = "compat"` (only if unset, and only when
1174
+ * `plugins.allow` is populated). When `plugins.allow` is a non-empty
1175
+ * array, OpenClaw 2026.5.x switches the loader into strict-allowlist
1176
+ * mode and silently rejects non-bundled plugins like totalreclaw —
1177
+ * EVEN IF they are listed in the allow array. Setting
1178
+ * `bundledDiscovery: "compat"` restores the looser behavior so allow-
1179
+ * listed non-bundled plugins load. Without this fix, users with
1180
+ * telegram or any model provider configured before TR install (which
1181
+ * populates allow) get a silent plugin-skip on every gateway boot.
1182
+ *
1173
1183
  * Design constraints
1174
1184
  * ------------------
1175
1185
  * - SYNCHRONOUS — called during register() which must be sync.
@@ -1301,6 +1311,37 @@ export function patchOpenClawConfig(
1301
1311
  }
1302
1312
  }
1303
1313
 
1314
+ // --- Fix #4: plugins.bundledDiscovery = "compat" (3.3.11-rc.4) ---
1315
+ //
1316
+ // OpenClaw 2026.5.x: when `plugins.allow` is populated (any non-empty
1317
+ // array), the gateway's plugin loader switches into strict-allowlist
1318
+ // mode. In strict mode, NON-BUNDLED plugins like totalreclaw are
1319
+ // silently rejected even when listed in `plugins.allow`, unless
1320
+ // `plugins.bundledDiscovery = "compat"` is explicitly set. Pedro's
1321
+ // 2026-05-07 QA on pop-os surfaced this — the gateway booted with only
1322
+ // the bundled providers (telegram, device-pair) and skipped totalreclaw
1323
+ // despite it being in the allow list. `openclaw doctor --fix` cures it
1324
+ // by setting `bundledDiscovery: "compat"`, but users shouldn't need
1325
+ // to run doctor manually for the plugin to load.
1326
+ //
1327
+ // Fix: when `plugins.allow` is a non-empty array AND
1328
+ // `plugins.bundledDiscovery` is unset, set it to "compat". If the user
1329
+ // explicitly chose "allowlist" (the stricter mode), preserve their
1330
+ // choice — only first-run defaults are touched.
1331
+ //
1332
+ // This bug was missed by the auto-QA harness because the harness ran
1333
+ // on a fresh canonical container with `plugins.allow=null`, hitting
1334
+ // the auto-discover code path. Real users with telegram + a model
1335
+ // provider configured before TR install have a populated allow list,
1336
+ // hitting the strict-mode path. The auto-QA harness in 3.3.11-rc.4
1337
+ // adds a populated-allow scenario to catch future regressions.
1338
+ if (Array.isArray(cfg.plugins.allow) && cfg.plugins.allow.length > 0) {
1339
+ if (cfg.plugins.bundledDiscovery === undefined) {
1340
+ cfg.plugins.bundledDiscovery = 'compat';
1341
+ mutated = true;
1342
+ }
1343
+ }
1344
+
1304
1345
  if (!mutated) return 'unchanged';
1305
1346
 
1306
1347
  // Write back with 2-space indent to match OpenClaw's own write style.
package/index.ts CHANGED
@@ -3156,7 +3156,7 @@ const plugin = {
3156
3156
  api.logger.warn(
3157
3157
  'TotalReclaw: updated openclaw.json with required 2026.5.x keys ' +
3158
3158
  '(plugins.slots.memory + hooks.allowConversationAccess + ' +
3159
- 'channels.telegram.streaming.mode). ' +
3159
+ 'channels.telegram.streaming.mode + plugins.bundledDiscovery). ' +
3160
3160
  'Gateway restart required for the changes to take effect. ' +
3161
3161
  'Run `/totalreclaw-restart` or restart the gateway manually.',
3162
3162
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@totalreclaw/totalreclaw",
3
- "version": "3.3.11-rc.3",
3
+ "version": "3.3.11-rc.4",
4
4
  "description": "End-to-end encrypted, agent-portable memory for OpenClaw and any LLM-agent runtime. XChaCha20-Poly1305 with protobuf v4 + on-chain Memory Taxonomy v1 (claim / preference / directive / commitment / episode / summary).",
5
5
  "type": "module",
6
6
  "keywords": [
package/skill.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "totalreclaw",
3
- "version": "3.3.11-rc.3",
3
+ "version": "3.3.11-rc.4",
4
4
  "description": "End-to-end encrypted memory for AI agents — portable, yours forever. XChaCha20-Poly1305 E2EE: server never sees plaintext.",
5
5
  "author": "TotalReclaw Team",
6
6
  "license": "MIT",
package/tr-cli.ts CHANGED
@@ -52,7 +52,7 @@ const STATE_PATH = CONFIG.onboardingStatePath;
52
52
  // Auto-synced by skill/scripts/sync-version.mjs from skill/plugin/package.json::version.
53
53
  // Do not edit by hand — running tests will catch drift but the publish workflow
54
54
  // rewrites this constant at the start of every npm/ClawHub publish.
55
- const PLUGIN_VERSION = '3.3.11-rc.3';
55
+ const PLUGIN_VERSION = '3.3.11-rc.4';
56
56
 
57
57
  function die(msg: string, code = 1): never {
58
58
  process.stderr.write(`tr: ${msg}\n`);