Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

docs(skills): describe the install scan gate and refresh cooldown (#7082)

oxoxDev51afb870ba4e
diff --git a/crates/openhuman-core/src/skills/README.md b/crates/openhuman-core/src/skills/README.md
index 856091af02..195423b6a6 100644
--- a/crates/openhuman-core/src/skills/README.md
+++ b/crates/openhuman-core/src/skills/README.md
@@ -139,7 +139,7 @@ there only while its bytes still match the binary
| [`ops_discover.rs`](./ops_discover.rs), [`ops_discover/`](./ops_discover/) | `api.rs` (public entry points, metadata cache, trust check), `scan.rs` (root order and scan engine), `resource.rs` (`read_workflow_resource`). |
| [`ops_parse.rs`](./ops_parse.rs) | Frontmatter and body split, resource inventory. |
| [`ops_create.rs`](./ops_create.rs) | Scaffold a new skill with its sidecar. |
-| [`ops_install.rs`](./ops_install.rs), [`ops_install/`](./ops_install/) | `fetch.rs` (URL installer: fetches through `tinyskills::fetch_skill_document`, then validates and writes with `install_validated_document`, which catalog installs share), `url_validation.rs`, `uninstall.rs`. |
+| [`ops_install.rs`](./ops_install.rs), [`ops_install/`](./ops_install/) | `fetch.rs` (URL installer: fetches through `tinyskills::fetch_skill_document`, then validates and writes with `install_validated_document`, which catalog installs share), `scan_gate.rs` (supply-chain scan with one re-fetch before refusing), `url_validation.rs`, `uninstall.rs`. |
| [`registry.rs`](./registry.rs) | Skills as agent definitions with inputs; `render_inputs_block`, `prune_legacy_default_workflows`. |
| [`preflight.rs`](./preflight.rs) | Pre-run gates (GitHub). |
| [`run_log.rs`](./run_log.rs) | Per-run streaming logs; `read_run_log_slice`, `scan_runs`. |
diff --git a/crates/openhuman-core/src/skills/catalog/README.md b/crates/openhuman-core/src/skills/catalog/README.md
index 7e5dd9627e..5fb76730fe 100644
--- a/crates/openhuman-core/src/skills/catalog/README.md
+++ b/crates/openhuman-core/src/skills/catalog/README.md
@@ -20,7 +20,10 @@ into the user skills directory.
and streams bodies within the registry's limits.
- The catalog is warmed asynchronously on core load. Reads serve the held
catalog (`cached`) while a refresh runs and keep serving it, with
- `last_error`, when the registry cannot be reached.
+ `last_error`, when the registry cannot be reached. A failed refresh is not
+ attempted again for 45 seconds (`REFRESH_COOLDOWN`, set through the
+ builder's `RegistryTimeouts`), or longer when the upstream sends
+ `Retry-After`.
- Entries without a `SKILL.md` download (LobeHub agents, portal pages) are
`installable: false` and carry their `source_url`; installing one fails with
`SKILL_REGISTRY_NO_DIRECT_DOWNLOAD` naming that page.
@@ -62,7 +65,12 @@ all under the `skill_registry` namespace:
- `sources`: upstream sources present in the catalog, with per-source counts
(`facets`) and the catalog's `freshness`.
- `categories`: categories present in the catalog, with counts and freshness.
-- `install`: install a catalog entry by `entry_id` into user scope.
+- `install`: install a catalog entry by `entry_id` into user scope. The result
+ carries `status`: `installed` with `url`, `stdout`, `stderr` and
+ `new_skills`, or `scan_blocked` with `target`, `fetched_from`, `slug`,
+ `findings` and `message` when the supply-chain scan refused it. Passing
+ `acknowledge_scan_findings: true` installs a blocked document; only the
+ Skills UI sends it, after the user chose "Install anyway".
- `uninstall`: remove an installed user-scope skill by slug.
- [`schemas`](./schemas): return the `skill_registry` controller schemas (CLI/RPC smoke-test generation).
@@ -141,8 +149,17 @@ Security notes:
- The fetched document is then validated and written by
`skills::ops_install::install_validated_document`, the same path a pasted URL
takes; uninstall goes through `skills::ops_install::uninstall_workflow`.
-- A registry scan that blocks a document is logged; it does not yet refuse the
- install.
+- Every fetched document is scanned (`tinyskills::scan_skill`). A blocking
+ scan or a failed fetch is fetched and scanned once more
+ (`skills::ops_install::scan_gate`); a document that still blocks is not
+ installed and the caller gets `status: "scan_blocked"` with the findings.
+ Request refusals (unknown id, unsafe URL, portal entry, oversized body, rate
+ limiting) are not retried, and the retry goes through the registry like the
+ first attempt, so a catalog in its refresh cooldown is not refetched.
+- Only `acknowledge_scan_findings` on the `skill_registry_install` and
+ `skills_install_from_url` RPCs installs a blocked document. The agent tools
+ (`skill_registry_install`, `install_workflow_from_url`) do not expose it and
+ always refuse; they tell the agent to send the user to the Skills page.
## Further reading