Repository navigation
Description
What
Swap which maws tools load with every request under tool search: mcp__maws__ask loads up front, and every artifact and document tool is deferred.
- Give
ask_meta["anthropic/alwaysLoad"]: true(src/shared/maws/tools.ts, itsMAWS_TOOLS.askentry). - Take
ALWAYS_LOADoffartifact_describe_type,artifact_readandartifact_publish(src/shared/maws/tools.ts) and offartifact_edit(src/shared/maws/document-tools.ts). Everyartifact_*tool then defers.
The owner's direction of 2026-10-31, for the UX wave after P5.
Why
- MAWS withdraws the built-in
AskUserQuestion(--disallowedTools AskUserQuestion --allowedTools mcp__maws__ask,src/engine-host/launch.ts), and the built-in is never deferred. Its stand-inmcp__maws__askcarries noalwaysLoadtoday. A session behind the gateway (ENABLE_TOOL_SEARCH=true) therefore starts with no ask tool loaded. Its first question costs a ToolSearch request, and a model that skips that step may ask in plain text and end its turn instead of raising a card. - The ask is the session's channel to the human; the artifact and document tools serve one kind of work. Their four schemas are what make most of the always-loaded context today.
The trade-off already measured
P4-A3 (docs/doperpowers/plans/2026-10-21-p4-a3-edit-protocol.md, results (a), B3, n=10 each on the mini) added alwaysLoad to the four edit tools as its lever 1:
- base: landed 34.7 s median, 3 requests to the landing;
- alwaysLoad: 27.5 s, 2 requests, first byte 4.06 → 1.56 s;
- cost: +2,885 tokens in the first request's context.
Deferring them again gives back that ~7 s on a session's first edit, in exchange for the context. Whoever builds this restates the trade in the PR. If A3's attach lever (the read attached to the edit) is in use, it may cover part of it.
Acceptance
tools/listlistsaskwith_meta["anthropic/alwaysLoad"]: true, and no othermawstool with it. The test that pins the list's_metachanges with it.- A probe under MAWS's gateway launch (the B4 probe's stub, nothing spent) shows
mcp__maws__askin the request's tools withoutdefer_loading, and everyartifact_*tool deferred. - The server's instructions paragraph still names the tools a deferred session loads first (
artifact_search,artifact_read), so an artifact task still finds them. - Direct-API launches, where MAWS leaves
ENABLE_TOOL_SEARCHto the engine's default, are probed once and the result recorded, since the B4 probe covered only the gateway launch. - The to-human supplement's ask line (
src/shared/owner/contract.ts,ASK_HERE) still reads true.
Where it came from
The owner's questions of 2026-10-31 on what MAWS adds to the engine (session engine-integration-questions): today artifact_read, artifact_edit, artifact_describe_type and artifact_publish load up front, and the other 14 maws tools, ask included, are deferred.
Sminos-Session: maws-48#2e33425f (MAWS on macbook)
Activity
UX wave spec: three answers of the owner's (the next-prompt suggestio…
SSFSKIM commentedon Nov 12, 2026
[answers] The owner answered both halves on 2026-11-12 (UX wave, cards 'Ask tool' and 'Edit tools'). Ask tool: 'Two steps (Recommended)': this ticket is step one (MAWS's own ask loaded up front, and a question that does not block unless the call says so); step two, the sminos question tool in a session MAWS runs, is #600. Edit tools: 'Defer them. They are generally not needed. Seven seconds are fine. Cost of the context token is more important. Artifact and document editing tools are sort of an extension tool, not the main tool.' So the four always-load edit tools go back behind tool search here too. This ticket is the wave's landing U1d (child U1 of docs/doperpowers/specs/2026-11-12-ux-wave-design.md), built after U1b (#586) so that a question that does not block has the waiting mark and the card's line.
SSFSKIM commentedon Nov 12, 2026
[board] ready-for-implementer: No longer deferred: the owner answered both halves on 2026-11-12 (see the [answers] comment). It is the UX wave's landing U1d, built after #586.
SSFSKIM commentedon Nov 23, 2026
[board] in-progress: Built with #421 from the tool-choice plan's M2.
Tool choice: a session's MAWS tools and question tool, chosen at start (
SSFSKIM commentedon Nov 24, 2026
[board] done: landed on master 4ddfdd0 (squash of PR #860)