@mrciphersmith/roomyx 0.11.1 → 0.11.2

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
@@ -13,6 +13,59 @@ patch and never a minor. The rule, the reason, and an audit of the four of seven
13
13
  releases that followed it are in
14
14
  [`docs/roomyx/versioning.md`](docs/roomyx/versioning.md) and decision D-13.
15
15
 
16
+ ## [0.11.2] — 2026-09-11
17
+
18
+ A patch. The bundled skill had drifted behind the server it drives, and the
19
+ symptom was visible from the outside: a room that gets created, then waits for a
20
+ second command to be populated, then retells itself into the chat.
21
+
22
+ ### Fixed
23
+
24
+ - **The skill no longer narrates the room into the conversation.** Step 5 of the
25
+ turn loop ordered a report after essentially every substantive exchange, with
26
+ quotes. That was right when a chat message was the only way to see a room.
27
+ roomyx exists now: the owner watches the transcript live, with scrolling,
28
+ search and per-participant filtering, so the retelling is the same text twice
29
+ on top of whatever else that conversation was for. Appending the turn to the
30
+ log *is* the report. Three things still reach the chat, one line each — goal
31
+ met, stuck and needs an owner decision, participant lost — plus a full answer
32
+ whenever the owner asks for status.
33
+ - **Setup is one uninterrupted sequence.** It used to create the log and then
34
+ wait to be told to populate it, turning one instruction into three and leaving
35
+ a room that exists but is empty. It now casts the room and hands back the room
36
+ ID and the attach command as its whole reply.
37
+ - **The skill names the tools this project built for it.** It mentioned
38
+ `room.post_owner_command` once and `room.get_delta_for`,
39
+ `room.get_pending_owner_commands` and `room.ack_owner_command` not at all, so
40
+ the delta was re-derived by hand on every turn and an owner command posted
41
+ from the TUI went into a queue nobody was told to read. Nothing failed — a
42
+ stale skill still produces a working room, just a worse one, which is why it
43
+ went unnoticed.
44
+ - **`roomyx serve` no longer passes an argument that was always discarded.**
45
+ `writerLeasePath` was computed on every start, and `serve()` takes the lease
46
+ only when an `onOwnerCommand` callback is present — which the CLI never
47
+ supplies. It read like a lease was being taken and none ever was.
48
+
49
+ ### Added
50
+
51
+ - **The dispatcher may be a background subagent**, so a room stops occupying the
52
+ chat for as long as it runs. Verified rather than assumed: a subagent has the
53
+ `Agent` tool loaded, can reach `SendMessage`, and a nested spawn was confirmed
54
+ to work.
55
+ - **A test pins the skill against the server**: the four dispatcher-facing tools
56
+ must be named, and the hand-composed delta and the per-exchange chat report
57
+ must stay gone.
58
+
59
+ ### Known, recorded rather than fixed
60
+
61
+ There are two dispatcher models and only one is expressible. An embedder
62
+ dispatches in-process and can hold the writer lease; an *agent* dispatches by
63
+ running `roomyx serve` and writing with `roomyx room append`, a different
64
+ process each time. Making the CLI declare a dispatcher was tried and reverted:
65
+ the lease would sit with the server while the writer is elsewhere, so the
66
+ dispatcher would be refused from its own room. Until that is decided, the D-18
67
+ writer guard does not engage for the agent workflow.
68
+
16
69
  ## [0.11.1] — 2026-09-10
17
70
 
18
71
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrciphersmith/roomyx",
3
- "version": "0.11.1",
3
+ "version": "0.11.2",
4
4
  "description": "MCP server + terminal UI for startup-room: live room status, chat, per-agent modal, an installable room registry, and skill-sync.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: startup-room
3
- description: Runs a persistent multi-persona discussion/brainstorm room cheaply — each persona is spawned once as a named subagent and kept alive across turns via SendMessage (so it remembers its own history instead of re-reading the whole transcript every time), every message is broadcast to every participant (not just @-addressed ones), participants self-moderate against tunneling too deep into one narrow thread, and the full dialogue is logged verbatim to a shared markdown file the participants never write to directly. The room is goal-driven, not round-driven: it runs until an explicit, measurable goal is met (by default, for startup-idea rooms: find an idea, score it against a 50-criteria rubric, and reach participant convergence) or the owner stops it — not until some fixed number of turns has elapsed. Use whenever the user wants several persona/character subagents (founders, experts, interview personas, judges) to discuss, debate, brainstorm, or interview each other over multiple rounds toward a concrete goal, especially when they've asked for this to be done without burning tokens by re-pasting the whole conversation into a fresh agent each round.
3
+ description: Runs a persistent multi-persona discussion/brainstorm room cheaply — each persona is spawned once as a named subagent and kept alive across turns via SendMessage (so it remembers its own history instead of re-reading the whole transcript every time), every message is broadcast to every participant (not just @-addressed ones), participants self-moderate against tunneling too deep into one narrow thread, and the full dialogue is logged verbatim to a shared append-only log the participants never write to directly. The room is goal-driven, not round-driven: it runs until an explicit, measurable goal is met (by default, for startup-idea rooms: find an idea, score it against a 50-criteria rubric, and reach participant convergence) or the owner stops it — not until some fixed number of turns has elapsed. Use whenever the user wants several persona/character subagents (founders, experts, interview personas, judges) to discuss, debate, brainstorm, or interview each other over multiple rounds toward a concrete goal, especially when they've asked for this to be done without burning tokens by re-pasting the whole conversation into a fresh agent each round.
4
4
  ---
5
5
 
6
6
  # Startup Room
@@ -24,6 +24,16 @@ The room is **goal-driven, not round-driven**: there is no fixed number of round
24
24
  ## Roles in this pattern
25
25
 
26
26
  - **The dispatcher** — you (the orchestrating Claude instance). Your job is transport, not judgment: relay deltas, append to the log, spawn new participants when told to. You never let participants write to the shared log file themselves; you are the only writer. This is a deliberate safety choice: it guarantees nothing gets deleted or corrupted by a subagent, and it lets you enforce formatting and catch a participant going off the rails before it's committed to the record. See **Dispatcher discipline** below — this role is narrower than it sounds, and it is easy to accidentally overstep it.
27
+ **The dispatcher can be a background subagent rather than the main
28
+ conversation, and usually should be.** A room run by the main agent occupies
29
+ the chat for as long as it lasts; run as a subagent it occupies nothing, and
30
+ the owner watches the room in the TUI while the conversation stays theirs.
31
+ This was verified rather than assumed: a subagent has the `Agent` tool loaded
32
+ and can reach `SendMessage`, so it can cast participants and drive them
33
+ exactly as the main agent would, and a nested spawn was confirmed to work.
34
+ The main agent then does only three things — spawn the dispatcher, relay the
35
+ attach command, and pass on any instruction the owner types in chat.
36
+
27
37
  - **The participants** — one persistent named subagent per persona. They decide everything substantive: what to research, whether an idea is good, when to pivot, who should speak next, when to converge. This is the actual point of the room — if you (the dispatcher) are making these calls instead of them, the room has stopped being a room.
28
38
  - **The session owner** — the human running the session. They can inject an instruction at any point (a veto, a new constraint, a topic to explore, a request to add participants, a reminder like "we're a small startup"). See **The owner-injection channel** below for how this differs from a participant's suggestion.
29
39
  - **The log file** — a single markdown file (e.g. `<project>/brainstorm/<topic>-room.md`) that is the append-only source of truth for the whole session.
@@ -50,7 +60,7 @@ The session owner is not a participant, and their messages are not "just another
50
60
  - **Requests to add participants** are handled via the mid-session spawn pattern below.
51
61
  - **The owner can edit the goal contract itself** (tighten/loosen the threshold, add a "must also" criterion, change the goal entirely) — this is a goal-injection, distinct from a veto on content. Relay it to the room as an authoritative update to what "done" means, and re-run the scoring/convergence check under the new terms if a candidate was already mid-evaluation.
52
62
  - **Status requests ("what's happening in the room?") get a real status, not a decision.** Report what's been found, who's arguing what, what's still open — do not use the opportunity to steer. If the owner explicitly asks "which should we pursue," that's their call to make (possibly by asking the room, via you), not yours to answer.
53
- - **Owner instructions may also arrive over roomyx.** If you started a room server and attached a dispatcher handler to it, a veto / constraint / add-participant / goal-edit posted through `room.post_owner_command` is an owner injection exactly like one typed in chat — same standing authority, same handling as above. It reaches you as a command to act on; roomyx itself never writes to the log.
63
+ - **Owner instructions also arrive over roomyx, and you have to look.** The owner presses `o` in the TUI and posts a veto / constraint / add-participant / goal-edit; it goes into the room's queue and `room.post_owner_command` answers `queued`. Nothing pushes it to you. **Poll `room.get_pending_owner_commands` between turns** — every turn is cheap and right — and call `room.ack_owner_command` with the id once you have acted, so `pending` keeps meaning "not yet dealt with" instead of growing forever. A queued command carries exactly the standing authority of one typed in chat. roomyx itself never writes to the log; you do.
54
64
  - **Do not ask the owner "what should we do next" as your default move.** Once the room's goal is set, keep it running and report status; only surface a genuine fork to the owner if it's a decision only they can make (scope, budget, willingness to accept a risk) — not a decision participants should be making themselves.
55
65
 
56
66
  ## Mid-session participant addition
@@ -101,6 +111,21 @@ When the owner says "save this idea" (or a candidate clearly survives enough rou
101
111
 
102
112
  ## Setup
103
113
 
114
+ **Do the whole of this in one go, and do not stop to ask.** Casting the room is
115
+ not a decision the owner needs to confirm a second time — "start a room about X"
116
+ already said it. A setup that creates the log, then waits to be told to populate
117
+ it, then waits again to be told to start, turns one instruction into three and
118
+ leaves a room that exists but is empty. Pick the participants yourself from the
119
+ goal, spawn them, and hand back the attach command.
120
+
121
+ Ask only if the goal itself is missing or contradictory — a room with nothing to
122
+ converge on is the one thing worth a question.
123
+
124
+ **What to hand back, as the whole of your reply:** the room ID and
125
+ `roomyx-client --room <id>`, plus one line naming who is in the room. Not the
126
+ opening contributions — those are in the room, which is what the attach command
127
+ is for.
128
+
104
129
  1. Identify the persona profile files to use. **roomyx ships a library — install it with `roomyx personas`.** Look in `.roomyx/personas/` first and fall back to `~/.roomyx/personas/`; a project copy overrides the machine-wide one, the same order every runtime uses for skills. Either directory holds: fifty numbered interview personas (ordinary people in ordinary jobs, one per file), plus `founders/`, `tech/` and `panel/` for founder, engineering and judging roles, plus `questionnaire-50.md`, a fifty-question interview script for use with any of them. Pick a subset that fits the room's goal — a room does not need fifty voices, it needs the right three to six. If the project keeps its own profiles instead, use those; each profile should be a neutral biography/expertise sheet with no pre-baked opinions or conclusions.
105
130
  2. Write the **goal contract** (see above): goal statement, success criteria (default to the 50-criteria rubric for a startup-idea room), and the convergence requirement.
106
131
  3. Create the log. **If roomyx is available, create it with `roomyx room new` (JSONL) — see below.** Otherwise create a markdown file with a header: the goal contract in full (not just a one-line goal — include the criteria/threshold so anyone reading the log later can check whether it was actually met), list of participants (name + one-line role), and the ground rule that only the moderator writes to it.
@@ -209,10 +234,16 @@ Capture the `agentId` (or assigned name) returned by each spawn — this is what
209
234
  For each subsequent turn:
210
235
 
211
236
  1. Decide whose turn it is. Options: round-robin, or reactive (whoever was just @-mentioned or most directly challenged goes next), or "whoever has something to add" if you asked participants to signal that. Mix these — a real room isn't strictly round-robin.
212
- 2. Compose the delta: only the messages posted since that participant's last turn (typically: everything since you last messaged them). Do not re-paste anything they already said or already received — they remember it.
237
+ 2. Get the delta from the room, do not compose it: `room.get_delta_for` with the participant's id returns exactly the messages they have not seen, and reports `since_seq` and `cursor_from` so an empty delta is distinguishable from a wrong cursor. This arithmetic used to be re-derived in the dispatcher's own context on every turn; it was moved into the server precisely so the dispatcher stops carrying it. Without roomyx, compose it by hand: everything since that participant last spoke, minus their own words — they remember those.
213
238
  3. Send it via `SendMessage` to their `agentId`/name, with a short prompt: "Here's what's happened since your last turn: [delta]. Your turn — react, build, refute, research, or pass."
214
239
  4. Append their reply verbatim to the log file, prefixed with their name.
215
- 5. Report to the session owner after essentially every substantive exchange, not just every few turns — in practice, "frequent" means after each participant's reply that adds something new, not on a fixed cadence. Use real quotes from the transcript, not paraphrases, so the owner can judge the room's reasoning quality directly. If the owner has explicitly asked for frequent updates, treat that as the floor, not a suggestion to pace yourself against.
240
+ 5. **Do not narrate the room into the chat.** Appending the turn to the log *is* the report: the owner is watching the room in `roomyx-client`, where they get the transcript live, with scrolling, search and per-participant filtering — everything a chat retelling would flatten. Duplicating it into the chat is not extra service, it is the same text twice, and it buries whatever else the owner was using that conversation for.
241
+
242
+ This instruction used to say the opposite — report after essentially every substantive exchange, with quotes. That was right when a chat message was the only way the owner could see anything. It is wrong now, and re-reading the room into the chat is the single most common complaint about how this skill runs.
243
+
244
+ Without roomyx there is no live view, so fall back to the old behaviour: summarise into the chat, with real quotes rather than paraphrase.
245
+
246
+ What still goes to the chat, in one line each and nowhere near every turn: the room reached its goal, the room is stuck and needs a decision only the owner can make, or a participant died and could not be replaced. Status on request is always fine — if the owner asks what is happening, answer fully.
216
247
 
217
248
  **Mechanical note:** `SendMessage` to a previously-spawned agent runs it in the background and returns immediately; the agent's reply arrives later as a separate task-notification event, not as this tool call's return value. Don't block waiting for it — end your turn, and act on the reply when the notification arrives. Multiple participants can be messaged in parallel this way; their replies will arrive as separate notifications, in whatever order they finish.
218
249
 
package/src/cli.ts CHANGED
@@ -475,7 +475,22 @@ const COMMANDS: Record<string, Command> = {
475
475
  port: typeof flags.port === "number" ? flags.port : undefined,
476
476
  host: typeof flags.host === "string" ? flags.host : undefined,
477
477
  acknowledgeNonLoopback: flags["acknowledge-non-loopback"] === true,
478
- writerLeasePath: writerLeasePathFor(resolve(registryPath), absoluteLogPath),
478
+ // No `writerLeasePath`, deliberately, and this is worth stating because
479
+ // it was passed here and silently discarded on every serve.
480
+ //
481
+ // `serve()` takes the lease only when a dispatcher is attached, and
482
+ // "attached" means an *embedder* supplied an `onOwnerCommand` callback.
483
+ // `roomyx serve` never supplies one — an agent dispatcher has no
484
+ // callback to give; it reads `room.get_pending_owner_commands` instead.
485
+ // So the argument could never be used, while reading like a lease was
486
+ // being taken.
487
+ //
488
+ // Making the CLI declare a dispatcher was tried and is WRONG: the lease
489
+ // would be held by the server process, while the writer is the agent
490
+ // running `roomyx room append` in a different process each time — so
491
+ // the dispatcher would be locked out of its own room. Two dispatcher
492
+ // models exist (embedder writes in-process; agent writes by CLI) and
493
+ // only the first is expressible today. Recorded rather than patched.
479
494
  });
480
495
 
481
496
  const entry = registerRoom(registryPath, {