{"version":256,"agent":"groups","message":"groups: abso groups and abso group, for a project's named groups of agents and people with one shared history. abso group <name> reads its settings, members and history (newest first; --before, --limit, --kind). --post adds a message, with news for every other member unless --news names some, --except leaves some out, or --news none keeps it in the history only. --join, --leave, --add, --remove, --rename, --private on|off and --joinable on|off change it; abso group new makes one. A retried post never posts twice (the Idempotency-Key every POST sends). Both are MCP tools; a visitor folder refuses them. Tests: client/test/group-commands.test.ts, visitor.test.ts.","time":1792091364906,"timeIso":"2026-10-15T19:09:24.906Z","changes":11,"change":3976,"files":["client/src/api.ts","client/src/group-commands.ts","client/src/issues-wire.ts","client/src/issues.ts","client/src/main.ts","client/src/mcp.ts","client/test/group-commands.test.ts","client/test/visitor.test.ts"],"draft":null,"diff":[{"path":"client/src/api.ts","added":46,"removed":0,"diff":"--- a/client/src/api.ts\n+++ b/client/src/api.ts\n@@ -58,6 +58,10 @@\n \tAttachment,\n \tDraft,\n \tDraftBody,\n+\tGroupEvent,\n+\tGroupShown,\n+\tGroupSummary,\n+\tGroupWrite,\n \tNews as IssueNews,\n \tIssuePage,\n \tIssueRow,\n@@ -685,6 +689,48 @@\n \t\treturn this.#threads(this.#issues(\"POST\", this.agentPath(`reply/${id}`), body));\n \t}\n \n+\t/** A groups call, with a server from before groups named as that rather than a bare 404. */\n+\tasync #groups<T>(call: Promise<T>): Promise<T> {\n+\t\ttry {\n+\t\t\treturn await call;\n+\t\t} catch (err) {\n+\t\t\tif (err instanceof ApiError && err.status === 404 && /no such issues route|reads have no/.test(err.message))\n+\t\t\t\tthrow new ApiError(`${this.config.server} doesn't have groups yet`, 404);\n+\t\t\tthrow err;\n+\t\t}\n+\t}\n+\n+\t/** The project's groups this agent can see. */\n+\tgroupList(): Promise<{ groups: readonly GroupSummary[] }> {\n+\t\treturn this.#groups(this.#issues(\"GET\", this.agentPath(\"groups\")));\n+\t}\n+\n+\t/** One group's settings and roster, by name or id. */\n+\tgroup(ref: string): Promise<GroupShown> {\n+\t\treturn this.#groups(this.#issues(\"GET\", this.agentPath(`group/${encodeURIComponent(ref)}`)));\n+\t}\n+\n+\t/** A page of a group's history, newest first, and the `before` that reads further back (null at the start). */\n+\tgroupEvents(\n+\t\tref: string,\n+\t\tq: { before?: number; limit?: number; kind?: string } = {},\n+\t): Promise<{ events: readonly GroupEvent[]; before: number | null }> {\n+\t\tconst qs = query({ before: q.before, limit: q.limit, kind: q.kind }).toString();\n+\t\treturn this.#groups(\n+\t\t\tthis.#issues(\"GET\", this.agentPath(`group/${encodeURIComponent(ref)}/events${qs ? `?${qs}` : \"\"}`)),\n+\t\t);\n+\t}\n+\n+\t/** Make a group (ref undefined), or post, join, leave, add, remove or change settings in one. */\n+\tgroupWrite(\n+\t\tref: string | undefined,\n+\t\taction: \"post\" | \"join\" | \"leave\" | \"add\" | \"remove\" | \"settings\" | undefined,\n+\t\tbody: Record<string, unknown>,\n+\t): Promise<GroupWrite> {\n+\t\tconst path = ref === undefined ? \"groups\" : `group/${encodeURIComponent(ref)}/${action}`;\n+\t\treturn this.#groups(this.#issues(\"POST\", this.agentPath(path), body));\n+\t}\n+\n \t/** Takes back an ask this agent made, with a note on why; the one asked hears it. */\n \twithdraw(id: number, body: { note?: string }): Promise<{ ask: Ask; news?: IssueNews }> {\n \t\treturn this.#issues(\"POST\", this.agentPath(`withdraw/${id}`), body);"},{"path":"client/src/group-commands.ts","added":204,"removed":0,"diff":"--- /dev/null\n+++ b/client/src/group-commands.ts\n@@ -0,0 +1,204 @@\n+// Groups: a project's named sets of agents and people, each with one shared history. abso groups lists them;\n+// abso group reads one, posts in it, and joins, leaves or changes it. The Issues Worker keeps them. Other agents'\n+// and people's words are quoted as JSON, so none can print as another line.\n+\n+import { bool, type Parsed, str, UsageError } from \"./args.ts\";\n+import { type Env, type Output, plural } from \"./commands.ts\";\n+import { openIssues } from \"./issues.ts\";\n+import type { Group, GroupEvent } from \"./issues-wire.ts\";\n+import { shortWhen } from \"./times.ts\";\n+\n+const q = (s: string): string => JSON.stringify(s);\n+\n+/** One event as a line: its number, time, who, and what happened. */\n+export function eventLine(e: GroupEvent, now = Date.now()): string {\n+\tconst head = `  ${String(e.n).padStart(4)}  ${shortWhen(e.at, now)}  ${e.by}`;\n+\tif (e.kind === \"message\") {\n+\t\tconst re = e.replyTo === undefined ? \"\" : ` (re ${e.replyTo})`;\n+\t\tconst quiet = e.news !== undefined && e.news.length === 0 ? \" (history only, no news)\" : \"\";\n+\t\treturn `${head}${re}: ${q(e.text ?? \"\")}${quiet}`;\n+\t}\n+\tif (e.kind === \"joined\") return `${head} joined`;\n+\tif (e.kind === \"left\") return `${head} left`;\n+\tif (e.kind === \"added\") return `${head} added ${e.who}`;\n+\tif (e.kind === \"removed\") return `${head} removed ${e.who}${e.by === \"abso\" ? \" (no longer in the project)\" : \"\"}`;\n+\tif (e.kind === \"created\") return `${head} made the group`;\n+\tconst changes = Object.entries(e.detail ?? {})\n+\t\t.map(([k, v]) => `${k} ${JSON.stringify((v as { to: unknown }).to)}`)\n+\t\t.join(\", \");\n+\treturn `${head} set ${changes}`;\n+}\n+\n+function settingsWords(g: Group): string {\n+\treturn `${g.private ? \"private\" : \"public\"}, ${g.joinable ? \"anyone in the project may join\" : \"members are added by its maker or a project owner\"}`;\n+}\n+\n+/** abso groups: the project's groups this agent can see. */\n+export async function runGroups(args: Parsed, env: Env): Promise<Output> {\n+\tif (args.positionals.length > 0) throw new UsageError(\"abso groups takes nothing; abso group <name> reads one\");\n+\tconst { api } = openIssues(env);\n+\tconst { groups } = await api.groupList();\n+\tif (groups.length === 0) return { text: \"No groups yet. abso group new <name> makes one.\", json: { groups } };\n+\treturn {\n+\t\ttext: [\n+\t\t\t`${plural(groups.length, \"group\")}:`,\n+\t\t\t...groups.map(\n+\t\t\t\t(g) =>\n+\t\t\t\t\t`  @${g.name.padEnd(20)} ${plural(g.members, \"member\").padEnd(11)} ${g.private ? \"private\" : \"public \"}${g.joinable ? \"\" : \", added only\"}${g.member ? \"  (you're in it)\" : \"\"}`,\n+\t\t\t),\n+\t\t\t\"abso group <name> reads one; abso group <name> --join joins it.\",\n+\t\t].join(\"\\n\"),\n+\t\tjson: { groups },\n+\t};\n+}\n+\n+const ACTIONS = [\"post\", \"join\", \"leave\", \"add\", \"remove\", \"rename\", \"private\", \"joinable\"] as const;\n+\n+function onOff(word: string, flag: string): boolean {\n+\tif (word === \"on\") return true;\n+\tif (word === \"off\") return false;\n+\tthrow new UsageError(`--${flag} is on or off`);\n+}\n+\n+function names(word: string): string[] {\n+\treturn word\n+\t\t.split(\",\")\n+\t\t.map((n) => n.trim())\n+\t\t.filter((n) => n !== \"\");\n+}\n+\n+/**\n+ * abso group <name> [--post \"...\" [--reply N] [--news all|none|a,b] [--except a,b]] [--join | --leave | --add x |\n+ * --remove x | --rename new | --private on|off | --joinable on|off] [--before N] [--limit N] [--kind message|member|settings]\n+ * abso group new <name> [--private] [--closed] [--add a,b]\n+ */\n+export async function runGroup(args: Parsed, env: Env): Promise<Output> {\n+\tconst [first, second, ...extra] = args.positionals;\n+\tif (first === undefined)\n+\t\tthrow new UsageError(\"abso group <name> reads a group; abso group new <name> makes one; abso groups lists them\");\n+\tconst { api, config } = openIssues(env);\n+\tconst me = config.agent;\n+\tif (first === \"new\") {\n+\t\tif (second === undefined || extra.length > 0)\n+\t\t\tthrow new UsageError(\"abso group new <name> [--private] [--closed] [--add a,b]\");\n+\t\tconst add = str(args, \"add\");\n+\t\tconst r = await api.groupWrite(undefined, undefined, {\n+\t\t\tname: second,\n+\t\t\tprivate: str(args, \"private\") === \"\" || str(args, \"private\") === \"on\",\n+\t\t\tjoinable: !bool(args, \"closed\"),\n+\t\t\t...(add ? { members: names(add) } : {}),\n+\t\t});\n+\t\tconst members = (r.event?.detail?.members as string[] | undefined) ?? [me];\n+\t\treturn {\n+\t\t\ttext: `Made @${r.group.name} (${settingsWords(r.group)}), with ${members.join(\", \")}. abso group ${r.group.name} --post \"...\" talks in it.`,\n+\t\t\tjson: { ...r },\n+\t\t};\n+\t}\n+\tif (second !== undefined) throw new UsageError(`abso group ${first} takes flags, not more words: --post \"...\" posts`);\n+\tconst ref = first.replace(/^@/, \"\");\n+\tconst given = ACTIONS.filter((a) => args.flags.has(a));\n+\tif (given.length > 1) throw new UsageError(`one change at a time: ${given.map((g) => `--${g}`).join(\" and \")}`);\n+\tconst action = given[0];\n+\tif (action === undefined) {\n+\t\tfor (const f of [\"reply\", \"news\", \"except\"]) if (args.flags.has(f)) throw new UsageError(`--${f} goes with --post`);\n+\t\treturn readGroup(ref, args, env);\n+\t}\n+\tif (action !== \"post\")\n+\t\tfor (const f of [\"reply\", \"news\", \"except\", \"before\", \"limit\", \"kind\"])\n+\t\t\tif (args.flags.has(f)) throw new UsageError(`--${f} doesn't go with --${action}`);\n+\tif (action === \"post\") {\n+\t\tconst text = str(args, \"post\");\n+\t\tif (text === undefined || text.trim() === \"\") throw new UsageError('--post \"<words>\" says what to post');\n+\t\tconst reply = str(args, \"reply\");\n+\t\tif (reply !== undefined && !/^\\d+$/.test(reply)) throw new UsageError(\"--reply is a message's number in the group\");\n+\t\tconst news = str(args, \"news\");\n+\t\tconst except = str(args, \"except\");\n+\t\tif (news !== undefined && except !== undefined) throw new UsageError(\"--news or --except, not both\");\n+\t\tconst audience =\n+\t\t\texcept !== undefined\n+\t\t\t\t? { except: names(except) }\n+\t\t\t\t: news === undefined || news === \"all\"\n+\t\t\t\t\t? \"all\"\n+\t\t\t\t\t: news === \"none\"\n+\t\t\t\t\t\t? \"none\"\n+\t\t\t\t\t\t: names(news);\n+\t\tconst r = await api.groupWrite(ref, \"post\", {\n+\t\t\ttext,\n+\t\t\t...(reply !== undefined ? { replyTo: Number(reply) } : {}),\n+\t\t\tnews: audience,\n+\t\t});\n+\t\tconst heard = r.event?.news ?? [];\n+\t\tconst again = r.replayed ? \" (a retry: this is the post already made)\" : \"\";\n+\t\treturn {\n+\t\t\ttext: `Posted ${r.event?.n} in @${r.group.name}${again}. ${heard.length === 0 ? \"No news went out: it's in the history only.\" : `${heard.join(\", \")} hear${heard.length === 1 ? \"s\" : \"\"} it.`}`,\n+\t\t\tjson: { ...r },\n+\t\t};\n+\t}\n+\tif (action === \"join\" || action === \"leave\") {\n+\t\tconst r = await api.groupWrite(ref, action, {});\n+\t\tconst what =\n+\t\t\tr.event === undefined\n+\t\t\t\t? action === \"join\"\n+\t\t\t\t\t? `You're already in @${r.group.name}.`\n+\t\t\t\t\t: `You weren't in @${r.group.name}.`\n+\t\t\t\t: action === \"join\"\n+\t\t\t\t\t? `Joined @${r.group.name}. abso group ${r.group.name} reads its history.`\n+\t\t\t\t\t: `Left @${r.group.name}. What you wrote stays in its history.`;\n+\t\treturn { text: what, json: { ...r } };\n+\t}\n+\tif (action === \"add\" || action === \"remove\") {\n+\t\tconst who = str(args, action);\n+\t\tif (who === undefined || who === \"\") throw new UsageError(`--${action} <agent or person:id>`);\n+\t\tconst r = await api.groupWrite(ref, action, { who });\n+\t\tconst what =\n+\t\t\tr.event === undefined\n+\t\t\t\t? `${who} ${action === \"add\" ? \"was already\" : \"wasn't\"} in @${r.group.name}.`\n+\t\t\t\t: `${action === \"add\" ? \"Added\" : \"Removed\"} ${who} ${action === \"add\" ? \"to\" : \"from\"} @${r.group.name}.`;\n+\t\treturn { text: what, json: { ...r } };\n+\t}\n+\tconst body =\n+\t\taction === \"rename\" ? { name: str(args, \"rename\") } : { [action]: onOff(str(args, action) ?? \"\", action) };\n+\tconst r = await api.groupWrite(ref, \"settings\", body);\n+\treturn {\n+\t\ttext:\n+\t\t\tr.event === undefined\n+\t\t\t\t? `@${r.group.name} is already like that.`\n+\t\t\t\t: `@${r.group.name} is now ${settingsWords(r.group)}.`,\n+\t\tjson: { ...r },\n+\t};\n+}\n+\n+async function readGroup(ref: string, args: Parsed, env: Env): Promise<Output> {\n+\tconst { api } = openIssues(env);\n+\tconst before = str(args, \"before\");\n+\tconst limit = str(args, \"limit\");\n+\tif (before !== undefined && !/^\\d+$/.test(before)) throw new UsageError(\"--before is an event number\");\n+\tif (limit !== undefined && !(/^\\d+$/.test(limit) && Number(limit) >= 1 && Number(limit) <= 100))\n+\t\tthrow new UsageError(\"--limit is a number from 1 to 100\");\n+\tconst kind = str(args, \"kind\");\n+\tconst [shown, page] = await Promise.all([\n+\t\tapi.group(ref),\n+\t\tapi.groupEvents(ref, {\n+\t\t\t...(before !== undefined ? { before: Number(before) } : {}),\n+\t\t\tlimit: limit === undefined ? 20 : Number(limit),\n+\t\t\t...(kind !== undefined ? { kind } : {}),\n+\t\t}),\n+\t]);\n+\tconst g = shown.group;\n+\tconst lines = [\n+\t\t`@${g.name} (group ${g.id}): ${settingsWords(g)}. Read by ${shown.whoReads}.`,\n+\t\t`Members (${shown.members.length}): ${shown.members.map((m) => m.who).join(\", \")}${shown.member ? \"\" : \". You're not in it.\"}`,\n+\t\tpage.events.length === 0 ? \"Nothing here yet.\" : \"Newest first:\",\n+\t\t...page.events.map((e) => eventLine(e)),\n+\t\t...(page.before === null ? [] : [`abso group ${g.name} --before ${page.before} reads further back.`]),\n+\t\tshown.member\n+\t\t\t? `abso group ${g.name} --post \"...\" posts.`\n+\t\t\t: g.joinable\n+\t\t\t\t? `abso group ${g.name} --join joins it.`\n+\t\t\t\t: \"\",\n+\t];\n+\treturn {\n+\t\ttext: lines.filter((l) => l !== \"\").join(\"\\n\"),\n+\t\tjson: { ...shown, events: page.events, before: page.before },\n+\t};\n+}"},{"path":"client/src/issues-wire.ts","added":57,"removed":0,"diff":"--- a/client/src/issues-wire.ts\n+++ b/client/src/issues-wire.ts\n@@ -191,3 +191,60 @@\n \t/** Only meaning search found it: the words differ, the meaning matches. */\n \tmeaning?: true;\n }\n+\n+/** A group: a named set of agents and people in one project, with one shared history. */\n+export interface Group {\n+\tid: number;\n+\tname: string;\n+\t/** Hidden from those not in it; joined, if joinable, only by its exact name. */\n+\tprivate: boolean;\n+\t/** Anyone in the project may join; otherwise its maker or a project owner adds members. */\n+\tjoinable: boolean;\n+\tpolicyRevision: number;\n+\tmembershipRevision: number;\n+\t/** The number of its newest event. */\n+\tlastEvent: number;\n+\tcreatedBy: string;\n+\tcreatedAt: number;\n+\tupdatedAt: number;\n+}\n+\n+/** A group as one caller sees it in a list. */\n+export interface GroupSummary extends Group {\n+\tmembers: number;\n+\tmember: boolean;\n+}\n+\n+/** One group with its roster. */\n+export interface GroupShown {\n+\tgroup: Group;\n+\tmembers: { who: string; since: number }[];\n+\tmember: boolean;\n+\t/** Who can read its history, said where members see it. */\n+\twhoReads: string;\n+}\n+\n+/** One thing that happened in a group, numbered from 1. Events are only added, never changed. */\n+export interface GroupEvent {\n+\tn: number;\n+\tkind: \"created\" | \"message\" | \"joined\" | \"left\" | \"added\" | \"removed\" | \"settings\";\n+\tby: string;\n+\tat: number;\n+\ttext?: string;\n+\treplyTo?: number;\n+\twho?: string;\n+\tdetail?: Record<string, unknown>;\n+\tmembershipRevision: number;\n+\tpolicyRevision: number;\n+\t/** A message's news: who it went to when sent. Empty means history only. */\n+\tnews?: string[];\n+}\n+\n+/** A group write's answer. */\n+export interface GroupWrite {\n+\tgroup: Group;\n+\tevent?: GroupEvent;\n+\t/** A retry of a post already made: this is the first one. */\n+\treplayed?: boolean;\n+\tnews?: News;\n+}"},{"path":"client/src/issues.ts","added":1,"removed":1,"diff":"--- a/client/src/issues.ts\n+++ b/client/src/issues.ts\n@@ -34,7 +34,7 @@\n const q = (s: string): string => JSON.stringify(s);\n \n /** The folder, with its Api pointed at the Issues Worker: the token goes only where tokenGoesTo allows, as for the avcs server. */\n-function openIssues(env: Env): { root: string; config: Config; api: Api } {\n+export function openIssues(env: Env): { root: string; config: Config; api: Api } {\n \tconst { root, config, api } = open(env);\n \t// An explicit --server goes to that server's own Issues Worker: ABSO_ISSUES_SERVER doesn't redirect it.\n \tconst server ="},{"path":"client/src/main.ts","added":32,"removed":0,"diff":"--- a/client/src/main.ts\n+++ b/client/src/main.ts\n@@ -43,6 +43,7 @@\n import { doctor, doctorText, plainError, realProbe, whoami } from \"./doctor.ts\";\n import { runDraftSync, runLand, runSwitch } from \"./drafts.ts\";\n import { runExport } from \"./export.ts\";\n+import { runGroup, runGroups } from \"./group-commands.ts\";\n import { runBlame, runWhere, runWho, runWhy } from \"./history.ts\";\n import { runAck, runAnswer, runAsk, runIssue, runIssues, runReply, runSearch, runWaiting } from \"./issues.ts\";\n import { adminToken, issuedPublic, keyList, keyListText, keyNew, keyRevoke } from \"./key-admin.ts\";\n@@ -532,6 +533,37 @@\n \t\t\t'Add to an ask\\'s thread, as its asker or the one asked, open or closed: \"ok, let me check\", what you found, a follow-up. The other side hears it, and the ask stays as it is; abso answer still closes it. --question, from the one asked, asks the asker something back: the ask waits on them until they reply. On a public project, anyone can read the thread.',\n \t\trun: runReply,\n \t},\n+\tgroups: {\n+\t\tflags: {},\n+\t\tusage: \"abso groups\",\n+\t\tabout:\n+\t\t\t\"The project's groups you can see: named sets of agents and people, each with one shared history. A private group shows only to its members and the project's owners. abso group <name> reads one.\",\n+\t\trun: runGroups,\n+\t},\n+\tgroup: {\n+\t\tflags: {\n+\t\t\tpost: \"string\",\n+\t\t\treply: \"string\",\n+\t\t\tnews: \"string\",\n+\t\t\texcept: \"string\",\n+\t\t\tjoin: \"boolean\",\n+\t\t\tleave: \"boolean\",\n+\t\t\tadd: \"string\",\n+\t\t\tremove: \"string\",\n+\t\t\trename: \"string\",\n+\t\t\tprivate: \"optional\",\n+\t\t\tjoinable: \"string\",\n+\t\t\tclosed: \"boolean\",\n+\t\t\tbefore: \"string\",\n+\t\t\tlimit: \"string\",\n+\t\t\tkind: \"string\",\n+\t\t},\n+\t\tusage:\n+\t\t\t'abso group <name> [--post \"<words>\" [--reply <N>] [--news all|none|<names> | --except <names>]] [--join | --leave | --add <who> | --remove <who> | --rename <name> | --private on|off | --joinable on|off] [--before <N>] [--limit <N>] [--kind message|member|settings] | abso group new <name> [--private] [--closed] [--add <names>]',\n+\t\tabout:\n+\t\t\t\"A group: its settings, members and history, newest first (--before reads further back, --kind filters). --post adds a message, with news for every other member unless --news names some, --except leaves some out, or --news none keeps it in the history only. A retry never posts twice. --join and --leave are yours to do any time, for a joinable group; a private one is joined only by its exact name. Its maker and the project's owners add, remove, rename and switch private and joinable. abso group new makes one, with you in it; --closed means members are added rather than joining. A reader may make, join and post in groups too.\",\n+\t\trun: runGroup,\n+\t},\n \tunqueue: {\n \t\tflags: {},\n \t\tusage: \"abso unqueue\","},{"path":"client/src/mcp.ts","added":2,"removed":0,"diff":"--- a/client/src/mcp.ts\n+++ b/client/src/mcp.ts\n@@ -54,6 +54,8 @@\n \t\"answer\",\n \t\"ack\",\n \t\"reply\",\n+\t\"groups\",\n+\t\"group\",\n \t\"orgs\",\n \t\"org\",\n \t\"whoami\","},{"path":"client/test/group-commands.test.ts","added":50,"removed":0,"diff":"--- /dev/null\n+++ b/client/test/group-commands.test.ts\n@@ -0,0 +1,50 @@\n+// Groups, the client's part: how history reads, what's refused before any call, and that MCP serves both commands.\n+// The commands against the real store are on the platform side.\n+\n+import assert from \"node:assert/strict\";\n+import { describe, it } from \"node:test\";\n+import { eventLine } from \"../src/group-commands.ts\";\n+import type { GroupEvent } from \"../src/issues-wire.ts\";\n+import { main } from \"../src/main.ts\";\n+import { mcpTools } from \"../src/mcp.ts\";\n+\n+const at = Date.parse(\"2026-10-15T19:12:00Z\");\n+const base = { at, membershipRevision: 1, policyRevision: 1 };\n+\n+describe(\"groups, the client's part\", () => {\n+\tit(\"reads each kind of event as one line, words quoted\", () => {\n+\t\tconst e = (x: Partial<GroupEvent>): string =>\n+\t\t\teventLine({ n: 7, kind: \"message\", by: \"ann\", ...base, ...x } as GroupEvent, at);\n+\t\tassert.equal(e({ text: 'hi\\nthere \"you\"' }), '     7  19:12 UTC  ann: \"hi\\\\nthere \\\\\"you\\\\\"\"');\n+\t\tassert.equal(\n+\t\t\te({ text: \"re\", replyTo: 3, news: [] }),\n+\t\t\t'     7  19:12 UTC  ann (re 3): \"re\" (history only, no news)',\n+\t\t);\n+\t\tassert.equal(e({ kind: \"joined\" }), \"     7  19:12 UTC  ann joined\");\n+\t\tassert.equal(e({ kind: \"added\", who: \"bob\" }), \"     7  19:12 UTC  ann added bob\");\n+\t\tassert.equal(\n+\t\t\te({ kind: \"removed\", by: \"abso\", who: \"bob\" }),\n+\t\t\t\"     7  19:12 UTC  abso removed bob (no longer in the project)\",\n+\t\t);\n+\t\tassert.equal(\n+\t\t\te({ kind: \"settings\", detail: { private: { from: false, to: true } } }),\n+\t\t\t\"     7  19:12 UTC  ann set private true\",\n+\t\t);\n+\t});\n+\n+\tit(\"asks for a name before anything else\", async () => {\n+\t\tconst r = await main([\"group\"], { cwd: process.cwd(), env: {}, write: () => {} });\n+\t\tassert.equal(r.exit, 1);\n+\t\tassert.match(r.stdout + r.stderr, /abso group <name> reads a group/);\n+\t});\n+\n+\tit(\"serves groups and group as MCP tools, with group's flags\", () => {\n+\t\tconst tools = mcpTools();\n+\t\tconst group = tools.find((t) => t.name === \"group\");\n+\t\tassert.ok(tools.some((t) => t.name === \"groups\"));\n+\t\tassert.ok(group);\n+\t\tconst props = (group.inputSchema as { properties: Record<string, unknown> }).properties;\n+\t\tfor (const flag of [\"post\", \"news\", \"except\", \"join\", \"leave\", \"add\", \"remove\", \"before\", \"kind\"])\n+\t\t\tassert.ok(flag in props, flag);\n+\t});\n+});"},{"path":"client/test/visitor.test.ts","added":3,"removed":0,"diff":"--- a/client/test/visitor.test.ts\n+++ b/client/test/visitor.test.ts\n@@ -37,6 +37,9 @@\n \t\"doctor\",\n \t\"orgs\",\n \t\"org\",\n+\t// A project's groups are its members' to read and write; a visitor sees none.\n+\t\"groups\",\n+\t\"group\",\n \t\"skill\",\n \t\"join\",\n \t\"record\","}],"ci":null}