|
| 1 | +# Session (2026-11-03T01:20:56.000Z) |
| 2 | + |
| 3 | +**Agent:** Claude Code |
| 4 | + |
| 5 | +## Summary |
| 6 | + |
| 7 | +Eric's two instructions (2026-11-03): |
| 8 | + |
| 9 | +1. Run the first invariant validation. |
| 10 | +2. `llm.chat` is configurable: a stateless chat, or multi-turn tool use with the transcript store. That is by design, not a |
| 11 | + contradiction. |
| 12 | + |
| 13 | +### Ruling 2: the stateless contract |
| 14 | + |
| 15 | +- [[contradiction-transcript-store-stateless]] is closed as not a contradiction. |
| 16 | +- `stateless-functions-contract` now states the configurable design: a stateless chat, or, with `tools`, a loop turn whose |
| 17 | + transcript lives in `llm.transcript.store` (`memory` for one process, `redis` shared by replicas). It names that store as |
| 18 | + part of the function's configured contract. |
| 19 | +- `scope-wrapper-no-orchestration` and the Vision's scope non-goal now say that the LLM helper in `extensions/llm-helper/` |
| 20 | + is an application on the package, not part of it. Its store therefore leaves the package persistence-free. |
| 21 | + |
| 22 | +### The invariant walk (live tree, this session) |
| 23 | + |
| 24 | +| Item | Evidence | Verdict | |
| 25 | +| --- | --- | --- | |
| 26 | +| `scope-wrapper-no-orchestration` | the wheel is `src/mercury_composable` alone; no store client, subprocess, file write, flow, graph or broadcast in it | holds; wording refreshed | |
| 27 | +| `wire-standard-golden-vectors` | `tests/vectors/vectors.json` byte-identical with Java platform-core's 7 vectors; the envelope suite green | holds | |
| 28 | +| `engine-consistent-conventions` | config, `${ENV:default}` and `-D` tests; `x-ttl` and `x-async` tests; `resources/` next to the application file (2026-10-14) | holds | |
| 29 | +| `stateless-functions-contract` | the helper's handler keeps the transcript only in its configured store; the package has no handler state | holds; wording refreshed per ruling 2 | |
| 30 | +| `vision-mercury-python` (the Vision) | elevator, current state (v4.12.21, amended earlier today), scope, conventions, non-goals | holds after the two 2026-11-03 amendments | |
| 31 | + |
| 32 | +Suite: 351 passed, 64 skipped (the live-Redis variants of the loop vectors). |
| 33 | + |
| 34 | +Two notes for Eric: |
| 35 | +- **The Vision's "Never subprocess or embedded-interpreter execution" non-goal.** It means a function is never run that |
| 36 | + way (Option A). RFC-0011 build plan step 4 binds MCP servers over stdio, which makes a server a child process of the pack. |
| 37 | + Settle the wording before step 4. |
| 38 | +- **The golden vectors in the Rust repository (mercury).** Its |
| 39 | + `crates/platform-core/tests/resources/envelope-vectors/vectors.json` has 6 vectors. It lacks `standard-trace-context`, |
| 40 | + which Java #213 added on 2026-07-21. Java and both packs carry 7 vectors, byte-identical. |
| 41 | + |
| 42 | +[[reverify-invariants-20261103]] carries the walk and waits for Eric's confirmation. `last_invariant_check` records the walk. |
| 43 | +The check is not complete until Eric confirms. |
| 44 | + |
| 45 | +## Memory References |
| 46 | + |
| 47 | +- Edited: scope-wrapper-no-orchestration, stateless-functions-contract, vision-mercury-python, reverify-invariants-20261103 |
| 48 | +- Referenced: wire-standard-golden-vectors, engine-consistent-conventions (each walked against the tree) |
| 49 | +- Closed: contradiction-transcript-store-stateless |
0 commit comments