@inetafrica/open-claudia 3.0.22 β†’ 3.0.24

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
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## v3.0.24 β€” Spaces threads read like a group chat; memory notes go quiet unless you're watching
4
+
5
+ - **The "🧠 Jotted this down" memory notes are now gated behind `/recall`.** After each turn the pack reviewer still writes to long-term memory exactly as before β€” but the chat announcement of what it filed away only surfaces when `/recall` is on (`state.settings.showRecall`), the same toggle that already gates the recall/tool banners. Off by default, so ordinary turns stay clean; flip `/recall on` to watch memory (and recall) work. That announcement was the one learning-surface bypassing the gate; it no longer does.
6
+ - **Re-ship of v3.0.23, which never published.** Its tag build failed the version-approval CI gate β€” `package.json` was bumped without mirroring the assertion in `test-provider-language.js`. Same gate that caught v3.0.21; corrected here as v3.0.24, exactly as v3.0.22 re-shipped v3.0.21.
7
+ - **An engaged Spaces turn now arrives knowing the whole thread, not just one bare comment.** When a tag/reply/assignment engages the bot on a task, the router pulls a **thread-context block** from the adapter and prepends it to the prompt: the task's metadata (title, status/priority/due, assignees, a clipped description) **plus every comment posted since the bot last replied**. So the bot answers like a member who's been reading along, instead of replying blind. The full task + entire comment history stays one `spaces read` tool call away.
8
+ - **"Group chat the bot is a member of."** Untagged comments still never trigger a turn (the engage gate is unchanged β€” mentions/replies/assignments only). But the next time the bot *is* addressed, everything said in between is caught up in one batched injection. The delta is derived server-side from a per-task **context watermark**, so a missed poll or a restart self-heals β€” the next engage still pulls the true set. The bot's own prior reply is re-surfaced too, which keeps continuity across auto-compaction.
9
+ - **Bounded by construction.** The catch-up is capped (newest 12 comments, each body clipped) so a busy thread can't blow the prompt; the very first engage on a long-idle task shows recent history, not the entire backlog. Auto-compaction absorbs the rest β€” no new wiring, it's already per-thread and token-triggered.
10
+ - **Rendered cleanly, not stitched into the message.** Context is delivered via a new channel-agnostic `buildThreadContext()` adapter method that the router renders β€” `envelope.text` stays pristine, so command detection and the credential scrub are unaffected (the old approach mutated the message text). The seam is generic: Kazee group rooms can implement the same method later, and the since-last-reply delta is exactly the input a future lightweight activation agent would judge to decide whether to chip in unprompted β€” provisioned, not built.
11
+ - **The bot now leaves a read receipt, like a teammate.** When an engaged turn catches up on a thread, it marks every comment it just read as *seen by* the bot (`comments/mark-seen` β†’ server `$addToSet`s the bot into each comment's `seenBy` and broadcasts `comment:seen`). So a human watching a task sees the bot appear on "seen by" exactly like another member the moment it reads their message β€” not only when it replies. Fire-and-forget and fully swallowed: it rides the same member/admin `comments.update` scope the reply already uses, and a scope or network failure degrades to silent (never breaks or delays a turn). Only ever fires on an engaged turn β€” the awareness poll still never mutates Spaces state.
12
+ - **Agent-space / OpenClaw:** no new deps, no new env, no schema change; Docker image builds identically (FROM the pre-baked `:base`). Existing pods pick this up on their next approved upgrade.
13
+
3
14
  ## v3.0.20 β€” Spaces answers tags, and knows the owner
4
15
 
5
16
  - **A tag now actually gets a reply.** The Spaces server labels notifications with **plural** categories (`mentions`, `comments`, `reactions`, `task_updated`), but the conversational plane's engage set only matched the singular `mention` β€” so every real `@`-tag was silently downgraded to awareness-only and the bot never spoke. `ENGAGE_TYPES` now matches the plural forms (`mentions`/`replies`, singular aliases kept for safety). Plain comments, reactions and task updates stay awareness-only, so the "untagged comments hit the radar without auto-answering" rule is unchanged. Confirmed live: a real `mentions` notification was arriving and being dropped.
@@ -30,6 +30,17 @@ const spacesState = require("./state");
30
30
  // never auto-reply.
31
31
  const ENGAGE_TYPES = new Set(["mention", "mentions", "reply", "replies", "task_assigned"]);
32
32
 
33
+ // Description clip length for the front-loaded task context. Long descriptions
34
+ // are deliberately truncated β€” the agent can pull the full task + comment
35
+ // history on demand via the `spaces` tool's read verb, so we keep the prompt
36
+ // lean instead of pasting a wall of text every turn.
37
+ const TASK_DESC_LIMIT = 800;
38
+ // Catch-up bounds for the "comments since your last reply" block. Cap the count
39
+ // (also bounds the very first engage, which has no watermark) and clip each body
40
+ // so a busy thread can't blow the prompt. Auto-compaction absorbs the rest.
41
+ const CATCHUP_MAX = 12;
42
+ const CATCHUP_BODY_LIMIT = 500;
43
+
33
44
  class SpacesAdapter {
34
45
  constructor({ id = "spaces", url = "https://api.spaces.kazee.africa", token, ownerUserId = "", taskLoopMode = "advisory", pollMs }) {
35
46
  this.id = id;
@@ -272,7 +283,10 @@ class SpacesAdapter {
272
283
  }
273
284
 
274
285
  // Await every registered message listener (the router turn resolves when the
275
- // agent run completes) so the per-task chain doesn't advance early.
286
+ // agent run completes) so the per-task chain doesn't advance early. Task
287
+ // context is no longer stitched onto envelope.text here β€” the router pulls it
288
+ // via buildThreadContext() and renders it, keeping envelope.text pristine for
289
+ // command detection and the credential scrub.
276
290
  async _deliverMessage(envelope) {
277
291
  for (const fn of [...(this._listeners.message || [])]) {
278
292
  try { await fn(envelope); }
@@ -280,6 +294,165 @@ class SpacesAdapter {
280
294
  }
281
295
  }
282
296
 
297
+ // Channel-agnostic thread-context provider (ChannelAdapter contract). The
298
+ // router calls this on an engaged turn and prepends the returned contextBlock
299
+ // to the prompt, so the agent arrives on a Spaces thread already knowing what
300
+ // it's looking at β€” the task's metadata AND every comment posted since it last
301
+ // replied β€” instead of answering blind to one bare comment. Two read-only GETs
302
+ // (task + comments); any failure returns null so the reply still goes out.
303
+ //
304
+ // "Task as a group chat the bot is a member of": untagged comments never fire a
305
+ // turn (ENGAGE_TYPES gates that), but they're caught up here the next time the
306
+ // bot IS addressed. The delta is server-derived from a watermark, so a missed
307
+ // poll or a restart self-heals β€” the next engage still pulls the true set.
308
+ //
309
+ // The same _commentsSince() delta is the exact input a future Haiku activation
310
+ // agent would judge to decide whether to chip in unprompted β€” left as a seam,
311
+ // not built.
312
+ async buildThreadContext(envelope) {
313
+ const taskId = envelope?.spaces?.taskId;
314
+ if (!taskId) return null;
315
+
316
+ let task = null;
317
+ try { task = await this.client.getTask(taskId); }
318
+ catch (e) { task = null; }
319
+
320
+ const lines = ["[Kazee Spaces thread context]"];
321
+ lines.push(`Task: ${(task && task.title) || envelope.spaces?.title || "(untitled task)"}`);
322
+
323
+ if (task && typeof task === "object") {
324
+ const meta = [];
325
+ if (task.status) meta.push(`Status: ${task.status}`);
326
+ if (task.priority) meta.push(`Priority: ${task.priority}`);
327
+ if (task.dueDate) meta.push(`Due: ${String(task.dueDate).slice(0, 10)}`);
328
+ if (meta.length) lines.push(meta.join(" Β· "));
329
+
330
+ const people = this._collectPeople(task);
331
+ if (people.length) lines.push(`Assignees: ${people.join(", ")}`);
332
+
333
+ const desc = contentText(task.description || task.content || "");
334
+ if (desc) {
335
+ const clipped = desc.length > TASK_DESC_LIMIT
336
+ ? desc.slice(0, TASK_DESC_LIMIT).trimEnd() + " …[truncated]"
337
+ : desc;
338
+ lines.push(`Description: ${clipped}`);
339
+ }
340
+ }
341
+ lines.push(`(Full task + entire comment history on demand: \`spaces\` tool β†’ read --task-id ${taskId}.)`);
342
+
343
+ // Catch-up: comments since the bot's last engaged turn, minus the triggering
344
+ // comment (already the main prompt). Advance the watermark to the newest
345
+ // comment seen so nothing is re-injected next time.
346
+ try {
347
+ const { catchUp, watermark, seenIds } = await this._commentsSince(taskId, envelope.text || "");
348
+ if (catchUp.length) {
349
+ lines.push("");
350
+ lines.push("Comments since your last reply (oldest→newest):");
351
+ for (const c of catchUp) lines.push(` [${c.ago}] ${c.who}: ${c.body}`);
352
+ }
353
+ if (watermark) { try { spacesState.setContextWatermark(taskId, watermark); } catch (e) {} }
354
+ // Read receipt: the bot has now read this thread β€” mark those comments seen
355
+ // so a human sees the bot on "seen by" like a teammate. Fire-and-forget.
356
+ if (seenIds && seenIds.length) this._markSeen(taskId, seenIds);
357
+ } catch (e) { /* catch-up is best-effort; metadata still ships */ }
358
+
359
+ const who = envelope.from?.name || "Someone";
360
+ lines.push("");
361
+ lines.push(`${who} just commented β€” reply to this:`);
362
+
363
+ return { contextBlock: lines.join("\n") };
364
+ }
365
+
366
+ // Fire-and-forget read-receipt write. Deliberately not awaited by
367
+ // buildThreadContext: the engaged reply must never wait on it, and any failure
368
+ // (a scope 403 if the bot token lacks comments.update, a transport blip) is
369
+ // swallowed. It self-verifies on the first real engage β€” a persistent 403 in
370
+ // the logs is the signal that the token needs the comments.update grant.
371
+ _markSeen(taskId, commentIds) {
372
+ Promise.resolve()
373
+ .then(() => this.client.markCommentsSeen({ taskId, commentIds }))
374
+ .catch((e) => console.error("spaces mark-seen:", e.message));
375
+ }
376
+
377
+ // Read-only comment delta for a task: everything newer than the stored context
378
+ // watermark, capped and clipped, with the triggering comment (matched by body)
379
+ // removed so it isn't echoed. Also returns the watermark to advance to (the
380
+ // newest comment's createdAt). Shared shape so a future activation agent can
381
+ // reuse it to reason over "what's been said since I last spoke".
382
+ async _commentsSince(taskId, triggeringText) {
383
+ let comments = [];
384
+ try { comments = await this.client.listComments(taskId, 100); }
385
+ catch (e) { return { catchUp: [], watermark: null, seenIds: [] }; }
386
+ if (!Array.isArray(comments) || !comments.length) return { catchUp: [], watermark: null, seenIds: [] };
387
+
388
+ const ts = (c) => Date.parse(c.createdAt || c.updatedAt || 0) || 0;
389
+ comments.sort((a, b) => ts(a) - ts(b));
390
+ const watermark = comments[comments.length - 1].createdAt || null;
391
+ // Every comment the bot just pulled into this turn is one it has now read β€”
392
+ // the id set for the read receipt. The server no-ops the bot's own and
393
+ // already-seen comments, so passing the whole thread is safe and idempotent.
394
+ const seenIds = comments.map((c) => c._id || c.id).filter(Boolean).map(String);
395
+
396
+ const since = spacesState.getContextWatermark(taskId);
397
+ const sinceMs = since ? Date.parse(since) || 0 : 0;
398
+ const trigger = contentText(triggeringText || "").trim();
399
+
400
+ const fresh = comments.filter((c) => (sinceMs ? ts(c) > sinceMs : true));
401
+ const rendered = fresh
402
+ .map((c) => {
403
+ const au = c.authorId || c.author || c.userId || {};
404
+ const who = (typeof au === "object")
405
+ ? (`${au.firstName || ""} ${au.lastName || ""}`.trim() || au.name || au.email || "?")
406
+ : String(au || "?");
407
+ const body = contentText(c.content || "");
408
+ return { who, body: body.trim(), createdAt: c.createdAt };
409
+ })
410
+ .filter((c) => c.body && c.body !== trigger)
411
+ .map((c) => ({
412
+ who: c.who,
413
+ ago: this._ago(c.createdAt),
414
+ body: c.body.length > CATCHUP_BODY_LIMIT ? c.body.slice(0, CATCHUP_BODY_LIMIT).trimEnd() + " …" : c.body,
415
+ }));
416
+
417
+ // Newest N β€” a long-idle thread's very first engage shows recent history, not
418
+ // the entire backlog.
419
+ const catchUp = rendered.slice(-CATCHUP_MAX);
420
+ return { catchUp, watermark, seenIds };
421
+ }
422
+
423
+ // Compact relative-time label for a comment timestamp.
424
+ _ago(iso) {
425
+ const t = Date.parse(iso || 0);
426
+ if (!t) return "?";
427
+ const s = Math.max(0, Math.floor((Date.now() - t) / 1000));
428
+ if (s < 60) return `${s}s ago`;
429
+ const m = Math.floor(s / 60);
430
+ if (m < 60) return `${m}m ago`;
431
+ const h = Math.floor(m / 60);
432
+ if (h < 24) return `${h}h ago`;
433
+ return `${Math.floor(h / 24)}d ago`;
434
+ }
435
+
436
+ // Gather human-readable names attached to a task, deduped. Spaces uses a
437
+ // singular `assignee` object plus optional `assignees`/`members`/`participants`
438
+ // arrays depending on the endpoint, so we defensively merge all of them.
439
+ _collectPeople(task) {
440
+ const names = [];
441
+ const seen = new Set();
442
+ const add = (u) => {
443
+ if (!u || typeof u !== "object") return;
444
+ const full = `${u.firstName || ""} ${u.lastName || ""}`.trim() || u.name || u.email;
445
+ if (!full) return;
446
+ const key = String(u.id || u._id || full);
447
+ if (seen.has(key)) return;
448
+ seen.add(key);
449
+ names.push(full);
450
+ };
451
+ add(task.assignee);
452
+ for (const m of (task.assignees || task.members || task.participants || [])) add(m);
453
+ return names;
454
+ }
455
+
283
456
  // send() posts a comment back to the task thread. channelId is
284
457
  // "task:<taskId>"; opts.mentions is an array of {userId,label}; opts.replyTo
285
458
  // threads the reply under a comment id (parentId).
@@ -5,10 +5,14 @@
5
5
  // tool logs a human in for a bearer; here the bot presents its own kzb_ token
6
6
  // directly (Spaces accepts it β€” verified via central /api/principal/verify).
7
7
  //
8
- // Everything here is READ-ONLY except createComment (the conversational reply)
9
- // β€” the data/awareness plane never mutates Spaces state, so the poller carries
10
- // no write risk. Notification "seen" tracking is a local cursor, not a
11
- // server-side mark-read, precisely to keep that plane read-only.
8
+ // Everything here is READ-ONLY except two writes, both member/admin-tier and
9
+ // both only fired on an ENGAGED turn (never from the awareness poll):
10
+ // β€’ createComment β€” the conversational reply (comments.create).
11
+ // β€’ markCommentsSeen β€” the read receipt: marks the thread the bot just read as
12
+ // seen by the bot, so a human sees it on "seen by" like a teammate
13
+ // (comments.update; server $addToSets seenBy + broadcasts comment:seen).
14
+ // The awareness/poll plane still never mutates Spaces state β€” notification "seen"
15
+ // tracking there is a local cursor, not a server-side mark-read.
12
16
 
13
17
  const https = require("https");
14
18
  const http = require("http");
@@ -178,6 +182,23 @@ class SpacesClient {
178
182
  const res = await this._post("/api/comments", payload);
179
183
  return (res && (res.comment || res.data)) || res || null;
180
184
  }
185
+
186
+ // The second write: mark a set of task comments as seen by the bot β€” the read
187
+ // receipt. The server $addToSets the bot into each comment's seenBy (skipping
188
+ // ones it already saw or authored) and broadcasts a `comment:seen` socket
189
+ // event, so a human sees the bot on "seen by" exactly like another teammate.
190
+ // Needs the comments.update scope β€” the same member/admin tier the working
191
+ // createComment already relies on. Best-effort at the call site.
192
+ async markCommentsSeen({ taskId, commentIds }) {
193
+ const ids = (Array.isArray(commentIds) ? commentIds : []).map(String).filter(Boolean);
194
+ if (!ids.length) return null;
195
+ const res = await this._post("/api/comments/mark-seen", {
196
+ targetType: "task",
197
+ targetId: taskId,
198
+ commentIds: ids,
199
+ });
200
+ return res || null;
201
+ }
181
202
  }
182
203
 
183
204
  module.exports = { SpacesClient, flattenContent, contentText, buildCommentContent, asArray };
@@ -92,6 +92,27 @@ function getCursor(taskId) {
92
92
  return s.tasks[String(taskId || "")] || null;
93
93
  }
94
94
 
95
+ // Context watermark: the createdAt (ISO) of the newest comment the bot has
96
+ // already folded into an engaged turn for this task. buildThreadContext reads
97
+ // it to compute the "comments since my last reply" delta and advances it after
98
+ // each engage, so the same comment is never re-injected. Distinct from the
99
+ // notification cursor above (which tracks awareness activity, not turn context).
100
+ function setContextWatermark(taskId, iso) {
101
+ const id = String(taskId || "");
102
+ if (!id || !iso) return;
103
+ const s = load();
104
+ const cur = s.tasks[id] || { count: 0 };
105
+ cur.contextAt = String(iso);
106
+ s.tasks[id] = cur;
107
+ save();
108
+ }
109
+
110
+ function getContextWatermark(taskId) {
111
+ const s = load();
112
+ const t = s.tasks[String(taskId || "")];
113
+ return (t && t.contextAt) || null;
114
+ }
115
+
95
116
  // Mark that a task has had an agent turn emitted for it (from any source: a
96
117
  // socket/poll notification OR the reconciliation poll). The reconciliation poll
97
118
  // reads this to avoid re-engaging a task the socket already handled β€” dedup is
@@ -212,7 +233,8 @@ function controlSnapshot() {
212
233
  }
213
234
 
214
235
  module.exports = {
215
- markProcessed, recordCursor, getCursor, markTaskEngaged, taskEngaged, snapshot, STATE_FILE,
236
+ markProcessed, recordCursor, getCursor, setContextWatermark, getContextWatermark,
237
+ markTaskEngaged, taskEngaged, snapshot, STATE_FILE,
216
238
  markSocketConnected, markRestConnected, setCentralConnected, isConnected,
217
239
  setMuted, setTaskLoopMode, taskLoopMode, conversationalActive, controlSnapshot,
218
240
  };
package/core/handlers.js CHANGED
@@ -1055,7 +1055,7 @@ register({
1055
1055
  }
1056
1056
  send(
1057
1057
  `Recall debug: ${settings.showRecall ? "on" : "off"}\n\n` +
1058
- "When on, I post a short \"🧠 Recall this turn\" line before each reply, showing which packs/entities surfaced (and, on the discoverer engine, why). Lets you watch recall work.",
1058
+ "When on, I post a short \"🧠 Recall this turn\" line before each reply, showing which packs/entities surfaced (and, on the discoverer engine, why), plus the \"🧠 Jotted this down\" notes whenever I update long-term memory. When off, recall and memory-writes still happen β€” you just don't see the banners.",
1059
1059
  { keyboard: { inline_keyboard: [
1060
1060
  [{ text: "On", callback_data: "rcl:on" }, { text: "Off", callback_data: "rcl:off" }],
1061
1061
  ] } },
package/core/router.js CHANGED
@@ -456,6 +456,24 @@ async function handleText(envelope) {
456
456
  }
457
457
  }
458
458
 
459
+ // Thread-membership context. Multi-participant thread surfaces (Kazee Spaces
460
+ // tasks today; Kazee group rooms later) can supply a context block β€” thread
461
+ // metadata plus any messages posted since the bot last replied β€” so an
462
+ // engaged turn arrives knowing the whole thread, not just the one triggering
463
+ // message. The adapter owns WHAT to fetch; the router owns WHEN and HOW to
464
+ // render it. Channels without the method (Telegram, Kazee DM, voice, web) are
465
+ // untouched. Best-effort: a failure never blocks the turn.
466
+ if (typeof envelope.adapter?.buildThreadContext === "function") {
467
+ try {
468
+ const threadCtx = await envelope.adapter.buildThreadContext(envelope);
469
+ if (threadCtx && threadCtx.contextBlock) {
470
+ prompt = `${threadCtx.contextBlock}\n\n${prompt}`;
471
+ }
472
+ } catch (e) {
473
+ console.error("router: buildThreadContext:", e.message);
474
+ }
475
+ }
476
+
459
477
  return runAgent(prompt, runContext.cwd, envelope.messageId, {
460
478
  runContext,
461
479
  imagePaths,
package/core/runner.js CHANGED
@@ -1836,9 +1836,12 @@ function createForegroundService({ state, store, stopTyping, capture, ownsAdmiss
1836
1836
  return service;
1837
1837
  }
1838
1838
 
1839
- async function handoffMemoryReview(result, runContext, store) {
1839
+ async function handoffMemoryReview(result, runContext, store, state) {
1840
1840
  if (!result.ok || !result.text || runContext.purpose !== "foreground") return;
1841
1841
  const recall = result.recallMetadata || {};
1842
+ // Memory is always written; the chat announcement of what was jotted is a
1843
+ // /recall-gated debug surface β€” silent unless the owner turned recall on.
1844
+ const showRecall = !!state?.settings?.showRecall;
1842
1845
  packReview.reviewTurn({
1843
1846
  userText: runContext.userPrompt,
1844
1847
  assistantText: result.text,
@@ -1853,7 +1856,7 @@ async function handoffMemoryReview(result, runContext, store) {
1853
1856
  return speaker ? { name: speaker.name, isOwner: !!speaker.isOwner } : null;
1854
1857
  } catch (_) { return null; }
1855
1858
  })(),
1856
- announce: (text) => chatContext.run(store, () => send(text)),
1859
+ announce: showRecall ? (text) => chatContext.run(store, () => send(text)) : null,
1857
1860
  });
1858
1861
  }
1859
1862
 
@@ -1916,7 +1919,7 @@ async function executeAdmittedRun(runContext, state, store, capture, ownsAdmissi
1916
1919
  if (!capture && service.turnObserver && runContext.purpose === "foreground") {
1917
1920
  try { service.turnObserver.onTurnSettled(!!result.ok); } catch (e) { /* best-effort */ }
1918
1921
  }
1919
- if (!internalCapture) await handoffMemoryReview(result, runContext, store);
1922
+ if (!internalCapture) await handoffMemoryReview(result, runContext, store, state);
1920
1923
  if (!internalCapture && state.settings?.backend === runContext.provider && state.settings.budget) {
1921
1924
  state.settings.budget = null;
1922
1925
  try { saveState({ strict: true }); }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inetafrica/open-claudia",
3
- "version": "3.0.22",
3
+ "version": "3.0.24",
4
4
  "description": "An always-on, provider-agnostic coding-agent harness for Claude Code and OpenAI Codex via chat",
5
5
  "main": "bot.js",
6
6
  "bin": {
@@ -32,18 +32,16 @@ assert.doesNotMatch(setup, /Your Claude Code bot is connected|Description=Claude
32
32
 
33
33
  const pkg = JSON.parse(read("package.json"));
34
34
  assert.match(pkg.description, /provider-agnostic coding-agent harness/i);
35
- // 3.0.22 approved by Sumeet 2026-07-14 ("Yeh push out"): per-thread conversations
36
- // + Spaces output hygiene. The live conversation now keys by THREAD
37
- // (transport:channelId via currentConversationKey off AsyncLocalStorage) instead
38
- // of by canonical identity alone, so Telegram DM and each Spaces task get isolated
39
- // sessions/transcripts while memory + guardrails + soul stay one global brain.
40
- // seedConversationContinuity does a one-time non-destructive COPY of the legacy
41
- // "Workspace" session/usage/history into the home conversationKey (anchored by
42
- // canonical match; secondary channels start clean). turn-observer suppresses the
43
- // Spaces <b> banner + tool-trace leak. 3.0.21 shipped the same work but its CI
44
- // build failed on THIS gate (package.json bumped without the assertion) β€” nothing
45
- // published under 3.0.21; 3.0.22 is the corrected re-ship.
46
- assert.strictEqual(pkg.version, "3.0.22", "release version must remain unchanged without explicit approval");
35
+ // 3.0.24 approved by Sumeet 2026-07-14: turn-context add-on (an engaged Spaces
36
+ // turn gets task metadata + every comment since the bot's last reply, via the
37
+ // channel-agnostic buildThreadContext() adapter seam the router prepends) PLUS
38
+ // /recall now gates the "🧠 Jotted this down" memory-write announcements β€” memory
39
+ // still writes every turn, the chat note only surfaces when /recall is on
40
+ // (state.settings.showRecall), matching how the recall/tool banners already gate.
41
+ // 3.0.23 shipped the turn-context work but its CI build failed on THIS gate
42
+ // (package.json bumped without updating the assertion) β€” nothing published under
43
+ // 3.0.23; 3.0.24 is the corrected re-ship (same pattern as 3.0.21 β†’ 3.0.22).
44
+ assert.strictEqual(pkg.version, "3.0.24", "release version must remain unchanged without explicit approval");
47
45
  for (const keyword of ["claude", "codex", "coding-agent", "provider-agnostic"]) {
48
46
  assert.ok(pkg.keywords.includes(keyword), `package keyword missing: ${keyword}`);
49
47
  }