Skip to content

Tool choice: a session's MAWS tools and question tool, chosen at start (#421, #420) - #860

Closed
SSFSKIM wants to merge 50 commits into
masterfrom
ux-wave/tool-choice
Closed

SSFSKIM wants to merge 50 commits into
masterfrom
ux-wave/tool-choice

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Tool choice (#421 and #420): a session's MAWS tool groups and its question tool are chosen when it starts and kept for its life. MAWS's ask is loaded up front, and the artifact and document edit tools are deferred behind tool search. Plan: docs/doperpowers/plans/2026-11-23-tool-choice.md (Progress, Known limits, Decision Log and Outcomes current).

What it does

  • The set: four switches (Artifacts, Documents, Dashboards, Auxiliary) and the question tool: MAWS's ask, or the engine's built-in AskUserQuestion. A new chat takes them from a Tools submenu of "+". The machine's default lives in Settings › Sessions. The set is fixed at start; a resume keeps it, a fork takes its source's, and /clear keeps it on both transcripts. session.spawn takes the target machine's default. A session at the full set launches exactly as before.
  • The host serves exactly the set: tools/list, the instructions paragraph and the launch line follow it. A call of a tool that is off is answered as unknown. A host without the capability gets the full set, and a resume of a partial set there is refused.
  • UX: load the ask tool up front and defer every artifact and document tool #420: ask alone carries alwaysLoad; the four edit tools go behind tool search (the owner's call of 2026-11-12). blocking is now a required argument, its description steering the agent to false, and a call without it gets a short refusal naming it. Old journals draw as before.
  • Question Default: the engine's built-in question is answered in MAWS and reaches the project channel. The supplement names the session's question tool.
  • Send waits for the picks still being saved (model, effort, mode, route, Tools, the draft and the project row), here and on a spawn to another machine. Closes Send waits for the chip picks still being written to the intent #854.
  • Records: charter X9, X6, X1 and §19; the P1 spec's A-58; P4-A3's lever 1 reversed. WIRE_MINOR 61.

Proof

  • Head 5fb05cf502ad6383e934e18abce2aa00e6baca8a on ux-wave/tool-choice, holding master ac501d33214cd2bf9ad3b960ef8615bf75a82233 (the report view repair, Report view repair: steer stretches, terminal spacing, hidden-cell gaps, raw receipt, unfolded deliveries, fold motion #850).

  • Plan: one adversarial review (13 findings, fixed in revision 2) and the coordinator's rulings (revision 3).

  • Build: six milestones, each with a task review.

  • The branch's high review: 9 findings. 3 were fixed test-first:

    • a pick lost to Send;
    • a refused ask left in the project channel;
    • an unbounded channel id.

    6 were logged in docs/tech-debt-tracker.md and the plan's Known limits, each rare: a downgrade widening a set, /clear before discovery, a host replaced mid-launch, a new ask caught in a handover, a capability cached across a daemon restart, and the dev-only Resume live.

  • GitHub at the head: class 1a 45280762771 and desk-web 45280767476, success. Both runs' trees equal the head's. The VM ran the whole unit suite once; every failure was on the known list.

  • Mac (CI-opt):

    • M1 and M2, at 3ad2a229082c718d0fb07e850c9d4733f14c6a90: tools, supervisor-daemon, design-systems, requests and transcript, green.
    • M3 to M5, at 3f736cd451f5f260dcd22f045322a1f474914b8c: default, available, to-human, requests, side, settings, and cross-build against 397ca9a, green.
    • composer at dc407d874c4caf90cfec9dc9493dfcd5bcd3af4d: green on both lanes, after a test fix (Radix moves focus after each arrow press).
    • The review fix wave, at 70bb5fcbfcc900d4c2e55329f4d6ad6f7b12dc97: default, composer, machines, settings and to-human, green.
    • remote at f471d99104cb253610cd1748b7cb064222dee9b8: green, after its replayed ask gained blocking.
    • After the merge of Report view repair: steer stretches, terminal spacing, hidden-cell gaps, raw receipt, unfolded deliveries, fold motion #850, at the head: to-human (5 passed) and tools (19 passed), on the host. tools first failed in a guest's setup: a font download was blocked by the network (discover-live can't pass on the Macs' network: storage.googleapis.com is redirected, so install counts are unavailable #859).
    • Cross-build against the older 95050ef: the new scene "(maws tools, older engine host)" passes. Five other scenes fail against that peer on master 4598840e49cc6e6cfec05e18b78b94447d24ac16 too, the same five with the same errors, so they're master's against a peer that old.
  • Paid engine tests (the owner's approval of 2026-11-23, one run each, at the head): all green, US$0.0383 together.

    • tools-live: US$0.0112 of its 0.20 cap. Its five cases include Question Default and the blocking and async asks.
    • document-live: US$0.0077 of 1.00.
    • presentations-live: US$0.0194 of 0.75.
  • Residue: Machine settings mirror: the route key misses a daemon swap under an unchanged value #855 (the route mirror misses a daemon swap under an unchanged value).

Closes #421. Closes #420. Closes #854.

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

…three engine probes it stands on

The plan: a session's set of MAWS's tool groups and its question tool, fixed at its start, kept by resume and fork,
seeded from a per-machine default; the ask loaded up front and not waiting by default; the edit tools deferred.
The probes (stub API, nothing spent, engine 2.1.330): alwaysLoad holds for an SDK server's tool under tool search;
tools/list_changed is honoured but leaves a loaded tool and the paragraph behind, live and at a resume; the built-in
ask, left in, raises the can_use_tool MAWS already answers.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…ngs, and the probe it asked for

A session resumed under a changed list reads the tool descriptions of its first launch (P4, two fixtures and a test),
so the ask's default is the session's for good, like its set: a session this build starts records its set, a record
without one is a session from before and keeps the old ask. The set a launch gets is resolved once per attempt; a
/clear keeps it on both transcripts; a chat sent to another machine offers no choice; the engine's question reaches
the project channel; the wire's shapes are all declared in M1. Decision Log 6 says what became of each finding.

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

blocking is a required argument of the ask, steered to false, in place of a default: the second description, the
per-session default, the journal's marker and the downgrade limit go, and a stored set is again written only when it
is not the full set. The set is fixed at start; Documents keeps the ticket's cut and its note says what it covers;
the + submenu stays while the owner decides (a chip would change M5 alone); the default is per machine.
Decision Log 7.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…aster 4598840, which holds 848

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…ght check of the instructions split against 848

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

A session's set (four switches and the question tool, src/shared/maws/tool-set.ts)
rides the launch spec, absent meaning the full set. The engine host lists the set's
tools, gives the artifact sentences only with Artifacts on (the paragraph split into
MAWS_ARTIFACT_INSTRUCTIONS and MAWS_FILE_INSTRUCTIONS, their join byte for byte as
before), drops the two ask flags for the engine's question tool, records the set in
every spawn row and adopts it from there; the linked read keeps artifact_read
whatever the set, and the provisional layer previews only a listed tool. An unknown
tool's refusal names the session's tools. The intent, its patch, the session record
and machineSettings.* declare the optional key; the engine host lists
engine.mawsTools; WIRE_MINOR 61. Nothing sends a set yet.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…sal's empty form

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…dit tools deferred

Board ticket 420. X9: the ask alone carries _meta alwaysLoad; artifact_describe_type,
artifact_read, artifact_publish and artifact_edit go back behind tool search. The ask's
blocking is required (AskInputSchema), its description steers it to false, and a call
whose only fault is the missing argument is answered askBlockingRequired. Records are
read with AskRecordedInputSchema (blocking optional, absent meaning the call waited):
the normaliser and derive.ts. An ask an earlier host admitted, re-raised at a handover
or restored, is read as recorded, so one with no blocking keeps waiting. An error
answer takes an ask out of the normaliser's open set. The p4 probe snapshot names the
places it is older than the source; the ticket 421 probe gets MAWS's own list
(uxwave-421-maws-tools.json, pinned by tools.test.ts) and a refused-then-async scenario.

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

The ticket 421 probe's P1 (ask-upfront, ask-upfront-unset) is served mawsToolList() and the
full set's paragraph (uxwave-421-maws-tools.json) on engine 2.1.330 against the stand-in API:
the ask alone is whole in the first request, the other seventeen are deferred names, and
the paragraph names artifact_read and artifact_search (A7, A8). uxwave-421-ask-refused records
an ask without blocking refused with the host's sentence, then asked again with false and
acknowledged while the turn writes on; tools.test.ts holds its refusal to TOOL_ERRORS.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…ch snapshot's lint

e2e:tools: the cases that replay pass3/p1-maws-ask-blocking give its call blocking: true
(askFixture), as do the derived asks; a new case replays the ticket 421/420 probe's refused
ask (askRefusedJournal): refused with the sentence and read as an error, asked again with
false, acknowledged while the turn writes on, waiting as an async_input item.
e2e:design-systems: the design-system ask states blocking: true. e2e:supervisor-daemon: a
blocking ask waiting across an update's handover is raised again by the successor and its
answer settles the engine's call once.

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

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
A create intent is seeded with the machine's default set of MAWS's tools (the
full set until M4), and a patch keeps a set only when it is not full; a fork's
intent refuses one. Each launch attempt answers once which set it serves
(served-set.ts): the intent's, or a fork's or side thread's source record's,
or a resume's record's; on an engine host without engine.mawsTools a new
session gets the full set and a kept set is refused with a sentence. The record
(index column maws_tools, added without a user_version change), the spec and
the supplement are made from that one answer; a /clear carries the set to the
old transcript's record. Question "Default" appends supplement 4 in place of 3.
The project channel folds the engine's own question and its answers.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
sessions.spec (default): a new chat at Artifacts off and Question Default, its
fork and its resume, each launch's spawn row by its launch id. sessions-available:
a discovered session resumes with the full set's line. to-human: Question
Default launches with neither ask flag and supplement 4. cross-build: this
build's spine on an older engine host sends no set and records none.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
The check that this build's spine sends an older engine host no set ran inside
every update crossing, but a crossing whose builds both list host.holder hands
over at the attach and never reaches it, so a green run said nothing. It is now
the scene "(maws tools, older engine host)", run through a crossing step only
where the peer serves no set and predates host.holder (--peer 95050ef), and
skipped with the reason otherwise; a crossing that hands over refuses the step.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…of its own

machine-session-defaults.json beside machine-settings.json (which gains no
property and keeps version 1), read loosely and written by the spine under the
machine file's writer and refusal; an absent, unreadable or unknown file is the
full set in memory, and the last two refuse their writes. The spine serves the
set on machineSettings.get, .set and .changed and seeds each new intent from
it, so a session.spawn takes the machine's default; main's mirror follows it
and reads an answer without the key as a daemon that predates the choice.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Two rows after the launch profile's: MAWS tools, four switches each beside
its word, whose fact is its tooltip and description (Documents and Dashboards
greyed with "Needs Artifacts" while Artifacts is off, and turned on with it),
and Question tool, a segment of Default and MAWS. They read and write this
machine's spine through machineSettings.*, and are not drawn on a spine whose
answer carries no set. maws-tools-default.ts is the read the composer's
submenu will use to learn whether a machine honours the choice.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
e2e:settings gains a case: the two rows found by search, Artifacts off
greying its two dependants, the switch and the Question segment writing
machine-session-defaults.json, and the choice standing after a relaunch.
e2e:default's kept-set case sets the machine's default after the fork: the
resume keeps the session's own, and a new chat starts from the default, its
first spawn row holding it.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Settings › Sessions makes each edit over the newest choice: while its write is
out no read replaces it, and once it settled only a read sent after it does,
so a read sent before a write that lands between two quick edits no longer
rolls the display back and the next write carries every edit. Main's mirror
tells its listeners when mawsd is replaced by one that knows the choice or
one that does not, even where both serve the full set.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
A new chat's "+" menu offers Tools after Connectors and Plugins: the four
groups as checkbox items that keep the menu open, Documents and Dashboards
refused with "Needs Artifacts" while Artifacts is off, and the question tool
as a radio group, each item's fact its row note. The frame's binding is set
by intentBindings alone, for a create intent on a spine that answers a set,
starting on this machine; a fork, a started session, an older spine and a
chat sent to another machine get none.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Two rows in the Engine section, from the record's set (absent: the full
set), drawn only while an engine status is held.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
e2e:composer: an unstarted chat chooses its tools by keyboard alone, each
choice a patch of the intent; a started tab offers none. e2e:default
(sessions.spec): Session info reads the set M3's session keeps.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Each choice in the Tools submenu is made over the newest set chosen, held
in the "+" menu until its own write settles, not over the set last drawn
from the intent, which takes a write's set only when its answer arrives.
The toggle case now uses a binding that follows its writes; a new case
withholds the answers and checks that every choice survives.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…; P4-A3's lever 1 reversed)

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…y what each now does

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…sk that keeps working, in auto; document-live and presentations-live: a first edit through tool search), and the journal reader they share

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…fter the ask returned

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…d, in the checks note

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…h call ran, the message carries the pick and a reply after it names the answer; X9 and A-58 scope the blocking refusal (only fault; the handover exception); the trade stated as measured; X9 quotes the full paragraph

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…es & Retrospective

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

Radix's roving focus moves focus in a setTimeout after each ArrowDown, so three
presses sent back to back all left from Documents and focus stopped short of
Default. The case now polls after each press and names the row it reached. A
unit case pins the walk from Artifacts, turned off, through the two refused
rows to both question tools.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
A chip picked just before Send (two quick Tools choices, a model, a mode, a route) could lose to the start: the spine
marks the id starting at once and refuses a write still waiting behind another, so the launch took the earlier set,
which a session keeps for its life. The start now waits for every intent write this page made before it, answered or
refused, holding the frame greyed meanwhile (board ticket 854).

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
The normaliser opens an ask as a record is read, so a live call without `blocking` (a session following the ask's
older description) put its question in the channel before the host refused it, and the agent's corrected retry put a
second. Lane B now notes an ask call whose tool use leaves `blocking` out and holds its questions for the ask's fate:
an error result (the refusal) records nothing; an answer, a cancellation or a result that is no error records them as
asked. An ask recorded before ticket 420, which waited with no `blocking`, replays as before, proved on the recorded
pass-3 probe through the normaliser beside ticket 421's refused-ask recording.

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

Lane B keyed the engine's own question by its whole URI-encoded text, on the question and again on its answer, and the
channel journal cuts an entry's text but never its src, so a long question could pass the page or the hub frame bound.
Both paths now key it by the request id and the SHA-256 of the text (43 characters of base64url), so the answer still
finds its question.

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

Decision Log 10 names the high review's three fixes and where each is proved. Known limit 2 is narrowed to a refused
ask that stated `blocking`; limits 6 to 8 add the downgrade widening, the host replaced between the capability read
and the launch, and the composer's one read of the spine. Six tracker rows: those three, Known limits 4 and 5, and
Diagnostics' development-only Resume live.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…h a line on what they read

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…e picks too, and an e2e holds a Tools pick across a real Send

The remote branch of Send (session.spawn) sent the model, effort and mode the composer drew before the press, so a
pick still being written could miss that launch. The intent writes in flight now live in intent-writes.ts, which the
first start and the remote spawn both wait on; the spawn then reads the intent the writes left (its mode the intent's
own, else the person's default as drawn). With no write on its way it goes on in the same tick, as before.

e2e:default gains the launch-level proof: under MAWS_E2E_INTENT_PATCH_HOLD the spine holds a write of mawsTools until a
file is gone (e2e-patch-hold.ts, the repo's file-gated hold pattern, inert outside MAWS_E2E); the scene picks Artifacts
off in the "+" menu, presses Send, sees nothing start while the write is held, lifts the hold, and finds the pick in
the record and in that launch's own spawn row.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…'s guarantee as built, and 854 closed on both machines

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…aches the service in the tick it was asked

Awaiting an absent hold added a microtask yield to every production patch, so an operation on the same intent asked
after it (a discard) could take the intent's lock first. The handler now branches before any await: with no hold it
calls the service on its original schedule; with one, the patch follows the hold. A register test pins the order.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…he fold cannot match to its tool use

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
The scene's replayed mcp__maws__ask call carried no blocking argument, so the
host has refused it since ticket 420 made the argument required, and B's
maws.asks.list never held it. The call waits for A's answer, so it says
blocking: true, as the other replayed asks were given in M2.

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

# Conflicts:
#	docs/tech-debt-tracker.md
…cket 850)

Clean merge. contract.ts and spine-root.ts took both sides: the mod's route switch is off again, beside supplement 4 and the machine's default tool set. Question Default's launch advertises 8 either way.

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-24T00:51:53.248513Z 5fb05cf 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 added a commit that referenced this pull request Nov 24, 2026
#860; #421, #420, #854)

Four switches (Artifacts, Documents, Dashboards, Auxiliary) and the question tool (MAWS's ask or the engine's AskUserQuestion), chosen from a Tools submenu of "+", with the machine's default in Settings › Sessions. The set is fixed at start; the host serves exactly it. Send waits for picks still being saved (#854).

Squashed from ux-wave/tool-choice at 5fb05cf (50 commits) at ux-wave's request; tree 0b5b3ec = the gated head's. Class 1a 45280762771 and desk-web 45280767476 green on that tree; Mac groups per the PR body; three paid live tests green. Five cross-build reds against the old peer 95050ef are master's (tracker row of 2026-11-23).

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

SSFSKIM commented Nov 24, 2026

Copy link
Copy Markdown
Owner Author

Landed as squash 4ddfdd0 on master (parent ac501d3; tree 0b5b3ec5 = the gated head 5fb05cf's), at ux-wave's request so that one branch commit's message stays off master. GitHub can't mark a squash made outside it as merged, so I'm closing the PR by hand.

Sminos-Session: master-landing-architect#37052769 (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

1 participant