@reefclaw/openclaw-plugin 0.1.41 → 0.1.43

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.
@@ -9,6 +9,13 @@ export interface BridgePaths {
9
9
  }
10
10
  /** The single-agent layout every box used before multi-agent attach. */
11
11
  export declare function defaultBridgePaths(): BridgePaths;
12
+ /** Failure reason for the skill_update_applied audit event: our own error
13
+ * text with every file path replaced (a path carries the box's username —
14
+ * readiness/audit telemetry never carries paths) and capped. Before
15
+ * 2026-09-27 the event said only `success: false`, so a failure that repeated
16
+ * on every reconnect on two customer boxes could not be diagnosed from our
17
+ * side. */
18
+ export declare function redactReason(message: string | undefined): string;
12
19
  export declare class Bridge {
13
20
  private readonly provider;
14
21
  /** Where the served agent's SKILL.md and session index live. The legacy
package/bridge/bridge.js CHANGED
@@ -77,6 +77,17 @@ export function defaultBridgePaths() {
77
77
  sessionsJsonPath: join(homedir(), '.openclaw', 'agents', 'main', 'sessions', 'sessions.json'),
78
78
  };
79
79
  }
80
+ /** Failure reason for the skill_update_applied audit event: our own error
81
+ * text with every file path replaced (a path carries the box's username —
82
+ * readiness/audit telemetry never carries paths) and capped. Before
83
+ * 2026-09-27 the event said only `success: false`, so a failure that repeated
84
+ * on every reconnect on two customer boxes could not be diagnosed from our
85
+ * side. */
86
+ export function redactReason(message) {
87
+ return String(message ?? '')
88
+ .replace(/(?:[A-Za-z]:)?(?:[\\/][^\s'"`,;:()<>\\/]+)+[\\/]?/g, '<path>')
89
+ .slice(0, 200);
90
+ }
80
91
  export class Bridge {
81
92
  provider;
82
93
  paths;
@@ -1089,9 +1100,17 @@ export class Bridge {
1089
1100
  logger.error(TAG, `OTA SKILL.md REJECTED (signature): ${verdict.reason}`);
1090
1101
  return { success: false, version, message: `signature rejected: ${verdict.reason}` };
1091
1102
  }
1092
- // Replay/rollback guard: only accept a strictly newer signed artifact.
1103
+ // Replay/rollback guard: only accept a strictly newer signed artifact —
1104
+ // or the SAME one again. The signature binds version + content hash +
1105
+ // signedAt, so an equal signedAt for the version already applied is
1106
+ // that exact artifact (nothing to roll back to). Re-applying it is how
1107
+ // a stale agent-visible copy gets rewritten; refusing it (the old
1108
+ // strict check) left such copies stale forever and logged a failed
1109
+ // apply on every reconnect (2026-09-27, two boxes).
1093
1110
  const sigMs = new Date(env.signedAt).getTime();
1094
- if (!(sigMs > readLastAppliedSignedAtMs())) {
1111
+ const lastMs = readLastAppliedSignedAtMs();
1112
+ const sameArtifactAgain = sigMs === lastMs && version === this.currentSkillVersion;
1113
+ if (!(sigMs > lastMs || sameArtifactAgain)) {
1095
1114
  logger.error(TAG, `OTA SKILL.md REJECTED (replay): signedAt ${env.signedAt} not newer than last applied`);
1096
1115
  return { success: false, version, message: 'signature rejected: replay (stale signedAt)' };
1097
1116
  }
@@ -1252,6 +1271,7 @@ export class Bridge {
1252
1271
  event: 'skill_update_applied',
1253
1272
  version: result.version,
1254
1273
  success: updateResult.success,
1274
+ ...(updateResult.success ? {} : { reason: redactReason(updateResult.message) }),
1255
1275
  timestamp: new Date().toISOString(),
1256
1276
  });
1257
1277
  return updateResult;
@@ -1332,6 +1352,7 @@ export class Bridge {
1332
1352
  event: 'skill_update_applied',
1333
1353
  version: body.version,
1334
1354
  success: result.success,
1355
+ ...(result.success ? {} : { reason: redactReason(result.message) }),
1335
1356
  source: 'webapp_pull',
1336
1357
  timestamp: new Date().toISOString(),
1337
1358
  });
@@ -15,6 +15,29 @@ export interface CronRpcClient {
15
15
  * agent's token burn.
16
16
  */
17
17
  export declare function isHeartbeatLikeName(name: unknown): boolean;
18
+ /**
19
+ * Whether an existing job IS the ReefClaw heartbeat (so creation must be
20
+ * suppressed). A name with "reefclaw" in it counts (ours, and operators'
21
+ * own ReefClaw schedules). A job merely NAMED like a heartbeat counts only
22
+ * when its instructions are ReefClaw's — boxes whose ReefClaw beat predates
23
+ * the reefclaw- prefix.
24
+ *
25
+ * ★ 2026-09-27: `isHeartbeatLikeName` alone adopted a new user's OWN hourly
26
+ * "heartbeat" job (it ran before they had signed up) — ReefClaw's beat was
27
+ * never created, OpenClaw skipped that job every run, and the agent did no
28
+ * trading work while the dashboard showed its status as the agent's heartbeat.
29
+ */
30
+ export declare function isReefclawHeartbeatJob(job: {
31
+ name?: unknown;
32
+ payload?: unknown;
33
+ } | null | undefined): boolean;
34
+ /** The job whose state the dashboard shows as the agent's heartbeat: ours by
35
+ * name first, then any ReefClaw heartbeat, then (legacy display fallback)
36
+ * anything heartbeat-named. */
37
+ export declare function pickHeartbeatJob<T extends {
38
+ name?: unknown;
39
+ payload?: unknown;
40
+ }>(jobs: readonly T[]): T | undefined;
18
41
  export type EnsureHeartbeatOutcome = 'already_ensured' | 'found_existing' | 'created' | 'failed';
19
42
  /**
20
43
  * Ensure a heartbeat cron exists. Non-fatal by contract: every failure path
@@ -13,7 +13,7 @@
13
13
  // completion. Without it, a user who deliberately deleted their heartbeat cron
14
14
  // would get it resurrected on every bridge boot — the old setup-time path ran
15
15
  // once, and that operator-override behaviour must be preserved.
16
- import { existsSync, mkdirSync, writeFileSync } from 'fs';
16
+ import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'fs';
17
17
  import { dirname } from 'path';
18
18
  export const HEARTBEAT_CRON_NAME = 'reefclaw-heartbeat';
19
19
  // 15m is the default. A disciplined beat (early-exit on no-trade + trading
@@ -69,6 +69,57 @@ export const HEARTBEAT_MESSAGE = 'Heartbeat. Execute EVERY checkbox in the HEART
69
69
  export function isHeartbeatLikeName(name) {
70
70
  return typeof name === 'string' && /reefclaw|heart\s*beat/i.test(name);
71
71
  }
72
+ /** Words only a ReefClaw heartbeat's instructions carry (our message, and the
73
+ * older "run the Decision Loop from SKILL.md" one). OpenClaw's own heartbeat
74
+ * prompt mentions HEARTBEAT.md, so that alone proves nothing. */
75
+ const REEFCLAW_BEAT_MESSAGE = /reefclaw|SKILL\.md|Decision Loop|record_position_reviews|fetch_positions|query_trades|get_wave9_status/i;
76
+ /**
77
+ * Whether an existing job IS the ReefClaw heartbeat (so creation must be
78
+ * suppressed). A name with "reefclaw" in it counts (ours, and operators'
79
+ * own ReefClaw schedules). A job merely NAMED like a heartbeat counts only
80
+ * when its instructions are ReefClaw's — boxes whose ReefClaw beat predates
81
+ * the reefclaw- prefix.
82
+ *
83
+ * ★ 2026-09-27: `isHeartbeatLikeName` alone adopted a new user's OWN hourly
84
+ * "heartbeat" job (it ran before they had signed up) — ReefClaw's beat was
85
+ * never created, OpenClaw skipped that job every run, and the agent did no
86
+ * trading work while the dashboard showed its status as the agent's heartbeat.
87
+ */
88
+ export function isReefclawHeartbeatJob(job) {
89
+ const name = job?.name;
90
+ if (typeof name !== 'string')
91
+ return false;
92
+ if (/reefclaw/i.test(name))
93
+ return true;
94
+ if (!/heart\s*beat/i.test(name))
95
+ return false;
96
+ const payload = job?.payload;
97
+ const msg = typeof payload?.message === 'string' ? payload.message : typeof payload?.text === 'string' ? payload.text : '';
98
+ return REEFCLAW_BEAT_MESSAGE.test(msg);
99
+ }
100
+ /** The job whose state the dashboard shows as the agent's heartbeat: ours by
101
+ * name first, then any ReefClaw heartbeat, then (legacy display fallback)
102
+ * anything heartbeat-named. */
103
+ export function pickHeartbeatJob(jobs) {
104
+ return (jobs.find((j) => j?.name === HEARTBEAT_CRON_NAME) ??
105
+ jobs.find((j) => isReefclawHeartbeatJob(j)) ??
106
+ jobs.find((j) => isHeartbeatLikeName(j?.name)));
107
+ }
108
+ /** Stamped into markers written under isReefclawHeartbeatJob. */
109
+ const ADOPTION_RULE = 'reefclaw-job-v2';
110
+ /** A marker written when an earlier bridge ADOPTED a job that is not
111
+ * ReefClaw's by name. Such boxes are re-checked once under the stricter rule. */
112
+ function markerAdoptedForeignJob(markerPath) {
113
+ try {
114
+ const m = JSON.parse(readFileSync(markerPath, 'utf-8'));
115
+ if (m.rule === ADOPTION_RULE)
116
+ return false;
117
+ return typeof m.found === 'string' && !/reefclaw/i.test(m.found);
118
+ }
119
+ catch {
120
+ return false;
121
+ }
122
+ }
72
123
  /**
73
124
  * Ensure a heartbeat cron exists. Non-fatal by contract: every failure path
74
125
  * returns 'failed' rather than throwing, and only success writes the marker so
@@ -98,7 +149,7 @@ export async function ensureHeartbeatCron(opts) {
98
149
  const agentId = opts.agentId?.trim().toLowerCase() || undefined;
99
150
  const agentIsDefault = opts.agentIsDefault ?? true;
100
151
  try {
101
- if (existsSync(markerPath))
152
+ if (existsSync(markerPath) && !markerAdoptedForeignJob(markerPath))
102
153
  return 'already_ensured';
103
154
  // includeDisabled: a job the user disabled still means "exists" — re-adding
104
155
  // a duplicate next to a deliberately-disabled one is worse than doing nothing.
@@ -108,9 +159,9 @@ export async function ensureHeartbeatCron(opts) {
108
159
  log('Heartbeat cron: skipped (cron.list returned no job list)');
109
160
  return 'failed';
110
161
  }
111
- const existing = jobs.find((j) => isHeartbeatLikeName(j?.name) && cronJobBelongsToAgent(j, agentId, agentIsDefault));
162
+ const existing = jobs.find((j) => isReefclawHeartbeatJob(j) && cronJobBelongsToAgent(j, agentId, agentIsDefault));
112
163
  if (existing) {
113
- writeMarker(markerPath, { ensuredAt: new Date().toISOString(), found: String(existing.name) });
164
+ writeMarker(markerPath, { ensuredAt: new Date().toISOString(), found: String(existing.name), rule: ADOPTION_RULE });
114
165
  log(`Heartbeat cron: already exists (${String(existing.name)})`);
115
166
  return 'found_existing';
116
167
  }
@@ -14,7 +14,7 @@ import { GatewayWsClient } from '../gateway/gateway-ws-client.js';
14
14
  import { discoverTools } from '../gateway/tool-discovery.js';
15
15
  import { EventParser, mapCcxtBalance, mapCcxtOrder, extractLiquidationFields, extractBracketField, extractPlannedLevels, } from '../gateway/event-parser.js';
16
16
  import { Poller } from '../gateway/poller.js';
17
- import { ensureHeartbeatCron, isHeartbeatLikeName } from '../gateway/heartbeat-cron.js';
17
+ import { ensureHeartbeatCron, pickHeartbeatJob } from '../gateway/heartbeat-cron.js';
18
18
  import { parseIdentityName } from '../utils/identity-name.js';
19
19
  import { assessDrawdownPlausibility, computeEquity as _computeEquity, computePositionNotional as _computePositionNotional, computeRiskMetrics as _computeRiskMetrics, DEFAULT_RISK_LIMITS, DRAWDOWN_ZONE_THRESHOLDS, TENANT_LIMIT_BOUNDS, boundedNum, validateDrawdownLadder, } from './risk-calculator.js';
20
20
  import { executeKill as _executeKill, executeFlatten as _executeFlatten, executePause as _executePause, executeResume as _executeResume, cancelPendingProposals, withProposalDetail, } from './emergency-commands.js';
@@ -2260,7 +2260,7 @@ export class GatewayProvider {
2260
2260
  const jobs = resp?.jobs;
2261
2261
  if (!Array.isArray(jobs))
2262
2262
  return; // unknown shape — leave last-known
2263
- const hb = jobs.find((j) => isHeartbeatLikeName(j?.name));
2263
+ const hb = pickHeartbeatJob(jobs);
2264
2264
  // Cadence from the same RPC row: on 2026.7.x the filesystem jobs.json
2265
2265
  // that resolveHeartbeatSeconds() reads is gone (cron store migrated),
2266
2266
  // so without this the "beat every Nm" label and the 2× unresponsive
package/index.js CHANGED
@@ -914,22 +914,40 @@ function jsonResult(data) {
914
914
  // a full second runtime. And the runtime starts only in a runtime process:
915
915
  // the `openclaw` CLI loads plugins too, and a CLI-started runtime ran a second
916
916
  // simulator + stop watcher + connector (whose bridge evicted the gateway's
917
- // from the relay). CLI processes get the tool NAMES only, with a handler
918
- // that says where the tools run.
919
- /** Tools registered in a non-runtime process (CLI / discovery): same names and
920
- * schemas, so OpenClaw's manifest contract and tool listings stay intact, but
921
- * nothing is started and every call answers that trading runs in the gateway. */
922
- function buildInspectionTools() {
917
+ // from the relay). An inspection registration never starts a runtime: it
918
+ // gets the live runtime's tools when this process has one (the gateway's
919
+ // per-turn tool-discovery pass on OpenClaw 2026.9.6), else call-time stubs.
920
+ /** Tools registered from an inspection registration (a CLI command, or an
921
+ * OpenClaw discovery pass) when no runtime is running yet. Same names and
922
+ * schemas, so the manifest contract and tool listings stay intact.
923
+ *
924
+ * ★ Each call looks up the process runtime AT CALL TIME and runs the real
925
+ * tool if one exists (Ardi report #9, 2026-09-26): OpenClaw builds the tool
926
+ * list an agent turn executes through a `tool-discovery` registration INSIDE
927
+ * the gateway (every turn on 2026.9.6; on older builds a discovery registry
928
+ * built before the runtime could serve the first turn after a restart). A
929
+ * stub that only refused left the agent unable to open, close or move a stop
930
+ * while `/tools/invoke` (the full registry) stayed green. Only a process with
931
+ * no runtime at all — an `openclaw` CLI command — gets the refusal. */
932
+ function buildInspectionTools(context) {
923
933
  return Object.keys(TOOL_PARAMS).map((name) => ({
924
934
  name,
925
935
  label: name,
926
- description: 'ReefClaw trading tool. It runs inside the OpenClaw gateway process; this process is not the gateway.',
936
+ description: `ReefClaw trading tool ${name}.`,
927
937
  parameters: TOOL_PARAMS[name],
928
- execute: async () => jsonResult({
929
- error: 'not_available_in_this_process',
930
- message: 'ReefClaw trading tools run only inside the OpenClaw gateway. This process is an OpenClaw CLI command, '
931
- + 'so nothing was executed. Use the tool from a normal agent turn (heartbeat or chat).',
932
- }),
938
+ execute: async (...args) => {
939
+ const live = processRuntime();
940
+ const real = live.initialised && live.toolsFactory
941
+ ? live.toolsFactory(context).find(t => t.name === name)
942
+ : undefined;
943
+ if (real)
944
+ return real.execute(...args);
945
+ return jsonResult({
946
+ error: 'not_available_in_this_process',
947
+ message: 'This ReefClaw tool registration has no trading runtime in this process, so nothing was executed. '
948
+ + 'The runtime runs inside the OpenClaw gateway; if this is an agent turn, the gateway may still be starting — retry shortly.',
949
+ });
950
+ },
933
951
  }));
934
952
  }
935
953
  const paperTradingPlugin = {
@@ -958,9 +976,18 @@ const paperTradingPlugin = {
958
976
  // reporters, the connector — may start in such a process.
959
977
  const role = resolveProcessRole({ registrationMode: api.registrationMode });
960
978
  if (role.role === 'inspect') {
961
- logger.debug(TAG, `register() in a non-runtime process (${role.reason}) — tool names only, runtime not started`);
962
- const inspectionTools = buildInspectionTools();
963
- api.registerTool(() => inspectionTools, { names: inspectionTools.map(t => t.name) });
979
+ // An inspection registration never STARTS a runtime. But when this
980
+ // process already runs one (the gateway, whose per-turn tool list comes
981
+ // from a tool-discovery registration on OpenClaw 2026.9.6), the agent
982
+ // must get the live tools — Ardi report #9.
983
+ const live = processRuntime();
984
+ if (live.initialised && live.toolsFactory) {
985
+ api.registerTool(live.toolsFactory, { names: live.toolNames });
986
+ return;
987
+ }
988
+ logger.debug(TAG, `register() without a runtime (${role.reason}) — tool names only, runtime not started`);
989
+ const names = Object.keys(TOOL_PARAMS);
990
+ api.registerTool((context) => buildInspectionTools(context), { names });
964
991
  return;
965
992
  }
966
993
  // Idempotency guard (see note above). Process-wide: every module instance
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "reefclaw-paper-trading",
3
3
  "name": "ReefClaw Trading",
4
- "version": "0.1.41",
4
+ "version": "0.1.43",
5
5
  "description": "Supervised trading plugin for the ReefClaw dashboard. It runs on YOUR machine and starts in PAPER mode with no API keys. It cannot trade real funds until you supply exchange credentials and step PAPER→MICRO_LIVE→LIVE yourself from the dashboard — the agent cannot make that change (the tool is refused without operator provenance). Exchange keys stay local, are used only to sign requests to the exchange, and are never transmitted to ReefClaw (asserted by a test in this package). Trading telemetry — positions, fills, decision journal — is sent to ReefClaw to render the dashboard. Every live position carries exchange-native protective stops. Remote updates to the agent's trading instructions are applied only after an Ed25519 signature is verified against a public key pinned in this build. It runs on gateway startup and supervises a local connector process; the package README lists every path it writes and everything it sends. It never changes the gateway's auth settings.",
6
6
  "author": "ReefClaw",
7
7
  "activation": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reefclaw/openclaw-plugin",
3
- "version": "0.1.41",
3
+ "version": "0.1.43",
4
4
  "description": "ReefClaw supervised trading plugin for OpenClaw. Runs entirely on YOUR machine and starts in PAPER mode — it cannot trade real funds until you supply exchange credentials and walk the PAPER→MICRO_LIVE→LIVE ladder yourself from the ReefClaw dashboard (the agent cannot make that change; it is refused without operator provenance). Your exchange API keys stay on your machine to sign requests to the exchange and are NEVER sent to ReefClaw — a test in the package asserts this. What does reach ReefClaw is trading telemetry for the dashboard (positions, fills, decision journal). Live trading always carries exchange-native protective stops. Trading instructions can be updated remotely, and every update must carry a valid Ed25519 signature verified against a key pinned in this build before it is applied. Install from ClawHub on OpenClaw 2026.8.1+ (Control UI Plugins > Discover, or /plugins install clawhub:@reefclaw/openclaw-plugin then the same with --accept-capabilities after reviewing the listed capabilities), or with the ReefClaw connect installer (@reefclaw/connect on npm, pinned to the exact release named in the bundled skill). It runs on gateway startup, supervises a local connector process, and writes only under ~/.reefclaw and OpenClaw's own skill, config and cron locations; the README lists every path it writes and everything it sends. It never changes the gateway's auth settings.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -8,5 +8,15 @@
8
8
  "index.js": "03b9e7ea593dfd8b8cc372603967f2be3bf87b05835dc32b1147cc3579e28cd7",
9
9
  "tools/create-order.js": "b0244ff69cb5b4a44e18c7ceaf91669ee19649d0e6b18bb857aa47ca80f63b2a",
10
10
  "risk/pre-trade-check.js": "15ba2c91e7a1f5ea03a2452eda40d489eda406a434e3bc3e9b7e024190f6a22f"
11
+ },
12
+ "0.1.41": {
13
+ "index.js": "163bb536a4600a10bcc0c6af239982a332b510d93f0a8d54214e91a62c74f8ef",
14
+ "tools/create-order.js": "b0244ff69cb5b4a44e18c7ceaf91669ee19649d0e6b18bb857aa47ca80f63b2a",
15
+ "risk/pre-trade-check.js": "15ba2c91e7a1f5ea03a2452eda40d489eda406a434e3bc3e9b7e024190f6a22f"
16
+ },
17
+ "0.1.42": {
18
+ "index.js": "77147e4c43713ed0641e098718182640508b99b67a33b53bad745bd19e0aa160",
19
+ "tools/create-order.js": "b0244ff69cb5b4a44e18c7ceaf91669ee19649d0e6b18bb857aa47ca80f63b2a",
20
+ "risk/pre-trade-check.js": "15ba2c91e7a1f5ea03a2452eda40d489eda406a434e3bc3e9b7e024190f6a22f"
11
21
  }
12
22
  }
@@ -12,5 +12,7 @@
12
12
  "0.1.38": "Fixes the restart that 0.1.37 introduced for Docker and other unmanaged gateways: the connector now asks for OpenClaw's update restart, the one kind that replaces the running process so the new files actually load (the previous kind restarted in place and kept the old code while reporting success). The installer no longer claims a self-restart it cannot verify; the connector or the dashboard's Restart now button performs it, waiting for an in-progress agent run to finish first.",
13
13
  "0.1.39": "wave9: a refusal by the plugin's own risk gate no longer burns the whole trading day (the authorization is released and a fresh one can be requested inside the window; a wrong-side stop still latches). wave9 evidence: the previous day's funding settlement stamped a few milliseconds late no longer makes the whole night's evidence read as incomplete. Model health: the model note OpenClaw 2026.9 writes at the start of every session no longer counts as a model switch, so the model dot can be green. Readiness: the plugin now reports whether its own files match the release (an install-location class, the process start time and fingerprints of three of its own files; never a path, never file contents; switch RC_READINESS_INTEGRITY=off), so a stale or modified install can be told apart from the release without touching the box.",
14
14
  "0.1.40": "One-click updates now work on boxes without a gateway terminal (OpenClaw older than 2026.7, terminal disabled) and inside Docker: the connector runs the installer itself in a files-only mode that never touches the OpenClaw CLI or config, then asks the gateway to restart itself. The installer gains --files-only for the same purpose.",
15
- "0.1.41": "Fixes the dashboard link dropping and reconnecting (seen as a connect/disconnect loop): when the agent or anyone ran an openclaw command, that command started a second copy of the trading plugin and its connector, which knocked the real one off the relay. The trading runtime now starts only inside the OpenClaw gateway, once per process (also covers OpenClaw 2026.9.5+ loading the plugin twice); openclaw commands see the tool names but nothing runs there. Paper venue switch: Binance <-> Hyperliquid can now be switched from the dashboard in paper mode without exchange keys (refused while live). Stop watcher: right after a restart, a position waiting for its first price is reported as warming up instead of as an unenforceable stop; an alarm still fires if the price never arrives. Readiness: OpenClaw 2026.9.6's plugin run copy is reported as its own install location."
15
+ "0.1.41": "Fixes the dashboard link dropping and reconnecting (seen as a connect/disconnect loop): when the agent or anyone ran an openclaw command, that command started a second copy of the trading plugin and its connector, which knocked the real one off the relay. The trading runtime now starts only inside the OpenClaw gateway, once per process (also covers OpenClaw 2026.9.5+ loading the plugin twice); openclaw commands see the tool names but nothing runs there. Paper venue switch: Binance <-> Hyperliquid can now be switched from the dashboard in paper mode without exchange keys (refused while live). Stop watcher: right after a restart, a position waiting for its first price is reported as warming up instead of as an unenforceable stop; an alarm still fires if the price never arrives. Readiness: OpenClaw 2026.9.6's plugin run copy is reported as its own install location.",
16
+ "0.1.42": "Fixes a problem in 0.1.41 on OpenClaw 2026.9.6: the agent's own tool calls (heartbeats and chat) were answered with \"not available in this process\" instead of running, so the agent could not trade or move stops. The agent now always gets the live tools. On older OpenClaw the same thing could affect the first heartbeat after a restart; that is fixed too.",
17
+ "0.1.43": "Connector fixes. The ReefClaw heartbeat is now created even when your OpenClaw already has its own job named like a heartbeat (before, the connector could mistake that job for ours, so the agent's trading heartbeat never ran); a box affected by this repairs itself after updating. The trading instructions (SKILL.md) are re-applied correctly when an older copy is found, instead of failing on every reconnect."
16
18
  }
@@ -101,7 +101,7 @@ When a user gives you this message (or just a bare `Here's my ReefClaw token: rc
101
101
  If the ReefClaw trading tools are not present yet, the **user** installs them by running this once, in a terminal on the machine running OpenClaw (inside the container, if OpenClaw runs in Docker):
102
102
 
103
103
  ```
104
- npx --yes @reefclaw/connect@0.1.54
104
+ npx --yes @reefclaw/connect@0.1.56
105
105
  ```
106
106
 
107
107
  That is the whole install. It places the plugin, sets up the connector, restarts the gateway where it can, and prints what it changed. If its closing lines say **GATEWAY NOT RESTARTED**, the plugin is on disk but not running yet: restarting is the user's step (in Docker, `docker restart <container>` from the host; otherwise restarting OpenClaw). Tell the user exactly that and stop — do not restart, signal or kill any process, do not run docker or service commands, and do not edit the gateway config, even if you could. The plugin reports its own version to ReefClaw after the restart; never post readiness, version or health reports yourself. The version is pinned on purpose: the line names the exact connector release this plugin was published with, so what runs on the machine is reviewable and never "whatever the registry serves today". It needs no ReefClaw token — the connection is the separate paste step above, and the connector picks it up on its own.