Skip to content

Test Report — The agent graphs driven live from both engines through both language packs (4.12.31)

The 4.12.31 release ships the same Playground graphs on both engines: with Increment 225 this example carries the Java example's order-assistant with its hold path and plan-assistant, the two graphs that tell a person about a wait (RFC-0014). This drive ran the seven AI graphs of the example end to end on 2026-12-01 (UTC), four times: the Java engine and this engine, each through the Python pack and through the Node.js pack, with real model calls on Claude Haiku 4.5, the packs' own applications on the person's side, Redis, PostgreSQL and Neo4j on Colima and the public Mermaid Chart MCP server. The earlier drives are the reference: agent-graphs-live-drive.md here, and agent-loop-live-drive.md, transcript-audit-live-drive.md, agent-tools-live-drive.md, ask-a-person-live-drive.md and agent-question-ui-live-drive.md in mercury-composable.

Result in brief

  • Every graph answered on both engines through both packs. Twelve scenarios, twenty-four recorded steps, four combinations; each step's checks are facts of structure - a status, a type, a call's name and status, a row of a record - and the same checks ran against both engines.
  • The hold path works on this engine as on the Java engine. A refund waited; the engine called person.ask on the pack, and the advice carried the pack's resume link, the expiry and the delivery to the channel; a resume without decisions re-advised with the same link and told no channel again; the decision came back through the pack's POST /ask/reply and the loop ran the call it had shown; the record held the wait as answered, by the person named, with the acknowledgement and the outcome beside it; a second decision for the same case and a decision for a case that never waited were answered 410 nothing-waiting, with no model call.
  • The question shape works the same way. plan-assistant asked the owner through its ask row; the answer came back through the agent-question app's own click, POST /questions/{id}/decide, and once from the React UI in a browser; the model wrote the plan for the option picked.
  • A pack that is down fails nothing but itself. With llm.chat mapped to a peer that is not running, both engines answer HTTP 500 llm.chat failed and no answer. With person.ask mapped to such a peer, both engines hold the refund without a link, say why in notify_error, and end the decided run with its answer.
  • The stores agree with the replies. 62 conversations and 156 model turns in the transcript audit store, every conversation done, every turn with its trace id and the engine's graph id and node; 48 rows in the question record; 22 nodes and 21 relationships in the knowledge graph after fifteen ingests of two documents, by two engines through two packs - nothing doubled.
  • Six readings, no defect in an engine. The one that an installation may meet: a stream: true entry of a pack sends its response head with its first chunk, so an idle question stream answers after 30 seconds (below).

What was under test

Piece Version Role
Java engine, examples/minigraph-playground mercury-composable main at c3117185a, the 4.12.31 release commit; the jar run from a copy, OpenJDK 27.0.1 the seven AI graphs, the order book's three tools, diagram.render, /api/graph/{graph}, /api/stream/graph/{graph}, /api/llm/stream, the Redis state store
Rust engine, examples/minigraph-playground this branch at fae3c846 - 4.12.31 with Increment 225 - release build, rustc 1.98.1 the same, from the same seven JSON models byte for byte
mercury-python tag v4.12.31, Python 3.14.7 extensions/llm-helper 8086, mcp-binding 8088, agent-tools 8089, ask-person 8091, agent-question 8092
mercury-nodejs tag v4.12.31 and one later commit that changes a development dependency of the lock file, Node.js 26.13.1 extensions/llm-helper 8087, mcp-binding 8089, agent-tools 8090, ask-person 8091, agent-question 8092
Redis 7.4, PostgreSQL 17.12, Neo4j 5 Community (containers on Colima) redis:7-alpine, postgres:17-alpine, neo4j:5-community the graphs' suspend store and the helpers' working store; the transcript audit store and the question record, one database; the agent's knowledge graph
Model claude-haiku-4-5, reported by the provider as claude-haiku-4-5-20251001 the helpers' llm.model; the graphs name none
MCP server the public Mermaid Chart server behind each pack's binding, the tool's digest pinned

Each pack ran at its default ports, so the packs ran one after the other: the Python pack's agent tools and the Node.js pack's MCP binding both default to 8089. Both helpers ran with -Dllm.transcript.store=redis -Dllm.transcript.audit=postgres -Dllm.transcript.audit.single=true; ask-person with ask.channels agent.question.inbox, the two graphs in ask.graphs and ask.audit=postgres; agent-question with question.store=postgres; the agent tools with a copy of the example's corpus/ as tools.file.root, tools.web.allow=accenture.github.io and the graph database with writes on. The database started from the packs' own scripts - the audit schema at the container's first start, the question record's by schema-apply.sh - and the credentials came from the environment. Each engine was started four times: twice for the controls, once per pack.

The controls, run first on each engine

Control Java engine Rust engine
llm.chat mapped to a port where nothing listens, order-assistant asked about ORD-1001 HTTP 500, type: error, llm.chat failed - Connection refused (connect failed): /127.0.0.1:18086 HTTP 500, type: error, llm.chat failed - Unable to connect to 127.0.0.1:18086 - Connection refused (os error 61)
person.ask mapped to such a port, ORD-1002 lost type: approval, issue_refund waiting, no link, notify_error the refused connection the same
the decision for that wait, sent to the engine type: answer, issue_refund ok, the refund in the answer the same

The status and the body's shape are the same on both engines; the transport's text is each runtime's own. The second and third rows are the handlers notify-failed, ack-failed and report-failed over the real transport, which tests/ask_person_unreachable.rs holds token-free.

The scenarios

Each ran once per combination; every one passed on both engines through both packs. The times are the request's, in seconds, for Java with Python, Java with Node.js, Rust with Python and Rust with Node.js.

Scenario What was checked Seconds
support-triage one llm.chat call with a schema; the graph routes on the verdict (bug-filed); the model is named 2.2, 1.6, 2.2, 1.7
order-assistant, a delivered order type: answer in one request, order_lookup and shipment_status on their routes, ok 9.0, 5.2, 4.9, 5.2
a lost shipment type: approval at turn 2, issue_refund waiting for ORD-1002, the two reads answered; link on the pack, expires_at, delivered to agent.question.inbox 4.5, 5.6, 5.8, 5.6
a resume without decisions type: approval, run: resume, the same link, one row in the record, open under 0.1
the link GET <link> serves the page; GET /ask/{ticket}/wait reads the wait as the engine re-advises it: the graph, the transaction, the same call under 0.1
the decision through POST /ask/reply type: answer, run: resume, turn 3, issue_refund ok 1.1, 1.3, 2.5, 2.3
the question record three rows: the wait answered by the person named, the acknowledgement, the outcome -
a second decision for the same case HTTP 410, type: nothing-waiting under 0.1
a refused decision, sent to the engine type: approval for ORD-1004, then type: answer with the call refused and the note in the answer 5.0 and 2.4, 4.9 and 2.0, 6.9 and 1.1, 11.3 and 2.2
a decision with nothing waiting HTTP 410, nothing-waiting, run: fresh, no row in the record, no model call under 0.1
a watched run POST /api/stream/graph/order-assistant: node.start, run.start, turn.start, tool.start, tool.end, turn.end, run.end, then result and done 5.3, 4.2, 5.9, 4.3
plan-assistant type: approval at turn 1; ask_owner with ask: true, no route, three options; the link; one question row, open 2.2, 2.1, 2.1, 2.2
the owner's answer through POST /questions/{id}/decide the row answered by the person named; the engine's outcome type: answer, the call answered, the plan for the option picked; then the question and two advices in the record 3.3, 3.9, 3.3, 3.4
diagram-assistant render_diagram on diagram.render, ok; the Mermaid code in the answer; the SVG and its page stored out of band 18.2, 11.9, 8.6, 8.6
document-ingest, two documents and the first again file_extract and graph_ingest ok with no approval (mode: auto); the graph's counts before and after 11 to 23 each
document-query graph_schema and graph_query ok; the deadlines of the supplier agreement, with the source 3.6, 3.4, 3.7, 3.7
site-notes the section crawled (web_crawl ok), file_write waiting with its path and content; approved, the file in the workspace 13.6 and 1.6, 9.9 and 5.5, 20.8 and 9.5, 13.1 and 7.3
POST /api/llm/stream HTTP 200, 30 to 34 events over 0.7 seconds, then done 1.1 each

Some steps were run a second time. On the first combination the watched run, the three ingests, the query and the stream were repeated after the drive's own tooling was corrected: two of its checks had judged the model's choice of calls, and its count of the graph had hung. On this engine through the Node.js pack one query was repeated, because the model had cited a field's name for a source (reading 6). The site-notes run on this engine through the Python pack needed a second approval, as the two runs after it did (reading 4).

The person's side in a browser

One more case ran on the Java engine with the Node.js pack: a plan-assistant task, with the agent-question app's React UI open in a browser. The page listed the cases under Waiting for you and History, the new card showed the question with its three options as radio buttons and the expiry, and the decision was sent from the page under a name typed in the header. The card then read answered, decided by that name at that time, with the acknowledgement and the outcome - the plan for the option picked - under the same case.

The evidence in the stores

  • The transcript audit store. 62 conversations and 156 turn rows - as many as the conversations' turns add up to
  • with 205,411 input tokens, 61,915 of them read from the cache, and 45,944 output tokens. Every conversation is done. Every loop's row carries the engine's graph id and node (order-assistant and assist, plan-assistant and plan, document-ingest and ingest, and so on) and every turn row its trace id and the trace's path, from both engines. The nine single calls are there too, behind the switch: support-triage with classify, four times, and the streaming relay's five with no graph, since no graph sends them.
  • The question record. 48 rows: four approvals answered and five questions answered, each with who decided; four approvals open, the refusals sent to the engine itself (reading 3); 35 advices.
  • The knowledge graph. 22 nodes and 21 relationships when first counted, after the first three ingests, and after each of the twelve that followed.
  • The workspace and the diagram store. notes/built-in-skills.md, written by the approved call of each run; four SVG files with their pages, one per combination.
  • Redis. No key left: every transaction ended, so no run stays suspended, and every working record was released after its check.

Readings

  1. A pack's stream: true entry sends its response head with its first chunk. GET /questions/events from a cursor that is current - what the UI sends after its replay - answered nothing for 30 seconds on both packs, then the head and the first keep-alive. Until then the page's header reads connecting, though the replay has shown every row and no event is lost. A proxy that waits less than 30 seconds for a response head would close such a stream.
  2. A conversation's model is the configured name for a loop and the provider's name for a single call (claude-haiku-4-5 and claude-haiku-4-5-20251001 here), in both packs.
  3. A wait decided at the engine itself stays open in the record until it expires or a person clicks it and meets nothing-waiting: the pack learns of a decision only when the decision passes through it.
  4. A notes file an earlier run left takes two approvals. file.write in create mode never replaces a file, the model reads the refusal and asks to overwrite, and that write waits for a person again - once on each of the three runs that followed the first.
  5. The loop's schema check refused a graph_ingest input three times in fifteen ingests, on both engines; the model corrected the shape on its next turn each time, and the call log reads invalid, then ok.
  6. One answer of six cited a field's name for a source (d.text for the document); the same question again named the document. The calls were the same both times.

Two smaller ones: the model's amount of 174.0 reaches the engine as 174.0 through the Python pack and as 174 through the Node.js pack, and the order book takes both; and the README of the agent-question app, in both packs, names extensions/llm-helper/dev/schema-apply.sh, a script neither pack ships - the audit schema applies when postgres-up.sh first starts the database.

What this drive did not cover

Hot deployment with a pack as a task's provider (driven on 2026-11-25, hot-deploy-live-drive.md in mercury-composable); the attachments of a single llm.chat call, which no shipped graph sends; the oauth2 modes of the reply page and of the UI; a device that is off and reconnects, and two devices on one ticket; an outage of the audit database; the WebSocket entry of a watched run; the trace's export. The Python pack's UI backend was not opened in a browser; its stream was read with curl.

Reproduce

# the stores (Colima or Docker Desktop), from either pack
docker run -d --name mercury-redis -p 6379:6379 redis:7-alpine
POSTGRES_PASSWORD=... extensions/llm-helper/dev/postgres-up.sh
extensions/ask-person/dev/schema-apply.sh
GRAPH_PASSWORD=... extensions/agent-tools/dev/graph-up.sh
# one pack (mercury-python shown; mercury-nodejs is the same with node dist/src/cli.js and the .mjs files)
mercury-serve extensions/llm-helper/llm_helper.py -Dllm.model=claude-haiku-4-5 -Dllm.transcript.store=redis \
  -Dllm.transcript.audit=postgres -Dllm.transcript.audit.postgres.ssl=false -Dllm.transcript.audit.single=true
mercury-serve extensions/agent-tools/agent_tools.py -Dtools.file.root=<a copy of this example's corpus> \
  -Dtools.web.allow=accenture.github.io -Dtools.graph.uri=bolt://127.0.0.1:7687 -Dtools.graph.write=true
mercury-serve extensions/mcp-binding/mcp_binding.py
mercury-serve extensions/agent-question/agent_question.py -Dquestion.store=postgres -Dquestion.store.postgres.ssl=false
mercury-serve extensions/ask-person/ask_person.py -Dask.ticket.key='${ASK_TICKET_KEY}' \
  -Dask.graphs='order-assistant=http://127.0.0.1:8085/api/graph/order-assistant,plan-assistant=http://127.0.0.1:8085/api/graph/plan-assistant' \
  -Dask.channels=agent.question.inbox -Dask.channel.endpoints='agent.question.inbox=http://127.0.0.1:8092/api/event' \
  -Dask.audit=postgres -Dask.audit.postgres.ssl=false
# one engine, its peers that pack's (8086, 8088, 8089 for Python; 8087, 8089, 8090 for Node.js)
cargo build -p minigraph-playground --release
cd examples/minigraph-playground && ../../target/release/minigraph-playground \
  -Dllm.peer.port=8086 -Dmcp.peer.port=8088 -Dtools.peer.port=8089 -Dask.peer.port=8091
java -Dllm.peer.port=8086 -Dmcp.peer.port=8088 -Dtools.peer.port=8089 -Dask.peer.port=8091 \
  -jar minigraph-playground-4.12.31.jar        # the Java engine, from a copy of the example's jar

Then the protocols of examples/minigraph-playground/resources/graph/README.md: the question, the advice with its link, the decision through POST /ask/reply with the link's ticket or on the page at http://127.0.0.1:8092/, and the requests of the other graphs. The token-free twins of this drive are tests/agent_graphs.rs and tests/ask_person_unreachable.rs here, and OrderAssistantTest, PlanAssistantTest, DiagramAssistantTest and AgentToolsGraphsTest in the Java example.