From 2a0c1afa8fb1900dd11250901b9926206d1f48c8 Mon Sep 17 00:00:00 2001 From: HarryHe <2496583567@qq.com> Date: Sat, 21 Nov 2026 13:30:15 +0800 Subject: [PATCH] docs(quickstart): pin current release and list seven tools --- CHANGELOG.md | 1 + docs/QUICKSTART.md | 17 +++++++++-------- tests/test_docs.py | 22 ++++++++++++++++++++++ 3 files changed, 32 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 46ac900..79b8949 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -77,6 +77,7 @@ All notable changes to Voyager are documented here. Format loosely follows ### Fixed +- **The Quick Start now installs the current release and lists all seven tools.** `docs/QUICKSTART.md` still pinned `v1.3.1` and described a six-tool plugin even at the `v1.5.0` tag, so a new user following it installed a core without the `evidence_verify` op and hit a broken seventh tool. All install pins now match README's `v1.5.0`; the tool table adds `sessionflow_evidence_verify`; the version-relationship note names plugin `v1.3.0`. `tests/test_docs.py` checks the pin against README and guards the seven-tool wording. No code or schema change. - **Two Level 2 benchmark ground-truth defects are closed.** T2's requirement was self-contradictory: the goal said `normalize()` should lower-case by default, but the visible and hidden tests still expected `'Hi'`, and the hidden test only exercised `keep_case=True`, so a no-op `keep_case` parameter could pass. T2 now keeps the original visible behaviour (`normalize(' Hi ') == 'Hi'`), makes `keep_case=True` the backward-compatible default, and its hidden test requires `normalize(' Hi ', keep_case=False) == 'hi'` — a no-op parameter is rejected. T1's hidden test additionally pins the default clamp (`add(8, 9) == 10`) so a wrong default cannot pass. Separately, `evaluate_repo()` no longer feeds the pytest exit code into `classify_outcome()` as an Agent Runner code: hidden-test failure is labelled `hidden_tests_failed` with `runner_returncode: None` / `runner_status: NOT_EXECUTED`, while the pytest code is reported only as `evaluator_returncode`. Red baseline was 5 failed / 26 passed; after the fix 31 passed; four minimal mutations each turn their gate red. Level 1 results, Store/Bridge schema and product behaviour untouched. - **The Extension Host harness now has a real npm and launch contract.** `vscode-extension/e2e/` gained a private `package.json` + lockfile pinning `@vscode/test-electron` 3.1.0, `npm run check` and `npm test`; `extensionTestsPath` now points at the `run()`-exporting `suite/index.js` module. The launcher resolves `E2E_PYTHON` to an absolute executable, applies it and the synthetic workspace through `voyager.pythonPath` / `voyager.repoPath`, and isolates `HOME`, `USERPROFILE`, `APPDATA`, `LOCALAPPDATA`, XDG and TMP for the seed, host and spawned core child. The automated host check is honestly labelled a smoke subset, not a three-workflow E2E. `tests/test_vscode_e2e_contract.py` records a 5-red/1-green baseline before the fix and passes after it; the real GUI host remains NOT VERIFIED in the sandbox. See `docs/audits/2026-11-20-extension-host-e2e-gate.md`. diff --git a/docs/QUICKSTART.md b/docs/QUICKSTART.md index 91d8c56..e19dcca 100644 --- a/docs/QUICKSTART.md +++ b/docs/QUICKSTART.md @@ -2,11 +2,11 @@ **Ten minutes, from nothing to continuing another agent's work — and nothing reads your own history until step 4.** Every command below is exercised against -v1.3.1; the sample output is from that build. +v1.5.0; the sample output is from that build. - **sessionFlow** (this repo, CLI command `voyager`) — indexes and searches your local agent history. -- **dsh-sessionflow** — a DeepSeek Harness plugin that exposes that history as six +- **dsh-sessionflow** — a DeepSeek Harness plugin that exposes that history as seven tools. Optional; install it only if you use DSH. The order is deliberate. Steps 2–3 run against a **synthetic** index that cannot @@ -17,16 +17,16 @@ see your agents. Step 4 is the first one that opens your own session files. ## 1. Install the core (1 min) ```sh -pipx install "voyager[all] @ git+https://github.com/HarryHeYu/sessionFlow.git@v1.3.1" +pipx install "voyager[all] @ git+https://github.com/HarryHeYu/sessionFlow.git@v1.5.0" ``` `[all]` pulls in the DSH (`zstandard`) and MCP (`mcp`) extras. Drop it for a bare -install. The `@v1.3.1` pins a release tag so a reinstall reproduces the same +install. The `@v1.5.0` pins a release tag so a reinstall reproduces the same build; drop it to follow `main`. No `pipx`? Use pip — `python -m pip` on Windows, where `pip` is often not on `PATH`: ```sh -python -m pip install "voyager[all] @ git+https://github.com/HarryHeYu/sessionFlow.git@v1.3.1" +python -m pip install "voyager[all] @ git+https://github.com/HarryHeYu/sessionFlow.git@v1.5.0" ``` **Not on PyPI.** The `voyager` name there is an unrelated library, so a bare @@ -194,7 +194,7 @@ add `--bundle` (or use `merge`) when you want the compiled package even so: voyager continue --thread --bundle --no-launch -o ./handoff-.md ``` -What `continue` does, in this order, in v1.3.1: +What `continue` does, in this order, in v1.5.0: 1. **refreshes the index first** — an incremental scan of your provider directories. `VOYAGER_NO_SYNC=1` in the environment skips it, which is what you @@ -313,7 +313,7 @@ Ask in plain language — no tool name needed: > Continue the work I was doing in Claude Code on this repo. The agent calls `sessionflow_current_work` / `sessionflow_continue` and picks up -the goal, files and open items. The six tools: +the goal, files and open items. The seven tools: | Tool | Answers | |---|---| @@ -323,6 +323,7 @@ the goal, files and open items. The six tools: | `sessionflow_current_work` | "Where did I leave off on *this* project?" | | `sessionflow_continue` | "Pick the work back up." | | `sessionflow_merge` | "Put these sessions together and let me continue." | +| `sessionflow_evidence_verify` | "Is this quoted command/claim still the one in the transcript?" | **Phrase it as a lookup, not just an action.** Measured, the model recognises the need to search history far more reliably when you say what you are looking *for* @@ -411,7 +412,7 @@ calling the install healthy. Run `scan` (or `demo`) first. stronger on some agents than others. See the platform table in the README. Version relationship: the core and the plugin are **versioned independently** — -this page installs core **v1.3.1**, and the current plugin is **v1.2.0**. They +this page installs core **v1.5.0**, and the current plugin is **v1.3.0**. They are not required to share a number; what binds them is **bridge schema 1**, which the plugin declares and the core reports (`voyager integration-info --json`). A newer core that kept the schema would need no plugin release, and the plugin diff --git a/tests/test_docs.py b/tests/test_docs.py index e63bfab..4a4195e 100644 --- a/tests/test_docs.py +++ b/tests/test_docs.py @@ -284,6 +284,28 @@ def test_the_install_hint_points_at_the_repository(self): self.assertTrue("github.com/HarryHeYu/sessionFlow" in quickstart, "QUICKSTART no longer points at the repository for install") + def test_quickstart_install_pins_the_current_release(self): + """A new user copies the pin from either page; they must agree. + + v1.5.0 shipped with the Quickstart still saying v1.3.1. A reader who + followed it installed an older core (no ``evidence_verify`` op) and + hit a seventh-tool failure with no explanation. Release notes are + frozen history; this is a *maintained* guide, so its pin tracks README. + """ + readme = (ROOT / "README.md").read_text(encoding="utf-8") + current = re.search(r"Current release.*?tag/v(\d+\.\d+\.\d+)", readme) + self.assertIsNotNone(current, "README must name the current release tag") + quickstart = (ROOT / "docs" / "QUICKSTART.md").read_text(encoding="utf-8") + pins = set(re.findall(r"sessionFlow\.git@v(\d+\.\d+\.\d+)", quickstart)) + self.assertEqual(pins, {current.group(1)}, + "QUICKSTART install pin must match README's current release") + # The maintained pairing is plugin v1.3.0, which has seven tools; the + # seventh (evidence_verify) is exactly why the pin above is v1.5.0. + self.assertIn("seven tools", quickstart.lower(), + "QUICKSTART must describe the seven-tool plugin") + self.assertIn("sessionflow_evidence_verify", quickstart, + "QUICKSTART must list the seventh tool") + class TestAgentSkill(unittest.TestCase): """The CI skill must be discoverable and well-formed.