From da572912201602f00288d6b5d1d4b98fbeb7c1f4 Mon Sep 17 00:00:00 2001 From: garrytan Date: Tue, 13 Oct 2026 04:02:48 +0000 Subject: [PATCH] docs: the installer follows a verified exact project Bun pin (capy-install, troubleshooting, changelog) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- CHANGELOG.md | 1 + docs/capy-install.md | 16 ++++++++++------ docs/troubleshooting.md | 15 +++++++++------ 3 files changed, 20 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 60c6fd419e..a9e5247bac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - **The install check agrees with the Bun your workflows run.** `GSTACK_LAUNCH` now carries `PATH=:$PATH`, `GSTACK_CAPY=1` and `GSTACK_INSTALL_VERDICT`, and the wrapper prints it on `--check` as well as install. A bare doctor run in a fresh shell names the off-PATH Bun (`bun 1.4.2 found at ~/.bun/bin (not on PATH)`) with the exact fix. The installer reuses a verified Bun instead of downloading it again, and installs the version a project's CI pins next to a different system Bun. Planning-only checks (`--for autoplan`, the plan reviews, office-hours) report a project test-pin mismatch as `SKIP pins (planning-only …)`; workflows that run the project's tests still require it. - **A stale copy of the Capy skill gets an owner action instead of a silent pass.** The canonical skill now lives in the repo at `capy/skill/gstack/`. The Drive copy is a small frozen bootstrapper that hands off to the checkout's full wrapper (`bin/gstack-capy-session`). An older copy keeps working and prints `CAPY_WRAPPER_STALE` with the copy command. - **Machines that never run a workflow don't pay for the install.** A warm install on the same HEAD skips setup (about 1 s). The skill installs before the first workflow rather than at every session start. `docs/capy-install.md` explains how to bake gstack into a Capy snapshot. +- **The installed Bun follows the project's exact pin.** When the target repo pins one Bun version exactly (a CI `bun-version:`, `.bun-version`, engines) above gstack's minimum and gstack carries its verified archive (now 1.4.2 and 1.4.3), that archive is installed, so a repo moving its CI to 1.4.3 does not leave Capy machines on 1.4.2 failing `pins`. An exact pin without a verified archive stops with `RUNTIME_PIN_CONFLICT` and lists the verified versions. ### For contributors diff --git a/docs/capy-install.md b/docs/capy-install.md index 1d74a9c86b..880b8ed600 100644 --- a/docs/capy-install.md +++ b/docs/capy-install.md @@ -67,12 +67,16 @@ resets. read with the doctor's own parser (`bin/gstack-runtime-pins.ts`: engines, packageManager, `.tool-versions`, `.bun-version` and CI `bun-version:` lanes for this platform). When neither the Bun on PATH nor the installed one - satisfies gstack's minimum and the pins, and every exact pin equals the - version gstack carries a verified archive for (1.4.2), the installer - downloads that exact release archive, verifies its SHA-256 against - `bin/gstack-bun-version.sh` and installs it into `$BUN_INSTALL/bin`, beside - any different system Bun (no symlink into a shared bin directory). Any other - exact pin, or a range gstack's minimum does not satisfy, stops with both + satisfies gstack's minimum and the pins, the installer downloads one exact + release archive, verifies its SHA-256 against `bin/gstack-bun-version.sh` + and installs it into `$BUN_INSTALL/bin`, beside any different system Bun (no + symlink into a shared bin directory). That archive is the supported minimum + (1.4.2), or the project's exact pin when it is above the minimum and gstack + carries a verified archive for it (`GSTACK_BUN_VERIFIED`: 1.4.2, 1.4.3), so a + repo whose CI pins `bun-version: 1.4.3` gets 1.4.3. With an exact pin, only + that version satisfies it. Any other exact pin (below the minimum, two + different ones, or one without a verified archive), or a range gstack's + minimum does not satisfy, stops with both constraints ([RUNTIME_PIN_CONFLICT](troubleshooting.md#capy-install-runtime-conflict), exit 3) before `./setup`. With no Bun at or above the security floor, the verified one is installed first so the pins can be read. diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 0424ba2755..8b0fd388aa 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -1135,13 +1135,16 @@ reports `gstack: ok (requested ; run /bin/gstack-upgr ### `gstack-capy-install: Bun conflict: gstack needs >=, pins (RUNTIME_PIN_CONFLICT; ...)` -**Meaning.** The installer upgrades Bun only when gstack's supported minimum -and the target project's pin agree on a version. Here they do not (for -example the project pins `bun@1.3.14` exactly), so the installer changed -nothing and stopped before `./setup`. +**Meaning.** The installer installs one verified Bun archive: gstack's +supported minimum, or the project's exact pin when that pin is above the +minimum and listed in the message's `verified archives:`. Here the two do not +meet (for example the project pins `bun@1.3.14`, or a version gstack has no +verified archive for), so the installer changed nothing and stopped before +`./setup`. -**Fix.** Raise the project's pin to gstack's supported minimum, or install -gstack on a machine whose Bun the project accepts. `--project ` names +**Fix.** Pin a verified version in the project, upgrade gstack to a release +that verifies the pinned version, or install gstack on a machine whose Bun the +project accepts. `--project ` names the project whose pins apply.