A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.
Keep a working member's lines from filling the group
Fei2411014433197071
diff --git a/ds-bot/client.js b/ds-bot/client.jsindex 698b158c..f814e18c 100644--- a/ds-bot/client.js+++ b/ds-bot/client.js@@ -4335,9 +4335,9 @@ function toolActivity(name, arg, findBot, self) {}}function workPhrase(doing) {- const { tool, note, target, switching } = typeof doing === "string" ? { tool: doing } : doing ?? {};+ const { tool, said, note, target, switching } = typeof doing === "string" ? { tool: doing } : doing ?? {};if (switching) return t("Moving to a fresh conversation");- const own = note?.replace(/[\s.。…]+$/u, "");+ const own = (said || note)?.replace(/[\s.。…]+$/u, "");if (own) return own;if (!tool) return t("Thinking about it");const label = toolActivity(tool, () => void 0, () => void 0)?.label ?? t("On it");@@ -4766,7 +4766,7 @@ var PinMark = () => (0, import_react8.createElement)("span", { className: "bt-pivar useApproval = (useWork, match) => useWork ? useWork((work) => (work.approvals ?? []).some(match)) : false;var useGroupWork = (useWork, pick2) => useWork ? useWork((work) => JSON.stringify(pick2(work.rooms ?? {}))) : "[]";var workKeys = (text) => JSON.parse(text);-var doingOf = ({ tool, note, target, switching }) => ({ tool, note, target, switching });+var doingOf = ({ tool, said, note, target, switching }) => ({ tool, said, note, target, switching });var workLine = (lead, doing, more) => (0, import_react8.createElement)(Shimmer, null, `${lead} · ${workPhrase(doing)}…${more > 0 ? ` +${more}` : ""}`);function BotRow({ bot, roster, actions, useSessions, useSessionStatus, useSessionRetainInfo, useActivity, useWork, wide, marked }) {const id = bot.id;diff --git a/ds-bot/src/client/cells.js b/ds-bot/src/client/cells.jsindex 4656057f..2695e45d 100644--- a/ds-bot/src/client/cells.js+++ b/ds-bot/src/client/cells.js@@ -536,12 +536,13 @@ function toolActivity(name, arg, findBot, self) {}}-// What a Bot busy elsewhere is doing: its running call's own description, else the kind-// of tool and what it works on. `doing` is a work entry, or just a tool name.+// What a Bot busy elsewhere is doing: what it said in the step it is on, its running+// call's own description, else the kind of tool and what it works on. `doing` is a work+// entry, or just a tool name.export function workPhrase(doing) {- const { tool, note, target, switching } = typeof doing === 'string' ? { tool: doing } : doing ?? {}+ const { tool, said, note, target, switching } = typeof doing === 'string' ? { tool: doing } : doing ?? {}if (switching) return t('Moving to a fresh conversation')- const own = note?.replace(/[\s.。…]+$/u, '')+ const own = (said || note)?.replace(/[\s.。…]+$/u, '')if (own) return ownif (!tool) return t('Thinking about it')const label = toolActivity(tool, () => undefined, () => undefined)?.label ?? t('On it')diff --git a/ds-bot/src/client/sidebar.js b/ds-bot/src/client/sidebar.jsindex 78355413..254d0b89 100644--- a/ds-bot/src/client/sidebar.js+++ b/ds-bot/src/client/sidebar.js@@ -33,7 +33,7 @@ const useApproval = (useWork, match) => (useWork ? useWork(work => (work.approva// Picked as text, so a row redraws only when what it shows changes.const useGroupWork = (useWork, pick) => (useWork ? useWork(work => JSON.stringify(pick(work.rooms ?? {}))) : '[]')const workKeys = text => JSON.parse(text)-const doingOf = ({ tool, note, target, switching }) => ({ tool, note, target, switching })+const doingOf = ({ tool, said, note, target, switching }) => ({ tool, said, note, target, switching })const workLine = (lead, doing, more) => h(Shimmer, null, `${lead} · ${workPhrase(doing)}…${more > 0 ? ` +${more}` : ''}`)function BotRow({ bot, roster, actions, useSessions, useSessionStatus, useSessionRetainInfo, useActivity, useWork, wide, marked }) {diff --git a/ds-bot/src/host/constants.js b/ds-bot/src/host/constants.jsindex a174520e..ca764f1e 100644--- a/ds-bot/src/host/constants.js+++ b/ds-bot/src/host/constants.js@@ -29,6 +29,8 @@ export const MAX_UNATTENDED_MESSAGES = 40export const MAX_UNREAD_REQUESTS = 10export const MAX_EXCHANGES = 600export const ROOM_REPLY_TIMEOUT_MS = 240_000+// How often at most what a member says while it works reaches its group.+export const ROOM_STEP_GAP_MS = 120_000export const SOURCE_KIND = 'bot'// The fixed reply that opens a fresh conversation part; it is never shown or sent on.export const HANDOFF_ACK = 'Noted. I have my handoff note and carry on from here.'diff --git a/ds-bot/src/host/groups.js b/ds-bot/src/host/groups.jsindex 53bbd751..2873da83 100644--- a/ds-bot/src/host/groups.js+++ b/ds-bot/src/host/groups.js@@ -17,7 +17,7 @@import { randomUUID } from 'node:crypto'import { createUserMessage } from '@deepseek-ai/dsh-llm'import { defineTool } from '@deepseek-ai/dsh-tools'-import { ROOM_LATE_ROUNDS, ROOM_REPLY_TIMEOUT_MS, ROOM_WORK_GRACE_MS, SOURCE_KIND, TEAM_TOOLS } from './constants.js'+import { ROOM_LATE_ROUNDS, ROOM_REPLY_TIMEOUT_MS, ROOM_STEP_GAP_MS, ROOM_WORK_GRACE_MS, SOURCE_KIND, TEAM_TOOLS } from './constants.js'import { escapeRegExp, splitRef, textOf } from './text.js'import { mentionSpans } from '../shared/mentions.js'import { GROUP_REF, output } from './tools.js'@@ -85,7 +85,7 @@ export const referenceNote = references => (references?.length? `Conversations the user referenced in this round:\n\n${references.map(reference => reference.text).join('\n\n')}`: '')-const ROOM_REPLY = 'Reply with your message for the group, no name prefix: in a discussion, one or two short messages. When you are asked to do something, do it now with your tools. The group does not wait for you and sees each message you write while you work: say what you will do, share what matters as you go, and end with the result, never a promise to do it later. Reply [PASS] to stay silent when you have nothing new to add or the message is for someone else.'+const ROOM_REPLY = 'Reply with your message for the group, no name prefix: in a discussion, one or two short messages. When you are asked to do something, do it now with your tools. The group does not wait for you and sees what you write while you work: say what you will do, write again only when something matters, and end with the result, never a promise to do it later. Reply [PASS] to stay silent when you have nothing new to add or the message is for someone else.'const ROOM_CALLS = 'Writing "@Name" calls that member next, to answer or to do what you ask; when it finishes work you gave it, you answer its result. To only mention a member, write its name without "@".'const slotLabel = (slot) => {@@ -609,21 +609,25 @@ export function install(rt) {}rt.lateRoomReply = lateRoomReply- // A step's text from a member's turn in its group Session. While the member holds its- // place in a round, the text joins that round. Later, it joins whatever round runs in- // the group, or posts on its own. Only the members it calls with @ answer it, and not- // past the late round limit; the member that asked for the work answers the result.- rt.roomStepText = async (sessionId, info, raw) => {- const waiter = info?.role === 'room' ? rt.roomWaiters.get(info.exchangeId) : undefined- if (waiter !== undefined) return waiter.say(raw)+ const memberIn = (sessionId, info) => {const owner = rt.groupOwners.get(sessionId)const room = rt.roomOf(owner?.roomId ?? info?.roomId)const member = rt.botOf(owner?.botId)- if (room === undefined || member === undefined || !room.members.includes(member.id)) return- const text = stripOwnName(member.name, raw)- if (isPass(text)) return+ return room !== undefined && member !== undefined && room.members.includes(member.id) ? { room, member } : undefined+ }+ const callsIn = (room, member, text) => mentionsIn(text, room.members.map(rt.botOf).filter(Boolean)).found.some(bot => bot.id !== member.id)++ // What a member says while it works, into the group. While the member holds its place+ // in a round, it joins that round. Later, it joins whatever round runs in the group, or+ // posts on its own. Only the members it calls with @ answer it, and not past the late+ // round limit; the member that asked for the work answers the result.+ async function postStep(sessionId, info, text) {+ const waiter = info?.role === 'room' ? rt.roomWaiters.get(info.exchangeId) : undefined+ if (waiter !== undefined) return waiter.say(text)+ const { room, member } = memberIn(sessionId, info) ?? {}+ if (room === undefined) returnensureRoomLog(room)- const calls = mentionsIn(text, room.members.map(rt.botOf).filter(Boolean)).found.some(bot => bot.id !== member.id)+ const calls = callsIn(room, member, text)const running = [...rt.roomProgress.values()].find(round => round.roomId === room.id)if (!calls && running !== undefined) return postInRound(room, running, member, text)const quiet = !calls || (room.lateRounds ?? 0) >= ROOM_LATE_ROUNDS@@ -632,6 +636,41 @@ export function install(rt) {await postToRoom(room, member, text, { progress: true, hop: info?.hop ?? 0, ...(quiet ? { quiet: true } : {}) })}+ // A member that writes at every step would fill the group, so what it says goes out at+ // most once per gap, the lines since the last one together. The first line of work it+ // was asked for and a line that calls a member go at once; lines still held when the+ // turn ends give way to its result. Per group Session.+ const held = new Map()+ ctx.effect(() => () => { for (const entry of held.values()) clearTimeout(entry.timer) }, 'ds-bot: group step lines')+ const flushSteps = (sessionId) => {+ const entry = held.get(sessionId)+ clearTimeout(entry.timer)+ entry.timer = undefined+ if (entry.lines.length === 0) return undefined+ entry.last = Date.now()+ return postStep(sessionId, entry.info, entry.lines.splice(0).join('\n\n'))+ }+ rt.roomStepText = async (sessionId, info, raw, first) => {+ const { room, member } = memberIn(sessionId, info) ?? {}+ if (room === undefined) return+ const text = stripOwnName(member.name, raw)+ if (isPass(text)) return+ const entry = held.get(sessionId) ?? { last: 0, lines: [] }+ held.set(sessionId, entry)+ entry.info = info+ entry.lines.push(text)+ if ((first && info?.role === 'room') || callsIn(room, member, text) || Date.now() - entry.last >= ROOM_STEP_GAP_MS) return flushSteps(sessionId)+ entry.timer ??= setTimeout(() => void flushSteps(sessionId)?.catch(error => rt.warn('ds-bot: step lines from %s not posted: %s', member.name, error)), entry.last + ROOM_STEP_GAP_MS - Date.now())+ }+ rt.endRoomSteps = (sessionId) => {+ const entry = held.get(sessionId)+ if (entry === undefined) return+ clearTimeout(entry.timer)+ entry.timer = undefined+ entry.lines = []+ entry.last = Date.now()+ }+// The user stops a member's work in this group from the group's details. Messages// still waiting for that member here go with it.async function stopMemberWork(roomId, botId) {diff --git a/ds-bot/src/host/prompt.js b/ds-bot/src/host/prompt.jsindex 431b4fa2..7dc30735 100644--- a/ds-bot/src/host/prompt.js+++ b/ds-bot/src/host/prompt.js@@ -13,7 +13,7 @@ const TEAM_RULES = ['- Chat like a teammate texting: short sentences, often two or three short messages instead of one long one, no headings. When the user asks for a deliverable (a plan, schedule, draft, or list), write it out in full in the chat; never claim you gave something you did not write. Mention other Bots by their exact name.','- Only for a direct user request in your own chat that needs several steps: write one short sentence of normal reply text before your first tool call, and make that tool call in the same response. Never start such a task with tools alone or end it with a promise. On long tasks, give brief factual updates only at meaningful milestones, then keep working.','- For "[Message from …]" or "[Reply from …]" messages, do not write plans or progress updates: use tools silently, then reply with the answer. Simple answers do not need progress messages.',- '- In a group chat, every message you write is posted to the group at once, also while you work. For work that takes more than a quick look, start with one short sentence on what you will do, in the same response as your first tool call; when you find something the group should know or finish a step that matters, say it in a sentence or two and keep working; end with the result. Simple answers need no updates.',+ '- In a group chat, the group sees what you write while you work, not only your final reply. For work that takes more than a quick look, start with one short sentence on what you will do, in the same response as your first tool call. After that, write only when you find something the group should know or finish a part of the work, in a sentence or two, not at every step. End with the result. Simple answers need no updates.','- Offer choices with ask_user (a tap-to-answer card) instead of long option lists in text. Calling it ends your turn at once, so write everything you want to say before the call, in the same reply. The answer arrives as the user\'s next message.','- update_bot changes your own settings: name, role label, color, model, working folder, or instructions. Leave out bot to change yourself. Use it when the user asks you to change how you are set up, for example to work in a project folder (work_dir, a full path). Only a Main Bot can change other Bots; when another Bot needs changing, ask a Main Bot.','- You may be in group chats with the user and other Bots. You speak in each group from a separate conversation of yours, apart from your own chat with the user. There your turn arrives as a "[Group chat …]" message that shows the speaking order, and your reply is posted to the group. When someone there asks you to do something, do the work in that turn: the group goes on without waiting and sees what you write as you go. Any member can hand work to another with @Name, and the one that asked answers the result. In a group, read_own_chat shows your own chat (the group sees that you looked; share only what the group needs). In your own chat, read_group_chat shows what was said in a group. A group may have an admin, who steers it: the admin can call members with @Name, change the group with update_group, and start a new discussion there with post_to_group.',diff --git a/ds-bot/src/host/turns.js b/ds-bot/src/host/turns.jsindex bcd9f8e4..6e883a9c 100644--- a/ds-bot/src/host/turns.js+++ b/ds-bot/src/host/turns.js@@ -171,15 +171,15 @@ export function install(rt) {// message to it is answered privately.const speaksInGroup = (id, info) => rt.groupOwners.has(id) && !(info !== undefined && expectsReply(info))- // The group sees each step's text while the member works. A text with a tool call is- // shown at once; one without may be the turn's last, so it waits for the next text or- // the turn's end, which shows the rest as the turn's reply.+ // The group hears what the member says while it works. A text with a tool call goes+ // on at once; one without may be the turn's last, so it waits for the next text or the+ // turn's end, which shows the rest as the turn's reply.const showSteps = (id, entry, upTo) => {const info = entry.infoif (!speaksInGroup(id, info) || (info?.role === 'room' && stoppedRoomTurns.has(info.exchangeId))) returnfor (; entry.shown < upTo; entry.shown += 1) {const text = stripWrittenCalls(entry.texts[entry.shown])- if (text !== '') void rt.roomStepText?.(id, info, text)?.catch(error => rt.warn('ds-bot: step text from %s not posted: %s', id, error))+ if (text !== '') void rt.roomStepText?.(id, info, text, entry.shown === 0)?.catch(error => rt.warn('ds-bot: step text from %s not posted: %s', id, error))}}@@ -216,11 +216,12 @@ export function install(rt) {return merged}- // What the newest running call does, in its own words: its description, else the- // file, search or site it works on.+ // What the newest running call does, in its own words: what the Bot said in the step+ // that made it, the call's description, or the file, search or site it works on.const doingOf = (entry) => {const call = [...(entry.calls?.values() ?? [])].at(-1)if (call === undefined) return {}+ const said = entry.step?.replace(/\s+/g, ' ').trim().slice(0, 160)let argstry { args = JSON.parse(call.args || '{}') } catch { args = {} }const first = keys => keys.map(key => args?.[key]).find(value => typeof value === 'string' && value.trim() !== '')?.replace(/\s+/g, ' ').trim()@@ -230,7 +231,7 @@ export function install(rt) {let sitetry { site = url && new URL(url).host } catch { site = undefined }const target = path?.split(/[\\/]/).filter(Boolean).at(-1) ?? first(['query', 'pattern']) ?? site- return { tool: call.name, ...(note ? { note: note.slice(0, 120) } : {}), ...(target ? { target: target.slice(0, 80) } : {}) }+ return { tool: call.name, ...(said ? { said } : {}), ...(note ? { note: note.slice(0, 120) } : {}), ...(target ? { target: target.slice(0, 80) } : {}) }}// Per Bot, the turn it is running and what it is doing; its own chat wins over a@@ -332,6 +333,7 @@ export function install(rt) {entry.since = event.time ?? Date.now()entry.texts = []entry.shown = 0+ entry.step = undefinedentry.info = undefined// A turn turned away before its first step may end without a turn/end.entry.switched = false@@ -432,6 +434,7 @@ export function install(rt) {}entry.lastText = textentry.lastCalled = called+ entry.step = called && text !== HANDOFF_ACK ? stripWrittenCalls(text) || undefined : undefinedbreak}case 'turn/end': {@@ -447,6 +450,7 @@ export function install(rt) {entry.info = undefinedentry.texts = []entry.shown = 0+ entry.step = undefinedentry.switched = falseentry.joined = []entry.since = undefined@@ -457,6 +461,7 @@ export function install(rt) {const reason = event.data?.reasonconst failure = reason?.kind === 'error' && !switched ? turnFailure(reason.error) : undefinedif (failure !== undefined) noteTurnFailure(id, failure)+ if (rt.groupOwners.has(id)) rt.endRoomSteps?.(id)if (switched) break// A model that writes its tool call as text ends the turn as if it were done,// though nothing ran. It gets one more turn on the same trigger, so a waitingdiff --git a/ds-bot/test/group-work.test.js b/ds-bot/test/group-work.test.jsindex 12e13443..5c4e2969 100644--- a/ds-bot/test/group-work.test.js+++ b/ds-bot/test/group-work.test.js@@ -5,7 +5,7 @@ import { join } from 'node:path'import { test } from 'node:test'import { apply } from '../index.js'import { fakeContext } from './fake-ctx.js'-import { ROOM_LATE_ROUNDS, ROOM_WORK_GRACE_MS } from '../src/host/constants.js'+import { ROOM_LATE_ROUNDS, ROOM_STEP_GAP_MS, ROOM_WORK_GRACE_MS } from '../src/host/constants.js'// Chief, the admin of group 'r1', speaks there from 'ga'; Writer from 'gb'; Tester from 'gc'.const seed = (room = {}) => ({@@ -358,7 +358,7 @@ test('a member whose every message went out while it worked counts as posted, noassert.deepEqual([result().passed, result().replies.map(reply => reply.text)], [[], ['我看一下。']])})-test('after the round went on, each step posts to the group; only the result is answered', async (t) => {+test('after the round went on, what a member says reaches the group at most once per gap; only the result is answered', async (t) => {t.mock.timers.enable({ apis: ['setTimeout'] })const host = await start(t)const first = host.round('c1', host.say('@Chief 安排一下文档'))@@ -373,19 +373,30 @@ test('after the round went on, each step posts to the group; only the result isassert.deepEqual(kinds(first()), [['message', 'Chief'], ['message', 'Writer'], ['working', 'Writer']])host.emit('gb', 'tool/result', { callId: 'k1' })- step(host, 'gb', '目录理好了,在改索引。', 'k2')+ step(host, 'gb', '目录理好了。', 'k2')+ host.emit('gb', 'tool/result', { callId: 'k2' })+ step(host, 'gb', '正文改完了,在改索引。', 'k3')+ await settle(() => true)+ assert.deepEqual(host.agentOf('r1').calls, [])+ t.mock.timers.tick(ROOM_STEP_GAP_MS)await settle(() => host.agentOf('r1').calls.length === 1)const update = host.takePost()- assert.deepEqual([update.source.progress, update.source.quiet, update.source.askedBy, text(update)], [true, true, undefined, '[Group post from Writer]\n目录理好了,在改索引。'])+ assert.deepEqual([update.source.progress, update.source.quiet, update.source.askedBy, text(update)], [true, true, undefined, '[Group post from Writer]\n目录理好了。\n\n正文改完了,在改索引。'])const quiet = host.round('c2', update)await settle(() => quiet() !== undefined)assert.deepEqual(quiet().replies, [])- host.emit('gb', 'tool/result', { callId: 'k2' })+ // A line still held when the work ends gives way to the result.+ host.emit('gb', 'tool/result', { callId: 'k3' })+ step(host, 'gb', '索引也改完了。', 'k4')+ host.emit('gb', 'tool/result', { callId: 'k4' })host.finish('gb', '整理好了,在 docs/ 下。')await settle(() => host.agentOf('r1').calls.length === 1)const done = host.takePost()assert.deepEqual([done.source.late, done.source.askedBy, text(done)], [true, 'a', '[Group post from Writer]\n整理好了,在 docs/ 下。'])+ t.mock.timers.tick(ROOM_STEP_GAP_MS)+ await settle(() => true)+ assert.deepEqual(host.agentOf('r1').calls, [])})test('a step that calls a member with @ after the round went on starts a round for that member', async (t) => {@@ -465,4 +476,9 @@ test('the team view says what a member is doing in the call\'s own words', asyncconst { value } = await host.call('state', {})assert.deepEqual(value.work.rooms.r1.map(entry => [entry.botId, entry.tool, entry.note, entry.target]), [['b', 'pwsh', 'Download Ghidra 12.1.4 and check its hash', undefined], ['c', 'read', undefined, 'dump.py']])assert.equal(value.work.bots.b.note, 'Download Ghidra 12.1.4 and check its hash')+ // What the Bot said in the step that made the call comes with it.+ host.emit('ga', 'turn/start', { turn: 1 })+ step(host, 'ga', '先把 JDK\n下下来。', 'k3', 'pwsh', JSON.stringify({ description: 'Download JDK 21' }))+ const later = (await host.call('state', {})).value+ assert.deepEqual(['said', 'note'].map(key => later.work.bots.a[key]), ['先把 JDK 下下来。', 'Download JDK 21'])})diff --git a/ds-bot/test/install.test.js b/ds-bot/test/install.test.jsindex e7ca4160..1f3d7522 100644--- a/ds-bot/test/install.test.js+++ b/ds-bot/test/install.test.js@@ -65,6 +65,7 @@ test('apply registers listeners, tools, and effects in a fixed order', (t) => {'tool group_relay','tool read_own_chat','tool read_group_chat',+ 'effect ds-bot: group step lines','on llm/stream','on approval/request (prepend)','on agent/inbox/discarded',diff --git a/ds-bot/test/member-status.test.js b/ds-bot/test/member-status.test.jsindex 66dbed42..1cc35cf2 100644--- a/ds-bot/test/member-status.test.js+++ b/ds-bot/test/member-status.test.js@@ -90,8 +90,9 @@ test('a row says what a member does in its call\'s own words, and that it moves{ botId: 'a', since: 1, tool: 'pwsh', note: 'Download Ghidra 12.1.4 and check its hash.' },{ botId: 'b', since: 1, tool: 'read', target: 'dump.py' },{ botId: 'c', since: 1, switching: true },+ { botId: 'd', since: 1, tool: 'pwsh', said: '解压 Ghidra,顺便写脚本。', note: 'Expand-Archive' },] },approvals: [],}- assert.deepEqual(rowLabels(dock('r1', work)), ['Anvil · Download Ghidra 12.1.4 and check its hash…', 'Flint · Opening a file · dump.py…', 'Prism · Moving to a fresh conversation…'])+ assert.deepEqual(rowLabels(dock('r1', work)), ['Anvil · Download Ghidra 12.1.4 and check its hash…', 'Flint · Opening a file · dump.py…', 'Prism · Moving to a fresh conversation…', 'Quill · 解压 Ghidra,顺便写脚本…'])})diff --git a/ds-bot/test/prompt.test.js b/ds-bot/test/prompt.test.jsindex 7f8d18ee..2cbf1c7e 100644--- a/ds-bot/test/prompt.test.js+++ b/ds-bot/test/prompt.test.js@@ -26,7 +26,7 @@ test('Bots get a scoped progress rule without changing the private/group promptconst rules = ['- Only for a direct user request in your own chat that needs several steps: write one short sentence of normal reply text before your first tool call, and make that tool call in the same response. Never start such a task with tools alone or end it with a promise. On long tasks, give brief factual updates only at meaningful milestones, then keep working.','- For "[Message from …]" or "[Reply from …]" messages, do not write plans or progress updates: use tools silently, then reply with the answer. Simple answers do not need progress messages.',- '- In a group chat, every message you write is posted to the group at once, also while you work. For work that takes more than a quick look, start with one short sentence on what you will do, in the same response as your first tool call; when you find something the group should know or finish a step that matters, say it in a sentence or two and keep working; end with the result. Simple answers need no updates.',+ '- In a group chat, the group sees what you write while you work, not only your final reply. For work that takes more than a quick look, start with one short sentence on what you will do, in the same response as your first tool call. After that, write only when you find something the group should know or finish a part of the work, in a sentence or two, not at every step. End with the result. Simple answers need no updates.',]for (const id of ['main', 'worker']) {for (const rule of rules) {