Repository navigation
fix: the loose-ends round - YAML 1.2.2 in both packs, and one rule for a URL, a time, a number and a switch - #92
Merged
Conversation
…one rule, and an upload by the pack's own reader The configuration reader: a plain scalar is resolved by the core schema of YAML 1.2.2 in both packs (the maintainer's ruling): true and false are the booleans, 010 is 10, and yes, on, 16_000, 1:30, 0b101, a date and the merge key are text or an ordinary key. It reads application.yml, rest.yaml, app-log-context.yaml and the MCP binding's file. As text a boolean is true or false and a float keeps its point. A key with no value and one its references leave empty take the default; a reference sees an override; a reference loop is logged and has no value. Settings of the host follow the round's rule and stop the start by name: rest.automation, rest.server.port, rest.upload.max.bytes, event.stream.keep.alive, an entry's timeout, otel.forwarding, app.log.context. REST automation and the host: one upload reader in both packs, pinned by 76 shared cases over the reader and over HTTP, with filename* and name* as RFC 5987 writes them; the client returns an edge's JSON error as the failure it carries; a reply the wire codec refuses is the engines' 500; a refusal while the request is read is traced. The guides say how a file is read and recommend YAML 1.2.2 to whoever writes one. The OTLP exporter's except clause names no exception twice: a timeout is an OSError. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…, a regex search that ends at a bound, settings by one rule The web tools take a URL apart by one set of rules, write it back in one form, refuse anything else by name and ask a site for exactly what was checked; a URL is at most 8192 characters. robots.txt is read by the tools' own RFC 9309 reader, a rule matched part by part between its stars, so its time is its length plus the path's. file.search with regex: true runs outside the host and ends at tools.file.search.timeout.ms with a 408; a literal is a substring test. A walk looks at 20,000 entries at most and says truncated. A tools.* setting that is no number or no switch stops the start by name. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…switch, a time in milliseconds and a page list by one rule A start-up step reads the settings a request falls back on and builds the transcript store when one is named, so a wrong one stops the application by name. A switch is true or false and any other value stops the start. A time in milliseconds is at most 2147483647, the audit's retention at most 1000000d, a port at most 65535. In a page list white space is ignored around a number and refused inside one. A path is blank by the same 24 characters in both packs. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ration and a switch; a signed payload has one spelling A time is a date, T, a time to the minute or the second, and Z or an offset, read to the millisecond by one rule in both packs. A wait whose expiry is past the year 9999 is a 400. turn, ttl, the list's since, before and limit and every setting follow the number and duration rule; a switch that is neither true nor false stops the boot. The bytes under a ticket's signature are the canonical JSON of its five fields. A setting that sets a timer is at most 2147483647 ms, a port at most 65535, a turn at most 2147483647. A required text is blank by the same 24 characters in both packs. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…er, ask-person and agent-question, the YAML 1.2.2 reader, REST automation and the host Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This was referenced Nov 30, 2026
acn-ericlaw
added a commit
that referenced
this pull request
Nov 30, 2026
…YAML 1.2.2, a value read by one rule and refused by name, no tool whose running time a model's or a site's text decides; the two rules in continuity, the upload reader in the REST automation fact, what the round found and left as a thread Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
What
The loose-ends round: the differences between the two packs that the defect round (#91) turned up and left, fixed here and in the Node.js pack in lockstep, with the maintainer's rulings of 2026-11-29 on YAML applied. Five commits: four areas and the CHANGELOG.
robots.txtin both packs. A search by regular expression runs outside the host and ends at a bound. Settings by one rule.Why
The maintainer's instruction after the defect round: another round "to address these and the remaining inconsistency and loose ends". And the rulings since:
This pack is the one that changes most under them: PyYAML reads YAML 1.1, as the Java engine's reader does, so
yeswas a boolean and010was 8 here.Two principles run through the rest. A value is read by one rule in both packs, and a wrong one is refused by name, at start for a setting. And a text someone else controls - a model's regular expression, a site's
robots.txt, a page's link - never decides how long a tool runs.For the reviewer
Each of these is a decision where another behaviour was defensible.
The configuration reader
<<is an ordinary key. It is not in the YAML 1.2.2 core schema, and the Rust engine does not merge either. The Java engine does.!!binary,!!timestamp,!!set). The packs disagreed on these before.010is 10. That is the core schema. The Java engine reads 8 and the Rust engine keeps it as text, so the guide tells a writer to avoid a leading zero.'${NAME:}'with the variable unset), as in the Java reader. A literal empty text stays an empty text.rest.yamldoes not change: there a reference that resolves to nothing stays as written and is refused where a value is needed.ConfigReaderdoes before parsing.rest.automation,rest.server.port,rest.upload.max.bytes,event.stream.keep.alive, an entry'stimeout,otel.forwarding,app.log.context. Where the Java engine has the setting, it reads a wrong value as off, as one second or as no server, without a word.REST automation and the host
parse_uploadreads the body, the same function in both packs, pinned by 76 shared cases that run over the reader and over HTTP. aiohttp's handling of a_charset_field could not be bypassed through a public interface, and its behaviour moves with the aiohttp version the pack allows.filename*andname*are taken, as RFC 5987 writes them, in UTF-8 or ISO-8859-1. Measured on the Java engine's decoder (Netty 4.2.21), the pack departs in five places:name*is taken here and ignored there; the extended form wins wherever it stands; only those two charsets are taken, where the decoder takes any charset of the JVM;+is a plus sign; bytes that are not the charset are refused instead of replaced.Content-Transfer-Encoding: base64is refused. Both packs decoded it for a field before; the Java engine's decoder refuses it too.request()andsend(), asstream()did. A payload that is neither an envelope nor that error body still raises.Agent tools
urlsplitandurljoin. Both packs carry one reader, writer and resolver of a URL. 103 of 210 probe URLs came out differently in the two packs before; none do now, nor on 59,999 generated URLs. A host is a name in letters, digits, hyphens, dots and underscores, an IPv4 address in dotted decimal, or an IPv6 address in brackets; an internationalized name must be in itsxn--form.robots.txt.robots.txt: the product token is compared whole, so a group formercuryis no longer the tools'. Arobots.txtthat cannot be read allows all, where RFC 9309 says to disallow on a server error.sys.executable -I -S), which costs about 55 ms a search, and is ended attools.file.search.timeout.mswith a 408.reholds the interpreter and cannot be stopped from a thread, so no lighter mechanism bounds it. A literal search starts no child."5"and"true"are a 400, because the catalog row types themintegerandboolean. A setting takes the text forms. The LLM helper and ask-person take digits as text for a field, as their own documents say.file_search's row still saystruncatedmeans cut atmax_results; it is now also set when the walk stopped at 20,000 entries.yarlis imported directly for the request target. aiohttp brings it;pyproject.tomlis not touched.LLM helper
llm.transcript.store: rediswithout its client stops the start, where it was a 503 on the first loop turn.... must be a whole number >= 1), as the defect round did for numbers above 2^53-1. The maxima are 2147483647 ms for a timer, 65535 for a port and1000000dfor the audit's retention.redis, the audit keys without an audit store,llm.aws.apiwithout Bedrock.ask-person and agent-question
Zor an offset, an upper-caseT, and no white space around it. Both packs trimmed white space before, and this pack read a time without an offset as UTC. The readers agree with a reference on 322,922 generated texts.requested_ator a wait'sexpires_atis no time.Not fixed
Found in this round and left, the same in both packs unless said:
#right after a quoted scalar. These are the 308 of 126,316 generated scalars on which this pack and the reference differ.iso-8859-1,utf-16with a mark, andidnaraises here); twohrefon one link; the order of two refusals in one request (10 of 351);file.searchreads each file whole.timeout_msandmcp.call.timeout.msstill go through each runtime's own number reader.otel.exporter.otlp.timeoutand its connect timeout are read with a silent fallback..propertiesfiles takekey=valuelines only, without Java's escapes.Upgrade note
The agent tools, REST automation and the two person-in-the-loop extensions are in no release yet. For an application that runs them from
main, and for the configuration file of any application:yes,no,onandoffare text in a YAML file. A switch or a flag written that way stops the start: writetrueorfalse.010is 10, not 8.16_000,1:30and0b101are text.<<merges nothing. A file with!!binaryor!!timestampdoes not load.get_propertyof a boolean istrue, notTrue.Zor an offset.The CHANGELOG entries (Fixed 8 to 12) carry the full list.
Verification
Run on a clean checkout of this branch's last commit, not on the working tree.
pytest: 3013 passed and 76 skipped (1502 and 76 before this round). With a live Redis, PostgreSQL and Neo4j in throwaway local containers: 3081 passed and 8 skipped (the 8 need the live MCP recipe servers). CI has no such services, so that is their only run.ruff check .clean;basedpyright0 errors, also with--pythonversion 3.11; the three format-clean files still are.mkdocs build --strict.robots.txt(200,000 paths).robots.txtfiles with 244,000 paths, and 719 number and switch probes of the agent tools: no difference.robots.txtmatcher against the one it replaces on 400,000 random pairs, and against the Node.js pack on 62,000 generated rules: no difference. A file of long rules that took 32 seconds a question takes under a millisecond.Beside this pull request
mercury-nodejs, on a branch of the same name.docs/guides/agent-tools.md): the newtools.file.search.timeout.ms, the 408 of a search, and the URL's one form.Co-Authored-By: Claude Fable 5.2 noreply@anthropic.com
🤖 Generated with Claude Code