|
54 | 54 | > Canonical live home for the current stack — language version, dependencies, tool |
55 | 55 | > versions. `instructions.md` keeps only a high-level descriptor and points here. |
56 | 56 |
|
57 | | -- Runtime deps: `aiohttp` >=3.10,<4 (Event API host), `msgpack` >=1,<2 (envelope codec), |
| 57 | +- Python >= 3.11 (the floor since 2026-11-25: 3.10 reached end of life on 2026-10-01, Eric's direction from the |
| 58 | + developer guide's schedule; CI tests the floor and the newest release, 3.14); build backend hatchling, the wheel |
| 59 | + from `src/mercury_composable`. Runtime deps: `aiohttp` >=3.10,<4 (Event API host), `msgpack` >=1,<2 (envelope codec), |
58 | 60 | `PyYAML` >=6,<7 (config); dev: `pytest` >=8 + `pytest-asyncio` >=0.23 (`asyncio_mode=auto`), `ruff` >=0.9, and |
59 | 61 | the helper's backends for its tests (`anthropic[bedrock]`, `redis`, `fakeredis[lua]` >=2.26); |
60 | 62 | optional extras, all for the LLM helper (`extensions/llm-helper`; the package itself stays SDK-free): `llm` = `anthropic` |
|
64 | 66 | built-in agent tools (`extensions/agent-tools`): `graph` = `neo4j` >=6,<7 (the knowledge-graph tools over Bolt) and |
65 | 67 | `documents` = `pypdf` >=6,<7 + `python-docx` >=1.1,<2 (`file.extract`), both 2026-11-17, and for the ask-a-person |
66 | 68 | main flow (`extensions/ask-person`): `ask` = `PyJWT[crypto]` >=2.9,<3 (the reply page's `oauth2` mode), 2026-11-19 |
67 | | - <!-- id: stack-deps-aiohttp-msgpack | created: 2026-08-22 | last_used: 2026-11-19 | uses: 8 | tier: archive-candidate | origin: 2026-08-22-171555 --> |
| 69 | + <!-- id: stack-deps-aiohttp-msgpack | created: 2026-08-22 | last_used: 2026-11-25 | uses: 9 | tier: active | origin: 2026-08-22-171555 --> |
68 | 70 |
|
69 | 71 | ## Architectural Invariants |
70 | 72 |
|
|
320 | 322 | ([[static-content-resources-public]]), the engines' actuator endpoints beside it for Kubernetes probes (Eric). |
321 | 323 | **Driven live 2026-11-20** with the React UI (mercury-composable `docs/test-reports/agent-question-ui-live-drive.md`); |
322 | 324 | the streams end when the application stops ([[platform-on-shutdown-hook]]). |
323 | | - <!-- id: agent-question-app | created: 2026-11-19 | last_used: 2026-11-20 | uses: 7 | tier: active | origin: 2026-11-19-071444 --> |
| 325 | + <!-- id: agent-question-app | created: 2026-11-19 | last_used: 2026-11-20 | uses: 7 | tier: archive-candidate | origin: 2026-11-19-071444 --> |
324 | 326 |
|
325 | 327 | - **The host serves static web content from `resources/public` next to the application file - the engines' `public` |
326 | 328 | folder (Eric, 2026-11-20; PR #73, the Node twin mercury-nodejs #138).** `static.html.folder` is honoured as the Java |
|
350 | 352 | reconnect to the next instance from their last sequence; the cleanup (`on_cleanup`) still closes the stores after |
351 | 353 | the last request. **How to apply:** a stream or a socket ends in `on_shutdown`, a store closes in `on_cleanup`; |
352 | 354 | never a shorter `shutdown_timeout` as the remedy - only the extension knows a response is a stream. |
353 | | - <!-- id: platform-on-shutdown-hook | created: 2026-11-20 | last_used: 2026-11-20 | uses: 1 | tier: active | origin: 2026-11-20-094019 --> |
| 355 | + <!-- id: platform-on-shutdown-hook | created: 2026-11-20 | last_used: 2026-11-20 | uses: 1 | tier: archive-candidate | origin: 2026-11-20-094019 --> |
354 | 356 |
|
355 | 357 | - **REST automation in the pack: `rest.yaml` is the router in front of the functions, the engines' grammar and never a |
356 | 358 | dialect (RFC-0018 in mercury-composable, agreed by Eric 2026-11-25; built here the same day as build plan step 1, |
|
365 | 367 | refused by name at load: a flow binding, the HTTP relay, the A/B dual service; `upload: true` is the pack's |
366 | 368 | bounded form (the files' bytes in the request map within `rest.upload.max.bytes`, `AsyncHttpRequest.files()`; |
367 | 369 | the LLM helper's `llm.upload` the first intake, 2026-11-25). The edge records |
368 | | - `http.request` and the function's round trip as the engines do, so the forwarder's SERVER kind holds. **How to |
| 370 | + `http.request` and the function's round trip as the engines do, so the forwarder's SERVER kind holds. **MERGED |
| 371 | + 2026-11-25:** step 1 as PR #83 (`b4f9c09`), upload as PR #84 (`2cda53f`); the CI matrix as PR #85 (`86d1367`). **How to |
369 | 372 | apply:** a new endpoint is a `rest.yaml` entry and a `@preload` function reading `AsyncHttpRequest(body)`, never a |
370 | 373 | mounted route; a behaviour of the edge is first a vector case, then code, in both packs; the grammar's messages |
371 | 374 | are the engines' and a pack never grows a dialect; what the engines defer stays deferred until a field request. |
372 | | - <!-- id: rest-automation-python | created: 2026-11-25 | last_used: 2026-11-25 | uses: 2 | tier: active | origin: 2026-11-25-005844 --> |
| 375 | + <!-- id: rest-automation-python | created: 2026-11-25 | last_used: 2026-11-25 | uses: 3 | tier: active | origin: 2026-11-25-005844 --> |
373 | 376 |
|
374 | 377 | ## Conventions |
375 | 378 |
|
376 | 379 | - **Quality gates (adopted 2026-08-23, Eric's IDE review round): ruff + basedpyright + |
377 | | - pytest, config lives in pyproject.toml.** ruff: line-length 100, py310, isort extend. |
| 380 | + pytest, config lives in pyproject.toml.** ruff: line-length 100, py311 (the floor rose from 3.10 on |
| 381 | + 2026-11-25, 3.10 being end of life since 2026-10-01 - Eric, from the developer guide's schedule), isort extend. |
378 | 382 | basedpyright: standard mode + reportMissingParameterType=error, TESTS INCLUDED (Eric's |
379 | 383 | ruling — test signatures are annotated; handlers take `(dict[str, str], Body)`). |
380 | 384 | `agent-skills/` excluded from both (tool-managed by agent-memory — style fixes belong |
381 | 385 | upstream). Run: `uvx ruff check .` / `uvx basedpyright` / `.venv/bin/pytest -q`. |
382 | 386 | Unused contract params take the underscore prefix; deliberate suppressions carry |
383 | 387 | rationale comments (PyBroadException / noqa only where the rule actually fires). |
384 | | - <!-- id: conv-python-quality-gates | created: 2026-08-23 | last_used: 2026-11-25 | uses: 18 | tier: active | origin: 2026-08-23-005709 --> |
| 388 | + <!-- id: conv-python-quality-gates | created: 2026-08-23 | last_used: 2026-11-25 | uses: 19 | tier: active | origin: 2026-08-23-005709 --> |
385 | 389 | - Engine-mirrored configuration/logging/trace conventions (see the invariant above and |
386 | 390 | `instructions.md`); GitHub flow with tests + a CHANGELOG entry per change |
387 | 391 | (CONTRIBUTING.md). |
|
0 commit comments