Skip to content

Subagent tell: a MAWS session's message box writes straight to its agent - #876

Merged
SSFSKIM merged 12 commits into
masterfrom
ux-wave/subagent-tell
Nov 24, 2026
Merged

SSFSKIM merged 12 commits into
masterfrom
ux-wave/subagent-tell

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 24, 2026

Copy link
Copy Markdown
Owner

A MAWS session on this Mac now sends a message straight to one of its subagents. Before, the box asked the parent to pass it on with SendMessage.

  • Built-in mod mods/maws-tell, shipped in the app's resources and passed with --plugin-dir on every live launch. It has one tool, tell, which no model is offered and which runs only for the host's own checked call. The tool sends with $.session.send({ to: { agentId } }).
  • Engine host: a new session.tellAgent command; the status gains tell; WIRE_MINOR 62. The mod is left out of the session's plugin and MCP lists.
  • Window: the drill-in box is direct for a running agent, for one its parent waits on, and for a finished one, which resumes with the message. The box stays closed for a stopped agent. In plan mode the engine refuses the checked call (fixtures uxwave-tell-*-plan), and where the mod didn't load, so in both cases the box keeps the relay through the parent.
  • Recorded: charter §19 Decision Log 2026-11-24 (an exception to D-21). Left for later: Direct subagent tell for a lane B session on another machine #862 (a session on another machine) and Desk: message a subagent from its detail view #863 (the desk).

Gates at 3c067c6 (master 760d7ad merged in):

  • class 1a 45360653781, green; desk-web 45360805871, green.
  • Mac: e2e:agents 28 passed at 0a1c4ca, the new direct-tell stub scene among them. The packaged smoke check (the mod is in the package) passed at 1b00960. Since then only one spec line, two master merges (docs, spikes and two tests), a tracker row and the fixtures' plugin folder written as <repo> have changed.
  • Paid e2e:agents-live, two runs approved by the owner (cap US$0.50 each; US$0.041 spent in all), both at 0a1c4ca:
    • Step vi passed live: the box sent directly to a running agent, with the parent both busy and idle, and both messages arrived. In plan mode the box reads "Relay via".
    • Step vii passed live on the product launch: the agent was backgrounded and its box was open and direct.
    • Step viii passed live: a finished agent's box stays open for a direct message.
    • Both runs are marked red for reasons outside this branch. In the first, step viii had no agent, because step vii wasn't selected. In the second, the fork-gate-off launch resumed the same conversation, and the model declined the repeated request without dispatching. That one is logged in the tracker, since the spec is paid.
  • Not run (manual): e2e/c12-prerun.spec.ts, moved to the direct path.

Medium review: 5 fixed, 4 logged in docs/tech-debt-tracker.md.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)

…ecord, no product change)

Against the scripted Messages API stand-in under a scratch config home: a --plugin-dir mod's tool,
whose tool.run hook calls $.session.send to an agent id, runs only under a checked mcp_call; it
reaches a running background child, a waited foreground child and a finished one, and refuses a
stopped one, answering an error either way (told apart by the hook's marker). A tool.offer hook
keeps it from the model and the hook refuses a call that is not the host's. Plan mode refuses it;
dontAsk refuses it unless the mod allows the host's call at tool.check, which also spares the
host's can_use_tool. The stand-in gains a respond hook for a scripted subagent beside its parent.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…ilt-in mod (the owner's call of 2026-11-24)

A message typed to a subagent of a session on this Mac reached it only through the parent, as a steer
asking it to SendMessage the child. The engine offers a host no direct path (send_task_message is
unsupported on a local session), and only a mod can call $.session.send({ to: { agentId } }). MAWS
now ships one, mods/maws-tell, passed with --plugin-dir to every session the engine host runs and
recorded in the charter as an exception to D-21, the host's own channel. Its one tool is offered to
no model, allows only the host's checked mcp_call (by its id) and sends the text.

- The engine host: session.tellAgent (wire minor 62) makes the checked call and reads the engine's
  answer by the mod's marker; the status says `tell` while the mod's server is listed, and the
  session's plugins, servers and the MCP widget's answer leave the mod out.
- The window: lane B's tell uses the command; the drill-in's box tells the agent itself whenever the
  session's tell is open (a running agent, one its parent waits on, a finished one, which the engine
  resumes), and keeps the relay through the parent in plan mode (which refuses the host's call), where
  the engine took no mod, and for a session on another machine (ticket 862; the desk, ticket 863).
- The shipped mod probed against the scripted API stand-in (uxwave-tell-builtin-*), and the cases
  pinned from those fixtures.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…call, the box while a tell is out)

- A tell goes only to a string shaped as an agent id the engine mints, checked by the host and by
  the mod, since the engine's send reads any other string as a name or another session's address.
- The status says `tell` only where the engine also offers a checked mcp_call
  (mcp_call_check_permissions_v1, its initialize answer and system/init); an engine can serve mods
  with that call off, and the box would offer a path that always fails.
- A plain success is read as delivered only when it is the mod's own word.
- A session on another machine offers no tell before main's first word on it either.
- The box is held while a tell is out, so an edit made then is not cleared by its answer.
- The charter's entry says a mawsd release ships the mod with ticket 862; four findings logged in
  docs/tech-debt-tracker.md with their reasons.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…t now ships (the agent-id check)

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
… machine (ticket 862), and lane B's port named as its guard

Class 1a's unit shard 1 (run 45324856388) failed the offer audit: every session command that crosses a
machine link is offered, answered by main or declared.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…of it, and the package's mod checked

- e2e/agent-tools-live.spec.ts (e2e:agents-live) and e2e/c12-prerun.spec.ts (e2e:default, manual):
  where the session's status says `tell`, the drill-in's box sends directly, reads Sent, the child's
  inbox gets the text and the parent sends nothing; the live spec asserts the relay only in plan
  mode, where the box falls back to it, and reads a finished or foreground agent's box as open. Where
  the engine runs no mods the steps read the relay as before.
- e2e/agent-tools.spec.ts (e2e:agents): a live launch on the stub engine replaying the shipped mod's
  probe, derived for a replay (spikes/protocol-probe/uxwave-tell-replay.mjs ->
  uxwave-tell-builtin-replay.jsonl): the box names no parent, Send writes the host's call the replay
  holds for, and the line reads Sent. src/engine-host/tell-replay.test.ts runs the same replay
  through the engine host.
- e2e/smoke.spec.ts (e2e:default, e2e:packaged): Resources/mods/maws-tell/.claude-plugin/plugin.json is
  in the package (the checkout's mods/maws-tell otherwise).

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
The one conflict, docs/tech-debt-tracker.md: both sides' new rows kept, master's first.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…the harness page

e2e:agents runs with MAWS_HARNESS=1, under which the window loads the development harness, whose
sidebar lists only its scenario; the scene's seeded project never showed (Mac run at 1b00960,
support/sidebar.ts:134), though its launch, first message and the status's `tell` had passed. The
scene's launch now names MAWS_HARNESS=0, as the group's other own-launch scenes in other specs do.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
… repeat of the first

The paid run of 2026-11-24 (steps vii, viii): launch 2 resumed launch 1's conversation, and its
model answered that the same foreground request had already run, with no tool call (journal
hyiotz2l: first message line 53, init line 59, result line 174). The spec's prompt is master's; a
distinct request per launch would fix it, logged rather than fixed because the spec is paid.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…out path

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T09:22:56.738560Z 3c067c6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM merged commit dc864b9 into master Nov 24, 2026
@SSFSKIM
SSFSKIM deleted the ux-wave/subagent-tell branch November 24, 2026 09:22
@SSFSKIM

SSFSKIM commented Nov 24, 2026

Copy link
Copy Markdown
Owner Author

Landed master-first as dc864b9 (parents 760d7ad, 3c067c6; tree 296edfb6 = the gated head's). Branch and worktree removed.

Sminos-Session: master-landing-architect#37052769 (MAWS on macbook)

SSFSKIM added a commit that referenced this pull request Nov 24, 2026
…omes minor 63

The subagent tell (#876) took WIRE_MINOR 62; session.events' provisional and
engine.provisionalWindow move to 63, the manifest and fingerprint written by
the generator with both.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
SSFSKIM added a commit that referenced this pull request Nov 24, 2026
…etirement

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant