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>
world: serve a plain HTTP API without external world libraries
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>