Skip to content

Commit 300cd65

Browse files
authored
Merge pull request #95 from Accenture/release/4.12.31
release: v4.12.31 - the pack's half of the agent work, and rest.yaml as the router of a Python application
2 parents 6e9e8bb + e8289a3 commit 300cd65

4 files changed

Lines changed: 39 additions & 11 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,34 @@
22

33
## Unreleased
44

5+
## Version 4.12.31, 11/30/2026
6+
7+
The pack's half of the agent work the engines release as 4.12.31, in lockstep with the Node.js pack, and the pack as an
8+
application server. **The audit:** every model turn of an agent loop is recorded in a transcript audit store on
9+
PostgreSQL, off the turn's path (Added 1; ADR-0035 in mercury-composable); a single call without tools joins it behind
10+
a switch (Added 11), and so do the questions, answers and advices of ask-a-person (Added 8). **Tools for an agent
11+
loop:** twelve built-in tools - files inside one workspace, the web inside an allowlist, a knowledge graph inside one
12+
database and a clock - each with a published catalog row (Added 2 and 3; ADR-0036), and recipes for the tools of
13+
existing MCP servers (Added 4). **Ask a person:** `person.ask` carries a loop's wait to a person and brings the
14+
decision back through a signed resume link (Added 5), and the agent-question app is the inbox, with its React UI
15+
(Added 6 and 9, Changed 1 to 4). **Documents:** a single `llm.chat` call takes images and PDF pages by reference
16+
(Added 12), and the helper takes uploads into the folder they are read from (Added 14). **The application server:**
17+
`rest.yaml` is the router of a Python application as it is of an engine application (Added 13 and 14, Changed 10,
18+
Documentation 1), the host serves static content (Added 7) and tells an application when it starts to stop
19+
(Added 10). **One rule for a value:** every YAML file is read by YAML 1.2.2, and a setting, a number, a time and a
20+
switch are read by one rule in both packs, a wrong value stopping the start by its key's name (Fixed 4 to 12). The
21+
floor is Python 3.11 (Changed 9). Driven live from the engines through this pack: the transcript audit store, the
22+
agent tools, ask-a-person with its UI, and a pack's functions as the provider of a hot-deployed graph
23+
(`transcript-audit-live-drive.md`, `agent-tools-live-drive.md`, `ask-a-person-live-drive.md`,
24+
`agent-question-ui-live-drive.md` and `hot-deploy-live-drive.md` in the engine repository).
25+
26+
**Upgrade notes - READ:** a configuration file is read by YAML 1.2.2: `yes`, `no`, `on` and `off` are text and `010`
27+
is 10, so a switch or a flag written that way stops the start (Fixed 11); the LLM helper reads its settings when it
28+
starts, so a wrong value it never exercised stops the start (Fixed 9); an installation on Python 3.10 stays on 4.12.30
29+
(Changed 9); a `-D` value that held a literal `${...}` is resolved (Changed 6); the distributions carry the license as
30+
`LICENSE` (Changed 12). For an application that ran the unreleased extensions from `main`, the entries under Fixed and
31+
Changed carry their own notes, `graph.ingest`'s first (Fixed 3).
32+
533
### Added
634

735
1. **The transcript audit store: a durable, queryable record of every model turn (RFC-0012 in mercury-composable).**
@@ -29,8 +57,8 @@
2957
browser. `llm.chat` records the loop's `x-graph-id` and `x-node` headers at the first turn; `llm.health` reports
3058
`transcript_audit`. Pinned by `tests/test_transcript_audit.py` (28 tests on the memory store and a recording fake of
3159
the connection pool) and a live test gated on `LLM_TRANSCRIPT_AUDIT_TEST_URL`; the shared loop vector file is
32-
unchanged, since the audit is a side effect of a turn and not part of the loop contract. The Node twin follows in
33-
lockstep. **Upgrade note:** none without `llm.transcript.audit`. A record saved by the previous helper (version 1)
60+
unchanged, since the audit is a side effect of a turn and not part of the loop contract. The Node.js pack carries
61+
the twin. **Upgrade note:** none without `llm.transcript.audit`. A record saved by the previous helper (version 1)
3462
continues under the new one; its turns before the upgrade carry no facts, and the check logs them as unaudited.
3563

3664
2. **The built-in agent tools: files inside one workspace, the web inside an allowlist, and a clock (RFC-0013 in
@@ -211,7 +239,7 @@
211239
and a reply the helper judged unusable (its 422) are recorded with their cost, and a call that failed before the
212240
model answered leaves no row. Pinned by the new shared file `tests/vectors/llm-audit-vectors.json` (25 cases, run
213241
through the save, the check event and the function behind its mailbox) and six tests beside it; sixteen mutations
214-
of the code and the file were each caught by a test. The Node twin follows in lockstep. **Upgrade note:** none
242+
of the code and the file were each caught by a test. The Node.js pack carries the twin. **Upgrade note:** none
215243
without the switch; it is off by default, because it multiplies what the audit store holds. With it on,
216244
`llm.transcript.store` must be set (the shipped `application.yml` sets `memory`), or the application stops at
217245
start by name.
@@ -237,7 +265,7 @@
237265
with the size and the SHA-256 of the source file as it was read, never its bytes. Not on `llm.stream` and not on a
238266
loop turn (400). Pinned by the new shared file `tests/vectors/llm-attachments-vectors.json` (48 cases) over the
239267
fixture files of `tests/fixtures/attachments`, and six tests beside it; thirty-one mutations of the code, the
240-
vector file and a fixture were each caught by a test. The Node twin follows in lockstep. **Read:** the folder is
268+
vector file and a fixture were each caught by a test. The Node.js pack carries the twin. **Read:** the folder is
241269
readable through the model by every caller that can reach the helper, and its files are sent to the provider -
242270
choose it as deployment configuration and give it only what a graph may show a model. **Upgrade note:** none
243271
without `attachments`; a call without the field reads no folder and sends text as before.
@@ -346,7 +374,7 @@
346374
counts lines by the line feed; `pages` takes the digits 0 to 9 only; an allowlist entry that starts with a
347375
class (`[ab].example.com`) is a pattern.
348376

349-
**Upgrade note:** the agent tools are in no release yet. For an application that runs them from `main`: an address
377+
**Upgrade note:** the agent tools are new in this release. For an application that ran them from `main`: an address
350378
in `100.64.0.0/10` and an IPv4-mapped address are refused unless `tools.web.allow.private=true`, and a glob no
351379
longer reaches beneath a symbolic link to a folder.
352380

@@ -581,7 +609,7 @@
581609
3.11, the floor, and 3.14, the newest release the package lists - the floor catches what a user on it would hit
582610
(a typing stub, a missing method, as the first run of #84 did on 3.10), the newest the deprecations ahead;
583611
`fail-fast` is off so both results show. **Upgrade note:** an installation on Python 3.10 stays on 4.12.30 until
584-
it moves to a supported interpreter; `pip` refuses the next release there by the declared floor.
612+
it moves to a supported interpreter; `pip` refuses this release there by the declared floor.
585613
10. **The ask-person and agent-question extensions serve their pages, endpoints and the device stream as `rest.yaml`
586614
entries - the first adopters of REST automation in the pack (RFC-0018's open question on the hand-mounted routes;
587615
Eric's direction of 2026-11-25).** Each extension gains a `resources/rest.yaml` and turns `rest.automation` on in
@@ -603,8 +631,8 @@
603631
the row (whose `seq` is the cursor, as the React UI already reads it) and no `id:` line, which the engines' SSE
604632
dialect has not; the JSON the UI reads keeps its nulls (an advice's `state`, a silent engine's `status`), which
605633
the functions serialize themselves because the engines' renderer omits a null. **Upgrade note:** an installation
606-
that reads these endpoints with its own client sees the error body gain `status`; nothing else changes. The Node
607-
pack follows.
634+
that reads these endpoints with its own client sees the error body gain `status`; nothing else changes. The
635+
Node.js pack carries the same (mercury-nodejs #148).
608636

609637
11. **Code quality: the findings of a local SonarQube and IDE round (2026-11-29) on this release's code, with no
610638
behaviour change** - in lockstep with the Node pack. The 32 functions above the cognitive-complexity threshold of

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ graph task calls a Python function exactly as if it were local.
3030
[AI Agent Guide](https://accenture.github.io/mercury-python/guides/ai-agent-guide/)
3131
for deterministic function generation.
3232

33-
> **Status:** v4.12.30 is on PyPI — `pip install mercury-composable`. This repository was
33+
> **Status:** v4.12.31 is on PyPI — `pip install mercury-composable`. This repository was
3434
> repurposed in August 2026 for the polyglot initiative. The legacy Mercury language-pack
3535
> implementation remains in tagged releases.
3636

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "mercury-composable"
7-
version = "4.12.30"
7+
version = "4.12.31"
88
description = "Lightweight Event-over-HTTP function host and client for Mercury Composable"
99
readme = "README.md"
1010
license = "Apache-2.0"

‎src/mercury_composable/version.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Package version - the single Python-side source (pyproject.toml mirrors it)."""
22

3-
__version__ = "4.12.30"
3+
__version__ = "4.12.31"

0 commit comments

Comments
 (0)