Skip to content

v4.12.26

Choose a tag to compare

@acn-ericlaw acn-ericlaw released this 26 Oct 17:05
· 256 commits to main since this release
Immutable release. Only release title and notes can be modified.
5096446

Version 4.12.26, 10/26/2026

JSONPath follows RFC 9535 on both engines: an in-house engine, minimalist-jsonpath, replaces Jayway JsonPath and takes
json-smart, reported vulnerable with no fixed release, out of every dependency tree (Changed 4). An APM agent such as
Dynatrace OneAgent gains a code-level view of every composable-function hop through live invocation observers (Added 7,
ADR-0032). Flows and graphs gain the date plugins f:addDays and f:daysBetween (Added 8), reactive-postgres gains
multi-row inserts and multi-table transactions (Added 1 and 3), and the MiniGraph Playground gains mock model variables, a PNG
export and the graph-set worked example. The ASM, Vert.x and Netty advisories are closed (Fixed 3), and a failed function is
traced as a failure (Fixed 2). In lock-step with Rust 4.12.26, which catches up from 4.12.24 (4.12.25 was Java only).
Upgrade notes: read Changed 4 before upgrading - a $ path outside RFC 9535 now fails when a flow or a graph is compiled,
at startup, and an application that used Jayway or json-smart directly declares them itself. An application whose parent is
spring-boot-starter-parent sets netty.version to 4.2.19.Final (Fixed 3). Rename scheduler.environment to
scheduler.environment.name (Fixed 6; the old key keeps working until then). A dashboard or alert on a trace's success now
sees failed tasks as failures (Fixed 2). Changed 1 and Fixed 8 concern the dev-mode Playground and its companion driver only.

Added

  1. PgRequest.insertRows - many rows in one multi-row INSERT statement (reactive-postgres). A field installation found a
    loop of single-row inserts slow: PostgreSQL executes one statement at a time per connection, so each row paid a round trip and
    a commit. insertRows(po, table, columns, rows) writes every row with one INSERT ... VALUES ($1, ...), ($6, ...) statement
    and an optional clause makes it an upsert (ON CONFLICT (id) DO UPDATE SET ...). A statement carries at most 1000 bind
    parameters - PostgreSQL accepts 65535, but Spring's DatabaseClient copies its bindings on every bind() call, so a
    statement's cost grows with the square of its parameter count (13108 rows: 22 s at the PostgreSQL limit, 4.1 s at 1000) -
    and a larger set of rows is split into such statements inside one transaction, so the insert stays all or none. Table and
    column names are validated as plain identifiers, and a list or map value is refused. Measured on the module's embedded
    PostgreSQL, 500 rows: one multi-row statement 94 ms, one transaction of 500 statements 249 ms, 500 autocommitted statements
    650 ms. Upgrade note: none - a new method.
  2. examples/pg-example gains the orders demo - every PgRequest method and the postgres.service event form. The example
    showed only the repository pattern and the direct database client. DemoOrderEndpoint now drives insertRows (one multi-row
    INSERT), query with a positional parameter and with named parameters including a list expanded into the IN clause, batch
    (one statement for many ids in one transaction) and transaction (two statements, all or none); DemoOrderEvents sends a
    PgQueryStatement and a PgTransactionStatement to postgres.service with the PostOffice. Two demo tables in pg-schema.sql,
    seven REST routes, a README section with the patterns side by side, and an end-to-end unit test on the embedded PostgreSQL.
    Upgrade note: none - an example.
  3. PgTransactionBuilder - several tables in one transaction, all or none (reactive-postgres). The field asked for the
    multi-row insert across tables: rows for table 1, table 2 and table 3 land together or not at all. The builder collects steps -
    insertRows(table, columns, rows[, onConflict]) per table (the same rules and per-statement cap as PgRequest.insertRows),
    update(sql, values...) for any single statement and batch(sql, parameterList) - and PgRequest.transaction(po, builder) runs
    them on one connection in one transaction, answering one row count per step; a failing statement rolls back every earlier one
    and the call throws with the database's reason. examples/pg-example shows it as POST /api/demo/orders/{profile_id}/with-history
    (orders and their history rows). Upgrade note: none - a new class and an overload.
  4. The MiniGraph Playground's dry run mocks model variables (POST /api/mock/{id}?namespace=model). A deployed graph's model
    is partly set before the first node - model.cid from the request's correlation-ID header - and a dry run has no request, so
    the console's instantiate graph lines were the only way to set a model variable. The mock upload gains a third namespace: a
    JSON object whose keys are model paths (tier, limits.daily, items[0]) sets each as model.{key} and leaves the others in
    place; the console confirms with "Mock data loaded into 'model' namespace", in every member's instance of a collaborative
    session. A key with an empty path segment, a bad index or a null value is refused (HTTP 400). The Upload form gains Model
    variables
    rows - a name, a type (text, number, boolean or JSON) and the value - posted after the headers, so a variable the
    author names wins over one a header derives; its labels now read JSON payload (input body) and Input header
    (optional)
    . Both engines; the bundle is regenerated for both. Upgrade note: none - a new namespace.
  5. The MiniGraph Playground exports the graph as a PNG image. The Graph tab's toolbar gains an Export PNG button. It
    saves the whole graph, not only the part the viewport shows, at zoom 1 with a solid background and 2 image pixels per graph
    pixel, as <graph-id>.png. The edges, their labels and the node text are in the image; the minimap, the zoom controls and the
    selection outline are not, and the node cards are drawn without their shadow (Safari paints it as a solid grey block in the
    image). In a Chromium browser the "save as" dialog opens first and the image is rendered after it, and a
    save that fails after the dialog removes the empty file the dialog created. There is no SVG export: the SVG the renderer
    builds keeps the node cards as HTML inside foreignObject, which vector editors and office suites show as a blank image. The
    webapp gains one npm dependency, html-to-image 1.11.11 (MIT license, no dependencies of its own), pinned exactly because
    1.11.12 and 1.11.13 draw styles wrongly; it is bundled into the Playground's assets in the engine jar. Both engines; the
    bundle is regenerated for both. Upgrade note: none - a new toolbar action; a dependency scan of the webapp sees one more
    package.
  6. The MiniGraph Playground engine has a favicon - the Mercury atom. public/favicon.ico holds 16, 32 and 48 px images of
    the white atom that the documentation site and the API playground use, on the API playground's deep purple. It answers the
    /favicon.ico request that every Playground page load answered with 404. Both engines. Upgrade note: none.
  7. Code-level tracing for an APM agent: live invocation observers (RFC-0009). An agent such as Dynatrace OneAgent loses a
    request at each hop between composable functions, because Mercury hands the event through its event bus and a per-route queue.
    Platform-core gains a vendor-neutral seam, org.platformlambda.core.spi. A live observer is called inline when a function is
    about to run, on the thread that runs it, and when an event is about to be sent; the linkage between hops rides as a tag on
    the event envelope, so it also crosses Event-over-HTTP, and minimalist-kafka carries it as x-mercury-tag-* Kafka headers
    from simple.kafka.notification to the flow adapter. An optional extension uses it, off by default: dynatrace-oneagent
    (dynatrace.oneagent.enabled=true) brackets each hop with the OneAgent SDK as a linked message, for one connected PurePath
    per request, with each hop named Topic: <application> - <route> (dynatrace.oneagent.destination). A REST request or Kafka
    message without a trace continues the agent's trace context (InvocationObserver.traceparent), so Mercury's trace id is the
    Dynatrace trace id and the span lineage is unbroken. A traced request is observed on every route but the telemetry routes and
    the RPC inbox (invocation.observer.include/exclude); invocation.observer.unlinked is the negative control of a tracing
    check: the route alone becomes a separate fragment, because its reply keeps the caller's tag. Event Script's kick-off event to
    task.executor now carries the flow's trace id, so a flow's first task stays linked. Upgrade note: none - nothing is
    observed unless an extension is added and switched on.
  8. f:addDays and f:daysBetween - calendar-date arithmetic in a flow or a knowledge graph. The field asked for due dates
    and day counts without a composable function. f:addDays(date, days) returns the date a whole number of days later (earlier
    for a negative number): f:addDays(text(2027-01-15), int(15)) is 2027-01-30. f:daysBetween(from, to) returns the whole
    days between two dates as an integer, counting the earlier date out and the later one in, so the same date twice gives 0,
    2027-03-01 to 2027-03-02 gives 1 and 2027-04-10 to 2027-05-11 gives 31; the order of the arguments does not matter and the
    answer is never negative. A date is an ISO-8601 calendar date written exactly as YYYY-MM-DD, with no time and no time zone
    (not UTC, not a Unix timestamp), so the answer never depends on where the application runs. A date of another shape, a day the
    calendar lacks (2027-02-29), a fractional number of days, a null argument and a result outside the years 0000 to 9999 are
    refused by name. Pinned by the engine-neutral date-plugin-vectors.json (65 vectors), the plugin and gate tests and the graph
    fixture unit-test-date-arithmetic-1; the graph contract types the results (string, integer). Both engines: the Rust
    port's twin is its Increment 189, on the same vectors. Upgrade note: none - two new plugins.

Changed

  1. The MiniGraph Playground processes mock headers as a request's headers. A header uploaded through
    POST /api/mock/{id}?namespace=header (or the Upload form's header rows) was stored as written. It is now processed as the
    REST edge and the deployed walker process a request's: every name in lower case (two names that differ only by case are
    refused), CR and LF removed from a value, the business correlation-ID header (http.correlation.id.header, X-Correlation-Id by
    default) setting model.cid - and, when the upload has none, the header carrying the instance's model.cid, as a request
    always does - and x-iteration-index setting model.iteration_index. The console names each derived value ("model.cid =
    order-1001 (from input.header.x-correlation-id)"). Both engines. Upgrade note: a dry run that read a mock header back
    under its written case (inspect input.header, or a mapping of the whole input.header) now sees the lower-case name; a
    graph reading one header by name is unaffected, since header lookups are case-insensitive.

  2. The MiniGraph Playground's graph view widens a node whose text would wrap heavily. Every node was 240 px wide, so a node
    with long mapping lines or a long description wrapped each value onto several lines and grew into a tall, narrow column - one
    such node could be taller than the screen. A node now starts at 240 px and widens in 40 px steps, up to 480 px, while its
    property values would wrap onto more than 1.5 lines per row on average; a node of short values stays at 240 px. Every node in
    a layout column takes the width of the column's widest node, so the column stays aligned and the next column starts 120 px
    after it. Example: a node with a skill and six 35-character mapping lines (seven rows) takes an estimated 13 lines at 240 px
    and 7 at 360 px, so it is drawn 360 px wide and 229 px tall instead of 337 px. Thumbnail mode keeps every card at 240 px.
    Both engines; the bundle is regenerated for both. Upgrade note: none - a layout change in the dev-mode Playground only.

  3. The Playground's command input states its keys once. The input box's placeholder repeated the hint printed below it and
    was clipped at the box's edge. It now reads "Enter command", and the hint below uses symbols: "⏎ to send · ⇧⏎ for new line ·
    ↑↓ for history". Both engines; the bundle is regenerated for both. Upgrade note: none.

  4. JSONPath follows RFC 9535: an in-house engine, minimalist-jsonpath, replaces Jayway JsonPath (RFC-0010). Every $
    path of an Event Script flow or a knowledge graph is now evaluated by system/minimalist-jsonpath, written from RFC 9535,
    the IETF JSONPath standard, with no dependency beyond java.base.

    • Conformance and parity. It passes the standard's compliance suite, all 715 cases. The Rust engine already evaluates
      $ paths with an RFC 9535 implementation, so both engines now accept the same queries and give the same answers.
      Mercury's result shape and a hyphen in a dotted name ($.fetcher-ext.result) are kept, pinned by the Rust engine's own
      cases.
    • Dependencies. com.jayway.jsonpath:json-path, net.minidev:json-smart (reported vulnerable, CVE-2026-113602, with
      no fixed release) and accessors-smart leave every module's dependency tree.
    • Speed. Evaluation takes about a third of Jayway's time on the repository's paths. Compiled queries are cached.
    • Evidence. The differential and the benchmark are in docs/test-reports/minimalist-jsonpath-differential.md.
    • Refused before it runs. A $ path outside RFC 9535 is refused when a flow or a graph is compiled. The flow compiler
      drops the task, as it does for any invalid mapping entry, with an ERROR that names RFC 9535 and the position. A graph is
      rejected by CompileGraph, the graph-set packager and the Playground's run. The check covers a data mapping's source, a
      simple plugin's $ argument and a data dictionary's default value. A reference in the path ({model.key}, [model.i],
      {namespace.key}) is checked by where it lands, and its value is still substituted before the query is parsed. Both
      engines: the Rust engine, which answered such a path with a silent null, refuses it the same way when it is evaluated and
      when it is deployed, and runs the same compliance suite against its RFC 9535 implementation.
    • A simple plugin's $ argument reaches the plugin whole. The argument splitter cut it at a comma inside its brackets
      or a string literal, so f:length($['a','b']) or a filter on 'a,b' failed. It now ends a $ argument at the first
      comma outside them; every other argument splits as before.
    • A substituted value cannot change a query's structure. A reference in a $ path is still replaced before the query
      is parsed, and its value is now checked where it lands. In a name it must be a key path, names joined by dots, each
      optionally with [n] indexes (items[0].name). In an index it must be an integer. Inside a string literal the author
      wrote, it is escaped for that literal: its quote, its backslash and its control characters. Bare in a filter, a number,
      a boolean or null is inserted as written, and text becomes a string literal; Event Script keeps text that is already one
      literal (10, true, 'abc') as written, as it always has. A list or a map is never substituted. A value that fails
      its check fails the mapping by name: Cannot substitute {model.key} into '$.input.body.{model.key}' - '*' is not a key path. The same checks apply to a simple plugin's $ argument. Both engines, pinned by 39 shared substitution vectors.
    • Documentation. The Event Script syntax guide's JSON Path section states the grammar, the result shape, the refusal
      before a flow or a graph runs, a replacement for each Jayway-only form and the checks on a substituted value. The flow
      schema reference, the flow grammar, the knowledge graph's command reference, the Playground's help (help graph-data-mapper, help tutorial 8) and the AI agent guide's pre-send checklist follow it. Seven claims pin the
      behaviour: json-path-result-shape and mapping-source-dynamic-variables are updated, and five are new. The flow schema
      reference no longer says that a wildcard search yields a map of lists keyed by the last path segment: it yields a list.
      The Playground bundle is rebuilt for both engines to carry the help (index-CrqpNrFx.js became index-D5Sx-GL2.js; the
      vendor chunks and the stylesheet are unchanged).
    • Code quality. The findings of a local Sonar scan are closed in the new code and in the methods it touched in the flow
      compiler, the data mapper, the knowledge graph's validator and skills, and MultiLevelMap; none is a behaviour change.

    Upgrade note (READ):

    • Jayway-only syntax is refused, with an error that names the position. This covers the filter operators in,
      nin, subsetof, anyof, noneof, size, empty and =~, trailing functions such as .length() or .sum(), and
      array literals in a filter. The standard's forms replace them: @.code == 'a' || @.code == 'b',
      match(@.code, 'a|b'), length(@.tags) == 1, count(@.tags[*]) == 0. The Rust engine answered these queries with a
      silent null.
    • Filter comparisons are type-strict: '5' == 5 is false.
    • A path through a present member that is not an array yields an empty list when it indexes, slices or filters that
      member. Jayway answered not found or failed the mapping.
    • A union of names ($['a','b']) yields a list, as the guides said; Jayway returned an object.
    • A slice follows its step and its sign.
    • Direct use. An application that used Jayway or json-smart directly now declares them itself.
    • Error text. The error for a bad path now names a reason and a position.
    • Refused at startup. A flow or a graph with a $ path outside RFC 9535 now fails when it is compiled, not at the
      first request that reaches the path. The flow loses that task (Skip invalid task ... that has a JSONPath not compliant with RFC 9535), and the graph answers 404 (Rejected graph ... has a JSONPath not compliant with RFC 9535).
    • A {reference} never holds a JSONPath query. In a knowledge graph, {$.input.body.amount} in a graph.math
      expression or a mapping source is refused. Map the value to a model variable first ($.input.body.amount -> model.amount), then use {model.amount}.
    • A reference directly after the root, as in ${model.key}, is refused, because no value can make a query there.
    • A value that carried query syntax into a $ path - a wildcard, a filter, .. or a quote - now fails the mapping
      instead of changing the query. In a knowledge graph, a text value inside a literal the author quoted
      ('{model.team}') is no longer quoted a second time, so that form now works.
  5. The MiniGraph Playground example deploys tutorials 2 to 14 as a graph set, and an import from a deployed model prints one
    line less (#567).
    The example is now the worked example of graph sets (ADR-0027): tutorial-1 and support-triage stay
    loose graphs, and tutorials 2 to 14 deploy as the set tutorials (resources/graph/tutorials.pack, version 1.0 - the graph
    packager's output for the engine's tutorial files, byte for byte), unpacked into file:/tmp/unpack. When import graph falls
    back to a deployed graph model, the Playground no longer adds "Please export an updated version and re-import to instantiate
    an instance model" after "Found deployed graph model in {location}": the next line, "Graph model imported as draft", already
    says what happened, and the five tutorial help pages that quote the output follow. The unpack examples in help package, the
    starter-graph template's commented manifest and the AI agent guide used a folder under /tmp/graph, which the graph-set
    loader refuses because it is the Playground's temporary folder (location.graph.temp); they now use file:/tmp/unpack and
    state the rule, and the configuration reference's refusal sentence names a folder inside the temporary folder too. The
    Playground bundle is rebuilt. Upgrade note: none - an example's deploy layout, one line of dev-mode output and the docs.

Fixed

  1. The Playground webapp builds with Vite 8.3.5 (Rolldown 1.2.15) - five Vite dev-server advisories closed (#572). Vite 8.1.5 was
    affected by GHSA-587h-7wmj-h5pm (high: a Windows existence-check bypass in launch-editor), GHSA-r825-w8mm-5pxw,
    GHSA-698v-4r3x-3vcv and GHSA-rq7h-c2jc-7f22 (medium) and GHSA-9jrq-w75r-8gcw (low), all in the development server, none in the
    bundle the engine jar ships. The new Rolldown emits a different bundle - every JavaScript chunk changes, the CommonJS interop
    helper among them - so the bundle is rebuilt for both engines; in Chrome and Firefox the rebuilt and the previous bundle behave
    the same (routing, the graph view, the Raw view, the help panel, the command palette, the PNG export pixel for pixel). Both
    engines. Upgrade note: none.
  2. A failed function is traced as a failure. ProcessStatus.setExecutionTime reset the success flag, and the worker
    records the execution time after an exception, so the trace record of a failed invocation read success: true with no
    exception (its status, 400 or 500, was right). It affected every record the worker sends itself: a fire-and-forget event, a
    reply-to callback - every Event Script task, which the task executor dispatches with a callback - and a journaled route; an RPC
    was unaffected, because the caller's inbox derives the outcome from the status. The OpenTelemetry forwarder maps success to
    the span status, so those failures were exported as OK spans. Since 2024 (the virtual-thread integration). Also, a function
    that handles its own exceptions (MappingExceptionHandler) now records its execution time, which was zero. The Rust port was
    not affected. Upgrade note: a dashboard, alert or query on the trace log's success or on span status now sees failed
    flow tasks and async functions as failures, with their exception message.
  3. Dependency advisories closed - ASM 9.11.1, Vert.x 5.2.1 and Netty 4.2.19.Final. OW2 ASM before 9.11 allocates memory
    quadratically in MethodWriter when a crafted class file carries thousands of overlapping exception handlers, enough to exhaust
    the heap (CVE-2026-110260, 5.5). Event Script's simple-plugin loader reads class files with it. platform-core declared ASM
    9.10.1, and json-smart 2.6.0 still brought 9.7.1 through accessors-smart 2.6.0: Maven built with the direct version, but
    the 9.7.1 node stayed in the dependency graph a scanner reads. ASM is now 9.11.1 and excluded from json-smart, and
    json-path no longer brings a json-smart of its own, so the tree holds one of each. Vert.x core moves from 5.2.0, which is
    reported vulnerable, to 5.2.1. Netty moves to 4.2.19.Final, the version Vert.x 5.2.1 is built against, in every pom that sets
    netty.version (38, the starter templates among them). dependency:tree over the whole reactor resolves one version of each
    artifact, and none of them carries ASM 9.7.1. Upgrade note: an application whose parent is spring-boot-starter-parent
    takes Netty's version from Spring Boot unless its own pom sets netty.version; set it to 4.2.19.Final, as the starter
    templates do. An application that pins its own versions of these libraries should move to at least these.
  4. A text value with a backslash keeps it in a knowledge graph's quoted expression. In a graph.math expression (IF,
    CONDITION, COMPUTE), a {reference} to a text value is quoted as a string literal, and the quoting escaped the quote
    but not the backslash. The expression lexer reads a backslash as an escape, so C:\temp became a tab and a value that
    ended with \ escaped the closing quote and failed the statement. The backslash is now escaped first. Both engines.
    Upgrade note: none - an expression that compared such a value read the wrong text or failed.
  5. A WebSocket session's exception warning names the exception type. The server's warning logged the exception's message
    only, which for a NoClassDefFoundError is a bare class path: Session ws.766870.1 exception - io/netty/handler/codec/http/websocketx/WebSocketCloseStatus. The server and the persistent client now log the type before
    the message (exception - NoClassDefFoundError: io/netty/...), as the serializer loader already does. The Rust engine's
    warning already names the error kind. Upgrade note: none - a log line only.
  6. The mini-scheduler's environment name is scheduler.environment.name, so it can sit beside scheduler.environment.store.
    A configuration key holds a value or child keys, never both. With both scheduler.environment and
    scheduler.environment.store set, the reader answered the child map's text ({store=...}) for the name, and the application
    failed to start with "scheduler.environment must be one word...". scheduler.environment is now a parent only. Its plain value
    is still read, with a deprecation warning. Next to the store, the application refuses to start and asks for
    scheduler.environment.name, rather than taking prod and running every job on a DR site as well. The scheduler example uses
    the new key. Upgrade note: rename scheduler.environment to scheduler.environment.name; an application that sets only the
    old key keeps working until then.
  7. The application's version comes from its own jar, also under an agent such as Dynatrace OneAgent. The version came
    from the class loader's first META-INF/MANIFEST.MF, and the boot class path is searched first. Under OneAgent, which
    puts its jar there, the startup log said "Application name: oneagentjava.17" and /info reported OneAgent's version
    (1.347.64.20261021-162634). The manifest is now read from the jar that java.class.path names first, the
    application's jar for java -jar; a class path that starts with a folder (an IDE, a test run) reads it as before.
    Upgrade note: none - /info reports the application's own version.
  8. The companion endpoint reports every refusal as a failure, by the engine's own flag. The synchronous companion
    endpoint (POST /api/companion/{id}/sync) decided ok by matching each console line against a list of error words, so
    a refusal worded otherwise came back ok: true and a driver that trusted ok believed the command had worked: create node on a node the model already holds (node {name} already exists), an import graph that the importer refused
    after resetting the draft, import node of a node the file does not hold, an export refused for its root's name, a
    delete connection between nodes that are not connected, and list or session with an unknown argument. The word
    list also failed commands that had worked: help run, help schema and seven tutorials answered ok: false for prose
    that mentions an abort or a "not found". The command service now sends each refusal with an error status, as a traversal's
    abort already was, and the endpoint reports the first such line as its error, or the command's own failure when it
    throws past the command service (a malformed JSON command). import node from a file that does not exist, and
    session with an unknown argument, now say so instead of printing nothing. The WebSocket console shows the same lines.
    Both engines (the Rust port is mercury #394). Upgrade note: a driver that sent create node to replace a node now
    sees the failure it always was; update node replaces a node.