The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
docs(module-pins): document the release-and-repin helper
Steven Enamakelc196ba446a31
diff --git a/.claude/skills/migrate-to-submodule/SKILL.md b/.claude/skills/migrate-to-submodule/SKILL.mdindex f08e94e316..7746aa3677 100644--- a/.claude/skills/migrate-to-submodule/SKILL.md+++ b/.claude/skills/migrate-to-submodule/SKILL.md@@ -109,6 +109,14 @@ gitlinks outward.Only for **loadable modules** (a `cdylib` with a registry record). Pure Cargolibraries just need the merged commit.+**Helper:** `node scripts/modules/release-and-repin.mjs <name> [--bump patch|minor|major]`+automates this step and Step 4 (dispatch, watch, `checksum.toml`, record rewrite,+gitlink checkout, pin gates). It asks before dispatching, because publishing is+hard to undo. `--version X.Y.Z` re-pins to a release that already exists, and+`--dry-run` prints the plan. `node scripts/modules/pin-status.mjs` shows whether a+gitlink is in sync with, ahead of, or behind its registry pin. The manual steps+below remain the reference for what the helper does.+1. Trigger the submodule's `Release` workflow (`workflow_dispatch` on `main`,input `bump`: patch/minor/major/current), e.g.`gh workflow run release.yml -R tinyhumansai/<name> -f bump=patch`.@@ -125,6 +133,9 @@ libraries just need the merged commit.Modules are pinned **twice**, and both must describe the same release(`scripts/ci/check-module-pins.mjs`):+`scripts/modules/release-and-repin.mjs` does items 1-3 and runs the checks in 5;+the details below are what it writes.+1. **Submodule gitlink**: `git -C vendor/<name> fetch --tags && git -C vendor/<name> checkout vX.Y.Z`,then stage the gitlink in the superproject.2. **Registry record**: edit `crates/openhuman-core/src/modules/registry/records_*.rs`diff --git a/.husky/pre-push b/.husky/pre-pushindex 114497006c..10d9a356fa 100755--- a/.husky/pre-push+++ b/.husky/pre-push@@ -70,6 +70,13 @@ changed_paths_for_push() {PUSHED_PATHS="$(printf '%s\n' "$PUSH_REFS" | changed_paths_for_push)"+# Non-blocking hint: a vendor/ change may leave a gitlink ahead of (or behind)+# its registry pin, which only CI's strict check-module-pins.mjs would catch.+# Never fails the push; see scripts/modules/pin-status.mjs.+if printf '%s\n' "$PUSHED_PATHS" | grep -q '^vendor/'; then+ node scripts/modules/pin-status.mjs --hint || true+fi+# Does this push touch anything clippy would have an opinion about?## `pnpm rust:clippy` compiles three crates plus the Tauri shell withdiff --git a/scripts/ci/check-module-pins.mjs b/scripts/ci/check-module-pins.mjsindex 67bb64378e..07a2a5f6e5 100755--- a/scripts/ci/check-module-pins.mjs+++ b/scripts/ci/check-module-pins.mjs@@ -308,7 +308,9 @@ if (failures.length > 0) {"Why this gate exists: a module is pinned twice — as a submodule (the contract this\n" +"build compiles against) and as a version+digest in modules/registry.rs (the artifact\n" +"loaded at runtime). When they disagree the build is green and the failure lands on a\n" +- "user's machine. openhuman#5727.\n",+ "user's machine. openhuman#5727.\n" ++ "To fix a drift: node scripts/modules/release-and-repin.mjs <id> (see also\n" ++ "scripts/modules/pin-status.mjs for the local view).\n",);process.exit(1);}diff --git a/scripts/lib/module-pins.mjs b/scripts/lib/module-pins.mjsindex 9b0aa63ae7..e1c79c16c7 100644--- a/scripts/lib/module-pins.mjs+++ b/scripts/lib/module-pins.mjs@@ -149,7 +149,9 @@ export function classifyPin({ id, version, submodulePath, actual, exemption }) {`"${id}" registry pin and submodule pin describe different releases.\n` +` registry.rs version : ${version} (would download the v${version} artifact)\n` +` ${submodulePath} is at : ${actual} (what this build compiles the contract against)\n` +- ` Fix by moving whichever pin is stale, or — if the two are meant to differ —\n` ++ ` Fix by moving whichever pin is stale (\`node scripts/modules/release-and-repin.mjs ${id}\`\n` ++ ` releases the module and re-pins both from its checksum.toml; add \`--version X.Y.Z\` to\n` ++ ` re-pin to a release that already exists), or — if the two are meant to differ —\n` +` declare it in scripts/ci/module-pin-exemptions.json with a reason.`,};}