Repository navigation
Conversation
P4 Decision Log 92 (the owner's ruling): a MAWS session messages its human through the to-human plugin's mcp__to-human__message alone. mcp__maws__message leaves the maws server and the launch's allowed tools (the plugin answers its own calls; the engine asks nothing). MAWS's full contract goes: the launch decision turns the lane on only for a style declaring the plugin's message tool (6 and up, carriesPluginMessageTool), with supplement 3 beside it (MAWS's ask tool alone), and off for any other style or none. MAWS_NATIVE_TO_HUMAN advertises 8, MAWS offering no message tool. P4-R7y's SessionStart alias and P4-A2's appended copy go. Sessions recorded under contract 1, 5 or 7, supplement 1 or 2, or the alias render anew through the recorded-state machinery. A switch-on launch whose style carries no lane leaves the session's lane off for its presentation and items (laneInEffect). Every reader takes an accepted call of the plugin's tool as a to-human message, and MAWS's former tool's in recorded sessions (message-call.ts, both names); the renderer model's host-set messageTools and the desk's own list fold into that reading. The live normaliser skips the plugin's made-up answer after a final message: no partials of a msg_hook_ response, the whole frame by isMadeUpFinalAnswer (the flag on disk, the msg_hook_ id on the wire, and the exact text), and the turn's reply is the final message rather than the made-up text (side-thread summaries read it). PR #240's tests flip: a plugin call now reads as a message in every reader. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
The review of 7f7bd45 found four things, fixed here. (1) A declared contract of 6 does not register the tool: the to-human plugin registers mcp__to-human__message only under its own style, doperpowers:to-human, and only while its hooks load. The resolver now reports messageTool: that style, declaring 6 or later, the to-human plugin installed, enabled and applicable, and no setting turning every hook off (the launch profile's plugin off and hooks none both leave the lane off). (2) A decided launch's record now projects the session's items again, silently (laneChanged), so a launch whose style carries no lane takes them away at once. (3) A mark written while the style carried no lane is never an item, though the watermark stands. (4) A response after the made-up answer (a Stop hook that blocked the stop) clears the final message's claim on the turn's result. Also: session-maws's tool list (CI's unit 1/4 at 7f7bd45), a shared test helper that installs the plugin's style and the to-human plugin, the e2e scratch homes on it, and the hooks note in Settings. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…view round 2) The second review round found one edge of the registration check: managed settings' allowManagedHooksOnly keeps a user-installed to-human plugin's hooks from loading, so its tool is not registered. The resolver reads the key from the managed settings file, where the engine honours it, and reports no message tool under it. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
SSFSKIM
added a commit
that referenced
this pull request
Oct 28, 2026
…n's message tool; its ledger and the interface ledger's X6, X9, X18 Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
P4 Decision Log 92 is the owner's ruling. A MAWS session now messages its human through the to-human plugin's
mcp__to-human__messagealone. MAWS drops its ownmcp__maws__messageand its own full to-human contract. No to-human plugin means no to-human lane in MAWS.Do not land this before to-human 0.7.1 (doperpowers #415) is installed on the MacBook. Before that release, the plugin registers its tool only in interactive sessions, and every MAWS launch is headless (
-p). Landing earlier would leave MAWS sessions with no message tool at all.The launch (X6, X9, X18)
Tool server:
mcp__maws__messageleaves themawsserver (src/engine-host/tool-server/message.tsandsrc/shared/maws/message-tool.tsare deleted).ALWAYS_LOADmoves to the leafsrc/shared/maws/always-load.ts.Allowed tools: the launch's
--allowedToolsismcp__maws__askalone. The plugin's tool needs no entry: the plugin answers its own calls, and process-yield test: load the spine with a read that wakes no engine host (the design-system seed flake) #415's live check saw nocan_use_toolrequest for them.When the lane is on: the launch decision turns the lane on only where the plugin registers its tool, which the style resolver reports as
messageTool(src/main/owner/resolve-style.ts). All of these must hold:doperpowers:to-human(the plugin keys its tool on that name);to-humanplugin is installed, enabled and applicable for the session's directory;disableAllHooks; the launch profile's hooksnonesets it);allowManagedHooksOnly).What a lane-on launch carries: it appends supplement 3, which says only what MAWS owns: its ask tool in place of the style's. It no longer carries the message rule or the "not available here" sentence; the plugin's style body carries the message rule. Every other launch has the lane off: nothing appended and no variable set.
The advertisement:
MAWS_NATIVE_TO_HUMANis 8, meaning MAWS offers no message tool. It is set only where the lane is on.Gone: P4-R7y's SessionStart alias, and P4-A2's appended copy of it under hooks
none.Recorded sessions: a session recorded under contract 1, 5 or 7, supplement 1 or 2, or the alias renders anew at its next launch through the existing recorded-state machinery. Tests cover each case:
src/main/owner/launch.test.ts, anddecideFlags's table.The lane in effect: when the switch is on but the launch's style carries no lane, the session's lane reads off. This is
laneInEffectandstyleCarriesNoLaneinsrc/main/owner/mods.ts. It covers:Without this, every user without the plugin would get a report view that hides their sessions' unmarked prose, because the to-human switch is on by default.
The readers
src/shared/owner/message-call.tsnames both tools: the plugin's, and MAWS's former one for recorded sessions. Every reader takes an accepted call of either as a to-human message: the summary, the digest, recent turns, the renderer model and the desk.messageToolsseam (P4-R7x) and the desk's ownDESK_MESSAGE_TOOLSboth fold into the shared reading.msg_hook_streams no partials, since its text is not known to be a reply until it is whole.isMadeUpFinalAnswer. That predicate now matches on the flag (disk) or themsg_hook_id (wire, where the flag is absent), plus the exact text.resultTextis the final message rather thanMessage sent to the human., so side-thread summaries read the message. A response after the made-up answer (a Stop hook that blocked the stop) takes the result back.Behaviour changes
Subagents: a subagent can no longer message the human directly. The plugin refuses a subagent's call, whereas MAWS's tool accepted one.
Non-interactive registration: a MAWS session has a message tool only if the installed to-human release registers it in a headless session at
MAWS_NATIVE_TO_HUMAN≥ 8 (0.7.1 does).The launch profile: these settings now leave the lane off:
MAWS's, which is the engine's default style;none;The Settings › Engine notes say so. Whether to keep the
MAWS'sstyle option is the owner's call (tracker row).Hook-made responses: they no longer stream partials. Another plugin's made-up response appears whole when complete.
Sessions that ran under P4-R7y's alias: their conversation keeps the alias context. Resumed, the model may call
mcp__maws__messageonce, get the engine's unknown-tool error, and then use the plugin's tool (tracker row).Choices the ruling left open
enabled_atset anddesiredoff), so no schema change was needed.e2e/to-human-live.spec.ts) reads MAWS's contract 7 and supplement 2. It now skips with that reason until it is rewritten (tracker row).message, because the P4-B4 and P4-A3 fixtures were recorded against it. The unit test pins the source to that snapshot less that one tool (tracker row).Review
reviewer-high ran two rounds.
Gates
--gates static,unit,probes --class1a pool) pluse2e:to-humanon the mini (--runner macos).e2e:to-human,e2e:widgets,e2e:available,e2e:sideande2e:transcripton the mini, ande2e:desk-web. feeee75 changes only the resolver, adding the managed-hooks condition and its test.session-maws.test.ts); 25d8884 fixes it.Tracker: the row for MAWS's tool having no
finalis closed by this change. Five rows are added: the live run, the probe snapshot, the profile'sMAWS'sstyle, the alias in old conversations, and the mods row's Off without a reason.Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)