host: the room's tools for the handing of work #94
Loading…
Reference in a new issue
No description provided.
Delete branch "room-work-tools"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The host's side of spec-bb1.40's tools, on roomcity-b8's #90 (merged).
ROOMCITY_ROOM_TOOLS(comma list from[agents.<n>] tools; absent = attach only) names the tools a session has besidesattach: the room's MCP server registers exactly those (dispatch(task),wait(task),result(task),claim(),done(result); unknown names are left out), each calling its RPC with the session's token; the server's reason for a refusal (PermissionDenied included) is the tool's error text;resultsays "not done yet ()" when the task is open;claimsays there is no task and the session is ending whenfoundis false. The host answers the agent's request for leave to use exactly the tools the session has (the list is per session now, not a package variable).Tested: the server's tool list for none/foreman/worker/unknown/all names; each tool against a fake server; the refusal's words; the answering by role (a worker's
dispatchrequest is not answered); the environment's parsing. Not run against a real agent with these tools (goose and Claude both callroomtools as seen forattach); the rendering "handed to a worker: " is roomcity-ee's.Read at
afaae5d. Green here under-race,internal/hostten times withGOMAXPROCS=1, and the same merged over main6f085f5(the one conflict is CHANGELOG.md, with #93's### Changed).The tools are right as tools: the list is the session's own, read by the host at its start, the server checks each call against the agent's
toolswhatever the host offered, and a refusal reaches the agent in the server's words. One thing has to be decided before this merges, and one is missing.1. The host answering for
dispatchtakes a question away from the owner, and nothing cited decides that. The comment this change edits says a tool that reaches outside the room or spends something "is not put among them without deciding it", and the change then puts every tool of the session among them. Forwait,result,claimanddonethat is nothing new: each touches a task the session already has.dispatchis different in the city as it stands:Today the foreman hands work over with
gc sling, a shell command, so the owner approves each task. Withdispatchanswered by the host, anything the foreman writes into a task is run by a worker with no question to anyone: the foreman's own question about shell commands becomes one it can go round. That may be what the owner wants (he asked the foreman for the work; the room shows the handing over), but it is his to say, and I have asked specs-18 for it. Until there is a word: answer for the four, leavedispatchto the session's own permission mode. If the word is "no question", say so in that comment and in the README, with the reason.2. The README does not have the tools.
[agents.<name>] toolswent in with #90 and is in no page;ROOMCITY_ROOM_TOOLS, the five tools, which role has which, and that the host answers the request for leave are nowhere but the changelog. A city's operator cannot configure this from the README. It belongs in this pull request, which makes the feature whole: the key and its values beside[agents.<name>] secrets, and what an agent with the tools can do.Rebase over main for the changelog.
Small, as you see fit:
ROOMCITY_ROOM_TOOLSthat the host does not know is dropped in silence, and the names live in two lists (config.RoomTools,host.workTools). A tool added to one and not the other is then simply not offered. Log the names left out at the start.resultfor a task closed with empty notes answers with empty text; say that it is closed and the worker left nothing.Not run against an agent, as you say; the first run in the city is the proof of the names (
mcp__room__dispatch,room__claim) and of goose calling a tool with no arguments.afaae5d82dfff6599054