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(modules): document pin-status and release-and-repin scripts
Steven Enamakel472972526555
diff --git a/gitbooks/developing/loadable-modules.md b/gitbooks/developing/loadable-modules.mdindex ae78e10f71..44048b99df 100644--- a/gitbooks/developing/loadable-modules.md+++ b/gitbooks/developing/loadable-modules.md@@ -57,7 +57,7 @@ Every asset carries a SHA-256 copied verbatim from the published release's own cEach step avoids the cost of the next:1. Already serving on the host's broker.-2. An operator override: a path in `[modules].overrides`, or a source mode (`[modules] source` / `OPENHUMAN_MODULE_SOURCE`, local development only; CI uses `release`). `linked` serves a module compiled into the running `openhuman-core` (build it with `--features linked-modules`, which links `crates/openhuman-modules-linked`; no product build or other host can reach that crate). `source` serves a library built from the module's vendored gitlink by `node scripts/modules/build.mjs <id|all>` (it writes `target/module-sources/<id>/` with an operator-trust `modules.toml`; set `OPENHUMAN_MODULE_SOURCE_DIR` to that directory). Local digests are never registry pins.+2. An operator override: a path in `[modules].overrides`, or a source mode (`[modules] source` / `OPENHUMAN_MODULE_SOURCE`, local development only; CI uses `release`). `linked` serves a module compiled into the running `openhuman-core` (build it with `--features linked-modules`, which links `crates/openhuman-modules-linked`; no product build or other host can reach that crate). `source` serves a library built from the module's vendored gitlink by `node scripts/modules/build.mjs <id|all>` (it writes `target/module-sources/<id>/` with an operator-trust `modules.toml`; set `OPENHUMAN_MODULE_SOURCE_DIR` to that directory). Local digests are never registry pins. `node scripts/modules/pin-status.mjs` reports whether each gitlink is in sync with, ahead of or behind its registry pin (ahead means you are running a locally compiled module that CI will refuse), and `node scripts/modules/release-and-repin.mjs <id>` publishes a release and re-pins from its `checksum.toml`. The strict `check-module-pins.mjs` is unchanged.3. The module search path: `OPENHUMAN_MODULE_PATH`, then the platform data directories.4. Bundled releases staged into the app at build time.5. The release cache, downloading only if `[modules].allow_download` is true.diff --git a/scripts/README.md b/scripts/README.mdindex 29742307e7..7cce9998d8 100644--- a/scripts/README.md+++ b/scripts/README.md@@ -22,7 +22,7 @@ drivers live in| [`test-planning/`](test-planning/README.md) | Mines GitHub issues/PRs into a test-planning backlog via an LLM CLI. || [`release/`](release) | Release build, signing, packaging, and publishing scripts (macOS notarization, APT/Homebrew, npm, updater manifests). || [`mock-api/`](mock-api) | The shared mock backend modules (routes, socket, admin, state) behind [`mock-api-server.mjs`](mock-api-server.mjs) / [`mock-api-core.mjs`](mock-api-core.mjs); exercised by `pnpm mock:api` and Rust/E2E test runs. |-| [`modules/`](modules) | `build.mjs <id\|all>` builds a loadable module from its vendored gitlink for local development (`SourceSpec` in the registry record; artifact plus an operator-trust `modules.toml` under `target/module-sources/<id>/`, cached by submodule tree, rustc, target, profile and features). `stage-local-modules.sh` is the helper `test-rust-with-mock.sh` and `test-rust-e2e.sh` source. With `OPENHUMAN_MODULE_SOURCE=source` those runners build modules from source; without it they use the pinned releases, same as CI. CI never calls `build.mjs`. |+| [`modules/`](modules) | `build.mjs <id\|all>` builds a loadable module from its vendored gitlink for local development (`SourceSpec` in the registry record; artifact plus an operator-trust `modules.toml` under `target/module-sources/<id>/`, cached by submodule tree, rustc, target, profile and features). `stage-local-modules.sh` is the helper `test-rust-with-mock.sh` and `test-rust-e2e.sh` source. With `OPENHUMAN_MODULE_SOURCE=source` those runners build modules from source; without it they use the pinned releases, same as CI. CI never calls `build.mjs`. `pin-status.mjs` is the local, advisory view of the two module pins (in sync, ahead, behind/diverged, exempt; `--print-env` emits `OPENHUMAN_MODULE_PIN_AHEAD`, which a debug core reads to warn once per id when it serves such a module; `.husky/pre-push` runs it as a hint when `vendor/**` changed). `release-and-repin.mjs <id> [--bump patch\|minor\|major] [--version X.Y.Z] [--dry-run]` dispatches the module's `Release` workflow after asking, then rewrites the registry record verbatim from the release's `checksum.toml` (never hashing anything), checks out the tag, stages the gitlink and runs the strict pin gates. || [`lib/`](lib) | Small parsers shared by the CI gates (checklist, coverage matrix, feature forwarding, module pins, module source specs). || [`__tests__/`](__tests__), [`tests/`](tests) | Unit tests for the scripts themselves (`node --test`, plus a PowerShell installer test). || [`fixtures/`](fixtures) | `latest.json` / `release.json` release-metadata fixtures consumed by [`test_install.sh`](test_install.sh) (the [`install.sh`](install.sh) test). |