Skip to content

v0.41.30

Choose a tag to compare

@github-actions github-actions released this 28 Nov 20:28
e120bb7

Highlights

A bug-fix release. Each fix was reproduced on 0.41.29 first, on the running gateway or with its own tests against 0.41.29's code, and then verified on the release candidate.

  • A plug tool's number must be a whole number (#764, @leninworld). Every integer argument of the GitHub, Microsoft 365, Vercel and InsForge tools went through int(). On 0.41.29:

    • merge_pull_request with {"number": 7.9} merged pull request 7;
    • {"number": true} merged pull request 1;
    • "#7" failed as "The call failed (ValueError)".

    Anything but a whole number (7, 7.0, "7") is now refused with a tool error that names the argument, before the vendor is called.

  • An environment's source has a total, and a git import is capped (#766, @prathameshk421, for #761).

    • The source as a whole: it may hold HR_ENV_SOURCE_MAX_BYTES (2 GiB) in HR_ENV_SOURCE_MAX_ENTRIES entries (100,000), across every write, folder, merge and import. Past it, a change is refused and the source stays as it was. A source already past a lowered cap can still shrink.
    • The download: a git import no longer runs one unbounded clone. Its download is watched and stopped past HR_ENV_GIT_MAX_BYTES (2 GiB) or 10 minutes.
    • The tree: before a file is checked out, the tree is listed and held to the archive caps. A small repository that names one folder inside itself ten levels deep can no longer unpack to billions of files.
    • The checkout: it runs with no filter and no line-ending or encoding conversion, so an LFS smudge or a UTF-16 attribute cannot grow it.
    • Requirement: a git import needs git 2.36 or newer where the runner runs. The image has 2.47.
  • A hosted MCP server answers a malformed request with the 400, not a 500 (#760, @leninworld). The database, media, plugs and memories servers answered 500 to a body that is JSON but not a request object ([], null, 5), or whose params is not an object. They now answer 400 malformed JSON-RPC request. An empty params array is still a call with no parameters, as JSON-RPC allows.

  • A memory's records list refuses a cursor no page returned (#762, @leninworld). GET /v1/memories/{id}/records?cursor=abc (or 1.5) answered 500. A negative cursor read from the end of the list, and a huge one reached the memory engine. A cursor is now the next an earlier page returned; anything else is 422 memory_invalid (param: cursor), before any engine is called.

  • Two per-session locks no longer outlive their users:

    • Build follows (#758, @leninworld): reading a setup build that does not exist, or one long finished, left a wake-up event behind for the life of the gateway.
    • Browser opens (#775, @aarush323): a failed or cancelled browser open, or a close by another replica, left that session's open lock behind.
  • The published schemas validate in every language (#771, #772, #773, #774, @m3lonxd, for #767–#770 by @aenawi):

    • Null keys: nine property descriptions were cut at an unquoted comma, leaving null-valued keys in the generated JSON Schema. The same problem was in every earlier version too, including 2026-10-04, the default. All are fixed, and the build now refuses a stray null key.
    • RE2: the plugin name pattern used a lookahead that RE2-based validators (Go, Rust) cannot compile. It is now an equivalent pattern without lookaround.
    • Plugin writes: a write may leave a plugin's name out, as the chapter says, through PluginWrite.
    • Tasks §1.1: the table now lists a task's environment under metadata.environment, where the schema and the server have it.

Thanks to @leninworld for four more, to @prathameshk421 for a second, to @aarush323 for a third, to @m3lonxd for a first contribution of four, and to @aenawi for finding them while porting uhp-go. Each fix came with a test that fails on 0.41.29.

What's Changed

  • fix(gateway): drop a setup build's wake-up event once its record is gone by @leninworld in #758
  • fix(gateway): answer a JSON-RPC body that is not an object with the 400, not a 500 by @leninworld in #760
  • fix(gateway): refuse a records list cursor that no page returned as 422, not 500 by @leninworld in #762
  • fix(gateway): refuse a plug tool's non-whole number argument instead of acting on a truncated one by @leninworld in #764
  • fix(gateway): release _browser_open_locks entries when browser open finishes by @aarush323 in #775
  • fix(runner): cap an environment's whole source, and what a git import downloads and checks out by @prathameshk421 in #766
  • schema: quote flow-mapping descriptions with commas and reject null keys by @m3lonxd in #771
  • schema: use RE2-compatible pattern for Plugin.name and PluginManifest.name by @m3lonxd in #772
  • schema: make Plugin.name optional on write via PluginWrite by @m3lonxd in #773
  • docs(tasks): list task environment under metadata.environment in §1.1 and schema by @m3lonxd in #774

New Contributors

Full Changelog: v0.41.29...v0.41.30