From 732680432cbf355ae9daa2cfc911a5a472f114c3 Mon Sep 17 00:00:00 2001 From: Mother Seara Date: Fri, 28 Aug 2026 09:13:38 +0900 Subject: [PATCH] =?UTF-8?q?release:=200.2.0=20=E2=80=94=20give=20the=20ver?= =?UTF-8?q?sion=20number=20something=20to=20point=20at?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Until now no version number identified a build. `CHANGELOG.md` has said `[0.1.0] — unreleased` since the first commit on 2026-07-21 while eighteen more went in; there are no tags and no releases. That was nobody's decision — the number simply carried no weight, so nothing exposed its absence. #9 gave it weight. Once the server announces its own version in `serverInfo`, that string is what a client reads to tell builds apart — and it stayed `0.1.0` across the fix, so the server that reported the SDK's version and the server that reports its own are indistinguishable by the very field the fix repaired. Bumping is the other half of #9, not bookkeeping. 0.2.0, not 0.1.1: #10 changed behaviour for anyone using both tools — `arc-prereg` now refuses an arc whose spec is blank, and every close writes a `Second key` line into its `_SUMMARY`. Also closes the packaging door on the same defect. The version lives in two files: `pyproject.toml` is what pip records and what a release is cut from, `yeoul_mcp/__init__.py` is what the server speaks. Every existing check compared the server against `__init__.py`, so the two could drift with the suite still green — measured: setting pyproject alone to 9.9.9 kept it at 6/6. A check now fails when they disagree, verified by forcing the drift. That belongs in the suite rather than in a release checklist nobody runs, because cutting a release is exactly when the two get touched. The denominator guard added in #9 earned its place immediately: this commit added two checks and bumped the expected count by one, and the run refused itself with "8 checks accounted for, 7 expected" rather than reporting a green 8/8. Suites from the repo root: serverInfo 8/8 · _run contract 8/8 · gates 72/72 · pre-publish 43 files clean. Co-Authored-By: Claude Opus 5 (1M context) --- CHANGELOG.md | 61 +++++++++++++++++++++++++++- mcp/pyproject.toml | 2 +- mcp/tests/test_serverinfo_version.py | 29 ++++++++++++- mcp/yeoul_mcp/__init__.py | 2 +- 4 files changed, 90 insertions(+), 4 deletions(-) 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"