Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 113 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,8 @@
- A flag of an entry (`tracing`, `stream`, `upload`) was on only for the YAML boolean, so `tracing: "true"` and
`tracing: ${TRACING:true}` stayed off without a word. The boolean or the text `true` in any letter case turns
it on, as in the Java engine; `false`, no value and an empty one leave it off; any other value, which the
engine reads as off silently, fails the start: `rest[N] 'tracing' must be true or false`. `rest.yaml` is read
with the boolean words of the Python pack's reader and the engine's, so the single letters `y` and `n` are
text.
engine reads as off silently, fails the start: `rest[N] 'tracing' must be true or false`. How the
file's scalars are read is Fixed 10: by YAML 1.2.2, so `yes` and `on` are text.
- The upload bound counted a text field by the length of its text; each field counts as the bytes of its part in
the body. A body past the bound is let go by unread, so the client takes the 413 instead of a broken
connection.
Expand All @@ -393,6 +392,113 @@
**Upgrade note:** an entry whose flag is written as anything but `true` or `false` stops the start - write `true`
or `false`. A request body over 16 MiB is refused; a file upload keeps its own bound, `rest.upload.max.bytes`.

7. **The agent tools: one reader of a URL and of `robots.txt` in both packs, a search by regular expression that
ends at a bound, and settings read by one rule.** The web tools read a URL with each runtime's own reader, and
103 of 210 probe URLs came out differently in the two packs: `http://0177.0.0.1/` was 127.0.0.1 here and was
kept by the Python twin, and one page was fetched once for each spelling of its link. Both packs now take a URL
apart by one set of rules and write it back in one form - `http` or `https`, no credentials, a host that is a
name, an IPv4 address in dotted decimal or an IPv6 address in brackets, a port in the digits 0 to 9, the path and
the query percent-encoded one way and without `.` and `..` segments, at most 8192 characters - refuse anything
else by name, and ask a site for exactly what was checked. `robots.txt` is read by RFC 9309 with the same reader
in both packs, and a rule is matched part by part between its stars, so its time is bounded by its length plus
the path's: as a regular expression, a rule of four stars against a path of 200 characters took 14.9 seconds on
the event loop. `file.search` with `regex: true` runs the expression in a worker thread that is ended at
`tools.file.search.timeout.ms` (10 s by default) with a 408 - `(a+)+$` against forty letters did not finish, with
the event loop held - and a literal is a substring test in the host, by the tools' own linear search when it is
long. Smaller: `graph.ingest` keeps a property named `__proto__`, which was dropped without a word; a walk looks
at 20,000 entries at most and says `truncated`, and reads a folder only as far as it goes; the port of an
allowlist entry and a page number are the digits 0 to 9; a number argument above 9007199254740991 is a 400; a
`tools.*` setting that is no number or no switch stops the start by name, and a time in milliseconds is at most
2147483647, where a longer one fired after a millisecond. **Upgrade note:** a host outside letters, digits,
hyphen, dot and underscore is refused, so an internationalized name is written in its `xn--` form; a URL in a
result is in the one form and may be spelled differently than before; a switch written `yes`, `on` or `1`, and a
number written with a point or an exponent, stop the start; a workspace of more than 20,000 entries is listed
and searched up to there; a search by regular expression answers a 408 at its bound.

8. **The LLM helper reads its settings when it starts, and a switch, a time in milliseconds and a page list by one
rule.** A wrong `llm.provider`, `llm.backend`, `llm.max.tokens`, `llm.timeout.ms`, `llm.max.retries`,
`llm.effort`, `llm.fallbacks`, `llm.transcript.ttl` or `llm.transcript.retention` was refused by the first
request that needed it. A start-up step now reads them, and builds the transcript store when one is named, so a
wrong one stops the application by name (`llm.helper cannot start - llm.max.tokens must be a whole number >= 1`);
the attachment limits and the audit's sweep and switches are read by their own steps. A switch
(`llm.log.batches`, `llm.transcript.audit.single`, the two `ssl` keys) is `true` or `false`: `yes`, `on` and `1`
were read as off without a word - TLS written `yes` was no TLS - and now stop the start. A time in milliseconds
is at most 2147483647: from 2147483648 a timer fired after a millisecond, and 4294967296 was a `RangeError`. The
audit's retention is at most `1000000d`: a longer one wrote an expiry with a five-digit year, or raised. A port
is at most 65535. In a page list white space is ignored around a number and refused inside one: `"1 3"` was
page 13. A path is blank by the same 24 characters in both packs, so one of only U+FEFF is a name. The shared
vectors gain `switches` (22 values) and `start` (47 cases). **Upgrade note:** a deployment with a wrong value it
never exercised no longer starts; `llm.transcript.store: redis` without its client stops the start, where it was
a 503 on the first loop turn; an empty `llm.transcript.audit.postgres.ssl` is its default, TLS on, where it was
off; `"1 3"` as pages is a 400.

9. **ask-person and agent-question: one reader of a time, a number, a duration and a switch, a signed payload with
one spelling, and a row that keeps every digit.** A time without an offset was local time here and UTC in the
Python twin, and each pack took spellings the other refused - 30 February was 2 March here; a time is now a
date, `T`, a time to the minute or the second, and `Z` or an offset, read to the millisecond by one rule, for
`requested_at`, a wait's `expires_at` at the intake and the transcripts' `before`. A `ttl` whose expiry is past
the year 9999 wrote `+010002-...` or raised `RangeError`; it is a 400, `ttl must end before the year 10000`.
`turn`, `ttl`, `GET /questions`' `since`, `before` and `limit`, and every setting follow the number and duration
rule, where a value above 2^53-1 was rounded; a switch that is neither `true` nor `false` stops the boot, where
`ask.enabled: yes` was on and `ask.audit.postgres.ssl: no` was read as on. The bytes under a ticket's signature
must be the canonical JSON of its five fields: both packs took other spellings, and agree with a reference on
200,074 generated payloads now. A graph named `constructor`, `toString` or `__proto__` is looked up among the
configured graphs only, where the page answered 200 and the reply a 502. A row id or a sequence above 2^53-1 is
held as a `BigInt` and written with every digit in a page, a stream's event and the record: two such rows
collided after rounding, and a waiting call's input with such a number was not recorded at all. A setting that
sets a timer is at most 2147483647 ms - the sweep ran 178 times in 200 ms with `30d` - a port at most 65535, a
`turn` at most 2147483647, the record's column; a required text is blank by the same 24 characters in both
packs. **Upgrade note:** a time without an offset, with white space around it or with a lower-case `t` or `z` is
a 400; `"2 d"` with a space before its unit is refused; `ask.enabled` and the `ssl` switches take `true` or
`false` only, and an empty `ask.enabled` is its default, on, where it was off; a ticket minted outside the packs
with another JSON spelling is malformed; `turn` as text digits (`"2"`) is taken; a row past 2^53-1 holds a
`BigInt`, which plain `JSON.stringify` refuses.

10. **Every YAML file is read by YAML 1.2.2 in both packs, and a setting of the host by one rule (the maintainer's
ruling of 2026-11-29).** The configuration file was read by each pack's YAML library - this pack's reads YAML
1.2, the Python twin's PyYAML YAML 1.1 - and 130 of 239 probe scalars came out differently through the two
packs: `yes` was text here and a boolean there, `010` was 10 and 8, `1e3` a number here only, `16_000` and
`1:30` numbers there only, and `info.app.version: 1.0` read `1`. One reader per pack now resolves a plain
scalar by the core schema of YAML 1.2.2: `true` and `false` are the booleans, `010` is 10, `0o10` is 8, 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; `rest.yaml` no longer takes
`yes` and `on` as booleans, as it did since Fixed 6. A reference written from the specification agrees with
both packs on 239 probes, and on 126,316 generated scalars but for what the two parsers take differently
before a scalar is resolved. An integer is exact at any size, a `BigInt` above 2^53-1, and as text a float
keeps its point. A key with no value takes its default, and so does one whose references leave it empty
(`'${NAME:}'`), as in the Java engine; a `${key}` reference sees a `-D` or `set` override, and resolves only
the environment's own variables, where `${constructor:x}` gave a function; a reference that leads back to
itself is logged and has no value, where it overflowed the stack. A setting of the host that is no number, no
duration or no switch stops the start by name instead of being read as a default or as off: `rest.automation`,
`rest.server.port`, `rest.upload.max.bytes`, `event.stream.keep.alive`, an entry's `timeout`, `otel.forwarding`
and `app.log.context`. The guides say how a file is read and recommend YAML 1.2.2 to whoever writes one - a
developer or an AI assistant - with the spellings the Java engine's YAML 1.1 reader takes another way
(Configuration Reference, the AI agent guide's checklist, `llms.txt`). **Upgrade note:** a switch or a flag
written `yes` or `on` stops the start - write `true` or `false`; `info.app.version: 1.0` reads `1.0`; a number
above 2^53-1 in a file is a `BigInt`; a file with a tag such as `!!binary` or `!!timestamp` does not load. An
entry's `timeout` that is no duration stops the start, where it was the default, and `1h` is an hour held to
the five-minute cap, where it was the default too.

11. **REST automation and the host: an upload is read by the pack's own reader, the same in both packs; an edge
failure is the failure the caller sees; a name every object carries is a name like any other.** The two packs
read a `multipart/form-data` body with their web framework's reader and differed on a file without a content
type (`text/plain` here), a field that is not UTF-8 (replacement characters here), a declared ISO-8859-1, a part
without a name, an empty filename and a transfer encoding. `parseUpload` now reads the body in both packs,
pinned by 76 shared cases that run over the reader and over HTTP: a file without a content type is
`application/octet-stream`; a text field is UTF-8, or the ISO-8859-1 or US-ASCII its part declares;
`filename*` and `name*` are taken as RFC 5987 writes them, which some HTTP clients send for a name that is
not ASCII; a part whose transfer or content encoding changes its bytes is refused by name. A query
parameter, a form field, a cookie, a header, a path parameter or an upload field named `constructor`,
`toString` or `__proto__` is read as the caller sent it: `?constructor=c` parsed as `[null, "c"]`, and
`__proto__` was dropped. The client's `request()` and `send()` return an edge's JSON error as the failure it
carries, as `stream()` did. A reply the wire codec refuses on `POST /api/event`, and a static-content filter's
reply that cannot be rendered, are the engines' 500 `Reply cannot be rendered`, with the edge recorded at 500,
where the codec's own message was sent and no record was left. A traced request the edge refuses while it
reads the body leaves its record, as the Java engine's edge does. A timer is held to 2147483647 ms, the
longest delay the runtime's timers take: an `x-ttl` above it was a 408 at once. **Upgrade note:** a part with
`Content-Transfer-Encoding: base64` was decoded and is refused; a file's content type is as the part wrote it,
no longer in lower case.

### Changed

1. **The agent-question app reads the question record and writes nothing: the backend of the React UI (RFC-0014
Expand Down Expand Up @@ -439,16 +545,16 @@
(`/`, the hashed script and stylesheet, `/favicon.svg`) and the five actuator endpoints answer beside it.
**Upgrade note:** open `http://127.0.0.1:8092/` instead of `/questions/app`.

2. **`web.crawl` accepts a relative `include`**, in lockstep with the Python pack: a prefix that does not start with `/` matches
5. **`web.crawl` accepts a relative `include`**, in lockstep with the Python pack: a prefix that does not start with `/` matches
anywhere in a link's path, since a model names a section as `guides/` as often as `/guides/` (the live drive of the
Playground's `site-notes` graph showed a crawl returning the start page alone). The README's Event-over-HTTP example lists
one route per entry - the engines' map takes no comma-separated list.

2. **CI runs the tests on Node 26, the current LTS, and the package's floor is `node >= 22`, the oldest maintained LTS
6. **CI runs the tests on Node 26, the current LTS, and the package's floor is `node >= 22`, the oldest maintained LTS
(Eric, 2026-11-17: Node 20 is end of life).** The agent tools' directory walk is in-house (`compileGlob`): the in-house
matcher reads a pattern as the Python pack's `Path.glob` does and never descends into a symbolic link.

2. **A `-D` override value is resolved with the same `${ENV_VAR:default}` substitution as a file value - the engines'
7. **A `-D` override value is resolved with the same `${ENV_VAR:default}` substitution as a file value - the engines'
change of the same day.** `AppConfig.get` returned an override as written, so a key moved from `application.yml` to
a `-D` flag silently lost its substitution and a credential had to travel on the command line in clear. Now the value
of a `-D` override (and of `appConfig().set`) - an environment variable with a default, or a reference to another
Expand All @@ -457,7 +563,7 @@
**Upgrade note:** a `-D` value that relied on a literal `${...}` is now resolved, as a file value always was; an
unresolved reference without a default is no value, as in a file.

2. **The transcript audit store's PostgreSQL pool sets a server-side `statement_timeout` from
8. **The transcript audit store's PostgreSQL pool sets a server-side `statement_timeout` from
`llm.transcript.audit.postgres.timeout.ms`, beside the client's `query_timeout`.** The live drive of 2026-11-17
(mercury-composable `docs/test-reports/transcript-audit-live-drive.md`) showed a stopped database failing a write by
type within the connection timeout, as designed, but a paused one - a TCP black hole - holding the pooled connection's
Expand Down
5 changes: 5 additions & 0 deletions docs/guides/ai-agent-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ authored on the engine — use the
3. Function is stateless. State belongs to the calling flow/graph.
4. Orchestration-shaped logic (sequencing, retries, branching) → STOP; author an
Event Script flow or MiniGraph graph on the engine instead.
5. Every YAML file (`application.yml`, `rest.yaml`) is YAML 1.2.2: write `true`/`false`, plain
decimal numbers, `0x` for hex, and quotes around any text that looks like a boolean, a number,
a date or null. Never `yes`/`no`/`on`/`off`, `010`, `0o10`, `0b101`, `1:30`, `16_000`, an
unquoted date or the merge key `<<` — the Java engine reads those another way
([the rule](configuration-reference.md#how-a-yaml-file-is-read)).

## The contract

Expand Down
3 changes: 2 additions & 1 deletion docs/guides/config-logging-actuators.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ otel.service.name: 'my-node-functions'
```

With `otel.forwarding=true` (the switch is the only thing that turns it on — `false` by
default, and `-Dotel.forwarding=true` at run time is enough), the host also hands each
default, `-Dotel.forwarding=true` at run time is enough, and a value that is neither `true`
nor `false` stops the start by name), the host also hands each
dataset to the engines' extension route `distributed.trace.forwarder`, where the built-in
forwarder registers itself at start-up (private, two workers; an application that registers
its own function on that route wins). Each dataset becomes **one OpenTelemetry span carrying
Expand Down
Loading
Loading