Also: drop open_pr's request-id cache (the branch-slug rule already stops a
duplicate PR), close a keep-alive connection whose body was never read, time
out idle connections, bound unknown-base fetches to one per 5 s, install a
hashed dependency lock, remove unused World.tools/knobs, and describe the
current credentials and routes in the README.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pybot client: answer slow calls with a ticket for pybot_wait; capture in a private object store; run the client isolated
The world now runs on its own small HTTP server (server.py, standard library)
with per-seat agent credentials from PYBOT_TOKEN_<seat> (Bearer or
X-World-Token): POST /v1/tools/<name> with flat arguments, the direct
GET /world/manifest and POST /world/tools/<name> routes with the
{"ok", ...} envelope, /healthz, and /metrics and /admin behind
PYBOT_ADMIN_TOKEN. Admission control (429 + Retry-After) and parked mode
are kept.
open_pr and run_bot take the agent's change as a workspace argument
{base_sha, patch} (patch only); a missing base is fetched from the Hub,
else the call fails with unknown_base. Tool schemas come from the tool
methods' type hints and docstrings (api.py). The lanes, state store and
process isolation are vendored; bucket snapshots use huggingface_hub
directly. requirements.txt lists only huggingface_hub.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pybot task: start the pybot MCP server from a pinned, checksummed copy
pybot_mcp.py serves the world's tools to the agent over MCP stdio, adds the
caller's clone to open_pr and run_bot as a patch, and checks itself with
--self-test. The instructions and CONTRIBUTING.md name the tools directly.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6 days ago
world: install legion at a pinned commit instead of vendoring it (#1)