diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2a2d030..3db385a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -69,31 +69,22 @@ jobs: exit $rc - name: Release metadata consistency - # pyproject, CHANGELOG, README (both languages), release notes and git - # tags must name the same release. Fails the job on drift. + # Two-phase release (docs/MAINTENANCE.md): a candidate commit may bump + # pyproject/CHANGELOG/release notes to the next version while README + # pins stay on the newest tag that ACTUALLY exists. check_consistency.py + # is the single invariant for BOTH phases: README pins and the current + # release row must name a real, newest released tag. That directly + # forbids a phantom pin (installing vX.Y.Z before vX.Y.Z is tagged). # - # check_consistency.py is deliberately unchanged: it always requires - # README pins to name a REAL released tag. But a tag must be created on - # the tree whose README already says "install v", so during - # the short untagged release-candidate window that strict check cannot - # pass. Use the pre-tag gate instead: it runs the SAME - # check_consistency.check() with the pending tag simulated, then adds - # pin/version/tag-absence assertions. Once the tag exists, the strict - # command runs again, unchanged. + # At tag time the pin patch and the tag are pushed together, so the + # tag exists when this check runs on the tag tree and the SAME strict + # command passes. check_release_ready.py is the maintainer's LOCAL + # pre-tag gate (MAINTENANCE.md step 4); it is intentionally not a CI + # step, because simulating a not-yet-existing tag is exactly what let + # a candidate advertise an install target users cannot install. shell: bash run: | - VERSION="$(sed -n 's/^version[[:space:]]*=[[:space:]]*"\([^"]*\)"/\1/p' pyproject.toml | head -1)" - if [ -z "$VERSION" ]; then - echo "cannot read version from pyproject.toml" >&2 - exit 1 - fi - if git rev-parse -q --verify "refs/tags/v${VERSION}" >/dev/null 2>&1; then - echo "v${VERSION} is a real tag: strict released-tag check" - python scripts/check_consistency.py - else - echo "v${VERSION} is not tagged yet: pre-tag simulated-tag gate" - python scripts/check_release_ready.py --version "${VERSION}" - fi + python scripts/check_consistency.py core-only: # The core install must work with zero optional dependencies: `pip install diff --git a/CHANGELOG.md b/CHANGELOG.md index 25963a8..9f7b545 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ All notable changes to Voyager are documented here. Format loosely follows [Keep a Changelog](https://keepachangelog.com/); versions are dated. -## [Unreleased] +## [1.6.0] — 2026-11-22 ### Added diff --git a/README.md b/README.md index 02ed04f..f6fd234 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ is one client of it, and the core is a general-purpose local tool.) | **Known limitation** | Native resume is **not verified** end to end — see [supported platforms](#supported-platforms) | | **Maintaining it** | [Known issues, compatibility matrix, release checklist](docs/MAINTENANCE.md) | -> **Unreleased candidate:** Core 1.6.0 is prepared on `main` at commit `913be97` (CI 10/10). It has **no tag and no Release**. The install commands above deliberately stay on `v1.5.0`; verify the candidate from that commit or its locally built wheel/sdist, never from a `v1.6.0` tag. +> **Unreleased candidate:** Core 1.6.0 is prepared on `release/1.6.0-prep`. It has **no tag and no Release**. The install commands above deliberately stay on `v1.5.0`; verify the candidate from that branch or its locally built wheel/sdist, never from a `v1.6.0` tag. ### Three things it is for @@ -136,12 +136,13 @@ nearest-neighbour search library, so a bare `pip install voyager` installs the wrong project — always use the `@ git+…` form above. Publishing under a final name is tracked in `CHANGELOG.md`. -The `@v1.6.0` pins a release tag, which is what makes a reinstall reproducible -and is what the DSH plugin's own error messages recommend. Drop the `@v1.6.0` -to follow `main` instead. Check the installed version with: +The `@v1.5.0` pins the currently published release tag, which is what makes a +reinstall reproducible and is what the released DSH plugin recommends. Drop the +`@v1.5.0` to follow `main` (which carries the 1.6.0 candidate) instead. Check the +installed version with: ```sh -voyager --version # must print 1.6.0 +voyager --version # must print 1.5.0 ``` > **Upgrading from v1.2.0 (or v1.1.0) needs no migration.** Your index is read as-is: no @@ -149,13 +150,12 @@ voyager --version # must print 1.6.0 > own speed. Rolling back is safe because nothing was migrated — v1.1.0 reads > the same database and ignores the extra index. -> **`v1.6.0` is the current release.** It adds `merge --repo`, a read-only +> **Core 1.6.0 is an unreleased candidate** on `release/1.6.0-prep`; the current +> published release is **v1.5.0**. 1.6.0 adds `merge --repo`, a read-only > `voyager preview`, the WorkBuddy read-only provider and the VS Code WorkThread -> Selector, on top of v1.5.0's additive `evidence_verify` op and strict -> machine-derived repo scope. Upgrade with `@v1.6.0` (see above); the user-facing -> changes are listed under `[1.6.0]` in `CHANGELOG.md` and -> `docs/releases/v1.6.0.md`. The released DSH plugin pairing remains v1.3.0 -> against Core v1.5.0; plugin v1.4.0 is prepared for Core 1.6.0. +> Selector on top of v1.5.0. The change list is under `[1.6.0]` in `CHANGELOG.md` +> and `docs/releases/v1.6.0.md`; the released DSH plugin pairing stays v1.3.0 +> against Core v1.5.0, and plugin v1.4.0 is prepared alongside this candidate. `[all]` = DSH support (`zstandard`) + MCP server (`mcp`). The two are optional and only needed for those features: diff --git a/README.zh-CN.md b/README.zh-CN.md index f479957..3d9146b 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -24,7 +24,7 @@ | **当前版本** | [v1.5.0](https://github.com/HarryHeYu/sessionFlow/releases/tag/v1.5.0) · Python ≥ 3.10 · Windows / macOS / Linux | | **已知限制** | Native resume **尚未**端到端验证 —— 见 [支持的平台](#支持的平台) | -> **未发布候选版:** Core 1.6.0 在 `main` 的提交 `913be97` 上准备(CI 10/10),**尚无 Tag、也无 Release**。上面的安装命令仍然固定 `v1.5.0`;验证候选代码请使用该提交或本地构建的 wheel/sdist,不要假设存在 `v1.6.0` Tag。 +> **未发布候选版:** Core 1.6.0 在 `release/1.6.0-prep` 分支上准备,**尚无 Tag、也无 Release**。上面的安装命令仍然固定 `v1.5.0`;验证候选代码请使用该分支或本地构建的 wheel/sdist,不要假设存在 `v1.6.0` Tag。 ### 它主要解决三件事 @@ -121,8 +121,9 @@ python -m pip install "voyager[all] @ git+https://github.com/HarryHeYu/sessionFl 所以裸跑 `pip install voyager` 会装错项目 —— 请一律使用上面的 `@ git+…` 形式。 改用正式包名的进度见 `CHANGELOG.md`。 -`@v1.6.0` 是发布 tag,重装才能装到同一份代码,插件报错信息里推荐的也是它; -去掉 `@v1.6.0` 就是跟 `main` 走。确认装到的版本: +`@v1.5.0` 是当前已发布版本的 tag,重装才能装到同一份代码,已发布的插件报错 +信息里推荐的也是它;去掉 `@v1.5.0` 就是跟 `main` 走(其中含 1.6.0 候选版)。 +确认装到的版本: ```sh voyager --version # 应当输出 1.5.0 @@ -132,12 +133,11 @@ voyager --version # 应当输出 1.5.0 > 唯一区别是新版本给自己加了一个索引。回滚同样安全——v1.1.0 读同一个库, > 只是忽略那个多出来的索引。 -> **`v1.6.0` 是当前的正式版本。** 它在 v1.5.0 的加性 `evidence_verify` op -> 与严格机器推导仓库范围之上,新增 `merge --repo`、只读 `voyager preview`、 -> WorkBuddy 只读 Provider 与 VS Code WorkThread Selector。用 `@v1.6.0` -> 升级(见上);用户可见改动见 `CHANGELOG.md` 的 `[1.6.0]` 与 -> `docs/releases/v1.6.0.md`。已发布的 DSH 插件组合仍是 Core v1.5.0 + -> 插件 v1.3.0;插件 v1.4.0 是为 Core 1.6.0 准备的候选版。 +> **Core 1.6.0 是 `release/1.6.0-prep` 上的未发布候选版**;当前已发布版本仍是 +> **v1.5.0**。1.6.0 在 v1.5.0 之上新增 `merge --repo`、只读 `voyager preview`、 +> WorkBuddy 只读 Provider 与 VS Code WorkThread Selector。改动清单见 `CHANGELOG.md` +> 的 `[1.6.0]` 与 `docs/releases/v1.6.0.md`。已发布的 DSH 插件组合仍是 Core v1.5.0 +> + 插件 v1.3.0;插件 v1.4.0 与本候选版配套准备。 `[all]` = DSH 支持(`zstandard`)+ MCP server(`mcp`),两者都是可选能力: diff --git a/docs/MAINTENANCE.md b/docs/MAINTENANCE.md index d17aad3..4a54075 100644 --- a/docs/MAINTENANCE.md +++ b/docs/MAINTENANCE.md @@ -37,7 +37,7 @@ known, what is supported, and what a maintainer should check. | Core | Plugin | Bridge schema | Notes | |---|---|---|---| -| 1.6.0 (candidate) | 1.4.0 (candidate) | 1 | prepared on main, not tagged; additive `merge --repo`, read-only `preview`, WorkBuddy provider and VS Code Selector; no Store/Bridge schema change | +| 1.6.0 (candidate) | 1.4.0 (candidate) | 1 | prepared on `release/1.6.0-prep`, not tagged; additive `merge --repo`, read-only `preview`, WorkBuddy provider and VS Code Selector; no Store/Bridge schema change | | v1.5.0 | v1.3.0 | 1 | **current pairing** (Core release 2026-11-14; plugin release 2026-11-15); seventh tool `sessionflow_evidence_verify` ships in plugin v1.3.0 through the additive Core `evidence_verify` op; bridge schema unchanged | | v1.5.0 | v1.2.0 | 1 | historical pairing after Core v1.5.0 before plugin v1.3.0; six tools, no seventh tool; index and bridge schema unchanged | | v1.4.1 | v1.2.0 | 1 | released 2026-11-14 (patch); plugin v1.2.0 needs no upgrade — no new op, no schema change | @@ -93,7 +93,7 @@ git archive | tar -x -C "$SCRATCH/prev" `PYTHONPATH`: with it in place, bulk `unlink()` raises and tests fail for a reason that has nothing to do with the code. -The 1.6.0 Core candidate is prepared at commit `913be97` (CI 10/10) but is **not tagged**. Published install commands stay on `v1.5.0` until the pre-tag pin patch in step 3 below. Do not read the candidate note in the READMEs as a release announcement. +The 1.6.0 Core candidate is prepared on branch `release/1.6.0-prep` but is **not tagged**. Published install commands stay on `v1.5.0` until the pre-tag pin patch in step 3 below. Do not read the candidate note in the READMEs as a release announcement. Release mechanics — the `release` workflow is **automatic**: diff --git a/docs/releases/v1.6.0.md b/docs/releases/v1.6.0.md index 0c4fa18..8a29d78 100644 --- a/docs/releases/v1.6.0.md +++ b/docs/releases/v1.6.0.md @@ -1,8 +1,9 @@ # Release v1.6.0 — product delivery -This is candidate release notes for the tree at commit `913be97`. It is **not tagged, -not published and not installable from a `v1.6.0` tag**. Published install commands -stay on `v1.5.0` until the pre-tag pin patch described in `docs/MAINTENANCE.md`. +This is candidate release notes for the tree on branch `release/1.6.0-prep`. It is +**not tagged, not published and not installable from a `v1.6.0` tag**. Published +install commands stay on `v1.5.0` until the pre-tag pin patch described in +`docs/MAINTENANCE.md`. ## Added diff --git a/pyproject.toml b/pyproject.toml index ea3d88b..04f2102 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "voyager" -version = "1.5.0" +version = "1.6.0" description = "Unified local session manager for AI coding agents (Codex, Claude Code, ZCode, DSH, Grok, ...)" readme = "README.md" requires-python = ">=3.10"