diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a02170..74f49e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,66 @@ All notable changes to this project are documented here. -## [0.1.0] — unreleased +## [0.2.0] — 2026-08-28 + +**The first tagged release.** `0.1.0` was never cut: the section below has sat marked *unreleased* +since the first commit on 2026-07-21 while eighteen more went in, so until now no version number +identified a build. +That mattered more than it looked, because of the first fix in this release. + +### Fixed +- **`yeoul-mcp` announced the wrong package's version.** `FastMCP.__init__` takes no `version`, so + `Server.version` stayed `None` and the SDK substituted its own release into `serverInfo`: this + server reported `{"name": "yeoul", "version": "1.27.2"}` — the installed `mcp`, not yeoul-mcp. + The announced number therefore moved with whatever SDK a machine happened to have and never with + this package. Now set from the source `__version__` (deliberately not `importlib.metadata`, whose + dist-info can be stale under an editable install). (#9) +- **Nothing read the handshake.** The `mcp` CI job imported the module and counted tools, which + proves the module loads. `mcp/tests/test_serverinfo_version.py` launches the server and reads what + it actually says, with a negative control (an unpatched `FastMCP` must still show `version is + None`) so the file cannot go green while asserting nothing. (#9) +- **The version is written in two files and only one reached `serverInfo`.** `pyproject.toml` is + what packaging records; `__init__.py` is what the server speaks. They could drift silently — with + pyproject set to a different number the suite still passed 6/6. A check now fails when they + disagree, because cutting a release means bumping both. + +### Added — the second key (#10) +Yeoul and mirror-stack are meant to be two keys: yeoul decides the design, mirror-stack seals the +kill-condition before compute. One side had no lock and the other had no record. + +- **`arc-prereg` refuses a spec with no design in it.** It attached a seal to an arc whose Goal, + Success condition, Kill-condition and Constraints were all blank — exit 0, nothing printed. The + four fields are now judged by the same `substance_check.py` the close gate uses, with its positive + control run first: an instrument is trusted because it just proved it can still say no. +- **Every close now records which keys were turned.** A KILL close wrote `⚠️ UNSEALED` into its + `_SUMMARY`; a GO close wrote nothing about the seal at all — and GO is the label that opens the + next step. Each close carries a harness-owned `Second key (pre-registration)` line, required + verbatim on the sealing run, so "closed with one key" cannot be edited into "closed with two". +- **The closing banner named a gate that had not run.** It said `blanks & KILL-defense checked` as a + fixed string on every successful close, including closes where no KILL-defense section existed. It + now names the gates that actually ran. +- **The knowledge index dropped a column it promised.** The `Sealed claim` row was printed only when + a claim existed, so an unsealed close was indistinguishable from an old row or a failed write. It + now says `none (closed with one key only)`. +- **`templates/spec.md`** had no colon on the Kill-condition line — nowhere to write the one field + the seal is about. + +**Compatibility.** The lock lives only in `arc-prereg`, which is only ever called by someone who +already has a ledger. Measured before and after: with no mirror-stack anywhere on `PATH`, every +other command still runs — `yeoul-new`, `arc-open`, `arc-list`, `status`, `arc-roles`, +`build-handoff`, `verify-gate`, `loop-guard`, and a full `arc-close` round trip. mirror-stack is not +an install requirement. If you *do* use both, an arc with a blank spec will now refuse the seal. + +### Also +- **Interpreter resolution** (#8): Windows ships a Store stub answering to `python3` that exits 49 + without running anything, so `command -v python3` was satisfied by it and every python-backed gate + received a 49 that printed like a verdict. Interpreters are now resolved by executing one. +- **Signals say only what the code checked** (#7). + +Gate suite 72/72 (61 before this release). Tested on Linux, macOS and Windows; the bash gate suite +runs on the unix matrix only. + +## [0.1.0] — never released (2026-07-21, superseded by 0.2.0) Initial extraction of the Yeoul harness (de-personalized structure only). diff --git a/mcp/pyproject.toml b/mcp/pyproject.toml index bd78eec..0fa6da5 100644 --- a/mcp/pyproject.toml +++ b/mcp/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "yeoul-mcp" -version = "0.1.0" +version = "0.2.0" description = "Gate-enforcing MCP tools over the Yeoul harness (deliberation → pre-registration → dev loop). Composes with mirror-stack." requires-python = ">=3.10" license = { text = "Apache-2.0" } diff --git a/mcp/tests/test_serverinfo_version.py b/mcp/tests/test_serverinfo_version.py index 2f58f24..9885cb8 100644 --- a/mcp/tests/test_serverinfo_version.py +++ b/mcp/tests/test_serverinfo_version.py @@ -26,6 +26,7 @@ """ import json import os +import re import subprocess import sys import threading @@ -39,7 +40,7 @@ RAN = [] SKIPPED = [] REASON = [] -EXPECTED_CHECKS = 6 # every check below, whether it runs or declares itself skipped +EXPECTED_CHECKS = 8 # every check below, whether it runs or declares itself skipped def skip(desc, why): @@ -147,6 +148,31 @@ def test_version_is_set_on_the_low_level_server(): "%r != %r" % (server.mcp._mcp_server.version, OWN_VERSION)) +def test_the_two_version_strings_agree(): + """The version is written in TWO files, and only one of them reaches `serverInfo`. + + `yeoul_mcp/__init__.py` is what the server announces; `pyproject.toml` is what the *packaging* + records — what `pip` stores, what `importlib.metadata` returns, what a release is cut from. + Every check above compares the server against `__init__.py`, so the two could drift and this + file would stay green: measured 2026-08-28, setting pyproject to 9.9.9 alone kept it at 6/6. + + That drift is the same defect this module exists to prevent, arriving through the packaging + door instead of the SDK one — the number a user sees would stop matching the number the server + speaks. Bumping a release means bumping both, so the check belongs here rather than in a + release checklist nobody runs. + """ + toml = Path(__file__).resolve().parents[1] / "pyproject.toml" + text = toml.read_text(encoding="utf-8") + m = re.search(r'(?m)^version\s*=\s*"([^"]+)"', text) + check("pyproject.toml declares a version", m is not None, "no top-level version = \"...\" found") + if m is None: + return + check("pyproject.toml and __init__.py carry the same version", + m.group(1) == OWN_VERSION, + "pyproject says %r, package says %r -- a release cut now would ship two different numbers" + % (m.group(1), OWN_VERSION)) + + def test_unversioned_fastmcp_is_the_broken_shape(): """Negative control: a FastMCP nobody patched must still show the defect. @@ -164,6 +190,7 @@ def main(): print("mcp serverInfo version contract tests") test_handshake_announces_own_version() test_version_is_set_on_the_low_level_server() + test_the_two_version_strings_agree() test_unversioned_fastmcp_is_the_broken_shape() # Print what was counted. A run that collected zero checks also prints "0 failed". if not RAN: diff --git a/mcp/yeoul_mcp/__init__.py b/mcp/yeoul_mcp/__init__.py index e37eced..5a54876 100644 --- a/mcp/yeoul_mcp/__init__.py +++ b/mcp/yeoul_mcp/__init__.py @@ -1,2 +1,2 @@ """Yeoul MCP — gate-enforcing tools over the Yeoul harness.""" -__version__ = "0.1.0" +__version__ = "0.2.0"