Repository navigation
pa_lab: read-only stdio mode for .mcp.json (console_status) - #528
Merged
Merged
Conversation
serve-stdio runs LabMcp(read_only=True): the console://B resources and one tool, console_status, which reports what checkin.sh does from lab-B's profile folder. Inbox-writing and control tools are neither listed nor callable; serve --read-only gives the same set over HTTP. Adds a smoke script, tests, and a dispatch skill line for reading console state through the tool in the lane tick.
dayfine
marked this pull request as ready for review
November 15, 2026 08:19
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.
Base: agents. Independent of #518; the diff shows only this change.
The main session had no way to call the lab server: it only ran as an HTTP daemon with a token, and lab-B's app does not write Lab/state.json yet, so console://B/state is always unavailable. This adds
python -m pa_lab serve-stdio --profile-dir <lab-B>, read-only by construction: the console resources plus one tool,console_status, which reports what checkin.sh does (app pid and deployment, Lab/state, last run lines, last press, keepawake, newest failure frame and screenshot, log tail). Inbox-writing tools (shot, describe_program, game_open) and control tools are neither listed nor callable;serve --read-onlygives the same set over HTTP. The dispatch skill's Lane tick now says to read console state through the tool when loaded, checkin.sh otherwise.Tested with the lab/server unittest suite (new test_status_readonly) and smoke_readonly.py against the live lab-B profile, which returned the running app and STOPPED state and left Lab/inbox untouched.