Skip to content

Commit c8c5c80

Browse files
acn-ericlawclaude
andcommitted
docs(changelog): the four fixes of the defect round, each with its upgrade note
The agent tools' address check, globs and bounded matching; the LLM helper's one rule for a number and the audit settings refused at start; the ticket rule and the row id of ask-person and agent-question; REST automation's flags, upload bound and error bodies. Entries 4 to 7 of Unreleased Fixed in the Python pack, 3 to 6 in the Node.js pack. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
1 parent c8e43a6 commit c8c5c80

1 file changed

Lines changed: 83 additions & 0 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,89 @@
310310
only when it carries the label `_Ingested` and a key. A query that listed a node's labels now sees `_Ingested`
311311
among them.
312312

313+
3. **The agent tools' address check and globs follow one rule in both packs, and a pattern is matched in bounded time
314+
(the code-quality round of 2026-11-29, in lockstep with the Python pack).**
315+
- *Addresses.* The web tools' address check read an IPv4-mapped IPv6 address written in hex (`::ffff:7f00:1`) as
316+
public, where the dotted spelling of the same address was loopback and the Python twin refused both; and its
317+
list of blocks was shorter than the twin's. Both packs carry one table now, the same text. An IPv4 address is
318+
refused inside the special-purpose blocks that are not globally reachable (the documentation, benchmarking
319+
and protocol-assignment blocks are new here) and the shared address space. An IPv6 address is reached only
320+
inside the global unicast block `2000::/3`, outside `2001::/23`, `2001:db8::/32`, `2002::/16` and `3fff::/20`:
321+
every other IPv6 address is refused, an IPv4-mapped one in any spelling among them. The table is read by the
322+
runtime's own subnet list (`net.BlockList`), so the module parses no address itself.
323+
- *Globs.* A pattern that ends in `**` returned nothing from `file.list` and `file.search`, and the twin's
324+
`Path.glob` read `**` differently from one Python version to the next. Both packs compile a glob by one
325+
grammar: `**` is any run of folders and, at the end of a pattern, everything beneath; a slash at the end names
326+
folders only; a symbolic link is an entry and is never descended into; `..` and an absolute pattern are a 400
327+
by name. A name is matched item by item, so the time is bounded by the pattern's length times the name's
328+
however many stars the pattern has - as a regular expression, three stars against a name of 1,500 characters
329+
did not finish in two minutes, with the event loop blocked - and the walk enters only the folders a pattern
330+
can still match beneath. The host patterns of `tools.web.allow` are matched by the same function.
331+
- *Smaller differences.* The HTML reader looks a name from a page up in its tables' own keys only
332+
(`&constructor;` gave the text of a function, and a `<constructor>` element was a heading); a crawl that
333+
starts on an address literal, or on a host written with a dot at its end, follows its links; an allowlist
334+
entry that starts with a class (`[ab].example.com`, which was read as the address `ab`) is a pattern, and one
335+
with a bracket that never closes is the pattern it spells, where it was a 500 at the first request;
336+
`file.write` under a file is 400 `<path> is not a directory`; a redirect to an address that cannot be read is
337+
a 400.
338+
339+
**Upgrade note:** the agent tools are in no release yet. For an application that runs them from `main`: an
340+
IPv4-mapped address, the documentation and benchmarking blocks, and every IPv6 address outside the global unicast
341+
block are refused unless `tools.web.allow.private=true` - on a network that reaches IPv4 sites through
342+
`64:ff9b::/96`, that includes every such site.
343+
344+
4. **The LLM helper reads a number, a duration and a page list by one rule in both packs, and a wrong
345+
`llm.transcript.audit.grace` or `llm.transcript.audit.retention` stops the start**, in lockstep with the Python
346+
pack. A number in a request or a setting was read by each pack's own reader: the Python twin took digits of any
347+
script and refused the JSON float `16000.0`, which this pack cannot tell from `16000` and accepted. One rule now:
348+
a JSON number with a whole value, or a string of the digits 0 to 9, with white space ignored around it (the 24
349+
characters both runtimes' trim take, so U+FEFF is no longer one of them here), at most 9007199254740991; a
350+
duration and a page list follow it, and the refusals keep their messages. The audit's grace and retention were
351+
read inside the save of a loop's closing turn - a 503 after the model had been called, the turn unsaved; they
352+
are read when the helper starts, and a wrong value stops the start by name as the other settings do. The shared
353+
vectors gain a `numbers` section of 98 probes. **Upgrade note:** a number above 9007199254740991 is a 400.
354+
355+
5. **ask-person and agent-question: one rule for a well-formed ticket, and one for a row id and a stream's
356+
cursor**, in lockstep with the Python pack. The packs answered a mangled ticket differently: this one accepted a
357+
stray character after a payload and answered 403 for a part that is too short, where the twin answered 400. A
358+
ticket is well-formed when it has its three parts, the payload and the signature are canonical unpadded base64url
359+
from start to end, and the signature is the 32 bytes of the MAC: anything else is 400 `Ticket is malformed`, and
360+
a well-formed ticket whose MAC does not verify is 403 `Ticket signature is invalid`. A second spelling of a valid
361+
ticket - one that differs only in the unused bits of a last character - was accepted by both packs and is a 400.
362+
In agent-question `Last-Event-ID` went through `Number()` (`1.0`, `1e3` and `0x10` passed); both packs read 1 to
363+
19 digits from start to end, at most 9223372036854775807, and answer the 400 that was there for anything else;
364+
above 2^53-1 the id is carried exactly, as a `BigInt`. The shared vectors are `ask-person-vectors.json` version 3
365+
(146 cases) and `agent-question-vectors.json` version 4 (111 cases), byte-identical with the Python pack.
366+
**Upgrade note:** none for a ticket the pack issued or an id it returned.
367+
368+
6. **REST automation and the host: an entry's flags as the Java engine reads them, the upload bound in bytes, a
369+
limit on a request body, and the engines' error body where the host answered its own**, in lockstep with the
370+
Python pack.
371+
- A flag of an entry (`tracing`, `stream`, `upload`) was on only for the YAML boolean, so `tracing: "true"` and
372+
`tracing: ${TRACING:true}` stayed off without a word. The boolean or the text `true` in any letter case turns
373+
it on, as in the Java engine; `false`, no value and an empty one leave it off; any other value, which the
374+
engine reads as off silently, fails the start: `rest[N] 'tracing' must be true or false`. `rest.yaml` is read
375+
with the boolean words of the Python pack's reader and the engine's, so the single letters `y` and `n` are
376+
text.
377+
- The upload bound counted a text field by the length of its text; each field counts as the bytes of its part in
378+
the body. A body past the bound is let go by unread, so the client takes the 413 instead of a broken
379+
connection.
380+
- `: ping` was written into the body of a stream that is not Server-Sent Events when the idle timer fired a
381+
moment before the clock reached the deadline. A keep-alive is written only when a keep-alive interval has
382+
passed.
383+
- A reply the serializer refuses is 500 `Reply cannot be rendered` in the engines' error body, with the edge's
384+
`http.request` record, and a streamed segment fails the stream in band; it was the host's catch-all 500 with
385+
no record, and a stream was destroyed.
386+
- A request body had no limit. The host reads at most 16 MiB into memory, as the Python pack does: a body over
387+
it is 413 `Request body exceeds 16777216 bytes` in the engines' error body, and an envelope on
388+
`POST /api/event` without REST automation.
389+
- A part of an upload that is multipart itself is 400
390+
`Upload takes text fields and files, not a nested multipart part`; it was delivered as a text field, or as a
391+
file of that type. An upload whose parts do not follow the boundary its content type declares is a 400.
392+
393+
**Upgrade note:** an entry whose flag is written as anything but `true` or `false` stops the start - write `true`
394+
or `false`. A request body over 16 MiB is refused; a file upload keeps its own bound, `rest.upload.max.bytes`.
395+
313396
### Changed
314397

315398
1. **The agent-question app reads the question record and writes nothing: the backend of the React UI (RFC-0014

0 commit comments

Comments
 (0)