From 5915e42562e338a904d9a1676d56cdb4e0c8afaa Mon Sep 17 00:00:00 2001 From: rebuildup Date: Thu, 26 Nov 2026 19:53:54 +0900 Subject: [PATCH 1/5] feat(herdr-t3): reproducible pinned herdr-plugins install set (#239) Add plugin-set.sh / plugin-set.ps1 that install the four rebuildup/herdr-plugins plugins herdr-t3 consumes through the official 'herdr plugin install --ref ' path, pinned to the commits recorded in herdr-t3 docs/migration/contracts/plugins-boundary.md (inbox/git/projects/checkpoints). Idempotent via 'herdr plugin list --json' resolved_commit comparison; '--check' reports drift without installing. Documented in the component README with the non-login PATH caveat for Windows (herdr-t3#339). --- components/herdr-t3/README.md | 23 ++++++++++ components/herdr-t3/plugin-set.ps1 | 61 +++++++++++++++++++++++++ components/herdr-t3/plugin-set.sh | 73 ++++++++++++++++++++++++++++++ 3 files changed, 157 insertions(+) create mode 100644 components/herdr-t3/plugin-set.ps1 create mode 100755 components/herdr-t3/plugin-set.sh diff --git a/components/herdr-t3/README.md b/components/herdr-t3/README.md index 6ee5ee9d..ac182bab 100644 --- a/components/herdr-t3/README.md +++ b/components/herdr-t3/README.md @@ -30,6 +30,7 @@ of scope — the herdr TUI keeps its existing operation there. | launch | `launch.sh` | `launch.ps1` | | verify | `verify.sh [--live]` | `verify.ps1 [-Live]` | | rollback | `rollback.sh` | `rollback.ps1` | +| plugins | `plugin-set.sh [--check]` | `plugin-set.ps1 [-Check]` | macOS stages the built `.app` into `~/Applications` so it behaves like a normal app (Finder, Spotlight, Launch Services, Dock). Windows keeps the @@ -49,6 +50,28 @@ the named-pipe endpoint `\\.\pipe\`), and — on macOS — that the app's own `bridge-status.json` reports a fresh successful herdr snapshot. +## rebuildup/herdr-plugins set (pc-setup#239) + +`plugin-set.sh` / `plugin-set.ps1` install the four plugins herdr-t3's +plugin boundary consumes, each through the official +`herdr plugin install rebuildup/herdr-plugins/plugins/ --ref ` +path at the full commit SHA pinned by herdr-t3's +`docs/migration/contracts/plugins-boundary.md`: + +| plugin | pinned commit | contract version | +| --- | --- | --- | +| `rebuildup.inbox` | `414e87dea9faa5c221fb27508e5828f086849836` | inbox v0.1.0 | +| `rebuildup.git` | `d0578307a856e53af210775f9cb95c9f593d6f87` | git-v1 @ 0.2.0 | +| `rebuildup.projects` | `2dcb2abfa57b0adcf5d1109f76087e19b3dfae07` | projects/v1 @ 0.3.0 | +| `rebuildup.checkpoints` | `ae4f214c523d05128354a8c4ba493b62cd8e843f` | checkpoints/v1 @ 0.4.0 | + +The script is idempotent: plugins already at the pinned commit are +skipped, and `--check` / `-Check` reports drift without installing. +Prerequisites are `herdr` (>= 0.9.0) and `bun` on PATH — plugin manifest +commands run `bun run`, so the runtime must resolve in the invoking +shell. On Windows, run it from an interactive shell: non-login ssh +sessions may not carry the user PATH (rebuildup/herdr-t3#339). + ## Integration notes - Requires `git`, `mise` (herdr-t3 pins bun+node via `mise.toml`), `bun`, diff --git a/components/herdr-t3/plugin-set.ps1 b/components/herdr-t3/plugin-set.ps1 new file mode 100644 index 00000000..4efde5a9 --- /dev/null +++ b/components/herdr-t3/plugin-set.ps1 @@ -0,0 +1,61 @@ +# Install the pinned rebuildup/herdr-plugins set used by herdr-t3 +# (pc-setup#239, rebuildup/herdr-t3#358). +# +# The four plugins and their full commit SHAs mirror the contract pins in +# rebuildup/herdr-t3 `docs/migration/contracts/plugins-boundary.md` +# (inbox v0.1.0, git v0.2.0, projects v0.3.0, checkpoints v0.4.0). Each +# plugin installs independently through the official +# `herdr plugin install --ref ` path; state lives under herdr's own +# plugin directories, so reinstalling never loses organize state. +# +# Idempotent: a plugin already installed at the pinned commit is skipped; +# a different commit is re-installed at the pin. `-Check` only reports. +# +# Prerequisites: `herdr` on PATH (herdr >= 0.9.0) and `bun` on PATH — +# plugin manifest commands run `bun run`. Note that non-login ssh +# sessions may not carry the user PATH; run this from an interactive +# shell (rebuildup/herdr-t3#339). +# +# Usage: plugin-set.ps1 [-Check] +param([switch]$Check) + +$ErrorActionPreference = "Stop" + +function Log($msg) { Write-Host "[herdr-t3 plugins] $msg" } +function Die($msg) { Write-Host "[herdr-t3 plugins] ERROR: $msg" -ForegroundColor Red; exit 1 } + +if (-not (Get-Command herdr -ErrorAction SilentlyContinue)) { Die "herdr not found on PATH" } +if (-not (Get-Command bun -ErrorAction SilentlyContinue)) { Die "bun not found on PATH (plugin commands run 'bun run')" } + +# name|full commit SHA — keep in sync with plugins-boundary.md. +$Plugins = @( + @{ Name = "inbox"; Sha = "414e87dea9faa5c221fb27508e5828f086849836" }, + @{ Name = "git"; Sha = "d0578307a856e53af210775f9cb95c9f593d6f87" }, + @{ Name = "projects"; Sha = "2dcb2abfa57b0adcf5d1109f76087e19b3dfae07" }, + @{ Name = "checkpoints"; Sha = "ae4f214c523d05128354a8c4ba493b62cd8e843f" } +) + +$listJson = herdr plugin list --json | Out-String +$plugins = ($listJson | ConvertFrom-Json).result.plugins + +$rc = 0 +foreach ($p in $Plugins) { + $pluginId = "rebuildup.$($p.Name)" + $entry = $plugins | Where-Object { $_.plugin_id -eq $pluginId } | Select-Object -First 1 + $have = $entry.source.resolved_commit + if ($have -eq $p.Sha) { + Log "$pluginId already at pin $($p.Sha.Substring(0,12))" + continue + } + if ($Check) { + if (-not $have) { Log "$pluginId MISSING (pin $($p.Sha.Substring(0,12)))" } + else { Log "$pluginId at $($have.Substring(0,12)), pin is $($p.Sha.Substring(0,12))" } + $rc = 1 + continue + } + Log "installing $pluginId @ $($p.Sha.Substring(0,12))" + herdr plugin install "rebuildup/herdr-plugins/plugins/$($p.Name)" --ref $p.Sha -y + if ($LASTEXITCODE -ne 0) { Log "ERROR: install failed for $pluginId"; $rc = 1 } +} + +exit $rc diff --git a/components/herdr-t3/plugin-set.sh b/components/herdr-t3/plugin-set.sh new file mode 100755 index 00000000..5b785d00 --- /dev/null +++ b/components/herdr-t3/plugin-set.sh @@ -0,0 +1,73 @@ +#!/usr/bin/env bash +# Install the pinned rebuildup/herdr-plugins set used by herdr-t3 +# (pc-setup#239, rebuildup/herdr-t3#358). +# +# The four plugins and their full commit SHAs mirror the contract pins in +# rebuildup/herdr-t3 `docs/migration/contracts/plugins-boundary.md` +# (inbox v0.1.0, git v0.2.0, projects v0.3.0, checkpoints v0.4.0). Each +# plugin installs independently through the official +# `herdr plugin install --ref ` path; state lives under herdr's own +# plugin directories, so reinstalling never loses organize state. +# +# Idempotent: a plugin already installed at the pinned commit is skipped; +# a different commit is re-installed at the pin. `--check` only reports. +# +# Prerequisites: `herdr` on PATH (herdr >= 0.9.0) and `bun` on PATH — +# plugin manifest commands run `bun run`. +# +# Usage: plugin-set.sh [--check] +set -euo pipefail + +CHECK_ONLY=0 +[[ "${1:-}" == "--check" ]] && CHECK_ONLY=1 + +log() { printf '[herdr-t3 plugins] %s\n' "$*"; } +die() { log "ERROR: $*" >&2; exit 1; } + +command -v herdr >/dev/null 2>&1 || die "herdr not found on PATH" +command -v bun >/dev/null 2>&1 || die "bun not found on PATH (plugin commands run 'bun run')" + +# name|full commit SHA — keep in sync with plugins-boundary.md. +PLUGINS=( + "inbox|414e87dea9faa5c221fb27508e5828f086849836" + "git|d0578307a856e53af210775f9cb95c9f593d6f87" + "projects|2dcb2abfa57b0adcf5d1109f76087e19b3dfae07" + "checkpoints|ae4f214c523d05128354a8c4ba493b62cd8e843f" +) + +# resolved_commit of one installed plugin (empty when absent/malformed). +installed_commit() { + herdr plugin list --json | bun -e ' + const d = JSON.parse(await new Response(Bun.stdin.stream()).text()); + const plugins = d?.result?.plugins ?? []; + const p = plugins.find((x) => x && x.plugin_id === process.argv[1]); + process.stdout.write(p?.source?.resolved_commit ?? ""); + ' "$1" +} + +rc=0 +for entry in "${PLUGINS[@]}"; do + name="${entry%%|*}" + rest="${entry#*|}" + sha="${rest##*|}" + plugin_id="rebuildup.$name" + have="$(installed_commit "$plugin_id")" + if [[ "$have" == "$sha" ]]; then + log "$plugin_id already at pin ${sha:0:12}" + continue + fi + if [[ "$CHECK_ONLY" == "1" ]]; then + if [[ -z "$have" ]]; then + log "$plugin_id MISSING (pin ${sha:0:12})" + else + log "$plugin_id at ${have:0:12}, pin is ${sha:0:12}" + fi + rc=1 + continue + fi + log "installing $plugin_id @ ${sha:0:12}" + herdr plugin install "rebuildup/herdr-plugins/plugins/$name" --ref "$sha" -y \ + || { log "ERROR: install failed for $plugin_id" >&2; rc=1; } +done + +exit "$rc" From 2256a06c15173e5050b02dc844f82718600607a1 Mon Sep 17 00:00:00 2001 From: rebuildup Date: Thu, 26 Nov 2026 23:21:14 +0900 Subject: [PATCH 2/5] feat(herdr-t3): cover all six pinned plugins and fix ps1 pin-table clobber (#239) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - plugin-set.sh/.ps1 + README: extend the pinned set from 4 to the 6 plugins shipped by herdr-t3 v0.6.0, at the full commit SHAs from rebuildup/herdr-t3 docs/migration/contracts/plugins-boundary.md @ release-0-6-0 — adds automations @6c1cfa5 (v0.7.0) and conversations @d23205af (v0.5.0); all six SHAs verified to exist in rebuildup/herdr-plugins - plugin-set.ps1: rename the plugin_list JSON result to $installedPlugins — PowerShell variables are case-insensitive, so $plugins silently overwrote the $Plugins pin table and the script iterated JSON plugin objects ($p.Sha null -> InvokeMethodOnNull in -Check, wrong install target otherwise). Found by actually running -Check on Windows via ssh device-wsl -> powershell.exe --- components/herdr-t3/README.md | 6 ++++-- components/herdr-t3/plugin-set.ps1 | 22 ++++++++++++++-------- components/herdr-t3/plugin-set.sh | 8 ++++++-- 3 files changed, 24 insertions(+), 12 deletions(-) diff --git a/components/herdr-t3/README.md b/components/herdr-t3/README.md index ac182bab..998587c6 100644 --- a/components/herdr-t3/README.md +++ b/components/herdr-t3/README.md @@ -52,11 +52,11 @@ snapshot. ## rebuildup/herdr-plugins set (pc-setup#239) -`plugin-set.sh` / `plugin-set.ps1` install the four plugins herdr-t3's +`plugin-set.sh` / `plugin-set.ps1` install the six plugins herdr-t3's plugin boundary consumes, each through the official `herdr plugin install rebuildup/herdr-plugins/plugins/ --ref ` path at the full commit SHA pinned by herdr-t3's -`docs/migration/contracts/plugins-boundary.md`: +`docs/migration/contracts/plugins-boundary.md` @ release-0-6-0: | plugin | pinned commit | contract version | | --- | --- | --- | @@ -64,6 +64,8 @@ path at the full commit SHA pinned by herdr-t3's | `rebuildup.git` | `d0578307a856e53af210775f9cb95c9f593d6f87` | git-v1 @ 0.2.0 | | `rebuildup.projects` | `2dcb2abfa57b0adcf5d1109f76087e19b3dfae07` | projects/v1 @ 0.3.0 | | `rebuildup.checkpoints` | `ae4f214c523d05128354a8c4ba493b62cd8e843f` | checkpoints/v1 @ 0.4.0 | +| `rebuildup.automations` | `6c1cfa501323772e7c1c008c3dbcd7e364feb0b3` | automations/v1 @ 0.7.0 | +| `rebuildup.conversations` | `d23205af0cd2ff7dba25f72e1f3b872762a108ee` | conversations/v1 @ 0.5.0 | The script is idempotent: plugins already at the pinned commit are skipped, and `--check` / `-Check` reports drift without installing. diff --git a/components/herdr-t3/plugin-set.ps1 b/components/herdr-t3/plugin-set.ps1 index 4efde5a9..425eda14 100644 --- a/components/herdr-t3/plugin-set.ps1 +++ b/components/herdr-t3/plugin-set.ps1 @@ -1,9 +1,11 @@ # Install the pinned rebuildup/herdr-plugins set used by herdr-t3 # (pc-setup#239, rebuildup/herdr-t3#358). # -# The four plugins and their full commit SHAs mirror the contract pins in +# The six plugins and their full commit SHAs mirror the contract pins in # rebuildup/herdr-t3 `docs/migration/contracts/plugins-boundary.md` -# (inbox v0.1.0, git v0.2.0, projects v0.3.0, checkpoints v0.4.0). Each +# @ release-0-6-0 (inbox v0.1.0, git v0.2.0, projects v0.3.0, +# checkpoints v0.4.0, automations v0.7.0, conversations v0.5.0) — the +# full set shipped by herdr-t3 v0.6.0. Each # plugin installs independently through the official # `herdr plugin install --ref ` path; state lives under herdr's own # plugin directories, so reinstalling never loses organize state. @@ -29,19 +31,23 @@ if (-not (Get-Command bun -ErrorAction SilentlyContinue)) { Die "bun not found o # name|full commit SHA — keep in sync with plugins-boundary.md. $Plugins = @( - @{ Name = "inbox"; Sha = "414e87dea9faa5c221fb27508e5828f086849836" }, - @{ Name = "git"; Sha = "d0578307a856e53af210775f9cb95c9f593d6f87" }, - @{ Name = "projects"; Sha = "2dcb2abfa57b0adcf5d1109f76087e19b3dfae07" }, - @{ Name = "checkpoints"; Sha = "ae4f214c523d05128354a8c4ba493b62cd8e843f" } + @{ Name = "inbox"; Sha = "414e87dea9faa5c221fb27508e5828f086849836" }, + @{ Name = "git"; Sha = "d0578307a856e53af210775f9cb95c9f593d6f87" }, + @{ Name = "projects"; Sha = "2dcb2abfa57b0adcf5d1109f76087e19b3dfae07" }, + @{ Name = "checkpoints"; Sha = "ae4f214c523d05128354a8c4ba493b62cd8e843f" }, + @{ Name = "automations"; Sha = "6c1cfa501323772e7c1c008c3dbcd7e364feb0b3" }, + @{ Name = "conversations"; Sha = "d23205af0cd2ff7dba25f72e1f3b872762a108ee" } ) $listJson = herdr plugin list --json | Out-String -$plugins = ($listJson | ConvertFrom-Json).result.plugins +# NOTE: PowerShell variables are case-insensitive — this must NOT be +# named $plugins or it overwrites the $Plugins pin table above. +$installedPlugins = ($listJson | ConvertFrom-Json).result.plugins $rc = 0 foreach ($p in $Plugins) { $pluginId = "rebuildup.$($p.Name)" - $entry = $plugins | Where-Object { $_.plugin_id -eq $pluginId } | Select-Object -First 1 + $entry = $installedPlugins | Where-Object { $_.plugin_id -eq $pluginId } | Select-Object -First 1 $have = $entry.source.resolved_commit if ($have -eq $p.Sha) { Log "$pluginId already at pin $($p.Sha.Substring(0,12))" diff --git a/components/herdr-t3/plugin-set.sh b/components/herdr-t3/plugin-set.sh index 5b785d00..855640ca 100755 --- a/components/herdr-t3/plugin-set.sh +++ b/components/herdr-t3/plugin-set.sh @@ -2,9 +2,11 @@ # Install the pinned rebuildup/herdr-plugins set used by herdr-t3 # (pc-setup#239, rebuildup/herdr-t3#358). # -# The four plugins and their full commit SHAs mirror the contract pins in +# The six plugins and their full commit SHAs mirror the contract pins in # rebuildup/herdr-t3 `docs/migration/contracts/plugins-boundary.md` -# (inbox v0.1.0, git v0.2.0, projects v0.3.0, checkpoints v0.4.0). Each +# @ release-0-6-0 (inbox v0.1.0, git v0.2.0, projects v0.3.0, +# checkpoints v0.4.0, automations v0.7.0, conversations v0.5.0) — the +# full set shipped by herdr-t3 v0.6.0. Each # plugin installs independently through the official # `herdr plugin install --ref ` path; state lives under herdr's own # plugin directories, so reinstalling never loses organize state. @@ -33,6 +35,8 @@ PLUGINS=( "git|d0578307a856e53af210775f9cb95c9f593d6f87" "projects|2dcb2abfa57b0adcf5d1109f76087e19b3dfae07" "checkpoints|ae4f214c523d05128354a8c4ba493b62cd8e843f" + "automations|6c1cfa501323772e7c1c008c3dbcd7e364feb0b3" + "conversations|d23205af0cd2ff7dba25f72e1f3b872762a108ee" ) # resolved_commit of one installed plugin (empty when absent/malformed). From 5c6a3f8e6f2b57f978b96b748731aac967b37ea3 Mon Sep 17 00:00:00 2001 From: rebuildup Date: Fri, 27 Nov 2026 00:55:32 +0900 Subject: [PATCH 3/5] feat(herdr-t3): add usage plugin to pinned set (7 plugins) (#239) usage/v1 @d23205af shipped in herdr-t3 v0.6.0 (#375); the reproducible install set must cover all shipped plugin surfaces on both OSes. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- components/herdr-t3/README.md | 3 ++- components/herdr-t3/plugin-set.ps1 | 8 +++++--- components/herdr-t3/plugin-set.sh | 6 ++++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/components/herdr-t3/README.md b/components/herdr-t3/README.md index 998587c6..f6ad8317 100644 --- a/components/herdr-t3/README.md +++ b/components/herdr-t3/README.md @@ -52,7 +52,7 @@ snapshot. ## rebuildup/herdr-plugins set (pc-setup#239) -`plugin-set.sh` / `plugin-set.ps1` install the six plugins herdr-t3's +`plugin-set.sh` / `plugin-set.ps1` install the seven plugins herdr-t3's plugin boundary consumes, each through the official `herdr plugin install rebuildup/herdr-plugins/plugins/ --ref ` path at the full commit SHA pinned by herdr-t3's @@ -66,6 +66,7 @@ path at the full commit SHA pinned by herdr-t3's | `rebuildup.checkpoints` | `ae4f214c523d05128354a8c4ba493b62cd8e843f` | checkpoints/v1 @ 0.4.0 | | `rebuildup.automations` | `6c1cfa501323772e7c1c008c3dbcd7e364feb0b3` | automations/v1 @ 0.7.0 | | `rebuildup.conversations` | `d23205af0cd2ff7dba25f72e1f3b872762a108ee` | conversations/v1 @ 0.5.0 | +| `rebuildup.usage` | `d23205af0cd2ff7dba25f72e1f3b872762a108ee` | usage/v1 @ 0.5.0 | The script is idempotent: plugins already at the pinned commit are skipped, and `--check` / `-Check` reports drift without installing. diff --git a/components/herdr-t3/plugin-set.ps1 b/components/herdr-t3/plugin-set.ps1 index 425eda14..60c5531f 100644 --- a/components/herdr-t3/plugin-set.ps1 +++ b/components/herdr-t3/plugin-set.ps1 @@ -1,10 +1,11 @@ # Install the pinned rebuildup/herdr-plugins set used by herdr-t3 # (pc-setup#239, rebuildup/herdr-t3#358). # -# The six plugins and their full commit SHAs mirror the contract pins in +# The seven plugins and their full commit SHAs mirror the contract pins in # rebuildup/herdr-t3 `docs/migration/contracts/plugins-boundary.md` # @ release-0-6-0 (inbox v0.1.0, git v0.2.0, projects v0.3.0, -# checkpoints v0.4.0, automations v0.7.0, conversations v0.5.0) — the +# checkpoints v0.4.0, automations v0.7.0, conversations v0.5.0, +# usage v0.5.0) — the # full set shipped by herdr-t3 v0.6.0. Each # plugin installs independently through the official # `herdr plugin install --ref ` path; state lives under herdr's own @@ -36,7 +37,8 @@ $Plugins = @( @{ Name = "projects"; Sha = "2dcb2abfa57b0adcf5d1109f76087e19b3dfae07" }, @{ Name = "checkpoints"; Sha = "ae4f214c523d05128354a8c4ba493b62cd8e843f" }, @{ Name = "automations"; Sha = "6c1cfa501323772e7c1c008c3dbcd7e364feb0b3" }, - @{ Name = "conversations"; Sha = "d23205af0cd2ff7dba25f72e1f3b872762a108ee" } + @{ Name = "conversations"; Sha = "d23205af0cd2ff7dba25f72e1f3b872762a108ee" }, + @{ Name = "usage"; Sha = "d23205af0cd2ff7dba25f72e1f3b872762a108ee" } ) $listJson = herdr plugin list --json | Out-String diff --git a/components/herdr-t3/plugin-set.sh b/components/herdr-t3/plugin-set.sh index 855640ca..7722d1d7 100755 --- a/components/herdr-t3/plugin-set.sh +++ b/components/herdr-t3/plugin-set.sh @@ -2,10 +2,11 @@ # Install the pinned rebuildup/herdr-plugins set used by herdr-t3 # (pc-setup#239, rebuildup/herdr-t3#358). # -# The six plugins and their full commit SHAs mirror the contract pins in +# The seven plugins and their full commit SHAs mirror the contract pins in # rebuildup/herdr-t3 `docs/migration/contracts/plugins-boundary.md` # @ release-0-6-0 (inbox v0.1.0, git v0.2.0, projects v0.3.0, -# checkpoints v0.4.0, automations v0.7.0, conversations v0.5.0) — the +# checkpoints v0.4.0, automations v0.7.0, conversations v0.5.0, +# usage v0.5.0) — the # full set shipped by herdr-t3 v0.6.0. Each # plugin installs independently through the official # `herdr plugin install --ref ` path; state lives under herdr's own @@ -37,6 +38,7 @@ PLUGINS=( "checkpoints|ae4f214c523d05128354a8c4ba493b62cd8e843f" "automations|6c1cfa501323772e7c1c008c3dbcd7e364feb0b3" "conversations|d23205af0cd2ff7dba25f72e1f3b872762a108ee" + "usage|d23205af0cd2ff7dba25f72e1f3b872762a108ee" ) # resolved_commit of one installed plugin (empty when absent/malformed). From 5dd6b305460478e2dfe87f72d38789c2cfe00fc6 Mon Sep 17 00:00:00 2001 From: rebuildup Date: Fri, 27 Nov 2026 11:22:58 +0900 Subject: [PATCH 4/5] feat(herdr-t3): expand plugin set to all 14 v0.6.0 pins incl. machines RC backport --- components/herdr-t3/plugin-set.ps1 | 18 +++++++++++++----- components/herdr-t3/plugin-set.sh | 16 ++++++++++++---- 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/components/herdr-t3/plugin-set.ps1 b/components/herdr-t3/plugin-set.ps1 index 60c5531f..f4650722 100644 --- a/components/herdr-t3/plugin-set.ps1 +++ b/components/herdr-t3/plugin-set.ps1 @@ -1,12 +1,13 @@ # Install the pinned rebuildup/herdr-plugins set used by herdr-t3 # (pc-setup#239, rebuildup/herdr-t3#358). # -# The seven plugins and their full commit SHAs mirror the contract pins in +# The fourteen plugins and their full commit SHAs mirror the contract pins in # rebuildup/herdr-t3 `docs/migration/contracts/plugins-boundary.md` # @ release-0-6-0 (inbox v0.1.0, git v0.2.0, projects v0.3.0, -# checkpoints v0.4.0, automations v0.7.0, conversations v0.5.0, -# usage v0.5.0) — the -# full set shipped by herdr-t3 v0.6.0. Each +# checkpoints v0.4.0, automations v0.7.0, conversations/usage/artifacts/ +# handoff/textgen/controls/secrets/mcp v0.5.0 @ d23205af, machines v0.1.0 +# @ 08f96a4 — the RC pin-backport carrying the --socket/--session fix, +# herdr-plugins#264) — the full set shipped by herdr-t3 v0.6.0. Each # plugin installs independently through the official # `herdr plugin install --ref ` path; state lives under herdr's own # plugin directories, so reinstalling never loses organize state. @@ -38,7 +39,14 @@ $Plugins = @( @{ Name = "checkpoints"; Sha = "ae4f214c523d05128354a8c4ba493b62cd8e843f" }, @{ Name = "automations"; Sha = "6c1cfa501323772e7c1c008c3dbcd7e364feb0b3" }, @{ Name = "conversations"; Sha = "d23205af0cd2ff7dba25f72e1f3b872762a108ee" }, - @{ Name = "usage"; Sha = "d23205af0cd2ff7dba25f72e1f3b872762a108ee" } + @{ Name = "usage"; Sha = "d23205af0cd2ff7dba25f72e1f3b872762a108ee" }, + @{ Name = "artifacts"; Sha = "d23205af0cd2ff7dba25f72e1f3b872762a108ee" }, + @{ Name = "handoff"; Sha = "d23205af0cd2ff7dba25f72e1f3b872762a108ee" }, + @{ Name = "textgen"; Sha = "d23205af0cd2ff7dba25f72e1f3b872762a108ee" }, + @{ Name = "controls"; Sha = "d23205af0cd2ff7dba25f72e1f3b872762a108ee" }, + @{ Name = "secrets"; Sha = "d23205af0cd2ff7dba25f72e1f3b872762a108ee" }, + @{ Name = "machines"; Sha = "08f96a4d151f0edb72b61483376ff977177f92e8" }, + @{ Name = "mcp"; Sha = "d23205af0cd2ff7dba25f72e1f3b872762a108ee" } ) $listJson = herdr plugin list --json | Out-String diff --git a/components/herdr-t3/plugin-set.sh b/components/herdr-t3/plugin-set.sh index 7722d1d7..3851784d 100755 --- a/components/herdr-t3/plugin-set.sh +++ b/components/herdr-t3/plugin-set.sh @@ -2,12 +2,13 @@ # Install the pinned rebuildup/herdr-plugins set used by herdr-t3 # (pc-setup#239, rebuildup/herdr-t3#358). # -# The seven plugins and their full commit SHAs mirror the contract pins in +# The fourteen plugins and their full commit SHAs mirror the contract pins in # rebuildup/herdr-t3 `docs/migration/contracts/plugins-boundary.md` # @ release-0-6-0 (inbox v0.1.0, git v0.2.0, projects v0.3.0, -# checkpoints v0.4.0, automations v0.7.0, conversations v0.5.0, -# usage v0.5.0) — the -# full set shipped by herdr-t3 v0.6.0. Each +# checkpoints v0.4.0, automations v0.7.0, conversations/usage/artifacts/ +# handoff/textgen/controls/secrets/mcp v0.5.0 @ d23205af, machines v0.1.0 +# @ 08f96a4 — the RC pin-backport carrying the --socket/--session fix, +# herdr-plugins#264) — the full set shipped by herdr-t3 v0.6.0. Each # plugin installs independently through the official # `herdr plugin install --ref ` path; state lives under herdr's own # plugin directories, so reinstalling never loses organize state. @@ -39,6 +40,13 @@ PLUGINS=( "automations|6c1cfa501323772e7c1c008c3dbcd7e364feb0b3" "conversations|d23205af0cd2ff7dba25f72e1f3b872762a108ee" "usage|d23205af0cd2ff7dba25f72e1f3b872762a108ee" + "artifacts|d23205af0cd2ff7dba25f72e1f3b872762a108ee" + "handoff|d23205af0cd2ff7dba25f72e1f3b872762a108ee" + "textgen|d23205af0cd2ff7dba25f72e1f3b872762a108ee" + "controls|d23205af0cd2ff7dba25f72e1f3b872762a108ee" + "secrets|d23205af0cd2ff7dba25f72e1f3b872762a108ee" + "machines|08f96a4d151f0edb72b61483376ff977177f92e8" + "mcp|d23205af0cd2ff7dba25f72e1f3b872762a108ee" ) # resolved_commit of one installed plugin (empty when absent/malformed). From 1b43a2e78ea87c4fe299941de4babbff398a0a0f Mon Sep 17 00:00:00 2001 From: rebuildup Date: Sun, 29 Nov 2026 09:49:41 +0900 Subject: [PATCH 5/5] fix(#239): harden the pinned plugin set and the mise exclusion (review findings) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - plugin-set.ps1: a failing `herdr plugin list` leaves stdout empty, which parsed into $null and made every plugin look MISSING — the check reported a false drift and a normal run reinstalled the whole set. Fail loudly on a non-zero exit code or an unparsable payload. - install.sh: exclude ~/.tool-versions from mise's ancestor discovery like the Windows side already does; the managed state dir lives under the home directory, so a tool pinned there that the repo lockfile does not know would fail `--locked` as well. --- components/hoxay/install.sh | 5 ++++- components/hoxay/plugin-set.ps1 | 14 +++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/components/hoxay/install.sh b/components/hoxay/install.sh index 8b5590f0..6affda06 100755 --- a/components/hoxay/install.sh +++ b/components/hoxay/install.sh @@ -84,7 +84,10 @@ MISE_EMPTY_GLOBAL="$STATE_DIR/mise-empty-global.toml" # (e.g. ~/.config/mise/config.toml -> pc-setup's mise.global.toml) has to be # ignored by its real path too — excluding the directory alone would not # keep the global pins out of the build (rebuildup/pc-setup#245). -MISE_IGNORED_PATHS=("$HOME/.config/mise") +# ~/.tool-versions is read by mise's ancestor discovery as well, and the +# managed state dir lives under the home directory — a tool pinned there +# that the repo lockfile does not know would fail `--locked` too. +MISE_IGNORED_PATHS=("$HOME/.config/mise" "$HOME/.tool-versions") mise_user_config="$HOME/.config/mise/config.toml" if [[ -e "$mise_user_config" ]]; then mise_user_config_real="$(python3 -c 'import os,sys;print(os.path.realpath(sys.argv[1]))' "$mise_user_config" 2>/dev/null || true)" diff --git a/components/hoxay/plugin-set.ps1 b/components/hoxay/plugin-set.ps1 index 90be084e..64e2d517 100644 --- a/components/hoxay/plugin-set.ps1 +++ b/components/hoxay/plugin-set.ps1 @@ -49,10 +49,22 @@ $Plugins = @( @{ Name = "mcp"; Sha = "d23205af0cd2ff7dba25f72e1f3b872762a108ee" } ) +# A failing `herdr plugin list` writes to stderr and leaves stdout empty. +# An empty stdout would parse into $null and make every plugin look +# MISSING — the check would report a false drift and a normal run would +# reinstall the whole set. Fail loudly instead (PowerShell 7 does not stop +# on a non-zero exit code with $ErrorActionPreference alone). $listJson = herdr plugin list --json | Out-String +if ($LASTEXITCODE -ne 0) { Die "herdr plugin list failed (exit $LASTEXITCODE)" } +try { + $listParsed = $listJson | ConvertFrom-Json +} catch { + Die "herdr plugin list did not return JSON: $($_.Exception.Message)" +} +if (-not $listParsed -or -not $listParsed.result) { Die "herdr plugin list returned no result payload" } # NOTE: PowerShell variables are case-insensitive — this must NOT be # named $plugins or it overwrites the $Plugins pin table above. -$installedPlugins = ($listJson | ConvertFrom-Json).result.plugins +$installedPlugins = $listParsed.result.plugins $rc = 0 foreach ($p in $Plugins) {