The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(pm): 3-day release age checked at lock time; plugins trust core's lock
Teknium37725f24f962
diff --git a/plugin-catalog/README.md b/plugin-catalog/README.mdindex beb910d2767..444c3acec17 100644--- a/plugin-catalog/README.md+++ b/plugin-catalog/README.md@@ -67,10 +67,12 @@ meaningful:can break both. `hermes plugins validate` refuses these at admission (`nocore override` check). If the hook you need does not exist, open an issuedescribing it: we would rather add the seam than list a patch.-10. **Dependency security policy is the plugin's.** Hermes's 14-day- `exclude-newer` quarantine covers Hermes's own dependencies only; a plugin's- `python_dependencies` / `pyproject.toml` install under the plugin's policy- (no quarantine, still inside Hermes's core constraints). Reviewers read the+10. **Dependency security policy is the plugin's.** Hermes's 3-day+ `exclude-newer` release-age check covers Hermes's own dependencies only, at+ the time Hermes locks them; a plugin's `python_dependencies` /+ `pyproject.toml` install under the plugin's policy (no age check). Packages+ Hermes itself locks stay at Hermes's locked versions, so a plugin cannot+ require a different version of one. Reviewers read thedependency list at the pinned SHA: bare floors (`>=X` with no upper bound)and floors on the newest release get a request for the oldestAPI-compatible floor plus an upper bound, and authors are stronglydiff --git a/website/docs/developer-guide/plugins/catalog-submission.md b/website/docs/developer-guide/plugins/catalog-submission.mdindex 06823c93ca7..d5ca00aba45 100644--- a/website/docs/developer-guide/plugins/catalog-submission.md+++ b/website/docs/developer-guide/plugins/catalog-submission.md@@ -125,10 +125,12 @@ the gallery. There is no separate listing to maintain.can break both. `hermes plugins validate` refuses these at admission (`nocore override` check). If the hook you need does not exist, open an issuedescribing it: we would rather add the seam than list a patch.-10. **Dependency security policy is the plugin's.** Hermes's 14-day- `exclude-newer` quarantine covers Hermes's own dependencies only; a plugin's- `python_dependencies` / `pyproject.toml` install under the plugin's policy- (no quarantine, still inside Hermes's core constraints). Reviewers read the+10. **Dependency security policy is the plugin's.** Hermes's 3-day+ `exclude-newer` release-age check covers Hermes's own dependencies only, at+ the time Hermes locks them; a plugin's `python_dependencies` /+ `pyproject.toml` install under the plugin's policy (no age check). Packages+ Hermes itself locks stay at Hermes's locked versions, so a plugin cannot+ require a different version of one. Reviewers read thedependency list at the pinned SHA: bare floors (`>=X` with no upper bound)and floors on the newest release get a request for the oldestAPI-compatible floor plus an upper bound, and authors are stronglydiff --git a/website/docs/developer-guide/plugins/index.md b/website/docs/developer-guide/plugins/index.mdindex 2697ca94e5a..c122b174a98 100644--- a/website/docs/developer-guide/plugins/index.md+++ b/website/docs/developer-guide/plugins/index.md@@ -527,14 +527,15 @@ venv and the checkout, never the home directory.### Dependency security policy-Hermes quarantines **its own** dependencies: the checkout's `[tool.uv] exclude-newer = "14 days"`-keeps a freshly published release of any package Hermes itself depends on out of `hermes update`-and the built-in lazy installs for two weeks, so a hijacked upload is caught upstream before it-reaches users. **That quarantine does not apply to your plugin's dependencies.** When Hermes-resolves your plugin into its environment, the cutoff stays on the packages Hermes itself locks-and nowhere else, so a plugin can floor on a release published yesterday and install today — and the-plugin's author, not Hermes, is responsible for what that pulls in. (A plugin that needs a newer-version of a package Hermes itself depends on still waits out that package's window.)+Hermes checks the age of **its own** dependencies when it locks them: the checkout's+`[tool.uv] exclude-newer = "3 days"` keeps any release younger than three days out of `uv.lock`,+so a hijacked upload has time to be caught upstream before it reaches users. Users install from+that vetted lock; their machines never re-check dates. **The check does not apply to your+plugin's dependencies.** When Hermes resolves your plugin into its environment, the packages+Hermes itself locks stay at their locked versions and everything else follows your+requirements, so a plugin can floor on a release published yesterday and install today. The+plugin's author, not Hermes, is responsible for what that pulls in. A plugin that requires a+different version of a package Hermes itself locks fails to install until Hermes's lock moves.Set your own policy and hold yourself to it. Strongly recommended:@@ -543,8 +544,8 @@ Set your own policy and hold yourself to it. Strongly recommended:- **Floor on the oldest API-compatible version**, not the release of the week. A floor on afresh wheel forces every installer onto it the day it appears; `>=old,!=broken,<next` keeps thewide range and skips the one bad release.-- **Adopt a new-release quarantine of your own** — wait ~14 days before floors move to a new- release, and resolve with `uv --exclude-newer "14 days"` (or `UV_EXCLUDE_NEWER`) in your own CI so+- **Adopt a release-age check of your own**: wait a few days before floors move to a new+ release, and resolve with `uv --exclude-newer "3 days"` (or `UV_EXCLUDE_NEWER`) in your own CI sothe lock you test is the one users get.- **Pin your lock, review your bumps.** Treat a dependency bump as a code change: read theupstream diff, then re-pin.diff --git a/website/docs/reference/package-management.md b/website/docs/reference/package-management.mdindex 7f84060bb19..7f3c2d7f107 100644--- a/website/docs/reference/package-management.md+++ b/website/docs/reference/package-management.md@@ -439,7 +439,7 @@ before starting another Python process.```This re-resolves `uv.lock` from `pyproject.toml` with the same settings CI- checks, including the 14-day `exclude-newer` quarantine. It changes no+ checks, including the 3-day `exclude-newer` release-age check. It changes noenvironment. When the lock is already current, it says so and writesnothing. (`hermes pm lock --bump NAME VERSION` is a different operation: itpins a managed tool in `pm/lock.json` and does not touch `uv.lock`.)@@ -579,6 +579,20 @@ retains the CDN fallback: one serial attempt at the missing ranges. Extraction,verification and publication are not repeated. Python and npm package requestsremain under uv and npm's own retry policies.+## Release age and package mirrors++Every Python package Hermes itself depends on must be at least three days old+when Hermes locks it (uv's `exclude-newer`, enforced by CI's lock check), so a+freshly published, possibly compromised release cannot reach `uv.lock`. Users+install from that lock. Installing or enabling a plugin keeps every package+Hermes locks at its locked version and never re-checks dates, so package mirrors+that publish no upload times work. Set a mirror with `index-url` in `pip.conf`,+which Hermes passes to uv, or with `UV_INDEX_URL`.++`hermes pm lock` is the one step that applies the check. Run against a mirror+without upload times, it stops with `has no publish time`; use+`https://pypi.org/simple` for that step.+## Diagnostics- **Slow Python dependency builds:** PM's streamed uv commands enable verbose output. Bundle and build logs show package activity and build-backend stdout/stderr while the build runs, not only after failure.